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

Reply via email to