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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.ER3
    • 7.1.0.ER2
    • Logging
    • None
    • 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.

            jperkins-rhn James Perkins
            rhn-support-lkonno Leticia Konno
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: