Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Class Cast Exception

445 views
Skip to first unread message

neha.k...@lntinfotech.com

unread,
Sep 15, 2008, 1:25:06 AM9/15/08
to
I m trying to apply mediation on a JMS message coming from JMS message client ....to system integration bus on queue which is named as status queue and queue Connection factory as statusQCF....Bt i deploy war file on Websphere ..i m getting dis class cast exception ...Plz help

9/15/08 10:16:52:966 IST] 0000003a ServletWrappe I SRVE0242I: [isclite] [/ibm/console] [/secure/isclite/tiles/loginConflict.jsp]: Initialization successful.
[9/15/08 10:17:42:604 IST] 00000039 ServletWrappe I SRVE0242I: [BS_Stub_Check_war] [/CheckStub] [StubCheck]: Initialization successful.
[9/15/08 10:17:49:697 IST] 0000003c ServletWrappe I SRVE0242I: [BS_Stub_Check_war] [/CheckStub] [/index.jsp]: Initialization successful.
[9/15/08 10:17:58:931 IST] 0000003c SystemOut O In post method
[9/15/08 10:17:58:946 IST] 0000003c SystemOut O After InitialContext
[9/15/08 10:17:58:946 IST] 0000003c ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: StubCheck. Exception thrown : java.lang.ClassCastException: com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl incompatible with javax.jms.QueueConnectionFactory
at com.pack.server.StubCheck.doPost(StubCheck.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:990)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:473)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

[9/15/08 10:17:58:978 IST] 0000003c LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[9/15/08 10:17:58:978 IST] 0000003c WebApp E [Servlet Error]-[StubCheck]: java.lang.ClassCastException: com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl incompatible with javax.jms.QueueConnectionFactory
at com.pack.server.StubCheck.doPost(StubCheck.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:990)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:473)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)

Ken Hygh

unread,
Sep 15, 2008, 5:17:03 AM9/15/08
to
You'll need to show us enough code in StubCheck where this is being
thrown for us to understand what you're trying to do
Ken

Mark Lewis

unread,
Sep 16, 2008, 8:32:32 AM9/16/08
to
Try using javax.jms.ConnectionFactory rather than
javax.jms.QueueConnectionFactory for SIB connection factories.

Alasdair Nottingham

unread,
Sep 16, 2008, 3:36:12 PM9/16/08
to
Hi,

It looks like you have configured a JMS connection factory in the admin console, but the application is expecting a queue connection factory. You can solve this by either making your JMS application use the javax.jms.ConnectionFactory interface rather than javax.jms.QueueConnectionFactory, or you can remove the JMS connection factory definition and create a JMS queue connection factory definition in its place.

I hope this helps
Alasdair

0 new messages