Java.lang.Integer in JSP

why when i use
<%.... Integer i= Integer(String) %>
it causes error
java.lang.NumberFormatException: null get
and in ,
<%!.... Integer i= Integer(String) %>
it is O'k

In the class named Students_jsp.java, your code is...
ResultSet rs = student.viewPeople(1);
But you have defined viewPeople() to take an argument of type Integer. 1 is an int, not an Integer. This should cure that problem.
ResultSet rs = student.viewPeople(new Integer(1));

Similar Messages

  • ClassCastException for java.lang.Integer in JSF

    Hi,
    I am a newbie, i am working on adding 2 numbers in jsf.
    Where i have a addNumber.jsp:-
    Number1:<h:inputText value"#{AddBean.num1)}"/>
    Number2:<h:inputText value"#{AddBean.num2)}"/>
    <h:commandButton value="Add" action="#{AddBean.sum}"/>
    In AddBean.java
    I have getters and setters for num1 & num2 property whose datatype is int.
    public int sum(){
    System.out.println("Inside sum");
    return (num1+num2);
    Here when i click the Add button the sum() is fired where it is printing "Inside sum" after that i am getting a "ClassCastException saying that java.lang.Integer". Which means i can only use Integer object for calculation rather than using primitive datatype(int)?
    What is the problem here? Pls. do explain?
    Thanks

    The action method should be declared void or return a String. It is to be used for the navigation-case entries in the faces-config.xml. If you want a postback to the same page, just declare it void. It should not return the intented "result" of the action. Store the result somewhere as a bean property.
    The following example should work:<h:form>
        <h:inputText value="#{addBean.number1}" />
        <h:inputText value="#{addBean.number2}" />
        <h:commandButton value="Add" action="#{addBean.sum}" />
        <h:outputText value="#{addBean.result}" />
    </h:form>AddBeanprivate int number1; // + getter + setter
    private int number2; // + getter + setter
    private int result; // + getter only
    public void sum() {
        result = number1 + number2;
    }And I'd rather to use Integer instead of int, but that's more a design choice.

  • Dyna Form +Validator Framework--- peculair problem with java.lang.Integer

    In my struts application , i m using Dyna Action form,and Validator framework
    <form-bean
    name="myDynaForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="name" type="java.lang.String"/>
    <form-property name="phoneNo" type="java.lang.Integer"/>
    </form-bean>
    Now if user does not enter name , then a error meassage is dispalyed,
    and aslo this time phoneNo shows 0.
    why 0 is displayed here?
    Can anybody tell me

    Hi all,
    If my memory serves me well, the exception is thrown because the application needs a working calendar for a person provided in time mangement. Make sure the correct infotypes are used. Also the organization structure needs to be set up correctly. The manager needs someone to approve and the employee needs someone to get approved by.
    Regards, Marcel.

  • Help on "java.lang.NoClassDefFoundError: oracle/jsp/runtimev2/JspReportUtil"

    Hi all,
    I encounted the following exception on a deployed project to ias 9.0.2:
    500 Internal Server Error
    java.lang.NoClassDefFoundError: oracle/jsp/runtimev2/JspReportUtil     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:333)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java(Compiled Code))     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:596)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:567)     at data.lookjjview._jspService(_lookjjview.java(Compiled Code))     at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java(Compiled Code))     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)     at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java(Compiled Code))
    I found there is leak of memory resource on the Oracle RDBMS host while this problem occurs,the database host has only 512Mb RAM.And I once configred the database to worked on Shared Mode,in this case the database has less chance of memory leak,but the above exception occurs more often.So I have to change the database to work back on Dedicate Mode!It's hard to find any tips on my Exception as mentioned above.
    And I want to know the working principle of servlet on iAS.When invoke a servlet,will the servlet be cached on Memory from the first request,or it will be clear up and re-inload until next request?I just wonder if the iAS server will run out of memory,because I noticed there is a memory configure option in "jser.properties" file.And the exception I encoutered seems to occur at a critical point.

    Thanks but that did help since they are talking about
    JDK1.3. I downloaded J2SDK-Beta 3 it says that you
    don't need to set a class path variable. You need to be careful about how you interpret this statement. The rule is, if your system doesn't have a classpath set, you'll get a default of the current directory (.). If your system does have a classpath setting, then the setting will be used.
    Just because you didn't set your classpath doesn't mean someone or some other application didn't. Make sure that your system doesn't have a classpath setting. If it does, you may need to add the current directory (.) to it.

  • Java.lang.ClassCastException: oracle.jsp.runtimev2.JspServlet

    Hi I am new Jdeveloper and java
    I am getiing the following error when I try to run the project
    500 Internal Server Error
    java.lang.IllegalAccessError: javax/naming/InitialContext     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)     at javax.servlet.GenericServlet.init(GenericServlet.java:259)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2365)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4807)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2833)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:680)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)
    and the OC4j server log show as java.lang.ClassCastException: oracle.jsp.runtimev2.JspServlet
    Can any one help me resolving the issue
    Thanks,
    Krish

    Hi I am new Jdeveloper and java
    I am getiing the following error when I try to run the project
    500 Internal Server Error
    java.lang.IllegalAccessError: javax/naming/InitialContext     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)     at javax.servlet.GenericServlet.init(GenericServlet.java:259)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2365)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4807)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2833)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:680)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)
    and the OC4j server log show as java.lang.ClassCastException: oracle.jsp.runtimev2.JspServlet
    Can any one help me resolving the issue
    Thanks,
    Krish

  • Java.lang.ClassCastException in JSP

    Hi All,
    We are facing "java.lang.ClassCastException" in JSP page. Below are JSP code, printStackTrace and compiled JSP (from Application Server) file.
    We are using Struts 1.2.7, JDK 1.4.2 and Oracle 10g OC4J.
    JSP Code:
    <nested:iterate property="coverage">
    <tr>
    <td class="text" align="left" valign="top" width="198" height="2">
    <html:hidden name="coverage" property="coverageType" indexed="true"/>
    <bean:write name="coverage" property="coverageDescription"/>
    </nested:iterate>
    printStackTrace:
    08/03/26 15:48:07 java.lang.ClassCastException
    08/03/26 15:48:07 at jsp.quickquote._Coverages._jspService(_Coverages.java:244)
    08/03/26 15:48:07 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:569)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
    08/03/26 15:48:07 at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
    08/03/26 15:48:07 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
    08/03/26 15:48:07 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
    08/03/26 15:48:07 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    08/03/26 15:48:07 at jsp.template._mainLayout._jspService(_mainLayout.java:93)
    08/03/26 15:48:07 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    08/03/26 15:48:07 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    08/03/26 15:48:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    08/03/26 15:48:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    08/03/26 15:48:07 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    08/03/26 15:48:07 at java.lang.Thread.run(Thread.java:534)
    Error is coming in compiled JSP:
    org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,"org.apache.struts.taglib.bean.WriteTag name property");
    In Struts Action we have used below code
    CoverageModel[] cs = (CoverageModel[])coverageCol.toArray(new CoverageModel[0]);
    f.set("coverage", cs);
    We are facing above exception after 6/8 hours of Application restart. . Some time we not facing above exception till 48hrs.
    5 users accessing application day time.
    e.g.
    If we restart server @ 1 PM then try to login with new browser session at 7 PM or 9 PM, we are facing "java.lang.ClassCastException" on JSP page.
    If we restart Applcation Server then code is working fine. After restart, we not get null pointer class cast exception for next 6/8 hour.
    Please let me know if anybody has any suggestion/solution.
    Thanks and Regards,
    Kailas

    Hi All,
    We are facing "java.lang.ClassCastException" in JSP page. Below are JSP code, printStackTrace and compiled JSP (from Application Server) file.
    We are using Struts 1.2.7, JDK 1.4.2 and Oracle 10g OC4J.
    JSP Code:
    <nested:iterate property="coverage">
    <tr>
    <td class="text" align="left" valign="top" width="198" height="2">
    <html:hidden name="coverage" property="coverageType" indexed="true"/>
    <bean:write name="coverage" property="coverageDescription"/>
    </nested:iterate>
    printStackTrace:
    08/03/26 15:48:07 java.lang.ClassCastException
    08/03/26 15:48:07 at jsp.quickquote._Coverages._jspService(_Coverages.java:244)
    08/03/26 15:48:07 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:569)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
    08/03/26 15:48:07 at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
    08/03/26 15:48:07 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
    08/03/26 15:48:07 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
    08/03/26 15:48:07 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    08/03/26 15:48:07 at jsp.template._mainLayout._jspService(_mainLayout.java:93)
    08/03/26 15:48:07 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    08/03/26 15:48:07 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
    08/03/26 15:48:07 at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
    08/03/26 15:48:07 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    08/03/26 15:48:07 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    08/03/26 15:48:07 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    08/03/26 15:48:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    08/03/26 15:48:07 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    08/03/26 15:48:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    08/03/26 15:48:07 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    08/03/26 15:48:07 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    08/03/26 15:48:07 at java.lang.Thread.run(Thread.java:534)
    Error is coming in compiled JSP:
    org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,"org.apache.struts.taglib.bean.WriteTag name property");
    In Struts Action we have used below code
    CoverageModel[] cs = (CoverageModel[])coverageCol.toArray(new CoverageModel[0]);
    f.set("coverage", cs);
    We are facing above exception after 6/8 hours of Application restart. . Some time we not facing above exception till 48hrs.
    5 users accessing application day time.
    e.g.
    If we restart server @ 1 PM then try to login with new browser session at 7 PM or 9 PM, we are facing "java.lang.ClassCastException" on JSP page.
    If we restart Applcation Server then code is working fine. After restart, we not get null pointer class cast exception for next 6/8 hour.
    Please let me know if anybody has any suggestion/solution.
    Thanks and Regards,
    Kailas

  • Java.lang.NoClassDefFoundError: javelin/jsp/JspFunctionMapper

    I am upgrading from 9.2.1 to 10.3. When attempting access a web app I get the following error in the browser:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: javelin/jsp/JspFunctionMapper
         at jsp_servlet._c4.__clearancehome.(__clearancehome.java:221)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:223)
         at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:247)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:255)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:409)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I can take the same war file and deploy and execute in the 9.2.1 environment just fine. Any help would be appreciated.
    rick

    Thanks for the tip. Interestingly, for us this turned out to be a sign of a different problem. We should either not have needed or should have already had access to that class in our classpath. To elaborate further, we encountered this error while upgrading a 9.2.2 domain to 10.3.2. Our upgrade had to involve a manual copy of the domain, for technical reasons. After the copy, we needed to clean out the old servers/<servername>/tmp directory. That solved the NoClassDefFoundError problem for us. I imagine normally that directory is removed when the (old) server shuts down cleanly. So I suspect our old server had not shut down cleanly. We started the upgrade from scratch and removed the tmp directory this time. No problems.
    Will

  • Can't convert int to java.lang.Integer.

    Hi everyone.
    I'm working on an auction site at the moment and have problems gaining a bidID number. This is part of my code and my error.
    AuctionFacade aHse = (AuctionFacade) application.getAttribute("AuctionFacade");
    String strTraderName = (String)session.getAttribute("traderName");
    String strPassword = (String)session.getAttribute("password");
    String strIDNum = request.getParameter("auctionID");
    Integer intID = Integer.valueOf(strIDNum);
    Integer [] bids = aHse.getAllBids(intID);
    float fltYourBid = aHse.getBidPrice(bids.length);
    ^
    Can't convert int to java.lang.Integer.
    can anyone help please?

    So, does "aHse.getBidPrice" expect an int or an Integer as its parameter? And does it return an int, or an Integer, or what? The answer to those questions may lead to your solution -- look at what you are actually using as the parameter, for example.

  • Integer and java.lang.Integer?

    hi
    I'm using DefaultTableModel method getValueAt which takes 2 integers as parameters
    i have the vector colnumbers which has integers in it. Im trying to get these integers back out again to use in the getValue at method but the compilercomplains that i need int,int nad not int, java.lang.Integer.
    Why are there 2 different integers? and how do i just get it back as int????
    thanks
    Vector unsorted = new Vector();
    for(int j=0; j<colnumbers.size(); j++)
    for(int i=0; i<=max_rows; i++)
         unsorted.add(tm.getValueAt(i,(Integer)colnumbers.elementAt(j)));     
    }

    unsorted.add(
      tm.getValueAt(
        i,
        ((Integer) colnumbers.elementAt( j )).intValue()
    );you just needed to parenthesize to indicate that intValue() gets called on the result of casting colnumbers.elementAt( j ) to type Integer.

  • Java.lang.Integer behaviour

    Hi all,
    While preparing for my SCJP6 i was playing with the java.lang.Integer integer wrapper. I found some behaviour which I could not explain. Below is the code and output on jre6.
    public void test(){
              Integer int1 = 100;
              Integer int2 = 100;
              System.out.println(int1!=int2);
              System.out.println(int1==int2);
              System.out.println(int1.equals(int2));
         }OUTPUT:
    false
    true
    true
         public void test(){
              Integer int1 = 1000;
              Integer int2 = 1000;
              System.out.println(int1!=int2);
              System.out.println(int1==int2);
              System.out.println(int1.equals(int2));
         }OUTPUT:
    true
    false
    true
    As you can see the == and != operators behave differently for values 100 and 1000.
    Please let me know why is it so.
    Thanks.

    Thanks for the post,
    again i'd stress on the fact that I want to be able to determine the behavior of == and != operator regardless of whether i should use them or not.
    Some place i have read that == actually Unboxes the object and compares the values and not the Object ref where as != always compares the obj ref only.
    The behavior i have found is that both operators work on the actual object reference. If the Object value is >-129 and <128 then the JVM uses the same underlying object(cached one) and if the value is out of this range then new object is created.
    So
    Integer i=1000,i2=1000;
    i==i2 OUTPUT false
    i!=i2 OUTPUT true.
    Integer i=100,i2=100;
    i==i2 OUTPUT true
    i!=i2 OUTPUT false.
    I just want a web link where I can confirm my findings.
    Edited by: rishabhchandra on Jun 20, 2009 7:30 PM

  • Java.lang.Integer defaulting to zero

    I am using JAXB for several years, but never dived into details.
    I am not using a schema.
    When I am unmarshalling a XML file, JAXB always defaults my java.lang.Integer attributes to zero instead to null, when the attribute is not given in the XML file.
    How can I change this? I like the Integers to be null, just like in a "normal" Java program.
    Thanks
    Markus

    mkarg wrote:
    When I am unmarshalling a XML file, JAXB always defaults my java.lang.Integer attributes to zero instead to null, when the attribute is not given in the XML file.I am using JAXB 2.1.3 in JDK 1.6. It uses java.math.BigInteger instead of java.lang.Integer for xs:integer types in schema.
    It assigns null when attribute is not given in XML, this is similar to your need.
    Which version of JAXB are you using?

  • Required: java.lang.Integer

    This is test.java:
    import java.lang.Integer;
    class Testit {
    Integer ix = (Integer)1;
    This is the result of the javac:
    javac ca\test.java
    ca\test.java:4: inconvertible types
    found : int
    required: java.lang.Integer
    Integer ix = (Integer)1;
    ^
    1 error
    Can anyone explain this?
    Java is mysterious.
    Thanks,
    Grant Head

    This is because 1 is not object in Java. Any integer is primitive type. They are not object. So you cannot cast them into object. If you want to creat Integer object from integer. Simply do following...
    import java.lang.Integer;
    class Testit {
    Integer ix = new Integer(1);
    }However, in C#, everything is object. Any integer, floating points are all object. That's one of difference between Java and C#.
    Hope this help. :)
    mrbabe

  • How to convert from java.lang.Integer to int

    Could you please show me
    how to convert from java.lang.Integer to int?
    and how to convert from java.lang.Integer to String?
    Thanks,
    Minh

    Could you please show me
    how to convert from java.lang.Integer to int?
    and how to convert from java.lang.Integer to String?Tip: always keep a browser open on the API docs; if you've got a
    couple of MBs to spare, download the docs; it's very convenient.
    kind regards,
    Jos

  • Uow registerObject: Missing descriptor for java.lang.Integer

    I get this message on uow.registerObject
    Missing descriptor for java.lang.Integer.
    Any help greatly appreciated,
    Thanks,
    Vivek

    Are you trying to register an Integer with the UOW? You don't have to register primitives. Odds are you're not doing this, but this exception will still be thrown if you have accidentally mapped a DTF as a 1-1 (i.e, if an Order has a price that is an Integer and you accidentally have it as a 1-1 mapping). Or, if you have a 1-M relationship and an Integer gets into the collection. Etc.
    In a nutshell, this error is saying that somehow you have an Integer where TopLink is expecting some sort of business class mapped.
    - Don

  • Java.lang.ClassCastException in JSP page

    My JSP page:
    <%@page contentType="text/html"%>
    <HTML>
    <HEAD>
    <TITLE> JDBC Servlet/JSP Example </TITLE>
    </HEAD>
    <BODY>
    <%@ page import="myBeans.memoryBean" %>
    <%@ page import="java.util.Vector" %>
    <H1> JDBC Servlet/JSP Example </H1>
    <H2> <%= session.getValue("message") %>
    </H2>
    <UL>
    <%
         Vector vData = (Vector) session.getValue("res");
         myBeans.memoryBean mb;
         Object o;
         for (Enumeration e = vData.elements() ; e.hasMoreElements() ;) {
              o = e.nextElement();
              mb = (myBeans.memoryBean) o;
    %>
        <LI> <%= o.getClass().getName() %>
    <%      } // end for
    %>
    </UL>
    </BODY>
    </HTML>Notice that I don't even use the object I cast but I still get the error message:
    Exception:
    java.lang.ClassCastException
         at _memory._search._jspService(_search.java:66)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
         at oracle.jsp.JspServlet.internalService(JspServlet.java)
         at oracle.jsp.JspServlet.service(JspServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
         at org.apache.jserv.JServConnection.run(JServConnection.java:188)
         at java.lang.Thread.run(Thread.java:534)When I comment out the line that castes my object my browser displays:
    JDBC Servlet/JSP Example
    Records Found:
        * myBeans.memoryBean
        * myBeans.memoryBean
        * myBeans.memoryBean Notice that the three objects that are returned are exactly the type that I caste to.
    Also, I did a getClass().getClassLoader() when I create the objects in my servlet code and again on the JSP pages for each object I pull out of the vector and the class loader matched.
    I even changed the package on my bean class and recompiled everything to make sure it wasn't a old .class file floating around.
    Could this have something to do with my classpath or where my classes are being placed? I found a similar problem here: http://forum.java.sun.com/thread.jsp?forum=33&thread=380437&start=0&range=15&hilite=false&q=
    but the explanation of what was done wasn't clear
    Anyone have any idea what's going on here?
    I am using:
    Oracle 9i
    Oracle HTTP Server Powered by Apache/1.3.12 (Unix)
    ApacheJServ/1.1
    Thanks in advance.
    - Linus

    Is ti at all possible that you have another jar / zip file with the same class file in it, seemingly away from the Server classpath ? In which case this could happen even though logically it shouldn't !!!

Maybe you are looking for

  • Multiple line items not coming in ME91F

    Hi All, I am facing a problem while doing ME91F for urging letters to vendor. I am maintaining multiple line items in PO but in ME91F PDF it is not coming multiple items, it is showing only single line item, Please help. Thanks

  • Enable SOAP in ECC 6.0

    Hi, Is there any specific procedure to enable SOAP in ECC 6.0? Please let me know, if there is any documentation available on this topic? Regards, John.

  • Running DBMON for ST04 Statistics?

    Is everyone running DBMON for ST04 statistics?  At one time it slowed down general database activity because it was so busy collecting statistics. We are checking to see if that is still true. The main reason for the question is whether it could be s

  • Addon EA-HR_MSS 1.0 0008 installation PRD for MSS

    Dear This is necessary to lock all users while apply new addon or apply support packs bcaz we are doing this activity on prd server kindly suggest one more thing support pack should be same level as quality or i can install just addon without support

  • When I use my AE I can only listen for 1 min. music

    When I use my AE to listen music of my Itunes,I can only listen to it for a few minutes. I've changed the channel of my AE but still the signal weakens after a certain time. Maybe there are to many other signals that disturb the conection with my AE.