Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- JMS exception: javax.jms.IllegalStateE

- JMS exception: javax.jms.IllegalStateE

2007-07-12       - By loseyourself

 Back
Greetings all,

I am using JBoss 3.2.5 to implement a JMS mail queue, I always get following
exception:
2007-07-13 10:43:49,213 INFO  [STDOUT] javax.jms.IllegalStateException Source code of javax.jms.IllegalStateException: Method
not allowed
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.jboss.resource.adapter.jms
.JmsSession.checkStrict(JmsSession.java:388)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.jboss.resource.adapter.jms
.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:111)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at au.gov.nsw.community.mail
.MailConsumer.consume(MailConsumer.java:88)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at au.gov.nsw.community.forms.servlet
.FormSubmitServlet.init(FormSubmitServlet.java:52)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at javax.servlet.GenericServlet Source code of javax.servlet.GenericServlet
(GenericServlet.java:211)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardWrapper.loadServlet(StandardWrapper.java:1019)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardWrapper.allocate(StandardWrapper.java:687)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardContextValve.invokeInternal(StandardContextValve.java:198)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardContextValve.invoke(StandardContextValve.java:152)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.jboss.web.tomcat.security
.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:102)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.jboss.web.tomcat.security
.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:102)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardHostValve.invoke(StandardHostValve.java:137)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.valves
.ErrorReportValve.invoke(ErrorReportValve.java:117)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:102)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardEngineValve.invoke(StandardEngineValve.java:109)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardValveContext.invokeNext(StandardValveContext.java:104)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.StandardPipeline.invoke(StandardPipeline.java:520)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.catalina.core
.ContainerBase.invoke(ContainerBase.java:929)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.coyote.tomcat5
.CoyoteAdapter.service(CoyoteAdapter.java:160)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.coyote.http11
.Http11Processor.process(Http11Processor.java:799)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.coyote.http11
.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java
:705)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.tomcat.util.net
.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at org.apache.tomcat.util.threads
.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
2007-07-13 10:43:49,213 INFO  [STDOUT]   at java.lang.Thread Source code of java.lang.Thread(Thread.java:534)

the line in the MailConsumer() code is:
public void consume() {
    try {
      QueueConnection con = _factory.createQueueConnection();
   
      _session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
   
      QueueReceiver subscriber = _session.createReceiver(_queue);

/*line 88*/       subscriber.setMessageListener(this);
System.out.println("*************** MailConsumer:start ...****************");    
      con.start();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

Could anybody tell me how to fix it, this code has been running correctly in
JRun. I do appreciate for any help.

Cheers,
hj

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4063771#4063771

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4063771
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.