Discussion:
[openjms-developer] A problem with create TopicSession
lnj2050
2007-04-28 00:32:23 UTC
Permalink
In my program, when hava get the TopicConnection,And I want to get the
TopicSession,an exception cause:

ERROR Thread-16 (JmsCorrProvider.java:74) - catch Exception while
starting Jms Provider thread
org.exolab.jms.net.proxy.RemoteInvocationException:
java.io.InvalidClassException:
org.exolab.jms.client.net.JmsSessionStubImpl__Proxy; local class
incompatible: stream classdesc serialVersionUID = 5760464376818983147, local
class serialVersionUID = 7213503607581304163
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at
org.exolab.jms.net.connector.MarshalledInvocation.getRequest(MarshalledInvocation.java:102)
at
org.exolab.jms.net.connector.ContextInvocationHandler$ContextInvocation.getRequest(ContextInvocationHandler.java:127)
at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:528)
at
org.exolab.jms.common.threads.ThreadPool$NotifyingRunnable.run(ThreadPool.java:211)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:595)

And my code is:
topicConnection = factory.createTopicConnection();

topicConnection.start();

TopicSession topicSession = topicConnection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
The exception happen at the third line:
TopicSession topicSession = topicConnection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
Every one,do you know how about this? please tell me ,thank you very much!
--
View this message in context: http://www.nabble.com/A-problem-with-create-TopicSession-tf3660511.html#a10228476
Sent from the OpenJMS - Dev mailing list archive at Nabble.com.
Loading...