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
    236
    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. L-Lavignevia GitHub10 hours ago
  2. Idanatcoxvia GitHub21 hours ago
    java.io.PrintStream
    Show stack trace
  3. ggprivatvia GitHub1 day ago
    com.github.appreciated.app.layout.builder.entities.NavigationElementInfo
    Show stack trace
  4. jkwebstervia GitHub3 days ago
    org.drools.impl.adapters.KnowledgeBaseAdapter
    Show stack trace
  5. leleujvia GitHub3 days ago
    Exception thrown in state 'viewRegistration' of flow 'mfa-gauth'
    Show stack trace
  6. reidswansonvia GitHub3 days ago
    java.io.NotSerializableException: sun.management.GarbageCollectorImpl
    Show stack trace
  7. ivanvia Google Groups1 week ago
    Could not serialize String2@12faeca [1.4.197/0]
    Show stack trace
  8. nagraj321via GitHub1 week ago
    org.jboss.jca.core.connectionmanager.pool.strategy.PoolBySubject
    Show stack trace
  9. Björn Mehnervia Google Groups1 week ago
    HotswapSpringCallback_1796692748
    Show stack trace
  10. Unknown authorvia Google Groups1 week ago
    net.bull.javamelody.JdbcWrapper
    Show stack trace