Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > ClassCastException on JMS Service startup

Thread Tools

ClassCastException on JMS Service startup

Posts: n/a
I am using Sun's JMS implementation from Dynamo app server. Whenever I
start my server with Unacked objects already in the Queue I get a
ClassCastException. This is strange because this even happens when I
haven't changed any classes, just a stop/start of the server. I
thought this was because of version differences between compiled class
versions and I added serial version Ids in all classes but didnt help.
Maybe its because of different classloaders etc.?

I am storing simple Java objects in the MessageObjects (no XML, etc.)

Here is the stackTrace:

**** info /atg/dynamo/service/j2ee/JMSService INFO Bound destination
into JNDI Namespace
**** info /atg/dynamo/service/j2ee/JMSService INFO Bound destination
emailQueue in
to JNDI Namespace
**** info /atg/dynamo/service/j2ee/JMSService INFO Bound destination
errorQueue in
to JNDI Namespace
**** Warning /atg/dynamo/service/j2ee/JMSService WARN Exception
**** Warning /atg/dynamo/service/j2ee/JMSService Message: null
**** Warning /atg/dynamo/service/j2ee/JMSService
**** Warning /atg/dynamo/service/j2ee/JMSService at
**** Warning /atg/dynamo/service/j2ee/JMSService at
com.sun.jms.service.QueueSubscription.loadUnackedM essages(
**** Warning /atg/dynamo/service/j2ee/JMSService at
**** Warning /atg/dynamo/service/j2ee/JMSService at
com.sun.jms.service.QueueImpl.<init>(QueueImpl.jav a:103)
**** Warning at com.sun.jms.service.ServiceRecoveryManager.createD estinationFromDBRow( 2)
**** Warning at com.sun.jms.service.ServiceRecoveryManager.recover Destinations(
**** Warning at com.sun.jms.service.ServiceRecoveryManager.recover (
**** Warning at com.sun.jms.service.JMSServiceImpl.initializationC heck(
**** Warning at com.sun.jms.service.JMSServiceImpl.<init>(JMSServi
**** Warning at com.sun.jms.service.JMSServiceImpl.getInstance(JMS
**** Warning at com.sun.jms.service.JMSManagerImpl.startJMSService (
**** Warning at atg.j2ee.jms.JMSManagerService.doStartService(JMSM
**** Warning at atg.nucleus.GenericService.

Any hints?

Thanks -

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ANN: new Delphi(tm) JMS (Java Message Service) client libraries forApache ActiveMQ and OpenMQ message brokers Michael Justin Java 12 11-26-2009 03:40 AM
implementing or using jms or running jms without application server Java 0 06-26-2007 10:26 AM
Jboss JMS Startup Project Java 1 02-14-2005 11:19 PM
How to setup JBoss for JMS (not MDB-JMS) ? Thomas Stein Java 0 10-18-2004 09:10 PM
JMS-like Messaging Service for Python? Sarah Wang Python 2 05-29-2004 07:56 PM