WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
||
Skip to end of metadata
Go to start of metadata

The possible exceptions that may occur relating to Siddhi runtime are as follows:

NotSerializableException

Sample Error Log
TID: [-1] [] [2017-04-18 17:02:19,876] ERROR {org.wso2.siddhi.core.util.snapshot.ByteSerializer} -  Error when writing byte array. org.wso2.carbon.event.receiver.core.internal.management.BlockingEventQueue {org.wso2.siddhi.core.util.snapshot.ByteSerializer}
java.io.NotSerializableException: org.wso2.carbon.event.receiver.core.internal.management.BlockingEventQueue
Occurrence

Siddhi takes a snaphot of its components to persist its state. It goes through all the components of which it is possible to get a snapshot, and reads their state via currentState(). If the current state returns, objects that are returned are serialized and stored in a file. NotSerializableException is returned if the objects returned are not serializable. For more information, see the implementation for handling the snapshot and serialization.

Possible reasonsThis is incorrect behaviour caused by developer error.
Troubleshooting options

Identify the component and the class for which the non-serializable object is returned. Based on these, identify the non-serializable object by checking the log.

Recommended action

The relevant object must be patched to implement a serializable interface. You can patch and fix the issue, or report a Github issue in the product repository so that the product team can fix it.


Dropping event chunk - NullpointerException

Sample Error Log
TID: [-1] [] [2017-04-18 17:02:19,876] ERROR {org.wso2.siddhi.core.util.snapshot.ByteSerializer} -  Error when writing byte array. org.wso2.carbon.event.receiver.core.internal.management.BlockingEventQueue {org.wso2.siddhi.core.util.snapshot.ByteSerializer}
java.io.NotSerializableException: org.wso2.carbon.event.receiver.core.internal.management.BlockingEventQueue
Recommended actionThis is a known issue. To fix this, apply the WSO2-CARBON-PATCH-4.4.0-1028 patch or the WUM update (that has the same number as the patch).
  • No labels