Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ObjectOutputStream.writeObject0() has thrown a NotSerializableException
    Java Runtime
    0
    2
    2
  2. ObjectOutputStream.writeObject0() has thrown a NotSerializableException
    Java Runtime
    204
    147
    106

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.NotSerializableException: com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
3 matching frames hidden
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
79 frames hidden

Solution

chinthana10 months ago

Your object contains member variables which are themselves not serializable 'ReportDataStoreRegion'. If you really want to serialize your object. One option would be to declare the variable as transient so that it is not serialized.

Check the source of this solution for more info

External results for this pattern (10)

  1. Björn Mehnervia Google Groups6 days ago
    HotswapSpringCallback_1796692748
    Show stack trace
  2. Sergiovia Google Groups6 days ago
    com.pagosonline.ppp4.core.common.util.EntityValidator
    Show stack trace
  3. Christophervia Google Groups6 days ago
    org.springframework.security.web.firewall.RequestWrapper
    Show stack trace
  4. Andy1221via GitHub3 weeks ago
    remote file operation failed: /data/jenkins/w/workspace/<PATH> at hudson.remoting.Channel@d62dcd4:Channel to /10.11.4.31: java.io.IOException: Unable to serialize org.jenkinsci.plugins.jvctb.perform.JvctbPerformer$1@6e79cf3b
    Show stack trace
  5. IanMayovia GitHub4 weeks ago
    Debrief.Wrappers.Track.LightweightTrackWrapper$LightweightTrackInfo
    Show stack trace
  6. glassfishrobotvia GitHub4 weeks ago
    com.sun.messaging.jmq.jmsservice.Destination
    Show stack trace
  7. L-Lavignevia GitHub1 month ago
  8. Nobik2via GitHub1 month ago
    writing aborted; java.io.NotSerializableException: org.json.JSONObject
    Show stack trace
  9. Nobik2via GitHub1 month ago
    writing aborted; java.io.NotSerializableException: org.json.JSONObject
    Show stack trace
  10. iKrushYouvia GitHub1 month ago
    Failed to convert from type [java.lang.Object] to type [byte[]] for value 'org.springframework.security.authentication.BadCredentialsException: Bad credentials'; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: com.sun.jndi.ldap.LdapCtx
    Show stack trace