• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

WSAD 5.1.2

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a serious problem when performing a lookup to a JNDI lookup on a TopicConnectionFactory resource defined as a WASTopicConnectionFactory using MQ Simulator for JAVA developers. There is a class cast exception from com.ibm.ejs.jms.JMSTopicConnectionFactoryHandle to the
javax.jms.TopicConnectionFactory. However as far as I can tell these 2 items should be compatible. Any pointers?

We have tried all the usual suspects - delete the definitions and redo them.

Cheers in advance,

P


[11/08/04 12:00:59:299 BST] 403d38c7 ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "modifyCustomer" on bean "BeanId(XstaticEAR#XstaticEJB.jar#CustomerSession, null)". Exception data: java.lang.ClassCastException: com.ibm.ejs.jms.JMSTopicConnectionFactoryHandle
at com.hvb.core.j2ee.util.ServiceLocator.getTopicConnectionFactory(ServiceLocator.java:128)
at com.hvb.xstatic.ejb.session.CustomerSessionBean.initializeForUpdate(CustomerSessionBean.java:337)
at com.hvb.xstatic.ejb.session.CustomerSessionBean.modifyCustomer(CustomerSessionBean.java:193)
at com.hvb.xstatic.ejb.session.EJSRemoteStatelessCustomerSession_0a01ebb9.modifyCustomer(EJSRemoteStatelessCustomerSession_0a01ebb9.java:294)
at com.hvb.xstatic.ejb.session._CustomerSession_Stub.modifyCustomer(_CustomerSession_Stub.java:382)
at com.hvb.xstatic.service.delegate.CustomerDelegate.modifyCustomer(CustomerDelegate.java:78)
at com.hvb.xstatic.web.struts.action.UpdateCustomerAction.execute(UpdateCustomerAction.java:184)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
 
Paul J Smith
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dunno if this helps explain the problem... but on further investigation it emerges that a ClassCastException occurs on any resource jndo lookup. This implies that Websphere is not finding the class definitions for these objects at runtime BUT... I can't figure out where this should be set?

P
 
Skool. Stay in. Smartness. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic