File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Getting NumberFormatException while retrieving EJBObject from Handle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Getting NumberFormatException while retrieving EJBObject from Handle " Watch "Getting NumberFormatException while retrieving EJBObject from Handle " New topic
Author

Getting NumberFormatException while retrieving EJBObject from Handle

Mrutyunjay Hanchinal
Ranch Hand

Joined: Sep 26, 2001
Posts: 50
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).]
 
 
subject: Getting NumberFormatException while retrieving EJBObject from Handle
 
Threads others viewed
javax. naming. CommunicationException
EJB accessing Problem in Welogic 6.1
Error in performing EJB Home lookup deployed on WLS server 8.1 SP1
InitialContext problem
Versioning Error in weblogic
jQuery in Action, 2nd edition