4 Replies Latest reply on Jun 1, 2017 3:44 AM by gorkem.kizgin

    ERROR [org.apache.catalina.core.ContainerBase.[jboss.web]...

    gabmx

      Hi!

      I am using jboss-4.0.5.GA and I have an application that it works correctly.
      However, after some days when I try to access my home page, this gets stucked.

      And looking for a log I see the following error:

      2007-06-24 23:38:33,714 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/simadpro].[jsp]] Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
      at org.apache.jsp.operation.Verifica_jsp._jspService(Verifica_jsp.java:62)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)




      Finally, when I start JBoss, everything seems fine. But, does anyone have any idea as to how to resolve this?. I tried searching about this problem but have not found anything.

      Thank you very much for your help.

        • 1. Re: ERROR [org.apache.catalina.core.ContainerBase.[jboss.web
          raist_majere

          Can you post the code of Verifica.jsp? Maybe you get something (like a database connection) that becomes timeouted after some period... The kind of code that could be your problem may be between

          <%!
          and
          %>


          • 2. Re: ERROR [org.apache.catalina.core.ContainerBase.[jboss.web
            gabmx

            Hi Raist_Majere!

            This is my code of Verifica.jsp :

            <html>
             <head>
             <title>Mensaje de Confirmación</title>
             </head>
             <link rel="stylesheet" href="<%=request.getContextPath()%>/css/ie.css" type="text/css"/>
            
             <body style="margin-top:0px;margin-left:0px;margin-right:0px;margin-bottom:0px;" >
             <table bgcolor="#DDDDDD" border="0" cellspacing="0" cellpadding="0" width="100%">
             <tr>
             <td bgcolor=#FFFFFF height=27 style="padding-left:10px;border-bottom:1px solid #10659E;" width=100%>
             <img src="../images/caution.gif"/>
             </td>
             </tr>
             <tr class="estTd01CapturaT2">
             <td valign="top" align="center">
             <%
             if(!request.getParameter("text").equals("capturados")&&!request.getParameter("text").equals("capturados?")){ %>
             <br/>?Est? seguro de que desea borrar <%=request.getParameter("text")%>?
             <%}if(request.getParameter("text").equals("capturados?")){
             %>
             <br/>?Est? seguro que desea guardar los datos <%=request.getParameter("text")%>
             <%}else{ %>
             <br/>?Est? seguro que desea guardar los datos <%=request.getParameter("text")%>?
             <%} %>
             <form name="simadpro">
             <table border="0" cellspacing="0" cellpadding="0" width="100%">
             <tr>
             <td height=7px width=100%></td>
             </tr>
             </table>
             <div align=center>
             <% if(request.getParameter("text").equals("capturados?")){%>
             <input type="image" onClick="CloseModal1(true)" tabindex="1" src="../images/bot_Ace.gif"/>
                 
             <input type="image" onClick="CloseModal1(false)" tabindex="2" src="../images/bot_Can.gif"/>
             <%}else{ %>
             <input type="image" onClick="CloseModal(true)" tabindex="1" src="../images/bot_Ace.gif"/>
                 
             <input type="image" onClick="CloseModal(false)" tabindex="2" src="../images/bot_Can.gif"/>
             <%} %>
             </div>
             </form>
             <br/><br/><br/>
             </td>
             </tr>
             </table>
            
             <script language="javascript" type="text/javascript">
            
             function CloseModal(fv)
             {
             if(fv)
             window.opener.asignaValor(true);
             window.close()
             }
             function CloseModal1(fv)
             {
             if(fv)
             window.opener.asignaValor2(true);
             window.close()
             }
             </script>
             </body>
            </html>


            Thanks for your help!

            • 3. Re: ERROR [org.apache.catalina.core.ContainerBase.[jboss.web
              raist_majere

              I can find an explanation to your problem of having a NullPointer, but not the reason of only getting it after some days working... Having the NullPointer is because when you use:

              !request.getParameter("text").equals("capturados")
              the parameter is null. You can change all of this statements for one of the kind
              "capturados".equals(request.getParameter("text"))
              which will never fail, because "capturados" is never null. Getting this parameter as null is maybe due to having a servlet or something between the call to this JSP and then forwarding to it. Hope it helps someway... Is the previuos form page directed to a servlet (or some framework) and then forwarded to this page? If that's the case, the problem is probably in this intermediate phase.

              • 4. Re: ERROR [org.apache.catalina.core.ContainerBase.[jboss.web]...
                gorkem.kizgin

                10:36:05,526 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TestServiceClient].[jsp]] (http--127.0.0.1-8080-2) Servlet.service() for servlet jsp threw exception: java.lang.ClassNotFoundException: org.apache.jsp.sampleToplamProxy.Result_jsp

                  at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [:1.7.0_79]

                  at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [:1.7.0_79]

                  at java.security.AccessController.doPrivileged(Native Method) [:1.7.0_79]

                  at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [:1.7.0_79]

                  at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:137) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:67) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:95) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

                  at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

                  at java.lang.Thread.run(Thread.java:745) [:1.7.0_79]

                 

                 

                i am getting this error when i try to invoke.  it is my first webservice in java.  my class is here :

                 

                package com.firsttry.webservice;

                 

                 

                import javax.jws.WebMethod;

                import javax.jws.WebService;

                 

                 

                @WebService

                public class Toplam {

                  @WebMethod

                  public int IkiSayiToplam(int a,int b){

                  return a+b;

                  }

                }

                 

                it works when i start server but there is no result when i click on invoke it gives me error !

                i m waiting for your help and suggest