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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.0.6.GA
    • Logging
    • None
    • 7.1.z: JBEAP-12249
    • Workaround Exists
    • 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());
    • 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());

      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.

              rhn-support-ivassile Ilia Vassilev
              rhn-support-lkonno Leticia Konno
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: