Results 1 to 3 of 3
  1. #1
    carolwind is offline Member
    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0

    Default What's the problem?

    com.sun.faces.lifecycle.InvokeApplicationPhase execute
    WARNING: #{RLBean.toOrderPage}: java.lang.NumberFormatException: null
    javax.faces.FacesException: #{RLBean.toOrderPage}: java.lang.NumberFormatException: null
    at com.sun.faces.application.ActionListenerImpl.proce ssAction(ActionListenerImpl.java:117)
    at javax.faces.component.UICommand.broadcast(UIComman d.java:315)
    at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:794)
    at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:1259)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.exe cute(InvokeApplicationPhase.java:81)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 01)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(Life cycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServl et.java:593)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: javax.faces.el.EvaluationException: java.lang.NumberFormatException: null
    at javax.faces.component.MethodBindingMethodExpressio nAdapter.invoke(MethodBindingMethodExpressionAdapt er.java:102)
    at com.sun.faces.application.ActionListenerImpl.proce ssAction(ActionListenerImpl.java:101)
    ... 23 more
    Caused by: java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at wyf.ResListBean.toOrderPage(ResListBean.java:32)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.el.parser.AstValue.invoke(AstValue.java :278)
    at org.apache.el.MethodExpressionImpl.invoke(MethodEx pressionImpl.java:274)
    at org.apache.jasper.el.JspMethodExpression.invoke(Js pMethodExpression.java:70)
    at javax.faces.component.MethodBindingMethodExpressio nAdapter.invoke(MethodBindingMethodExpressionAdapt er.java:88)
    ... 24 more

    My web.xml:

    <?xml version="1.0" encoding="GBK"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/jdyd</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/appcontext.xml</param-value>
    </context-param>
    <listener>
    <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
    </listener>


    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
    <welcome-file>
    forward.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>

    My server.xml:

    <Context path="/jdyd" docBase="jdyd"
    debug="5" reloadable="true" crossContext="true" workDir="">
    <Resource name="jdbc/jdyd"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="sys" password="123456"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.100.195:1521:orcl"/>
    </Context>
    Last edited by carolwind; 03-08-2013 at 06:22 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: What's the problem?

    Please go through the Forum Rules, particularly the second and third paragraphs.

    I'm closing two of the three threads you started. You may continue the discussion here.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,969
    Rep Power
    19

    Default Re: What's the problem?

    wyf.ResListBean.toOrderPage(ResListBean.java:32)

    On line 32 of that class you are attempting to parse a String to an int, except the String is null.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 0
    Last Post: 11-07-2012, 12:44 PM
  2. Small problem with problem with Java, C++ parse program.
    By dragstang86 in forum New To Java
    Replies: 4
    Last Post: 10-30-2011, 03:43 AM
  3. Replies: 9
    Last Post: 09-21-2010, 04:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •