posted 22 years ago
Hi
I am Getting Exception while retrieving EJBObject from Handle of a stateful session bean.
Here is the part of code that is giving exception
Handle the_ejb_handle = (Handle) sess.getAttribute("statefulBean"); LogoutSessionBean the_ejb =(LogoutSessionBean)the_ejb_handle.getEJBObject();
the_ejb.logOut();
Here LogoutSessionBean is my stateful session bean. I have put Handle object in HTTPSession with name statefulBean. If I print the Handle object it is printing perfectly.
The Stack trace was like this
java.lang.NumberFormatException: 8001:8001 at java.lang.Integer.parseInt(Integer.java:414) at java.lang.Integer.parseInt(Integer.java:454) at weblogic.rjvm.ServerURL.parseURL(ServerURL.java:281) at weblogic.rjvm.ServerURL.<init>(ServerURL.java:69) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:235) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:176) at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.<init>(InitialContext.java:198) at weblogic.ejb20.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:61) at weblogic.ejb20.internal.HandleImpl.getEJBObject(HandleImpl.java:134) at com.nextcard.broadway2.cmp.SvltCustomerController.service(SvltCustomerController.java:190) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Please answer for this
Thanks in advance
Mrutyunjay
[This message has been edited by Mrutyunjay Hanchinal (edited October 07, 2001).]