11 Replies Latest reply on Dec 10, 2012 12:47 AM by xin.zhang.song

    Question about remote lookup the jms connection factory

    xin.zhang.song

      Hi All

       

      I met a question during remote lookup the jms connection factory

      and my initialContextFactory class is "org.jboss.naming.remote.client.InitialContextFactory"

       

      Here are the error message:

       

      Caused by: java.io.NotSerializableException: org.hornetq.core.client.impl.ClientSessionFactoryImpl
          at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:891)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:585)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)
          at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
          at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
          at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
          at org.jboss.naming.remote.protocol.v1.Protocol$1$2.write(Protocol.java:138)
          at org.jboss.naming.remote.protocol.v1.WriteUtil.write(WriteUtil.java:61)
          at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:128)
          at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:619)
      Caused by: an exception which occurred:
          in field factories
          in field serverLocator
          in object org.hornetq.jms.client.HornetQJMSConnectionFactory@1b5af56
      
      

       

      Any idea for this?

       

      Thanks

       

      Xin