13 Replies Latest reply on Nov 16, 2005 10:59 AM by Adrian Brock

    IllegalStateException thrown from JmsSession.checkStrict()

    michael young Newbie

      I'm using Jboss-3.2.5 and I am getting an IllegalState Exception when trying to set the message listener. I am using the default JMS Resource adapter bound at java:/JmsXA. What is causing this? I've search through the Wiki and forums but I haven't found anything similar:

       topicConnectionFactory = CacheInvalidatorTCFUtil.getTCF(null);
       topic = (Topic) CacheInvalidatorTopicUtil.getTopic(null);
       topicConnection = topicConnectionFactory.createTopicConnection();
       topicSession = topicConnection.createTopicSession(false,
       Session.AUTO_ACKNOWLEDGE);
       topicSubscriber = topicSession.createSubscriber(topic);
       topicSubscriber.setMessageListener(this);
      


      15:41:37,562 INFO [STDOUT] javax.jms.IllegalStateException: Method not allowed
      15:41:37,562 INFO [STDOUT] at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:388)
      15:41:37,562 INFO [STDOUT] at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:111)
      15:41:37,562 INFO [STDOUT] at com.oakwood.cms.jms.CacheInvalidatorSubscriber.subscribe(CacheInvalidatorSubscriber.java:27)
      15:41:37,562 INFO [STDOUT] at com.oakwood.cms.web.action.OakwoodRequestProcessor.init(OakwoodRequestProcessor.java:18)
      15:41:37,562 INFO [STDOUT] at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:872)
      15:41:37,572 INFO [STDOUT] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      15:41:37,572 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      15:41:37,572 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      15:41:37,572 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      15:41:37,572 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      15:41:37,572 INFO [STDOUT] at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      15:41:37,572 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      15:41:37,572 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      15:41:37,572 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      15:41:37,572 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      15:41:37,572 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      15:41:37,572 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      15:41:37,572 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)