NPE in ObjectStore registerDiff

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Thu Mar 26 2009 - 02:20:11 EDT

  • Next message: Adrian A.: "JIRA comments go to the wrong list?"

    Hi there,

    I haven't got the current source in front of me but does anyone have
    any ideas why there might be a null pointer?
    Is it the object store that's not registered as yet (i.e., no db
    connection or something?)

    Thanks.

    ish.oncourse.server.cayenne.glue.CayenneDataObject :365 - On entity
    creation failed. (Preference)
    java.lang.NullPointerException
    at org.apache.cayenne.access.ObjectStore.registerDiff(ObjectStore.java:
    188)
    at
    org
    .apache
    .cayenne.access.ObjectStore.nodePropertyChanged(ObjectStore.java:1082)
    at
    org
    .apache
    .cayenne
    .util
    .ObjectContextGraphAction
    .handleSimplePropertyChange(ObjectContextGraphAction.java:84)
    at
    org
    .apache
    .cayenne
    .util
    .ObjectContextGraphAction
    .handlePropertyChange(ObjectContextGraphAction.java:68)
    at
    org.apache.cayenne.access.DataContext.propertyChanged(DataContext.java:
    1574)
    at
    org
    .apache.cayenne.CayenneDataObject.writeProperty(CayenneDataObject.java:
    227)
    at
    ish
    .oncourse
    .server
    .cayenne
    .glue.CayenneDataObject.onEntityCreation(CayenneDataObject.java:356)
    at
    ish
    .oncourse.server.cayenne.Preference.onEntityCreation(Preference.java:41)
    at
    ish
    .oncourse
    .server
    .cayenne.glue.CayenneDataObject.prePersist(CayenneDataObject.java:120)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at
    sun
    .reflect
    .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja!
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    org
    .apache
    .cayenne
    .reflect.CallbackOnEntity.performCallback(CallbackOnEntity.java:47)
    at
    org
    .apache
    .cayenne
    .reflect
    .LifecycleCallbackEventHandler
    .performCallbacks(LifecycleCallbackEventHandler.java:181)
    at
    org
    .apache
    .cayenne
    .reflect
    .LifecycleCallbackEventHandler
    .performCallbacks(LifecycleCallbackEventHandler.java:172)
    at
    org
    .apache
    .cayenne
    .reflect
    .LifecycleCallbackEventHandler
    .performCallbacks(LifecycleCallbackEventHandler.java:172)
    at
    org
    .apache
    .cayenne
    .reflect
    .LifecycleCallbackEventHandler
    .performCallbacks(LifecycleCallbackEventHandler.java:135)
    at
    org
    .apache
    .cayenne
    .reflect
    .LifecycleCallbackRegistry
    .performCallbacks(LifecycleCallbackRegistry.java:134)
    at org.apache.cayenne.access.DataContext.newObject(DataContext.java:739)
    at org.apache.cayenne.access.DataContext.newObject(DataContext.java:700)

    with regards,

    --
    

    Lachlan Deck



    This archive was generated by hypermail 2.0.0 : Thu Mar 26 2009 - 02:20:51 EDT