0 Replies Latest reply on Dec 29, 2004 12:12 AM by Vinaydath Shivaprasad

    JSP Compiler error

    Vinaydath Shivaprasad Newbie

      Hi,
      I have the following piece of code in my JSp:
      <jsp:include page = '<%=WSSUtils.JSP_COMMON_PATH+"SLA.jsp"%>'>
      <jsp:param name="FORM_NAME" value="document.frmSubmitServiceRequests" />
      <jsp:param name="SELECTED_SERVICE" value='<%=eCRMRequest!=null?eCRMRequest.getParameter("setService"):null%>' />
      <jsp:param name="SELECTED_PRODUCT" value='<%=eCRMRequest!=null?eCRMRequest.getParameter("setProduct"):null%>' />
      </jsp:include>

      when compiling in Jboss 3.2.1, i get a Nullpointer exception error. The same piece of code works fine in Weblogic.


      The line in the java file where i am getting this error is:
      JspRuntimeLibrary.include(request, response, WSSUtils.JSP_COMMON_PATH+"SLA.jsp" + ((WSSUtils.JSP_COMMON_PATH+"SLA.jsp").indexOf('?')>0? '&': '?') + "FORM_NAME=" + "document.frmSubmitServiceRequests" + "&" + "SELECTED_SERVICE=" + java.net.URLEncoder.encode("" + eCRMRequest!=null?eCRMRequest.getParameter("setService"):null) + "&" + "SELECTED_PRODUCT=" + java.net.URLEncoder.encode("" + eCRMRequest!=null?eCRMRequest.getParameter("setProduct"):null), out, false);

      Below is the stacktrace i am getting:

      java.lang.NullPointerException
      at org.apache.jsp.NewServiceRequest_jsp._jspService(NewServiceRequest_jsp.java:515)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
      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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)



      -Vinay