[jboss-user] [JBoss Seam] - ejb3trail persistence error
mishelangelo
do-not-reply at jboss.com
Thu Jul 27 20:37:11 EDT 2006
whenever i try running jsp files that use session beans to access and retrieve persistent (o/r) entities, i get exceptions usu with root cause: NullPointerException on the line where the an entity should have been initialized from a method call to a session bean.
| HTTP Status 500 -
|
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| org.apache.jasper.JasperException: Exception in JSP: /persistence/entitymanager/addfund.jsp:45
|
| 42:
| 43: <%
| 44: // Collection <Fund> funds = cal.getFunds();
| 45: Collection funds = cal.getFunds();
| 46: %>
| 47:
| 48: There are <b><%=funds.size()%></b> funds in the database.<br/>
|
|
| 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
| org.apache.jsp.persistence.entitymanager.addfund_jsp._jspService(addfund_jsp.java:89)
| 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)
|
|
I dont see anything wrong with
| 45: Collection funds = cal.getFunds();
|
in and of itself.... but what do i know.... :)
Does anyone have any idea why? I'm kinda like a total j2ee newbie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961453#3961453
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961453
More information about the jboss-user
mailing list