1 Reply Latest reply on Feb 21, 2005 11:33 AM by 807575

    ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.s

    807575
      My Code:
      <%@ page import="com.tcs.utilities.ExceptionHandler" %>
      <%@ page import="com.tcs.core.UserProfile" %>
      <%@ page import="com.tcs.core.HelpDeskUserProfile" %>
      <%@ page import="com.tcs.exception.InvalidSessionException" %>
      <%@ page import="com.tcs.constants.HelpDeskConstants" %>
      <%@ page import="com.tcs.utilities.LogHandler" %>
      <%@ page import="com.tcs.jsp.SessionDataContainer" %>
      <%@ page import="com.tcs.jsp.ContentModel" %>
      <%@ page import="com.tcs.jsp.helpdesk.HelpDeskSearchResultCM" %>
      <%@ page import="com.tcs.jsp.helpdesk.HelpDeskSearchResultCmd" %>
      <%@ page import="com.tcs.constants.CoreConstants" %>
      <%@ page import="com.tcs.constants.ExceptionTokens" %>
      <%@ page errorPage="s_error.jsp" %>
      <%@ include file="session_validation.jsp" %>
      <%
      System.out.println("recieved flag");
          LogHandler log = LogHandler.init();
      %>
      
      <%
      System.out.println("recieved flag");
            UserProfile profile = (UserProfile)session.getValue(HelpDeskConstants.SESSION_PROFILE);
                if(null == profile)
                {
                     throw new InvalidSessionException();
                }
           if(session.isNew())
           {
                throw new InvalidSessionException();
           }
      
      try{System.out.println("going for search");
          HttpSession sesshome = request.getSession(false);
          if(null == sesshome.getValue(HelpDeskConstants.SESSION_PROFILE) ) {
              throw new Exception ();
          }
      System.out.println("going for search within");
          HelpDeskUserProfile objPrfl = (HelpDeskUserProfile) sesshome.getValue(HelpDeskConstants.SESSION_ADMIN);
          if (!objPrfl.isAdminFlag())
              throw new Exception();
      System.out.println("going for search1");
          HelpDeskSearchResultCM cm = new HelpDeskSearchResultCM();
          HelpDeskSearchResultCmd cmd = new HelpDeskSearchResultCmd();
      System.out.println("going for search2");
          cm = (HelpDeskSearchResultCM) cmd.execute( request, response );
           System.out.println("going for search2.5");
          SessionDataContainer.put(session.getId(),cm);
           System.out.println("going for search3");
           String pag="s_helpDeskSearchResult.jsp?hidComingFrom="+"SearchMenus";
       %>
            <jsp:forward page="<%=pag%>"/>
      <!--jsp:forward page="s_helpDeskSearchResult.jsp" />  
      <jsp:param name="hidComingFrom" value="SearchMenus" />
       </jsp:forward -->
      
      <%   
      } catch(Exception e) {
         /*log.error(e,"p_helpDeskSearchResult.jsp",CoreConstants.HELPDESK);
          ExceptionHandler.handleJSPException(e, ExceptionTokens.HD_GET_DATA_ERROR,
                                          "p_helpDeskSearchResult.jsp");*/
      
                                                   System.out.println("Exception is " + e.getMessage());
      }
      %>
      I get the following error when i run this code.

      ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: /p_helpDeskSearchResult.jsp(68,5) jsp.error.badaction
           at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
           at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
           at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
           at org.apache.jasper.compiler.Parser.parseAction(Parser.java:671)
           at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
           at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
           at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
           at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
           at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
           at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
           at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
           at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
           at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
           at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
           at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
           at java.lang.Thread.run(Thread.java:536)