javax.jms.JMSException: No currently active Session. This JMS provider cannot be used outside a MessageListener.onMessage() invocation

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ActiveMQ-RA 5.7 deployment in Weblogic12c (Migration from JBoss)
    via by b67addd7-d5b6-46f0-8b49-d7efb74ee4ac,
    • javax.jms.JMSException: No currently active Session. This JMS provider cannot be used outside a MessageListener.onMessage() invocation at org.apache.activemq.ra.InboundSessionProxy.getSessionAndProducer(InboundSessionProxy.java:82)[?:?] at org.apache.activemq.ra.InboundSessionProxy.getSession(InboundSessionProxy.java:57)[?:?] at org.apache.activemq.ra.InboundSessionProxy.createQueue(InboundSessionProxy.java:169)[?:?] at com.comps.messaging.ActiveMQPublisherImpl.sendMessage(ActiveMQPublisherImpl.java:567)[comps_messaging.jar:?] at com.comps.service.tnmigration.sync.delegate.RequestSender.sendRequest(RequestSender.java:42)[TNMigrationWS.jar:?] at com.comps.service.tnmigration.sync.delegate.TNMigrationServices.processRequest(TNMigrationServices.java:38)[TNMigrationWS.jar:?] at com.comps.tnmigration.ws.TNMigrationWSImpl.reserveTN(TNMigrationWSImpl.java:394)[_wl_cls_gen.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_112] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_112] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_112] at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:120)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:93)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:149)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:88)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:419)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:868)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:422)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:169)[com.sun.xml.ws.jaxws-rt.jar:2.2.11-b150616.1732] at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:229)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:667)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)[com.oracle.weblogic.security.subject.jar:12.2.1.2] at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)[com.oracle.weblogic.security.subject.jar:12.2.1.2] at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:108)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:286)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:295)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:128)[com.oracle.webservices.wls.wls-soap-stack-impl.jar:?] at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:103)[com.bea.core.weblogic.web.api.jar:12.2.1.2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet.javax.servlet-api.jar:3.1.0] at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:247)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3679)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3649)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)[com.oracle.weblogic.security.subject.jar:12.2.1.2] at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)[com.oracle.weblogic.security.subject.jar:12.2.1.2] at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2433)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2281)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2259)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1691)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1651)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)[com.oracle.weblogic.servlet.jar:12.2.1.2] at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)[com.bea.core.utils.full.jar:12.2.1.2] at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)[com.bea.core.utils.full.jar:12.2.1.2] at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)[com.oracle.weblogic.work.jar:12.2.1.2] at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)[com.bea.core.weblogic.workmanager.jar:12.2.1.2] at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)[com.bea.core.weblogic.workmanager.jar:12.2.1.2] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)[com.bea.core.weblogic.workmanager.jar:12.2.1.2] at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)[com.bea.core.weblogic.workmanager.jar:12.2.1.2]
    No Bugmate found.