File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP -JBoss- Error 500

 
gabokal lopez
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic