Pattern selector

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

  1. ObjectOutputStream.writeObject() has thrown a NotSerializableException
    Java Runtime
    4
    1
    6
  2. Trying to write an object to a file/socket that is not serializable
    Java Runtime
    370
    235
    163

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.NotSerializableException: org.terracotta.modules.tomcat.tomcat_6_0.SessionRequest60
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
2 frames hidden

Solution

chinthana10 months ago

To ensure that you are able to write an object to a file/socket, make the object's class implement the Serializable interface

External results for this pattern (10)

  1. ggprivatvia GitHub1 day ago
    com.github.appreciated.app.layout.builder.entities.NavigationElementInfo
    Show stack trace
  2. jkwebstervia GitHub2 days ago
    org.drools.impl.adapters.KnowledgeBaseAdapter
    Show stack trace
  3. leleujvia GitHub3 days ago
    Exception thrown in state 'viewRegistration' of flow 'mfa-gauth'
    Show stack trace
  4. reidswansonvia GitHub3 days ago
    java.io.NotSerializableException: sun.management.GarbageCollectorImpl
    Show stack trace
  5. ivanvia Google Groups1 week ago
    Could not serialize String2@12faeca [1.4.197/0]
    Show stack trace
  6. nagraj321via GitHub1 week ago
    org.jboss.jca.core.connectionmanager.pool.strategy.PoolBySubject
    Show stack trace
  7. Björn Mehnervia Google Groups1 week ago
    HotswapSpringCallback_1796692748
    Show stack trace
  8. Unknown authorvia Google Groups1 week ago
    net.bull.javamelody.JdbcWrapper
    Show stack trace
  9. Sergiovia Google Groups1 week ago
    com.pagosonline.ppp4.core.common.util.EntityValidator
    Show stack trace
  10. Christophervia Google Groups1 week ago
    org.springframework.security.web.firewall.RequestWrapper
    Show stack trace