Announcement Announcement Module
Collapse
No announcement yet.
ContinuationCreationException and NotSerializableException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContinuationCreationException and NotSerializableException

    I ran into the following issue in dev enviornment but the same code runs perfectly in our production. What could be causing this? Thanks!

    [5/2/08 10:34:02:784 EDT] 00000044 BridesMapping E com.amg.brides.util.BridesMappingExceptionResolver resolveException Exception:Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable; nested exception is java.io.NotSerializableException: org.apache.commons.logging.impl.Jdk14Logger
    org.springframework.webflow.execution.repository.c ontinuation.ContinuationCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable; nested exception is java.io.NotSerializableException: org.apache.commons.logging.impl.Jdk14Logger
    java.io.NotSerializableException: org.apache.commons.logging.impl.Jdk14Logger
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1054)
    at java.io.ObjectOutputStream.defaultWriteFields(Obje ctOutputStream.java:1332)
    at java.io.ObjectOutputStream.writeSerialData(ObjectO utputStream.java:1304)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1247)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.defaultWriteFields(Obje ctOutputStream.java:1332)
    at java.io.ObjectOutputStream.writeSerialData(ObjectO utputStream.java:1304)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1247)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.writeObject(ObjectOutpu tStream.java:278)
    at java.util.HashMap.writeObject(HashMap.java:980)
    at sun.reflect.GeneratedMethodAccessor66.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeWriteObject(Object StreamClass.java:809)
    at java.io.ObjectOutputStream.writeSerialData(ObjectO utputStream.java:1296)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1247)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.defaultWriteFields(Obje ctOutputStream.java:1332)
    at java.io.ObjectOutputStream.defaultWriteObject(Obje ctOutputStream.java:367)
    at org.springframework.webflow.core.collection.LocalA ttributeMap.writeObject(LocalAttributeMap.java:307 )
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeWriteObject(Object StreamClass.java:809)
    at java.io.ObjectOutputStream.writeSerialData(ObjectO utputStream.java:1296)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1247)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.writeObject(ObjectOutpu tStream.java:278)
    at org.springframework.webflow.engine.impl.FlowSessio nImpl.writeExternal(FlowSessionImpl.java:160)
    at java.io.ObjectOutputStream.writeExternalData(Objec tOutputStream.java:1267)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1245)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.writeObject(ObjectOutpu tStream.java:278)
    at java.util.LinkedList.writeObject(LinkedList.java:6 85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeWriteObject(Object StreamClass.java:809)
    at java.io.ObjectOutputStream.writeSerialData(ObjectO utputStream.java:1296)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1247)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.writeObject(ObjectOutpu tStream.java:278)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.writeExternal(FlowExecutionImpl.java:482)
    at java.io.ObjectOutputStream.writeExternalData(Objec tOutputStream.java:1267)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Obj ectOutputStream.java:1245)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutp utStream.java:1052)
    at java.io.ObjectOutputStream.writeObject(ObjectOutpu tStream.java:278)
    at org.springframework.webflow.execution.repository.c ontinuation.SerializedFlowExecutionContinuation.se rialize(SerializedFlowExecutionContinuation.java:1 78)
    at org.springframework.webflow.execution.repository.c ontinuation.SerializedFlowExecutionContinuation.<i nit>(SerializedFlowExecutionContinuation.java:70)
    at org.springframework.webflow.execution.repository.c ontinuation.SerializedFlowExecutionContinuationFac tory.createContinuation(SerializedFlowExecutionCon tinuationFactory.java:55)
    at org.springframework.webflow.execution.repository.c ontinuation.ClientContinuationFlowExecutionReposit ory.encode(ClientContinuationFlowExecutionReposito ry.java:169)
    at org.springframework.webflow.execution.repository.c ontinuation.ClientContinuationFlowExecutionReposit ory.generateContinuationId(ClientContinuationFlowE xecutionRepository.java:151)
    at org.springframework.webflow.execution.repository.s upport.AbstractConversationFlowExecutionRepository .generateKey(AbstractConversationFlowExecutionRepo sitory.java:99)
    at org.springframework.webflow.executor.FlowExecutorI mpl.launch(FlowExecutorImpl.java:209)
    at org.springframework.webflow.executor.support.FlowR equestHandler.handleFlowRequest(FlowRequestHandler .java:131)
    at org.springframework.webflow.executor.mvc.FlowContr oller.handleRequestInternal(FlowController.java:17 2)
    at

  • #2
    Loggers aren't serializable. You probably consider making that logger instance static or transient.

    Keith

    Comment


    • #3
      There is

      Code:
      protected final Log logger = LogFactory.getLog(getClass());
      in org.springframework.webflow.engine.State class. Could it be the cause? We here got almost same exception, but only when it is running on WAS. When deployed on jetty - no problems.

      Best regards, Eugene.

      Comment


      • #4
        I'm having the same problem on WAS. Were you able to get this resolved?

        Thanks,
        Miki

        Comment


        • #5
          Sorry for late reply.

          It was fixed by properly configuring logging with slf4j using jcl-over-slf4j. The logger there is Serializable. Although it may be doable with recent commons logging as well since the Loger is Serializable there to. In any case the problem is caused by some old Logger implementation loaded from the deeps of WebSphere. And of course it's strange that the logger is not static in State. Would be interesting to know reason for that.

          Comment

          Working...
          X