Hi all,
Been playing around with Struts + Cayenne and bump into a problem that I've
been trying to solve for the last 5 hrs.
I have 1 table a users table and 1 action and 1 .jsp page, when it reached
the line
List users = ctxt.performQuery(query);
it throws the following error,
description The server encountered an internal error () that prevented it
from fulfilling this request.
javax.servlet.ServletException
at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.
java:526)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:467)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1407)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:496)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
..
....
root cause
java.lang.NullPointerException
at
org.web.application.modules.action.BrowseUsersAction.execute(BrowseUsersActi
on.java:43)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:465)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1407)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:496)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
..
...
..
I don't understand why this is happening. My DBObject is in the
org\web\application\modules\db folders. The Cayenne Struts sample is working
fine. Any idea ?
Thanks
Nanik
This archive was generated by hypermail 2.0.0 : Sun Mar 09 2003 - 08:46:32 EST