Hi,
Line 43,
List users = ctxt.performQuery(query);
I've managed to solve the issue, looks like the Cayenne stack was not
initialized during the startup.
Thanks
Nanik
----- Original Message -----
From: "Schneider, Eric" <eschneide..iaa-cref.org>
To: "'Nanik Tolaram'" <nanikjav..otmail.com>;
<cayenne-use..bjectstyle.org>
Sent: Monday, March 10, 2003 9:59 PM
Subject: RE: Struts problem
> Hi,
>
> So, what's on BrowseUsersAction.java, line 43?
>
> Eric
>
> > -----Original Message-----
> > From: Nanik Tolaram [mailto:nanikjav..otmail.com]
> > Sent: Sunday, March 09, 2003 8:45 AM
> > To: cayenne-use..bjectstyle.org
> > Subject: Struts problem
> >
> >
> > 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(Req
> > uestProcessor.
> > java:526)
> > at
> > org.apache.struts.action.RequestProcessor.processActionPerform
> > (RequestProces
> > sor.java:467)
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProce
> > ssor.java:274)
> > at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.j
> > ava: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.internalDoFilt
> > er(Application
> > FilterChain.java:247)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterCh
> > ain.java:193)
> > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.ja
> > va:260)
> > at
> > org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> > eContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:480)
> >
> > ..
> > ....
> >
> >
> > root cause
> >
> > java.lang.NullPointerException
> > at
> > org.web.application.modules.action.BrowseUsersAction.execute(B
> > rowseUsersActi
> > on.java:43)
> > at
> > org.apache.struts.action.RequestProcessor.processActionPerform
> > (RequestProces
> > sor.java:465)
> > at
> > org.apache.struts.action.RequestProcessor.process(RequestProce
> > ssor.java:274)
> > at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.j
> > ava: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.internalDoFilt
> > er(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 message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, please contact sender immediately by
reply e-mail and destroy all copies. You are hereby notified that any
disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
> TIAA-CREF
> **********************************************************************
>
This archive was generated by hypermail 2.0.0 : Mon Mar 10 2003 - 21:00:07 EST