Query give java.io.NotSerializableException.

Query give java.io.NotSerializableException.

book

Article ID: KB0090289

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
=========
A Business Event (BE) query engine eventually generates the following error stack:

2013 May 31 17:21:13:508 GMT +0 vrh00435 [. . .] Info [$default.be.mt$.Thread.2] - [user] [QRY] Started query: RuleFunctions.Query.ExecuteQuery [21936106821105086.2326.0157985732276]-SS
2013 May 31 17:21:13:518 GMT +0 vrh00435 [. . .] Error [SnapshotQueryManager-2] - [query.service] [QRY]
(Wrapped) java.io.NotSerializableException: com.tibco.cep.query.stream.tuple.LiteTuple
        at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
        at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.packetizeMessage(PacketPublisher.CDB:23)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher$InQueue.add(PacketPublisher.CDB:11)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.dispatchMessage(Grid.CDB:62)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.post(Grid.CDB:31)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.sendPartitionedRequest(PartitionedCache.CDB:101)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.query(PartitionedCache.CDB:9)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.keySet(PartitionedCache.CDB:8)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.keySet(PartitionedCache.CDB:1)
        at com.tangosol.util.ConverterCollections$ConverterQueryMap.keySet(ConverterCollections.java:2498)
        at com.tangosol.util.ConverterCollections$ConverterNamedCache.keySet(ConverterCollections.java:2792)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.keySet(PartitionedCache.CDB:45)
        at com.tangosol.coherence.component.util.SafeNamedCache.keySet(SafeNamedCache.CDB:1)
        at com.tibco.cep.query.stream.impl.rete.integ.EntityLoaderImpl.init(EntityLoaderImpl.java:121)
        at com.tibco.cep.query.stream.impl.rete.integ.EntityLoaderImpl.resumeOrStartBatchLoad(EntityLoaderImpl.java:127)
        at com.tibco.cep.query.stream.impl.rete.service.SnapshotQueryFeeder$FeederJob.run(SnapshotQueryFeeder.java:227)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at com.tibco.cep.query.stream.monitor.CustomDaemonThreadFactory$FactoryDaemonThread.run(CustomDaemonThreadFactory.java:65)
Caused by: java.io.NotSerializableException: com.tibco.cep.query.stream.tuple.LiteTuple
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
        at com.tibco.cep.query.stream.util.FixedKeyHashMap.writeObject(FixedKeyHashMap.java:481)
        at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Environment:
=========
BE 4.0.2; Linux


Symptoms:
=========
See error reported in the Description of this KB.


Cause:
=========
If monitoring a BE query, this would be seen if running out of Heap space.

Resolution:
=========
Increase the heap space and restart the application.

Issue/Introduction

Query give java.io.NotSerializableException.