Hi, I'm new to the J2ee. We are looking into converting our client/server application to 3-tier. We are preparing proof of concept with WebLogic server 10.0. I'm getting the following error when trying to connect from my java client to JMSConnection Factory. Here is the code: Context initialContext = EJBEnvironment.getInstance() .getInitialContext(); TopicConnectionFactory factory = null; Topic topic = null; try { factory = (TopicConnectionFactory) initialContext .lookup("fdg_jms_connection"); (TopicConnectionFactory)initialContext .lookup("javax.jms.TopicConnectionFactory"); } catch (NamingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { topic = (Topic) initialContext.lookup("fdg_oneday_topic"); } catch (NamingException e1) { // TODO Auto-generated catch block System.err.println("Error with topic: (Topic)initialContext.lookup(funding_onedayview_topic)"); e1.printStackTrace(); } TopicConnection topicConnection = null; try { topicConnection = factory.createTopicConnection(); TopicSession session = topicConnection.createTopicSession(false, TopicSession.AUTO_ACKNOWLEDGE); TopicSubscriber subscriber = session.createSubscriber(topic); subscriber.setMessageListener(this); } catch (JMSException e) { // TODO Auto-generated catch block System.err .println("Error with connection: factory.createTopicConnection()"); e.printStackTrace(); } on the line which says topicConnection = ...... I get the following error: Error with connection: factory.createTopicConnection() weblogic.jms.common.JMSException: [JMSClientExceptions:055053]Error creating connection to the server: java.rmi.MarshalException: failed to marshal connectionCreateRequest(Lweblogic.jms.frontend.FEConnectionCreateRequest;); nested exception is: java.io.NotSerializableException: weblogic.messaging.dispatcher.DispatcherImpl at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:258) at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:285) at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:184) at com.sgcib.fundingplatform.gui.onedaybalances.DeskUI.subscribeToTopic(DeskUI.java:599) at com.sgcib.fundingplatform.gui.onedaybalances.DeskUI.jbInit(DeskUI.java:557) at com.sgcib.fundingplatform.gui.onedaybalances.DeskUI.(DeskUI.java:269) at com.sgcib.fundingplatform.gui.FundingPlatformUI.displayOneDayUI(FundingPlatformUI.java:1064) at com.sgcib.fundingplatform.gui.FundingPlatformUI.this_componentShown(FundingPlatformUI.java:1237) at com.sgcib.fundingplatform.gui.FundingPlatformUI_this_componentAdapter.componentShown(FundingPlatformUI.java:2433) at java.awt.Component.processComponentEvent(Component.java:5333) at java.awt.Component.processEvent(Component.java:5281) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Window.processEvent(Window.java:1161) at java.awt.Component.dispatchEventImpl(Component.java:3968) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Window.dispatchEventImpl(Window.java:1778) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Caused by: java.rmi.MarshalException: failed to marshal connectionCreateRequest(Lweblogic.jms.frontend.FEConnectionCreateRequest;); nested exception is: java.io.NotSerializableException: weblogic.messaging.dispatcher.DispatcherImpl at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:91) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:332) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252) at weblogic.jms.frontend.FEConnectionFactoryImpl_1000_WLStub.connectionCreateRequest(Unknown Source) at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:224) ... 22 more Caused by: java.io.NotSerializableException: weblogic.messaging.dispatcher.DispatcherImpl at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at weblogic.messaging.dispatcher.DispatcherWrapper.writeExternal(DispatcherWrapper.java:152) at weblogic.jms.frontend.FEConnectionCreateRequest.writeExternal(FEConnectionCreateRequest.java:98) at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614) at weblogic.rjvm.MsgAbbrevOutputStream.writeObjectWL(MsgAbbrevOutputStream.java:605) at weblogic.rmi.internal.ObjectIO.writeObject(ObjectIO.java:38) at weblogic.rjvm.BasicOutboundRequest.marshalArgs(BasicOutboundRequest.java:87) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:332) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252) at weblogic.jms.frontend.FEConnectionFactoryImpl_1000_WLStub.connectionCreateRequest(Unknown Source) at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:224) at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:285) at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:184) at com.sgcib.fundingplatform.gui.onedaybalances.DeskUI.subscribeToTopic(DeskUI.java:599) at com.sgcib.fundingplatform.gui.onedaybalances.DeskUI.jbInit(DeskUI.java:557) at com.sgcib.fundingplatform.gui.onedaybalances.DeskUI.(DeskUI.java:269) at com.sgcib.fundingplatform.gui.FundingPlatformUI.displayOneDayUI(FundingPlatformUI.java:1064) at com.sgcib.fundingplatform.gui.FundingPlatformUI.this_componentShown(FundingPlatformUI.java:1237) at com.sgcib.fundingplatform.gui.FundingPlatformUI_this_componentAdapter.componentShown(FundingPlatformUI.java:2433) at java.awt.Component.processComponentEvent(Component.java:5333) at java.awt.Component.processEvent(Component.java:5281) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Window.processEvent(Window.java:1161) at java.awt.Component.dispatchEventImpl(Component.java:3968) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Window.dispatchEventImpl(Window.java:1778) at java.awt.Component.dispatchEvent(Component.java:3803) Could not find anything on this issue on the internet. I hope somebody could give me an advise. Thanks in advance.