jQuery in Action, 3rd edition
The moose likes JSP and the fly likes NumberFormatException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "NumberFormatException" Watch "NumberFormatException" New topic


Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 437
I am getting the java.lang.NumberFormatException: null. Can you tell me as to why i get this exception?


Padma priya N.G.
Be the change you want to be - Mahatma Gandhi
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63232

Please read this.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 437
The following is the error I got.

Activity ID : N/A
User ID : C5045958
Error Time: : 01/11/2008 02:03 PM
Technical Details :
Exception Message : null
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java(Compiled Code))
at java.lang.Integer.(Integer.java:633)
at com.metlife.us.ins.product.disability.dpa.gui.base.PortletBaseUtility.initSortVars(PortletBaseUtility.java:342)
at com.metlife.us.ins.product.disability.dpa.gui.base.PortletBaseUtility.(PortletBaseUtility.java:130)
at com.metlife.us.ins.product.disability.dpa.gui.portlet.searchdisabilityuser.utility.SearchDisabilityUserUtility.(SearchDisabilityUserUtility.java:62)
at com.metlife.us.ins.product.disability.dpa.gui.portlet.searchdisabilityuser.SearchDisabilityUser.doView(SearchDisabilityUser.java:108)
at org.apache.jetspeed.portlet.PortletAdapter.service(PortletAdapter.java:155)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl._dispatch(PortletDelegateImpl.java:373)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl.access$200(PortletDelegateImpl.java:62)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl$Context.callPortlet(PortletDelegateImpl.java:526)
at com.ibm.wps.pe.pc.legacy.services.PortletFilterServiceImpl.doFilter(PortletFilterServiceImpl.java:403)
at com.ibm.wps.pe.pc.legacy.services.PortletFilter.doFilter(PortletFilter.java:42)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletDelegateImpl.dispatch(PortletDelegateImpl.java:134)
at org.apache.jetspeed.portlet.Portlet.doGet(Portlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
NumberFormatException is what you get when you try to insert an alphabet or other string/char value in numberic variables.

Ujjwal B Soni

Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Can you post the code in which you are getting this error ??

Have you checked out Aspose?
subject: NumberFormatException
It's not a secret anymore!