java.lang.ClassCastException

Using Hermes with JBoss

java.lang.ClassCastException

Postby khattak » Fri Mar 18, 2005 10:15 pm

Code: Select all
2005-03-18 16:45:54,625 [Hermes ThreadPool-2] ERROR hermes.browser.tasks.HermesBrowserTaskListener -
java.lang.ClassCastException
   at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:137)
   at hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedManager.java:77)
   at hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSharedManager.java:89)
   at hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionSharedManager.java:115)
   at hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSessionManager.java:180)
   at hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessionManager.java:546)
   at hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionManager.java:419)
   at hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:305)
   at hermes.browser.tasks.BrowseDestinationTask.invoke(BrowseDestinationTask.java:137)
   at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:174)
   at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:183)
   at java.lang.Thread.run(Thread.java:534)


I am trying to use Hermes 1.8 with JBOSS 3.2.3 and have run into the following problem.
I have setup classpath group successfully.
I have setup context successfully.
I have created a session successfully.
I have discovered queues/topic (15) successfully.
WHEN I try to view a queue or a topic I am getting the above error.
Please advise!
TIA
khattak
 
Posts: 5
Joined: Fri Mar 18, 2005 10:10 pm

Postby Colin » Mon Mar 21, 2005 8:54 am

At a guess, and I've not tested with JBoss 3.X, its a JMS 1.0.2b vs 1.1, its likely a topic/queue domain issue.

Ensure the type of connection factory is queue or topic and then ensure u only try and use queues or topics on the correct factory - I think JBoss 3.X is strictly JMS 1.0.2b. Look in the Preferences->Sessions panel.

Colin.
Colin
Site Admin
 
Posts: 913
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Postby khattak » Mon Mar 21, 2005 1:30 pm

[from JBoss Admin Development Guide - JBoss 3.2.6 - Copyright © 2004 JBoss, Inc.]

The JMS API is the standardized interface to a JMS provider, sometimes called a Message Oriented Middleware
(MOM) system. JBoss comes with a JMS 1.0.2b compliant JMS provider called JBoss Messaging or
JBossMQ


You are right about the jms specs impl. Let me test your theory and get back to you. Thanks for the reply.
khattak
 
Posts: 5
Joined: Fri Mar 18, 2005 10:10 pm

Postby khattak » Wed Mar 23, 2005 3:28 pm

It works! Thanks.
khattak
 
Posts: 5
Joined: Fri Mar 18, 2005 10:10 pm

Postby Colin » Wed Mar 23, 2005 7:09 pm

Cool, I'll update the code so we get a better error message next time!

Colin.
Colin
Site Admin
 
Posts: 913
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK


Return to JBoss

Who is online

Users browsing this forum: No registered users and 1 guest

cron