Re: Null pointer exception in EntityResolver

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Aug 09 2006 - 21:41:32 EDT

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-625) Implement correct "scale" and "precision" for DbAttribute"

    Marcin,

    I can't say for sure what's causing it without a test case and a
    debugger. Could be another Hessian serialization glitch for a custom
    type?

    BTW, something similar is mentioned in this thread:

    http://www.objectstyle.org/cayenne/lists/cayenne-user/2006/04/0231.html

    Andrus

    On Aug 9, 2006, at 8:44 PM, Marcin Skladaniec wrote:

    > Hi !
    >
    > I'm running cayenne [v.3.0-PROTO June 21 2006] in remote
    > persistence. Sometimes I'm getting this exception. Is it fixed in
    > current release ?
    >
    > 2006-08-02 12:25:19,207 [AWT-EventQueue-0] ERROR
    > com.ish.angel.controller.EditController - Exception thrown during
    > save:
    > org.objectstyle.cayenne.CayenneRuntimeException: [v.3.0-PROTO June
    > 21 2006] Remote error. URL - http://192.168.3.167:8181/angel-server-
    > cayenne
    > at
    > org.objectstyle.cayenne.remote.hessian.HessianConnection.doSendMessage
    > (HessianConnection.java:181)
    > at org.objectstyle.cayenne.remote.BaseConnection.sendMessage
    > (BaseConnection.java:109)
    > at org.objectstyle.cayenne.remote.ClientChannel.send
    > (ClientChannel.java:278)
    > at org.objectstyle.cayenne.remote.ClientChannel.onSync
    > (ClientChannel.java:188)
    > at org.objectstyle.cayenne.CayenneContext.doCommitChanges
    > (CayenneContext.java:233)
    > at org.objectstyle.cayenne.CayenneContext.commitChanges
    > (CayenneContext.java:220)
    > at com.ish.angel.cayenne.CayenneContext.commitChanges(Unknown Source)
    > (...)long stack of swing events here(...)
    > Caused by: java.lang.NullPointerException
    > at org.objectstyle.cayenne.map.EntityResolver.lookupObjEntity
    > (EntityResolver.java:514)
    > at org.objectstyle.cayenne.access.ChildDiffLoader.arcDeleted
    > (ChildDiffLoader.java:157)
    > at org.objectstyle.cayenne.graph.ArcDeleteOperation.apply
    > (ArcDeleteOperation.java:80)
    > at org.objectstyle.cayenne.graph.CompoundDiff.apply
    > (CompoundDiff.java:133)
    > at org.objectstyle.cayenne.access.DataContext.onContextFlush
    > (DataContext.java:1215)
    > at org.objectstyle.cayenne.access.ClientServerChannel.onCommit
    > (ClientServerChannel.java:191)
    > at org.objectstyle.cayenne.access.ClientServerChannel.onSync
    > (ClientServerChannel.java:143)
    > at org.objectstyle.cayenne.remote.service.DispatchHelper.dispatch
    > (DispatchHelper.java:80)
    > at
    > org.objectstyle.cayenne.remote.service.BaseRemoteService.processMessag
    > e(BaseRemoteService.java:182)
    > at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    > at java.lang.reflect.Method.invoke(Unknown Source)
    > at com.caucho.hessian.server.HessianSkeleton.invoke
    > (HessianSkeleton.java:157)
    > at
    > org.objectstyle.cayenne.remote.hessian.service._HessianServlet.service
    > (_HessianServlet.java:388)
    > at com.ish.angel.server.CayenneServlet.service(Unknown Source)
    > at org.mortbay.jetty.servlet.ServletHolder.handle
    > (ServletHolder.java:428)
    > at org.mortbay.jetty.servlet.ServletHandler.dispatch
    > (ServletHandler.java:666)
    > at org.mortbay.jetty.servlet.ServletHandler.handle
    > (ServletHandler.java:568)
    > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
    > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
    > at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    > at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
    > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
    > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
    > at org.mortbay.http.SocketListener.handleConnection
    > (SocketListener.java:244)
    > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
    >
    >
    > -------------------------->
    > ish
    > http://www.ish.com.au
    > Level 1, 30 Wilson Street Newtown 2042 Australia
    > phone +61 2 9550 5001 fax +61 2 9550 4001
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Aug 09 2006 - 21:41:55 EDT