• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP -JBoss- Error 500

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm new to this but I have some questions, I hope you can help me

In a web application that I am doing, I use jboss, jsp and call api ease, when I do a deploy I mark the following error:
----
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:21

18: <HTML>
19:
20: <TITLE>Getronics SAT</TITLE>
21: <%@ include file="includes/getIncludes.jsp" %>
22: <SCRIPT>
23:
24: //eventOnLoad.addTask("");


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

java.lang.NullPointerException
ease.ContainerBeanFacade.translate(ContainerBeanFacade.java:234)
org.apache.jsp.index_jsp._jspService(index_jsp.java:225)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.



----------------------------------------------------------------
In index getincludes call here:


-
in "includes / getIncludes.jsp" sends the exception of:



l do not know what is causing the error.
I use jboss-4.0.4.GA and JDK 5

Gaby
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, the stack trace you posted was displayed in the browser. There is a corresponding stack trace in the console log (or in server.log). It is usually better to post the stack trace from the console log.

The "caused by" reason was a NPE at ease.ContainerBeanFacade.translate(ContainerBeanFacade.java:234). I assume this is you code. Please post the full source code for the translate() method and highlight line 234. Also, what have you do to determine which object being dereferenced at that line is null?
 
gabokal lopez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, thanks for your answer: I discovered that there is a variable that is null. In my code in index.jsp JBean declared a:



And JavaBean getinclude not recognize, so I returned the null, but do not know if I am stating Jbean well, or if I put in another place. If I put the Jbean in getincludes tells me I'm doubling the variable

Thank you.
Gaby
 
reply
    Bookmark Topic Watch Topic
  • New Topic