You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Sarat Para <sa...@air2web.com> on 2001/02/22 17:28:14 UTC

Trying to serialize NDC Stack

I trying to put NDC stack in a JMS ObjectMessage and restore NDC when the
message is popped from Queue.  I am getting following Exception.  I am using
weblogic 5.1 with jdk1.3.  

My guess is this problem is due to the fact that DiagnosticContext (inner
class in NDC) that is pushed on to NDC stack is not serializable.  Is there
any reason NDC and DiagnosticContext can not  be serializable??

Please let me know if I am missing some thing here.

Sarat


javax.jms.JMSException: setObject: problem serializing copy
        at
weblogic.jms.common.ObjectMessageImpl.setObject(ObjectMessageImpl.jav
a:65)
        at
weblogic.jms.client.JMSSession.createObjectMessage(JMSSession.java:13
3)
        at com.air2web.platform.core.queue.Queues.putI(Queues.java:162)
        at com.air2web.platform.core.queue.Queues.put(Queues.java:101)
        at
com.air2web.platform.core.messagedelivery.SMTPMessage.send(SMTPMessag
e.java:79)
        at
com.air2web.platform.wirelet.PublishDataWirelet.service(PublishDataWi
relet.java:223)
        at
com.air2web.platform.markup.wirelet.WireletContextImpl.invokeWirelet(
WireletContextImpl.java:72)
        at
com.air2web.platform.markup.wirelet.WireletContainer.dispatch(Wirelet
Container.java:105)
        at
com.air2web.platform.markup.ScriptController.processConversation(Scri
ptController.java:641)
        at
com.air2web.platform.conversation.ConversationManager.startConversati
on(ConversationManager.java:124)
        at
com.air2web.platform.device.protocol.http.handler.ApiRequestHandler.n
otify(ApiRequestHandler.java:97)
        at
com.air2web.platform.device.protocol.http.HttpProtoManager.service(Ht
tpProtoManager.java:82)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
        at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:761)
        at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:708)
        at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
        at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:346)
        at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)