Gary,
I guess we should provide a better exception message in this particular
case, but that's a general issue with nested exceptions - if a whole chain
of them is being caught and rethrown, this obfuscates the real problem.
BTW, one easy way to quickly get to the root cause of Cayenne exceptions
is this:
Throwable cause =
org.objectstyle.cayenne.util.Util.unwindException(throwable);
Andrus
> Yesterday avo, I went from testing our app on a test server to a future
> production server, after installing the database server and creating the
> database, I started playing around with the app. All worked fine until I
> tried to submit an order then the system crashed with:
>
> org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1RC1 October 3
> 2004] Commit Exception
> org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:12
> 40)
> org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:12
> 01)
> au.com.hybrid.comone.actions.CompletePurchaseOrderAction.completeOrder(Compl
> etePurchaseOrderAction.java:121)
> au.com.hybrid.comone.actions.CompletePurchaseOrderAction.execute(CompletePur
> chaseOrderAction.java:64)
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
> sor.java:484)
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> Pointing the app back to the test server all worked fine but production
> server caused the above exception. After spending some time going
> through the server setup, the problem was simply the lack of
> AUTO_PK_SUPPORT table which I forgot to create.
>
> Maybe the exception should have been more intuitive as to the where
> abouts of the problem. Once again my knowledge of Cayenne exception
> handling is somewhat limited, but I though I'll put my five cents in.
>
> - Gary
>
This archive was generated by hypermail 2.0.0 : Tue Nov 02 2004 - 08:12:53 EST