Results 1 to 3 of 3
  1. #1
    Ms.Ranjan is offline Member
    Join Date
    Jun 2008
    Posts
    85
    Rep Power
    0

    Default Tomcat Server Error

    Hi all,

    My web application runs using apache tomcat server. It runs fine, but whenever there is query search to the oracle database, the application stops running and the log show me this error. Can someone please explain me about this error and what I must be doing in order to rectify it.

    Java Code:
    more catalina.2010-09-24.log
    Sep 24, 2010 6:18:06 PM org.apache.jk.common.MsgAjp processHeader
    SEVERE: BAD packet signature 18245
    Sep 24, 2010 6:18:06 PM org.apache.jk.common.ChannelSocket processConnection
    SEVERE: Error, processing connection
    java.lang.IndexOutOfBoundsException
    at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
    at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:601)
    at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:557)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:666)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:871)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Sep 24, 2010 6:18:06 PM org.apache.jk.common.MsgAjp processHeader
    SEVERE: BAD packet signature 18245
    Sep 24, 2010 6:18:06 PM org.apache.jk.common.ChannelSocket processConnection
    SEVERE: Error, processing connection
    java.lang.IndexOutOfBoundsException
    at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
    at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:601)
    at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:557)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:666)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:871)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Sep 24, 2010 6:18:06 PM org.apache.jk.common.MsgAjp processHeader
    SEVERE: BAD packet signature 18245
    Sep 24, 2010 6:18:06 PM org.apache.jk.common.ChannelSocket processConnection
    SEVERE: Error, processing connection
    java.lang.IndexOutOfBoundsException
    at java.io.BufferedInputStream.read(BufferedInputStream.java:306)
    at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:601)
    at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:557)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:666)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:871)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    805
    Rep Power
    6

    Default

    without code,it is not pssoible to give solution.
    I think the query string is wrong.
    Ramya:cool:

  3. #3
    Ms.Ranjan is offline Member
    Join Date
    Jun 2008
    Posts
    85
    Rep Power
    0

    Default

    Restarting the tomcat server solved my problem thanks..but I ended up getting another error

    Java Code:
     more localhost.2010-09-28.log
    Sep 28, 2010 9:59:06 AM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
            at org.apache.jsp.Display_jsp._jspService(org.apache.jsp.Display_jsp:70)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
            at nci.cgf.genewindow.servlets.LocusRequest.doGet(LocusRequest.java:104)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
            at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Thread.java:595)
    Sep 28, 2010 9:59:06 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet LocusRequest threw exception
    java.lang.NullPointerException
            at org.apache.jsp.Display_jsp._jspService(org.apache.jsp.Display_jsp:70)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
            at nci.cgf.genewindow.servlets.LocusRequest.doGet(LocusRequest.java:104)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
            at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
            at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
            at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
            at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
            at java.lang.Thread.run(Thread.java:595)
    I made a few changes in my jsp page, but it didnt work the way i expected. so i replaced the changed jsp file with my backed up copy. Since then I get this error. Restarting the tomcat server didnt work. The same version of the jsp file works in the production server, no changes at all. But the test server show this error in the log file. Not sure what went wrong. Can someone explain me why this error is occuring?

    Here is the code
    Java Code:
      String r = request.getParameter("r");
    
        if(r != null && user != null){
    line number 70-->        // r is the sessionFeaturesBeanId
            LinkedHashMap inter =(LinkedHashMap) session.getAttribute("userreq");
            Inter inter = (Inter)vals.get(r);
    
            Loc fb = (Loc)session.getAttribute(inter.toString());
    
            fb.setDefaultUserOptions(true);
            lid=revert;
        }

Similar Threads

  1. Error while starting the tomcat server
    By venkat.ravala in forum Web Frameworks
    Replies: 0
    Last Post: 01-15-2010, 05:33 AM
  2. New to JSP-Netbeans, external tomcat server
    By dropez in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 04-01-2009, 06:48 PM
  3. Reg Tomcat in Itaniumn Server
    By ars3181 in forum Advanced Java
    Replies: 0
    Last Post: 11-24-2008, 05:53 AM
  4. Tomcat Server : Error filterStart
    By kasipandian in forum Web Frameworks
    Replies: 0
    Last Post: 03-30-2008, 03:50 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
  •