This week's book giveaway is in the Design forum.
We're giving away four copies of Head First Software Architecture: A Learner's Guide to Architectural Thinking and have Raju Gandhi, Mark Richards, Neal Ford on-line!
See this thread for details.

Paul J Smith

Greenhorn
+ Follow
since Apr 28, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paul J Smith

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
19 years ago
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)
19 years ago
Oh and I don't know the relevance of this... In the install.log for the Websphere MQ installation there were the following error messages which may (or may not be related):

(03-Aug-2004 16:16:51), Install, com.installshield.wizard.platform.win32.registry.Win32RegistryDwordComparisonWizardBeanCondition, wrn, ServiceException: (error code = -100008; message = "The system cannot find the file specified.
(2)"; severity = 0)
STACK_TRACE: 26
ServiceException: (error code = -100008; message = "The system cannot find the file specified.
(2)"; severity = 0)
at com.installshield.wizard.platform.win32.Win32RegistryServiceImpl.get32BitValue(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.installshield.wizard.service.LocalImplementorProxy.invoke(LocalImplementorProxy.java:52)
at com.installshield.wizard.service.AbstractService.invokeImpl(AbstractService.java:51)
at com.installshield.wizard.platform.win32.GenericWin32RegistryService.get32BitValue(GenericWin32RegistryService.java:224)
at com.installshield.wizard.platform.win32.registry.Win32RegistryDwordComparisonWizardBeanCondition.evaluateTrueCondition(Win32RegistryDwordComparisonWizardBeanCondition.java:144)
at com.installshield.wizard.WizardBeanCondition.isMet(WizardBeanCondition.java:149)
at com.installshield.util.ConditionSet.evaluteANDExpression(ConditionSet.java:98)
at com.installshield.util.ConditionSet.isMet(ConditionSet.java:88)
at com.installshield.wizard.WizardBean.conditionsMet(WizardBean.java:312)
at com.installshield.wizard.ConditionalWizardTreeIterator.accept(ConditionalWizardTreeIterator.java:45)
at com.installshield.wizard.StandardWizardTreeIterator.accept(StandardWizardTreeIterator.java:174)
at com.installshield.wizard.StandardWizardTreeIterator.getPrevious(StandardWizardTreeIterator.java:132)
at com.installshield.wizard.ActiveWizardTreeIterator.getPrevious(ActiveWizardTreeIterator.java:41)
at com.installshield.wizard.ConditionalWizardTreeIterator.getPrevious(ConditionalWizardTreeIterator.java:35)
at com.installshield.wizard.MultiWizardTreeIterator.getPrevious(MultiWizardTreeIterator.java:104)
at com.installshield.wizardx.actions.GotoAction.execute(GotoAction.java:29)
at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:123)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1564)

(03-Aug-2004 16:16:51), Install, com.installshield.wizard.platform.win32.registry.Win32RegistryDwordComparisonWizardBeanCondition, wrn, ServiceException: (error code = -100008; message = "The system cannot find the file specified.
(2)"; severity = 0)
STACK_TRACE: 23
ServiceException: (error code = -100008; message = "The system cannot find the file specified.
(2)"; severity = 0)
at com.installshield.wizard.platform.win32.Win32RegistryServiceImpl.get32BitValue(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.installshield.wizard.service.LocalImplementorProxy.invoke(LocalImplementorProxy.java:52)
at com.installshield.wizard.service.AbstractService.invokeImpl(AbstractService.java:51)
at com.installshield.wizard.platform.win32.GenericWin32RegistryService.get32BitValue(GenericWin32RegistryService.java:224)
at com.installshield.wizard.platform.win32.registry.Win32RegistryDwordComparisonWizardBeanCondition.evaluateTrueCondition(Win32RegistryDwordComparisonWizardBeanCondition.java:144)
at com.installshield.wizard.WizardBeanCondition.isMet(WizardBeanCondition.java:149)
at com.installshield.util.ConditionSet.evaluteANDExpression(ConditionSet.java:98)
at com.installshield.util.ConditionSet.isMet(ConditionSet.java:88)
at com.installshield.wizard.WizardBean.conditionsMet(WizardBean.java:312)
at com.installshield.wizard.ConditionalWizardTreeIterator.accept(ConditionalWizardTreeIterator.java:45)
at com.installshield.wizard.StandardWizardTreeIterator.accept(StandardWizardTreeIterator.java:174)
at com.installshield.wizard.StandardWizardTreeIterator.getNext(StandardWizardTreeIterator.java:86)
at com.installshield.wizard.ActiveWizardTreeIterator.getNext(ActiveWizardTreeIterator.java:36)
at com.installshield.wizard.ConditionalWizardTreeIterator.getNext(ConditionalWizardTreeIterator.java:40)
at com.installshield.wizard.MultiWizardTreeIterator.getNext(MultiWizardTreeIterator.java:68)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1571)

(03-Aug-2004 16:16:51), Install, com.installshield.wizard.platform.win32.registry.Win32RegistryDwordComparisonWizardBeanCondition, wrn, ServiceException: (error code = -100008; message = "The system cannot find the file specified.
(2)"; severity = 0)
STACK_TRACE: 26
ServiceException: (error code = -100008; message = "The system cannot find the file specified.
(2)"; severity = 0)
at com.installshield.wizard.platform.win32.Win32RegistryServiceImpl.get32BitValue(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.installshield.wizard.service.LocalImplementorProxy.invoke(LocalImplementorProxy.java:52)
at com.installshield.wizard.service.AbstractService.invokeImpl(AbstractService.java:51)
at com.installshield.wizard.platform.win32.GenericWin32RegistryService.get32BitValue(GenericWin32RegistryService.java:224)
at com.installshield.wizard.platform.win32.registry.Win32RegistryDwordComparisonWizardBeanCondition.evaluateTrueCondition(Win32RegistryDwordComparisonWizardBeanCondition.java:144)
at com.installshield.wizard.WizardBeanCondition.isMet(WizardBeanCondition.java:149)
at com.installshield.util.ConditionSet.evaluteANDExpression(ConditionSet.java:98)
at com.installshield.util.ConditionSet.isMet(ConditionSet.java:88)
at com.installshield.wizard.WizardBean.conditionsMet(WizardBean.java:312)
at com.installshield.wizard.ConditionalWizardTreeIterator.accept(ConditionalWizardTreeIterator.java:45)
at com.installshield.wizard.StandardWizardTreeIterator.accept(StandardWizardTreeIterator.java:174)
at com.installshield.wizard.StandardWizardTreeIterator.getPrevious(StandardWizardTreeIterator.java:132)
at com.installshield.wizard.ActiveWizardTreeIterator.getPrevious(ActiveWizardTreeIterator.java:41)
at com.installshield.wizard.ConditionalWizardTreeIterator.getPrevious(ConditionalWizardTreeIterator.java:35)
at com.installshield.wizard.MultiWizardTreeIterator.getPrevious(MultiWizardTreeIterator.java:104)
at com.installshield.wizard.awt.AWTWizardUI.refreshButtonStates(AWTWizardUI.java:2023)
at com.installshield.wizard.awt.AWTWizardUI.currentBeanChanged(AWTWizardUI.java:1659)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:100)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1564)



Any help greatly appreciated as I'm well and truly stumped!

P
19 years ago
I've got the same problem! Wondered if anyone had figured out the solution (ok this was an old post)

I have WSAD 5.1.2 installed on my pc and I'm trying to use embedded messaging to communiacate with my test server... I installed the embedded messaging client and server direct from the cd and it's not working. I've deinstalled and reinstalled the embedded messaging but it's made zero difference.... Any clues?

P


[03/08/04 13:38:09:854 BST] 3cf8c6f0 JMSEmbeddedPr A MSGS0050I: Starting the Queue Manager
[03/08/04 13:38:15:121 BST] 3cf8c6f0 JMSEmbeddedPr A MSGS0051I: Queue Manager open for business
[03/08/04 13:38:15:161 BST] 3cf8c6f0 JMSEmbeddedPr A MSGS0052I: Starting the Broker
[03/08/04 13:38:15:662 BST] 35eb06f1 BrokerDFEThre E MSGS0201E: Unable to start the Broker because WebSphere Embedded Messaging Server support not been installed
[03/08/04 13:41:15:691 BST] 3cf8c6f0 BrokerManager E MSGS0252E: The Broker has terminated unexpectedly
[03/08/04 13:41:15:741 BST] 3cf8c6f0 JMSService E MSGS0001E: Starting the JMS Server failed with exception: java.lang.Exception: MSGS0252E: The Broker has terminated unexpectedly
at com.ibm.ws.messaging.BrokerManager.pingDFE(BrokerManager.java:344)
at com.ibm.ws.messaging.BrokerManager.startFlows(BrokerManager.java:808)
at com.ibm.ws.messaging.BrokerManager.startBroker(BrokerManager.java:251)
at com.ibm.ws.messaging.JMSEmbeddedProviderImpl.start(JMSEmbeddedProviderImpl.java:194)
at com.ibm.ws.messaging.JMSService.start(JMSService.java:288)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
19 years ago
I'll give 'Thinking in Java' a shout then. Certainly won't do any harm to brush up on my basic Java skills in the process.

Cheers

P

P.S. Any clues on a good Patterns in Java book?
I completed the JAVA programmer cert and recently completed the BCD cert as well.

Currently I do use JAVA in my work and I'm not bad at fixing problems but I'm increasingly frustrated that I can't think OO in terms of new code writing. I think I need a readable book that helps me apply the basic coding structures and directs me on how to use the base classes as well as how to use those important design patterns.

I have read:
JAVA 2 (1.3 edition) (Ivor Horton) - but found it overly detailed - more suitable as reference manual
Sun Certified Programmer & Developer for JAVA 2 Study Guide (Kathy Sierra, Bert Bates) - great for passing exam but not very 'real life' - very readable
Head First EJB - Again excellent for passing exam but also short on 'real life' - very readable

Anyone got any clues?

Cheers in advance

P
Gotta disagree.
The only way a stateful session bean can be removed:
1) Call ejbRemove
2) Timeout
3) system crash
The bean can only call ejbRemove on a 'method ready' bean.
The container will therefore call ejbActivate() and then ejbRemove() to perform the request.
P