11 Replies Latest reply on Oct 25, 2010 9:11 AM by dinsceg

    Jsp Compliance issue

    dinsceg

      Hi,

        I have created  application in jsp page and try to deploy in JBoss but its showing some error like this...

      i am using JBoss 5.1.0GA.but This application is working fine as the expected behavior with oracle app server.. please anyone help me..

       

      i have attached my jsp page also...

       

       

      org.apache.jasper.JasperException: An exception occurred processing JSP page /BasePage_New.jsp at line 131

      128: MenuVO menuVo=(MenuVO)session.getAttribute("menuLink");
      129: EmpProfileVO empProfile = (EmpProfileVO)itilSession.getAttribute("EmpProfileVO");
      130: Map pageCountMap = new HashMap();
      131: Vector  xmlData = menuVo.getBufReader();
      132:                     
      133:                       String link="",str="";
      134:                       for(int i=0;i<xmlData.size();i++)


      Stacktrace:
           org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      java.lang.NullPointerException
           org.apache.jsp.BasePage_005fNew_jsp._jspService(BasePage_005fNew_jsp.java:206)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        • 1. Re: Jsp Compliance issue
          jaikiran

          What guarantees that line number 128 doesn't return null?

          • 2. Re: Jsp Compliance issue
            dinsceg

            Hi Jaikiran,

             

            Thanks for your reply.

            But the same application Running in oracle app server.it didn't show any null pointer exception.

            • 3. Re: Jsp Compliance issue
              jaikiran

              It not about Oracle App server or JBoss Application Server. It all depends on whether that attribute is being set in the session and whether it's a non-null value. That "menuLink" is an attribute which your application seems to be setting. So you'll have to find who sets it and what value is being set in there.

              • 4. Re: Jsp Compliance issue
                dinsceg

                Hi Jaikiran.

                Thanks for your reply.i wil check my app and let you know..

                • 5. Re: Jsp Compliance issue
                  dinsceg

                  Hi Jaikiran,

                      Line no 128 doesnt return null.. it return some value..

                  but still i'm getting same error when i deployed in Jboss AS 5.1.0 GA.

                   

                  Plz help me..

                  • 6. Re: Jsp Compliance issue
                    jaikiran

                    Dinesh venkatesan wrote:

                     

                    Hi Jaikiran,

                        Line no 128 doesnt return null.. it return some value..

                    How did you test that?

                     

                    A NullPointerException is pretty easy to trace down. Start by printing out the values of those variables.

                    • 7. Re: Jsp Compliance issue
                      dinsceg

                      Hi Jaikiran,

                       

                      Please find the vales for MenuVo and Xml Data..

                      i have attached the value of That parameter.I am getting this value  when i deployed in oracle application server...

                      • 8. Re: Jsp Compliance issue
                        jaikiran

                        Dinesh venkatesan wrote:

                         


                        I am getting this value  when i deployed in oracle application server...

                        Like I said earlier, it doesn't matter what value it shows when run in Oracle Application Server. What matters is, the values that you see when you run in JBoss AS. What are those values?

                        • 9. Re: Jsp Compliance issue
                          dinsceg

                          Hi,

                           

                          Its returning null ..

                          • 10. Re: Jsp Compliance issue
                            jaikiran

                            Dinesh venkatesan wrote:

                             

                            Hi,

                             

                            Its returning null ..

                            Exactly! So like I said in one of my previous replies, your next step should be to find out who sets that value and why it is not being set (or maybe being set to null, explicitly).

                            • 11. Re: Jsp Compliance issue
                              dinsceg

                              Hi,

                              Thanks for your reply..

                               

                              i wil check now and let you know..