users@glassfish.java.net

Weird exception in JMS

From: Daniel Cavalcanti <dhcavalcanti_at_gmail.com>
Date: Thu, 10 May 2007 15:11:24 -0400

Hello,
I'm getting this exception on a GlassFish instance installed on a 64-bits
Linux machine.
The same code deployed on another machine, 32-bits Linux, works fine...
Does anyone know how to fix this?

thanks,
Daniel.

javax.jms.IllegalStateException: [C4059]: Cannot perform operation, session
is closed.
        at com.sun.messaging.jmq.jmsclient.SessionImpl.checkSessionState(
SessionImpl.java:1763)
        at com.sun.messaging.jmq.jmsclient.SessionImpl.createBytesMessage(
SessionImpl.java:1792)
        at com.sun.messaging.jms.ra.SessionAdapter.createBytesMessage(
SessionAdapter.java:169)
        at
com.localmatters.flexiq.collector.producer.CollectorMessageHandler.createJmsMessages
(CollectorMessageHandler.java:267)
        at com.localmatters.flexiq.collector.producer.ProducerWS.send(
ProducerWS.java:305)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(
EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java
:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(
BaseContainer.java:2859)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java
:3950)
        at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(
WebServiceInvocationHandler.java:176)
        at $Proxy79.send(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.webservice.InvokerImpl.invoke(InvokerImpl.java
:68)
        at com.sun.enterprise.webservice.EjbInvokerImpl.invoke(
EjbInvokerImpl.java:75)
        at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:132)
        at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(
EndpointMethodHandler.java:241)
        at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(
SEIInvokerTube.java:74)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
        at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(
AbstractTubeImpl.java:70)
        at com.sun.enterprise.webservice.MonitoringPipe.process(
MonitoringPipe.java:134)
        at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(
PipeAdapter.java:79)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
        at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(
AbstractTubeImpl.java:70)
        at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java
:303)
        at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(
PipeAdapter.java:79)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
        at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(
AbstractTubeImpl.java:70)
        at
com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(
CommonServerSecurityPipe.java:205)
        at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(
CommonServerSecurityPipe.java:116)
        at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(
PipeAdapter.java:79)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
        at com.sun.xml.ws.server.WSEndpointImpl$2.process(
WSEndpointImpl.java:217)
        at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(
HttpAdapter.java:375)
        at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java
:175)
        at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(
ServletAdapter.java:134)
        at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(
Ejb3MessageDispatcher.java:100)
        at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(
Ejb3MessageDispatcher.java:74)
        at
com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(
EjbWebServiceServlet.java:187)
        at com.sun.enterprise.webservice.EjbWebServiceServlet.service(
EjbWebServiceServlet.java:116)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
        at com.sun.enterprise.web.AdHocContextValve.invoke(
AdHocContextValve.java:101)
        at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:558)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:193)
        at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:1067)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(
StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:1067)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(
CoyoteAdapter.java:255)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
:200)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
:283)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
        at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:703)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:895)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:653)
        at java.lang.Thread.run(Thread.java:619)