aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Not able to do a lookup for a Stateless EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Not able to do a lookup for a Stateless EJB" Watch "Not able to do a lookup for a Stateless EJB" New topic
Author

Not able to do a lookup for a Stateless EJB

shailesh ranjan
Greenhorn

Joined: Dec 13, 2009
Posts: 1
I have just created a fresh instance of App server and my app server is connecting to the OC4j server. This connection is done by looking up a EJB in the OC4J.I am getting the following Exceptions while doing this.


SystemErr ARE javax.naming.NamingException: Disconnected: Unknown request command: 0
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:125)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.linc.mtp.mq.command.MQTaskCmdImpl.submitMsg(MQTaskCmdImpl.java:239)
at com.mindtree.mtp.productsearch.command.OCProdSrchTskCmdImpl.performExecute(OCProdSrchTskCmdImpl.java:161)
at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157)
at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:335)
at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:159)
at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:172)
at com.mindtree.mtp.productsearch.command.OCProdSrchCntrlCmdImpl.performExecute(OCProdSrchCntrlCmdImpl.java:222)
at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157)
at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:335)
at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:159)
at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:172)
at com.ibm.commerce.component.BaseComponentImpl.executeCommand(BaseComponentImpl.java:190)
at com.ibm.commerce.component.WebAdapterComponentImpl.executeCommand(WebAdapterComponentImpl.java:46)
at com.ibm.commerce.component.objimpl.WebAdapterServiceBeanBase.executeCommand(WebAdapterServiceBeanBase.java:58)
at com.ibm.commerce.component.objects.EJSLocalStatelessWebAdapterService_ce749a4a.executeCommand(EJSLocalStatelessWebAdapterService_ce749a4a.java:31)
at com.ibm.commerce.component.objects.WebAdapterServiceAccessBean.executeCommand(WebAdapterServiceAccessBean.java:160)
at com.ibm.commerce.webcontroller.WebControllerHelper.executeCommand(WebControllerHelper.java:2404)
at com.ibm.commerce.struts.BaseAction.invokeService(BaseAction.java:1487)
at com.ibm.commerce.struts.BaseAction.executeAction(BaseAction.java:638)
at com.ibm.commerce.struts.BaseAction.execute(BaseAction.java:160)
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 com.ibm.commerce.struts.ECActionServlet.processRequest(ECActionServlet.java:237)
at com.ibm.commerce.struts.ECActionServlet.doGet(ECActionServlet.java:179)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:262)
at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:438)
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:238)
at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:244)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1697)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1646)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
at com.ibm.commerce.campaigns.filter.CampaignsFilter.doFilter(CampaignsFilter.java:140)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.commerce.likeminds.filter.LikeMindsFilter.doFilter(LikeMindsFilter.java:183)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.commerce.dynacache.filter.CacheFilter$2.run(CacheFilter.java:376)
at com.ibm.commerce.dynacache.filter.CacheFilter.doFilter(CacheFilter.java:507)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilterAction(RuntimeServletFilter.java:269)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.access$0(RuntimeServletFilter.java:228)
at com.ibm.commerce.webcontroller.RuntimeServletFilter$1.run(RuntimeServletFilter.java:191)
at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilter(RuntimeServletFilter.java:212)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:822)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3226)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:246)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:120)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:434)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:373)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:253)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:950)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:582)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1704)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1475)

[12/10/09 14:25:33:233 GMT+00:00] 00000051 SystemErr ARE at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:125)
[12/10/09 14:25:33:233 GMT+00:00] 00000051 SystemErr ARE at javax.naming.InitialContext.lookup(InitialContext.java:347)
[12/10/09 14:25:33:233 GMT+00:00] 00000051 SystemErr ARE at com.linc.mtp.mq.command.MQTaskCmdImpl.submitMsg(MQTaskCmdImpl.java:239)
[12/10/09 14:25:33:234 GMT+00:00] 00000051 SystemErr ARE at com.mindtree.mtp.productsearch.command.OCProdSrchTskCmdImpl.performExecute(OCProdSrchTskCmdImpl.java:161)
[12/10/09 14:25:33:234 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157)
[12/10/09 14:25:33:234 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:335)
[12/10/09 14:25:33:235 GMT+00:00] 00000051 SystemErr ARE at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:159)
[12/10/09 14:25:33:235 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:172)
[12/10/09 14:25:33:236 GMT+00:00] 00000051 SystemErr ARE at com.mindtree.mtp.productsearch.command.OCProdSrchCntrlCmdImpl.performExecute(OCProdSrchCntrlCmdImpl.java:222)
[12/10/09 14:25:33:236 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.command.ECCommandTarget.executeCommand(ECCommandTarget.java:157)
[12/10/09 14:25:33:236 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java:335)
[12/10/09 14:25:33:237 GMT+00:00] 00000051 SystemErr ARE at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java:159)
[12/10/09 14:25:33:237 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.command.AbstractECTargetableCommand.execute(AbstractECTargetableCommand.java:172)
[12/10/09 14:25:33:237 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.component.BaseComponentImpl.executeCommand(BaseComponentImpl.java:190)
[12/10/09 14:25:33:238 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.component.WebAdapterComponentImpl.executeCommand(WebAdapterComponentImpl.java:46)
[12/10/09 14:25:33:238 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.component.objimpl.WebAdapterServiceBeanBase.executeCommand(WebAdapterServiceBeanBase.java:58)
[12/10/09 14:25:33:238 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.component.objects.EJSLocalStatelessWebAdapterService_ce749a4a.executeCommand(EJSLocalStatelessWebAdapterService_ce749a4a.java:31)
[12/10/09 14:25:33:239 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.component.objects.WebAdapterServiceAccessBean.executeCommand(WebAdapterServiceAccessBean.java:160)
[12/10/09 14:25:33:239 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.webcontroller.WebControllerHelper.executeCommand(WebControllerHelper.java:2404)
[12/10/09 14:25:33:239 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.struts.BaseAction.invokeService(BaseAction.java:1487)
[12/10/09 14:25:33:240 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.struts.BaseAction.executeAction(BaseAction.java:638)
[12/10/09 14:25:33:240 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.struts.BaseAction.execute(BaseAction.java:160)
[12/10/09 14:25:33:240 GMT+00:00] 00000051 SystemErr ARE at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
[12/10/09 14:25:33:241 GMT+00:00] 00000051 SystemErr ARE at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
[12/10/09 14:25:33:241 GMT+00:00] 00000051 SystemErr ARE at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
[12/10/09 14:25:33:241 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.struts.ECActionServlet.processRequest(ECActionServlet.java:237)
[12/10/09 14:25:33:242 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.struts.ECActionServlet.doGet(ECActionServlet.java:179)
[12/10/09 14:25:33:242 GMT+00:00] 00000051 SystemErr ARE at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
[12/10/09 14:25:33:243 GMT+00:00] 00000051 SystemErr ARE at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[12/10/09 14:25:33:243 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java:262)
[12/10/09 14:25:33:243 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java:438)
[12/10/09 14:25:33:244 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java:238)
[12/10/09 14:25:33:244 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java:244)
[12/10/09 14:25:33:244 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1697)
[12/10/09 14:25:33:245 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1646)
[12/10/09 14:25:33:245 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
[12/10/09 14:25:33:245 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.campaigns.filter.CampaignsFilter.doFilter(CampaignsFilter.java:140)
[12/10/09 14:25:33:246 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
[12/10/09 14:25:33:246 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
[12/10/09 14:25:33:246 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.likeminds.filter.LikeMindsFilter.doFilter(LikeMindsFilter.java:183)
[12/10/09 14:25:33:247 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
[12/10/09 14:25:33:247 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
[12/10/09 14:25:33:248 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.dynacache.filter.CacheFilter$2.run(CacheFilter.java:376)
[12/10/09 14:25:33:248 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.dynacache.filter.CacheFilter.doFilter(CacheFilter.java:507)
[12/10/09 14:25:33:248 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
[12/10/09 14:25:33:249 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
[12/10/09 14:25:33:249 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilterAction(RuntimeServletFilter.java:269)
[12/10/09 14:25:33:250 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.webcontroller.RuntimeServletFilter.access$0(RuntimeServletFilter.java:228)
[12/10/09 14:25:33:250 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.webcontroller.RuntimeServletFilter$1.run(RuntimeServletFilter.java:191)
[12/10/09 14:25:33:250 GMT+00:00] 00000051 SystemErr ARE at com.ibm.commerce.webcontroller.RuntimeServletFilter.doFilter(RuntimeServletFilter.java:212)
[12/10/09 14:25:33:251 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
[12/10/09 14:25:33:251 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
[12/10/09 14:25:33:251 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
[12/10/09 14:25:33:252 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:822)
[12/10/09 14:25:33:252 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3226)
[12/10/09 14:25:33:252 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
[12/10/09 14:25:33:253 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:246)
[12/10/09 14:25:33:253 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
[12/10/09 14:25:33:254 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:120)
[12/10/09 14:25:33:254 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:434)
[12/10/09 14:25:33:254 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:373)
[12/10/09 14:25:33:255 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:253)
[12/10/09 14:25:33:255 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:950)
[12/10/09 14:25:33:255 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:582)
[12/10/09 14:25:33:256 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1704)
[12/10/09 14:25:33:256 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
[12/10/09 14:25:33:256 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
[12/10/09 14:25:33:257 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
[12/10/09 14:25:33:257 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
[12/10/09 14:25:33:257 GMT+00:00] 00000051 SystemErr ARE at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1475)
[12/10/09 14:27:03:333 GMT+00:00] 00000051 SystemErr ARE MQJE001: Completion Code 2, Reason 2033



Can SomeBody help me in understanding the error.
Tom Kowalski
Ranch Hand

Joined: Feb 17, 2009
Posts: 72
It would be easier if you would write the code of your bean and the the code of your client


SCJP, SCWCD, OCUP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to do a lookup for a Stateless EJB
 
Similar Threads
error - handleRequest EJPFD0004E
NPE hibernate session factory websphere portal
Composer: Command not found
missing view or command - mystery, intrigue and murder
EJB Exception in websphere commerce