Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12249

[GSS](7.1.0) java.io.NotSerializableException: org.apache.commons.logging.JBossLog after update to EAP 7 CP06

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.ER2
    • Fix Version/s: 7.1.0.ER3
    • Component/s: Logging
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide
      • logging project attached
      import org.apache.commons.logging.Log;
      import org.apache.commons.logging.LogFactory;
      
      public class Foo implements Serializable {
      
        Log logger = LogFactory.getLog(getClass());
      
      Show
      logging project attached import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class Foo implements Serializable { Log logger = LogFactory.getLog(getClass());
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      set logger as transient or update project lib commons-logging from 1.1 to 1.2

      public class Foo implements Serializable {
        
        transient Log logger = LogFactory.getLog(getClass());
      
      Show
      set logger as transient or update project lib commons-logging from 1.1 to 1.2 public class Foo implements Serializable { transient Log logger = LogFactory.getLog(getClass());

      Description

      After update to CP06, it seeing java.io.NotSerializableException: org.apache.commons.logging.JBossLog

      Caused by: java.io.NotSerializableException: org.apache.commons.logging.JBossLog
      	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:253)
      	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:128)
      	at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:393)
      	at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)
      	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:251)
      	at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:128)
      	at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:330)
      	... 67 more
      

      Looks that org.apache.commons.logging.JBossLog should be serializable.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jamezp James Perkins
              Reporter:
              lkonno Leticia Konno
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: