*
The moose likes Object Relational Mapping and the fly likes Repeated JMS Exceptions in weblogic sever for Toplink Cache coordination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Repeated JMS Exceptions in weblogic sever for Toplink Cache coordination" Watch "Repeated JMS Exceptions in weblogic sever for Toplink Cache coordination" New topic
Author

Repeated JMS Exceptions in weblogic sever for Toplink Cache coordination

allareddy suneel
Greenhorn

Joined: Sep 18, 2012
Posts: 13
Hi,
We have configured JMS Cache coordination in our applications and its working fine. But often we are observing one issue i.e. repeated JMS exceptions which are throwing in server and application becoming very slow. There is no other option we need to restart the server.

We are using Weblogic 10.3.5 and Toplink 9.0.3 version. We have configured <should-remove-connection-on-error>true</should-remove-connection-on-error> also but no use. Please help us how to stop these, any configuration we are missing here.

2 types of repeated Exceptions which we are getting in server are :

Pattern 1:-
2012.10.08 03:26:13.455--ServerSession(6544148)--Connection(23364215)--SELECT ACTUAL_URL, URL_A2012.10.2012.10.08 03:32:48.998--ServerSession(10338663)--Retreived remote message from JMS topic: TopLinkJMSModule!jms/TopLinkCacheSyn2012.10.08 03:32:49.098--ServerSession(28397831)--Exception [TOPLINK-18001] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.JMSProcessingException
Exception Description: Error while processing incomming JMS message
Internal Exception: java.lang.ClassCastException: cannot assign instance of oracle.toplink.internal.identitymaps.CacheKey to field oracle.toplink.internal.sessions.ObjectChangeSet.cacheKey of type oracle.toplink.internal.identitymaps.CacheKey in instance of oracle.toplink.internal.sessions.AggregateObjectChangeSetLocal Exception Stack:
Exception [TOPLINK-18001] (OracleAS TopLink - 10g (9.0.4.2) (Build 040311)): oracle.toplink.exceptions.JMSProcessingException
Exception Description: Error while processing incomming JMS message
Internal Exception: java.lang.ClassCastException: cannot assign instance of oracle.toplink.internal.identitymaps.CacheKey to field oracle.toplink.internal.sessions.ObjectChangeSet.cacheKey of type oracle.toplink.internal.identitymaps.CacheKey in instance of oracle.toplink.internal.sessions.AggregateObjectChangeSet
at oracle.toplink.exceptions.JMSProcessingException.buildDefault(JMSProcessingException.java:18)
at oracle.toplink.remote.jms.TopLinkMessageListener.onMessage(TopLinkMessageListener.java:60)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client2012.10.08 03:32:49.148--ServerSession(10338663)--Retreived remote message from JMS topic: TopLinkJMSModule!jms/TopLinkCacheSynchTopic
2012.10.08 03:32:49.155--ServerSession(10338663)--JMSException thrown
2012.10.08 03:32:49.156--ServerSession(10338663)--Retreived remote message from JMS topic: TopLinkJMSModule!jms/TopLinkCacheSynchTopic
2012.10.08 03:32:49.156--ServerSession(10338663)--JMSException thrown
2012.10.08 03:32:49.175--ServerSession(10338663)--Retreived remote message from JMS topic: TopLinkJMSModule!jms/TopLinkCacheSynchTopic
2012.10.08 03:32:49.175--ServerSession(10338663)--JMSException thrown
------------ so on

Pattern 2:-
####<Oct 5, 2012 3:47:57 PM EDT> <Error> <JMSClientExceptions> <sbirdevwl1.reisystems.com> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <system> <> <004mnr1BGeMCWrWFLzINOA0006zu000CxX> <1349466477880> <BEA-055165> <The following exception has occurred:
java.lang.NoClassDefFoundError: oracle/toplink/exceptions/JMSProcessingException
java.lang.NoClassDefFoundError: oracle/toplink/exceptions/JMSProcessingException
at oracle.toplink.remote.jms.TopLinkMessageListener.onMessage(TopLinkMessageListener.java:58)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>
####<Oct 5, 2012 3:47:57 PM EDT> <Error> <JMSClientExceptions> <sbirdevwl1.reisystems.com> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <system> <> <004mnr1BGeMCWrWFLzINOA0006zu000CxX> <1349466477884> <BEA-055165> <The following exception has occurred:
java.lang.NoClassDefFoundError: oracle/toplink/exceptions/JMSProcessingException
java.lang.NoClassDefFoundError: oracle/toplink/exceptions/JMSProcessingException
at oracle.toplink.remote.jms.TopLinkMessageListener.onMessage(TopLinkMessageListener.java:58)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>
####<Oct 5, 2012 3:47:57 PM EDT> <Error> <JMSClientExceptions> <sbirdevwl1.reisystems.com> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <system> <> <004mnr1BGeMCWrWFLzINOA0006zu000CxX> <1349466477888> <BEA-055165> <The following exception has occurred:
java.lang.NoClassDefFoundError: oracle/toplink/exceptions/JMSProcessingException
java.lang.NoClassDefFoundError: oracle/toplink/exceptions/JMSProcessingException
at oracle.toplink.remote.jms.TopLinkMessageListener.onMessage(TopLinkMessageListener.java:58)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
The errors seem to indicate some sort of class loader issue. Are you redeploying your application on one of the servers, or restarting on of the servers?

When do the errors start to occur?

TopLink 9 is quite an old version, you may consider upgrading to TopLink 11.


TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
allareddy suneel
Greenhorn

Joined: Sep 18, 2012
Posts: 13
Thanks for the reply James. Yes your assumptions are right, it might be occurring on re deployments of the applications. Generally what we need to do on these scenarios? DO we need to restart the server or can we configure "re delivery limit" to 0 so that it will stop sending these?
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
I'm not certain why a redeployment would cause this error, but restarting the server, or setting the delivery limit should be ok.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Repeated JMS Exceptions in weblogic sever for Toplink Cache coordination
 
Similar Threads
Re: javax.transaction.HeuristicMixedException
weblogic 9.2 entity bean problem(Exception occurred during commit of transaction)
javax . mail . MessagingException: 552 Error: message too large
Error deserializing Object
WLI 8.1.6 & Oracle 10g