print out the value which gives trouble ... it seems you are getting an EOF
>From: Ketharinath Kamalanathan <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: parseInt in TomCat 4.01 >Date: Tue, 11 Dec 2001 12:54:41 -0600 > >Hello: > >I am using Tomcat 4.01. I have the following problem: > >I have developed a class to 'talk' with my database and give me a Vector >Object. I tested ALL the methods using another Test Class and it works >fine. > >When I Instantiate the class in a Servlet and run it in Tomcat I am getting >a problem. >The Specific problem is this: > >I extract the Vector elements into an Enumeration object. Then I extract my >data step by step(I know the structure, as I have packed it into Vector). I >have an integer value in the enum. When I use: > >Integer recval = new Integer(enum.nextElement().toString()); > >It works fine in a console with a Test Class but gives a ParseInt exception >like this: > >java.lang.NumberFormatException: EOF > at java.lang.Integer.parseInt(Integer.java:414) > at java.lang.Integer.(Integer.java:549) > at >GIGXMAccessRightsManager.removeAccessRight(GIGXMAccessRightsManager.java:433) > >Am I doing anything wrong? > >Thanks in advance, >Ketharinath Kamalanathan _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com