NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

have an error and can't find problem (JDBC)

Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message

Joined: 22 Apr 2011
Posts: 1

PostPosted: Fri Apr 22, 2011 12:54 pm    Post subject: have an error and can't find problem (JDBC) Reply with quote

I've a problem. I want to get information out of the database with the correct statement but where can I find a fault when in my glassFish arrives this fault:

WARNING: StandardWrapperValve[ManageServlet]: PWC1406: Servlet.service() for servlet ManageServlet threw exception
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(
at java.lang.Integer.parseInt(
at be.khk.lesson.ManageServlet.processRequest(
at be.khk.lesson.ManageServlet.doPost(

at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.StandardWrapper.service(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardPipeline.invoke(
at com.sun.enterprise.web.WebPipeline.invoke(
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.doService(
at org.apache.catalina.connector.CoyoteAdapter.service(
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(
at com.sun.grizzly.http.ProcessorTask.doProcess(
at com.sun.grizzly.http.ProcessorTask.process(
at com.sun.grizzly.http.DefaultProtocolFilter.execute(
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(
at com.sun.grizzly.DefaultProtocolChain.execute(
at com.sun.grizzly.DefaultProtocolChain.execute(
at com.sun.grizzly.http.HttpProtocolChain.execute(
at com.sun.grizzly.ProtocolChainContextTask.doCall(
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(
at com.sun.grizzly.util.AbstractThreadPool$

I put in my project so look if you want

Back to top

Joined: 28 Jan 2009
Posts: 209

PostPosted: Fri Apr 22, 2011 5:15 pm    Post subject: Reply with quote

This seems to be very similar to the bug reported against Tomcat 6:

It's also apparently in the trunk.

I'm guessing that a null isn't being coerced into a 0 as one might expect.

You can probably fix your code for now by asserting that the table should
not contain nulls and providing a default value (maybe 0 if it's an integer
table). You could also check for nulls or "" before doing the operation.

A patch has been submitted to Tomcat trunk for this. I don't know when
it will be accepted or put in (since I only monitor the Tomcat dev list).

This sounds like a bug needs to be filed against Glassfish as well (you
didn't say which version).

. . . . just my two cents

Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo