1 Reply Latest reply on Mar 3, 2008 1:49 PM by Tim Fox

    Unable to send message

    Chip Schoch Novice

      JBossAS 4.2.2.GA, JBM 1.4.0.SP3

      Sometimes when I start my message processing service and it trys to post a message to the queue I get the following, and I don't know what causes it or what it means.

      javax.jms.IllegalStateException: The object is closed
       at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:157)
       at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
       at org.jboss.jms.client.delegate.ClientSessionDelegate$createTextMessage_4391803803118822775.invokeNext(ClientSessionDelegate$createTextMessage_4391803803118822775.java)
       at org.jboss.jms.client.delegate.ClientSessionDelegate.createTextMessage(ClientSessionDelegate.java)
       at org.jboss.jms.client.JBossSession.createTextMessage(JBossSession.java:149)
       at com.eLynx.Messaging.MessageSender.sendXmlRequest(MessageSender.java:480)
       at com.eLynx.Messaging.XmlMessageSender.post(XmlMessageSender.java:147)
       at com.eLynx.BPM.Process.ProcessManager.initiateProcess(ProcessManager.java:103)
       at com.eLynx.USign.USignPackageHandler.process(USignPackageHandler.java:182)
       at com.eLynx.USign.USignPackageHandler.execute(USignPackageHandler.java:219)
       at com.dev.Router.PackageHandlers.AbstractPackageHandler.processPackageFile0(AbstractPackageHandler.java:1140)
       at com.dev.Router.PackageHandlers.AbstractPackageHandler.processPackageFile(AbstractPackageHandler.java:1036)
       at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at com.dev.Router.PackageRouter.PackageProcessor.processPackageFile(PackageProcessor.java:544)
       at com.dev.Router.PackageRouter.PackageProcessor.preparePackage(PackageProcessor.java:367)
       at com.dev.Router.PackageRouter.WebPostPoll.process(WebPostPoll.java:385)
       at com.eLynx.Service.PackageProcessing.PackageProcessingMessageHandler.processMessage(PackageProcessingMessageHandler.java:153)
       at com.eLynx.Messaging.MessageReceiverHandler.onMessage(MessageReceiverHandler.java:147)
       at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:157)
       at org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:965)
       at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
       at java.lang.Thread.run(Thread.java:595)


      Ant ideas?

      Thanks


        • 1. Re: Unable to send message
          Tim Fox Master

          It means you're trying to send a message on a closed session which is illegal.

          Try and find where in your code the session is being closed. A common possibility would be you have an exception listener which closes the connection (which closes the session).