RE: ClassCastException
"Tim Anderson" <[email protected]> Thu, 18 May 2006 22:38:52 +1000
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
If you're getting a class cast exception, it typically not related to
missing jars.
What do you get when you run:
Object object = getContext().lookup(topicName);
if (object != null) {
System.out.println("Got instance: " + object.getClass().getName());
}
_____
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Justin
Carpenter
Sent: Wednesday, 17 May 2006 9:47 AM
To: [email protected]
Subject: [openjms-user] ClassCastException
I keep getting a ClassCastException when starting up my openjms client. I
get a "null" message from the following lookup:
Topic jmsTopic = (Topic) getContext().lookup(topicName);
I have the appropriate client jars as suggested on the web site. Are there
any others I might need? Thanks very much for your help.
Justin
_____
Love cheap thrills? Enjoy PC-to-Phone calls
<http://us.rd.yahoo.com/mail_us/taglines/postman9/*http://us.rd.yahoo.com/ev
t=39666/*http://messenger.yahoo.com/> to 30+ countries for just 2ยข/min with
Yahoo! Messenger with Voice.