leor amikam created LOG4J2-3383:
-----------------------------------

             Summary: JMS Log deserialization is failing on jboss eap after 
upgrade to 2.17.1
                 Key: LOG4J2-3383
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3383
             Project: Log4j 2
          Issue Type: Question
          Components: Appenders
    Affects Versions: 2.17.1
         Environment: JBoss EAP 7.2.0 on linux and windows.

  Jboss is using JMS client lib:  artemis-jms-client-2.6.3.redhat-00014
            Reporter: leor amikam


We upgraded log4j2 from 2.9.0 to 2.17.1.  Using the JMS appender.   In our 
onMessage JMS handler, we have the following:

 
{code:java}
ObjectMessage objMessage = (ObjectMessage) message;
LogEvent ev = (LogEvent) objMessage.getObject();
 
{code}
 

The cast to the LogEvent is now throwing this exception:
{code:java}
javax.jms.JMSException: readObject requires a FilteredObjectInputStream or an 
ObjectInputStream that accepts an ObjectInputFilter{code}
 

None of the underlying code has changed other than the log4j2 upgrade.  Any 
suggestions?

Thanks!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to