Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ClassCast Problem with 5.1.0 SP10

1 view
Skip to first unread message

Gwyn Evans

unread,
Nov 7, 2001, 12:33:52 PM11/7/01
to
Hi,
I've come across a problem with JMS when using SP10, in that I'm getting
a ClassCastException when running the example JMS programs as follows...

I install a new download of 5.1.0sp10 and start it by running the
startWebLogic.cmd. (The system password was set by the install script
so I've not needed to edit the weblogic.properties at all.)

I then run the example QueueReceiver program as follows:-

(From in the root WebLogic folder - Ignore linewrapping)
java -cp lib\weblogicaux.jar;classes;myserver\clientclasses
examples.jms.queue.QueueReceive t3://127.0.0.1:7001/

I then get the following:-
Exception in thread "main" javax.jms.JMSException: System error:
java.lang.ClassCastExcept ion: weblogic.jms.common.SessionCallback_WLStub
at weblogic.jms.common.JMSUtilities.jmsException(JMSUtilities.java:18)
at weblogic.jms.client.JMSSession.handleException(JMSSession.java:682)
at weblogic.jms.client.JMSSession.establishSessionCallback(JMSSession.java:652)
at weblogic.jms.client.JMSQueueSession.createReceiver(JMSQueueSession.java:70)
at weblogic.jms.client.JMSQueueSession.createReceiver(JMSQueueSession.java:57)
at examples.jms.queue.QueueReceive.init(QueueReceive.java:73)
at examples.jms.queue.QueueReceive.main(QueueReceive.java:99)

And on the server output:-
Wed Nov 07 08:34:11 GMT 2001:<E> <Adapter> Exception thrown by rmi server:
[-528 1391101011001620S192.168.1.13:[7001,7001,7002,7002,7001,-1]/261]
java.lang.ClassCastException: weblogic.jms.common.SessionCallback_WLStub
at weblogic.jms.common.WLSkel626n4y193g3f641i4g4e1y3r6a153j4j.invoke(
WLSkel626n4y193g3f641i4g4e1y3r6a153j4j.java:356)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(
BasicServerOb jectAdapter.java:347)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(
BasicReques tHandler.java:86)
at weblogic.rmi.internal.BasicExecuteRequest.execute(
BasicExecuteRequest .java:15)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

Is this a known problem, as we've come across it with our own code and
only solved it by reverting to sp9?

Gwyn

Gwyn Evans

unread,
Nov 12, 2001, 6:19:52 AM11/12/01
to

Anyone?

Srijeeb Roy

unread,
Jan 21, 2002, 4:15:32 PM1/21/02
to

Hi,

We have also faced the same problem when we have tried with Service pack 10 and 11.

The solution is to give the service pack related jar also in the classpath (at least we have tested in service pack 11).

Your classpath should be something like the following...
classpath=c:\weblogic\lib\weblogic510sp11.jar;c:\weblogic\lib\weblogic510sp11boot.jar;.;c:\weblogic\lib\weblogicaux.jar;C:\jdk1.3\jre\lib\rt.jar;c:\weblogic\classes ....

Thanks & Regards
Srijeeb.

0 new messages