#6 NPException in FetchFieldManager when updating fielld

closed-fixed
nobody
None
5
2012-04-06
2012-04-05
No

When updating an array field of an amount of a complex data type the following exception occurs sometimes:

Caused by: java.lang.NullPointerException
at java.lang.reflect.Array.getLength(Native Method)
at org.cumulus4j.store.fieldmanager.FetchFieldManager.fetchObjectField(FetchFieldManager.java:342)
at org.datanucleus.state.AbstractStateManager.replacingObjectField(AbstractStateManager.java:2228)
at org.polepos.teams.jdo.data.ComplexHolder0.jdoReplaceField(ComplexHolder0.java)
at org.polepos.teams.jdo.data.ComplexHolder0.jdoReplaceFields(ComplexHolder0.java)
at org.datanucleus.state.JDOStateManager.replaceFields(JDOStateManager.java:1931)
at org.datanucleus.state.JDOStateManager.replaceFields(JDOStateManager.java:1958)
at org.cumulus4j.store.Cumulus4jPersistenceHandler.fetchObject(Cumulus4jPersistenceHandler.java:156)
at org.datanucleus.state.JDOStateManager.loadFieldsFromDatastore(JDOStateManager.java:1634)
at org.datanucleus.state.JDOStateManager.loadSpecifiedFields(JDOStateManager.java:1236)
at org.datanucleus.state.JDOStateManager.isLoaded(JDOStateManager.java:1724)
at org.polepos.teams.jdo.data.ComplexHolder0.jdoGetarray(ComplexHolder0.java)
...

Discussion

  • Marco Schulze

    Marco Schulze - 2012-04-06
    • status: open --> closed-fixed
     
  • Marco Schulze

    Marco Schulze - 2012-04-06

    We allow array fields to be null now and have appropriate null-checks.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks