Note that there are some explanatory texts on larger screens.

plurals
  1. PONumberFormatException:null
    primarykey
    data
    text
    <p>Now I have been stuck by an error which shows the following error in the Eclipse browser.The Error looks like:</p> <pre><code>13:53:12,294 INFO [STDOUT] 30 13:53:12,294 ERROR [[Expthsmon]] Servlet.service() for servlet Expthsmon threw exception java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at Expthsmon.doGet(Expthsmon.java:44) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) </code></pre> <p>I believe that this part of the code </p> <pre><code>int amountofnoon=0; int amountofafternoon=0; int noofnoon=0; int noofafternoon=0; String amountnoon=null; String amountafternoon=null; amountnoon=request.getParameter("amountnoon"); amountafternoon=request.getParameter("amountafternoon"); //if((amountnoon !=null )&amp;&amp;(amountafternoon !=null)) amountofnoon=Integer.parseInt(amountnoon); System.out.println(""+amountofnoon); amountofafternoon=Integer.parseInt(amountafternoon); System.out.println(""+amountofafternoon); </code></pre> <p>is creating problem,where amountofnoon and amountofafternoon should be integer value.What should I do?</p> <p>I am also adding the jsp part of code from where it is getting the value:</p> <pre><code>&lt;form name="expenditurefthsmon" action="Expthsmon"&gt; &lt;div align="center"&gt;Enter The Amount of Days Expenditure&lt;/div&gt; &lt;div align="center"&gt;&lt;input type="text" name="amountnoon"&gt;&lt;/input&gt;&lt;/div&gt; &lt;div align="center"&gt;Enter The Amount of Nights Expenditure&lt;/div&gt; &lt;div align="center"&gt;&lt;input type="text" name=amountafternoon"&gt;&lt;/input&gt;&lt;/div&gt; &lt;div align="center"&gt;&lt;input type="submit" value="Calculate"&gt;&lt;/input&gt;&lt;/div&gt;" &lt;/form&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload