java.io.NotSerializableException: java.lang.Object

Spring JIRA | Mauricio Noda | 7 years ago
  1. 0

    If a Spring bean in flow scope is annotated with @Transactional, the following exception is thrown when Spring Web Flow tries to serialize the scope: org.springframework.webflow.execution.repository.snapshot.SnapshotCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable at org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshot.<init>(SerializedFlowExecutionSnapshot.java:74) at org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshotFactory.createSnapshot(SerializedFlowExecutionSnapshotFactory.java:70) at org.springframework.webflow.execution.repository.snapshot.AbstractSnapshottingFlowExecutionRepository.snapshot(AbstractSnapshottingFlowExecutionRepository.java:75) at org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository.putFlowExecution(DefaultFlowExecutionRepository.java:123) at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:165) Truncated. see log file for complete stacktrace java.io.NotSerializableException: java.lang.Object at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) Truncated. see log file for complete stacktrace

    Spring JIRA | 7 years ago | Mauricio Noda
    java.io.NotSerializableException: java.lang.Object
  2. 0

    If a Spring bean in flow scope is annotated with @Transactional, the following exception is thrown when Spring Web Flow tries to serialize the scope: org.springframework.webflow.execution.repository.snapshot.SnapshotCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable at org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshot.<init>(SerializedFlowExecutionSnapshot.java:74) at org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshotFactory.createSnapshot(SerializedFlowExecutionSnapshotFactory.java:70) at org.springframework.webflow.execution.repository.snapshot.AbstractSnapshottingFlowExecutionRepository.snapshot(AbstractSnapshottingFlowExecutionRepository.java:75) at org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository.putFlowExecution(DefaultFlowExecutionRepository.java:123) at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:165) Truncated. see log file for complete stacktrace java.io.NotSerializableException: java.lang.Object at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) Truncated. see log file for complete stacktrace

    Spring JIRA | 7 years ago | Mauricio Noda
    java.io.NotSerializableException: java.lang.Object
  3. 0

    eclipse错误及解决方法(大家把遇到的错误也贴到评论里吧,然后一起解决) | 学步园

    xuebuyuan.com | 11 months ago
    java.io.NotSerializableException: org.apache.commons.dbcp.BasicDataSource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    eclipse错误及解决方法(大家把遇到的错误也贴到评论里吧,然后一起解决) - pdw_jsp的专栏 - 博客频道 - CSDN.NET

    csdn.net | 9 months ago
    java.io.NotSerializableException: org.apache.commons.dbcp.BasicDataSource
  6. 0

    Changing any java code causes weblogic to restart in debug mode

    Oracle Community | 6 years ago | 780326
    java.io.NotSerializableException: weblogic.servlet.internal.WebAppServletContext

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.NotSerializableException

      java.lang.Object

      at java.io.ObjectOutputStream.writeObject0()
    2. Java RT
      ObjectOutputStream.writeObject0
      1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
      2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      5 frames