Error: [java.lang.ClassCastException: java.lang.Long cannot be casted to ASBlob] in Inference logs.

Error: [java.lang.ClassCastException: java.lang.Long cannot be casted to ASBlob] in Inference logs.

book

Article ID: KB0093157

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:

Error [$default.be.mt$.Thread.2] - [runtime.service] [inference-class] Error occurred in [DefaultDistributedCac

heBasedStore]. Quorum check will be performed.

java.lang.RuntimeException: com.tibco.as.space.RuntimeASException: com.tibco.as.space.ASException: com.tibco.as.space.impl.serializer.ASSerializerExce

ption: Cast error for field name=id

        at com.tibco.cep.as.kit.map.SpaceMap.traceAsException(SourceFile:120)

        at com.tibco.cep.as.kit.map.SpaceMap.putAll(SourceFile:276)

        at com.tibco.cep.runtime.service.om.impl.AbstractEntityDao.putAll(AbstractEntityDao.java:162)

        at com.tibco.cep.runtime.service.cluster.txn.RtcTransactionManager.insertConcepts(RtcTransactionManager.java:192)

        at com.tibco.cep.runtime.service.cluster.txn.RtcTransactionManager.txnToCache(RtcTransactionManager.java:343)

        at com.tibco.cep.runtime.service.cluster.txn.RtcTransactionManager.applyTransactionToCache(RtcTransactionManager.java:332)

        at com.tibco.cep.runtime.service.cluster.txn.RtcTransactionManager.applyTransaction(RtcTransactionManager.java:524)

        at com.tibco.cep.runtime.service.cluster.txn.RtcTransactionManager.publish(RtcTransactionManager.java:180)

...

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at com.tibco.cep.runtime.util.CustomBEManagedThread.run(CustomBEManagedThread.java:24)

Caused by: com.tibco.as.space.RuntimeASException: com.tibco.as.space.ASException: com.tibco.as.space.impl.serializer.ASSerializerException: Cast error

 for field name=id

...

Caused by: java.lang.ClassCastException: java.lang.Long cannot be casted to ASBlob

        at com.tibco.as.space.impl.serializer.CastHelper.castToBlob(CastHelper.java:318)

        at com.tibco.as.space.impl.serializer.CastHelper.cast(CastHelper.java:136)

        at com.tibco.as.space.impl.data.ASTuple.serialize(ASTuple.java:198)

        ... 24 more



Symptoms:

[java.lang.ClassCastException: java.lang.Long cannot be casted to ASBlob] in logs. Complete error trace is given above.


Cause:
Customer was using "id" as a concept property, which seems to be conflicting with internal property "id".

Issue/Introduction

Error: [java.lang.ClassCastException: java.lang.Long cannot be casted to ASBlob] in Inference logs.

Resolution

Change all the property names from "id" to some other string.

Additional Information

None