users@glassfish.java.net

JMS runtime exception after glassfish restart

From: <forums_at_java.net>
Date: Mon, 25 Apr 2011 11:46:01 -0500 (CDT)

We have a web application running on glassfish 3.0.1 that consists of a WAR
and a couple of EJBs. We are running into a problem where every time we
restart glassfish, the first call to JmsTemplate.convertAndSend(...) will
hang (subsequent calls work fine). The same thing happens if we try running
"imqcmd list dst" from the command line after a glassfish restart. Again,
subsequent attempts work fine.

Investigating the server.log we can see that a runtime exception is thrown in
the JMS thread (shown below). We can't catch and handle this exception in the
same thread that makes the convertAndSend call because the exception is
thrown in the JMS thread. Are there any solutions or workarounds for this
problem?

[#|2011-04-12T11:53:51.705-0400|SEVERE|glassfish3.0.1|grizzly|_ThreadID=17;_ThreadName=Thread-1;|doSelect
exception java.lang.RuntimeException: Error invoking
PortMapperClientHandler.handleRequest. Cause -
com.sun.messaging.jms.ra.ResourceAdapter.getPortMapperClientHandler() at
com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.handleRequest(ActiveJmsResourceAdapter.java:2043)
at
com.sun.enterprise.v3.services.impl.ServiceInitializerHandler.onAcceptInterest(ServiceInitializerHandler.java:110)
at
com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:295)
at
com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:258)
at
com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:195)
at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619) Caused by:
java.lang.NoSuchMethodException:
com.sun.messaging.jms.ra.ResourceAdapter.getPortMapperClientHandler() at
java.lang.Class.getMethod(Class.java:1605) at
com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.handleRequest(ActiveJmsResourceAdapter.java:2036)
... 8 more |#]
Glassfish version is 3.0.1.


--
[Message sent by forum member 'gDiz']
View Post: http://forums.java.net/node/795394