I am having problem with TOmcat and OpenJms when i want to recieve the UserDefined object using ObjectMessage interface.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prashant_Ingole
Posted On:   Wednesday, July 21, 2004 03:29 AM

I have got the Following Exception when i am using the OpenJms with Tomcat. I have succfully Send the ObjectMessage but when i recieved the UserDefined Object which Implemented Serializable interface the following Exception Occured. javax.jms.MessageFormatException: com.Employee at org.exolab.jms.message.ObjectMessageImpl.getObject(ObjectMessageImpl.java:223) at com.QueueObjectReciever.doPost (QueueObjectReciever.java:79) at com.QueueObjectReciever.doGet(QueueObjectReciever.java:163) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.intern   More>>

I have got the Following Exception when i am using the OpenJms with Tomcat.


I have succfully Send the ObjectMessage but when i recieved the UserDefined Object which Implemented Serializable interface the following Exception Occured.

javax.jms.MessageFormatException: com.Employee
at org.exolab.jms.message.ObjectMessageImpl.getObject(ObjectMessageImpl.java:223)
at com.QueueObjectReciever.doPost

(QueueObjectReciever.java:79)
at com.QueueObjectReciever.doGet(QueueObjectReciever.java:163)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:479)


Servlet Code
...
queuerec = queueSession.createReceiver(queue);
queueConnection.start();
ObjectMessage message = (ObjectMessage)queuerec.receive();
Employee obj =(Employee)message.getObject();
messageobj is object of ObjectMessage.


Thank
Prashant

   <<Less
About | Sitemap | Contact