<font size=2 face="sans-serif">I have an application client set up to
send a logging message over &nbsp;a bus using a logback JMSQueueAppender.
&nbsp;Logback version is 0.9.24 and slf4j version is 1.6.1.</font>
<br>
<br><font size=2 face="sans-serif">This is running on a Websphere 7.0 server
in Rational Application Developer 7.5.</font>
<br>
<br><font size=2 face="sans-serif">I've tested the bus and queue with a
simple text message using the RAD Universal Test Client and that works
fine, so at least the foundation is solid.</font>
<br>
<br><font size=2 face="sans-serif">When I log a message to the message
queue, I wind up with the following stack trace under a wide variety of
attempts:</font>
<br>
<br><font size=2 face="Courier New">[8/11/10 14:44:16:223 EDT] 0000002b
SystemOut &nbsp; &nbsp; O Exception CWSIA0122E: An exception occurred deserializing
a message, </font><font size=2 color=#000080 face="Courier New"><u>exception</u></font><font size=2 face="Courier New">:
</font><font size=2 color=#000080 face="Courier New"><u>java.lang.ClassNotFoundException</u></font><font size=2 face="Courier New">:
ch.qos.logback.classic.spi.LoggingEventVO.</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R </font><font size=2 color=#000080 face="Courier New"><u>javax.jms.MessageFormatException</u></font><font size=2 color=red face="Courier New">:
CWSIA0122E: An exception occurred deserializing a message, </font><font size=2 color=#000080 face="Courier New"><u>exception</u></font><font size=2 color=red face="Courier New">:
</font><font size=2 color=#000080 face="Courier New"><u>java.lang.ClassNotFoundException</u></font><font size=2 color=red face="Courier New">:
ch.qos.logback.classic.spi.LoggingEventVO.</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.sib.api.jms.impl.JmsObjectMessageImpl.getObject(</font><font size=2 color=#000080 face="Courier New"><u>JmsObjectMessageImpl.java:277</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.csg.logger.mdb.NYCMLoggerMDB.handleMessage(</font><font size=2 color=#000080 face="Courier New"><u>NYCMLoggerMDB.java:45</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.csg.logger.mdb.NYCMLoggerMDB.onMessage(</font><font size=2 color=#000080 face="Courier New"><u>NYCMLoggerMDB.java:36</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(</font><font size=2 color=#000080 face="Courier New"><u>MessageEndpointHandler.java:1092</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ejs.container.MessageEndpointHandler.invoke(</font><font size=2 color=#000080 face="Courier New"><u>MessageEndpointHandler.java:777</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
$Proxy42.onMessage(Unknown Source)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(</font><font size=2 color=#000080 face="Courier New"><u>JmsJcaEndpointInvokerImpl.java:233</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(</font><font size=2 color=#000080 face="Courier New"><u>SibRaDispatcher.java:900</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(</font><font size=2 color=#000080 face="Courier New"><u>SibRaSingleProcessListener.java:550</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ejs.j2c.work.WorkProxy.run(</font><font size=2 color=#000080 face="Courier New"><u>WorkProxy.java:399</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.util.ThreadPool$Worker.run(</font><font size=2 color=#000080 face="Courier New"><u>ThreadPool.java:1550</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R Caused by: </font><font size=2 color=#000080 face="Courier New"><u>java.lang.ClassNotFoundException</u></font><font size=2 color=red face="Courier New">:
ch.qos.logback.classic.spi.LoggingEventVO</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.lang.Class.forNameImpl(</font><font size=2 color=#000080 face="Courier New"><u>Native
Method</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.lang.Class.forName(</font><font size=2 color=#000080 face="Courier New"><u>Class.java:136</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.util.WsObjectInputStream.loadClass(</font><font size=2 color=#000080 face="Courier New"><u>WsObjectInputStream.java:227</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.util.WsObjectInputStream.access$000(</font><font size=2 color=#000080 face="Courier New"><u>WsObjectInputStream.java:53</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.util.WsObjectInputStream$2.run(</font><font size=2 color=#000080 face="Courier New"><u>WsObjectInputStream.java:191</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.security.util.AccessController.doPrivileged(</font><font size=2 color=#000080 face="Courier New"><u>AccessController.java:118</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.util.WsObjectInputStream.resolveClass(</font><font size=2 color=#000080 face="Courier New"><u>WsObjectInputStream.java:164</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.util.WsObjectInputStream.resolveClass(</font><font size=2 color=#000080 face="Courier New"><u>WsObjectInputStream.java:156</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.io.ObjectInputStream.readNonProxyDesc(</font><font size=2 color=#000080 face="Courier New"><u>ObjectInputStream.java:1591</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.io.ObjectInputStream.readClassDesc(</font><font size=2 color=#000080 face="Courier New"><u>ObjectInputStream.java:1512</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.io.ObjectInputStream.readOrdinaryObject(</font><font size=2 color=#000080 face="Courier New"><u>ObjectInputStream.java:1748</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.io.ObjectInputStream.readObject0(</font><font size=2 color=#000080 face="Courier New"><u>ObjectInputStream.java:1345</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:223 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
java.io.ObjectInputStream.readObject(</font><font size=2 color=#000080 face="Courier New"><u>ObjectInputStream.java:364</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:239 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.sib.api.jms.impl.JmsObjectMessageImpl.getObjectInternal(</font><font size=2 color=#000080 face="Courier New"><u>JmsObjectMessageImpl.java:345</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:239 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; at
com.ibm.ws.sib.api.jms.impl.JmsObjectMessageImpl.getObject(</font><font size=2 color=#000080 face="Courier New"><u>JmsObjectMessageImpl.java:271</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">[8/11/10 14:44:16:239 EDT]
0000002b SystemErr &nbsp; &nbsp; R &nbsp; &nbsp; &nbsp; &nbsp; ...
10 more</font>
<br>
<br><font size=2 face="sans-serif">This always happens when trying to get
the message object out of the message in the onMessage code in my message
driven bean. For example, the stack dump was generated at the event = .
. . line in the code below:</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>if</b></font><font size=2 face="Courier New">
(msg </font><font size=2 color=#820040 face="Courier New"><b>instanceof</b></font><font size=2 face="Courier New">
ObjectMessage){</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; ObjectMessage objectMesssage = (ObjectMessage)
msg;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; System.</font><font size=2 color=#0021bf face="Courier New"><i>out</i></font><font size=2 face="Courier New">.println(</font><font size=2 color=#4200ff face="Courier New">&quot;Got
ObjectMessage&quot;</font><font size=2 face="Courier New">);</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; event = (ILoggingEvent) objectMesssage.getObject();
</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br>
<br><font size=2 face="Courier New">I have the logback classic jar on my
classpath successfully because I use a number of other classes from it
in my code.</font>
<br>
<br><font size=2 face="Courier New">If anyone can help with this, I would
appreciate it. I can provide additional information as needed.</font>
<br>
<br><font size=2 face="Courier New">Thanks,</font>
<br>
<br><font size=2 face="Courier New">Merritt Derr</font><font size=2 face="sans-serif"><br>
<br>
<br>
***CONFIDENTIALITY NOTICE***<br>
This email and any attachments to it are confidential and intended solely
for the individual or entity to whom it is addressed. Any unauthorized
review, use, disclosure or distribution is prohibited. If you have received
this email in error, please contact the sender by reply email and destroy
all copies of the original message. <br>
<br>
</font><img src=http://www.nycm.com/img/thinkbeforeprinting.gif width=392 height=19>