permaculture playing cards*
The moose likes JBoss/WildFly and the fly likes JSP -JBoss- Error 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JSP -JBoss- Error 500" Watch "JSP -JBoss- Error 500" New topic
Author

JSP -JBoss- Error 500

gabokal lopez
Greenhorn

Joined: Dec 20, 2011
Posts: 2
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

Joined: May 14, 2008
Posts: 5812
    
    7

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?


JBoss In Action
gabokal lopez
Greenhorn

Joined: Dec 20, 2011
Posts: 2
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
 
jQuery in Action, 2nd edition
 
subject: JSP -JBoss- Error 500
 
Similar Threads
Exception thrown org.jboss.util.NestedSQLException
JSF not working in Jboss
Deployment on JBoss
For cracks only
jar file issue