From: Mark W. <mor...@SM...> - 2002-09-25 11:47:46
|
Gavin King wrote: >Curious. > >I managed to reproduce an NPE just like this, but from update(), not >save()...... > >Are you sure it originated in save() .... can you show me a stack trace >please. > Yes, I'm doing a save(). Stack trace: java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at cirrus.hibernate.helpers.ReflectHelper.get(ReflectHelper.java:183) at cirrus.hibernate.type.ComponentType.getPropertyValue(ComponentType.java:161) at cirrus.hibernate.impl.SessionImpl.removeCollectionsFor(SessionImpl.java:846) at cirrus.hibernate.impl.SessionImpl.removeCollectionsFor(SessionImpl.java:808) at cirrus.hibernate.impl.SessionImpl.doUpdate(SessionImpl.java:952) at cirrus.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:897) at cirrus.hibernate.impl.Cascades$2.cascade(Cascades.java:37) at cirrus.hibernate.impl.Cascades.cascade(Cascades.java:130) at cirrus.hibernate.impl.SessionImpl.cascade(SessionImpl.java:1770) at cirrus.hibernate.impl.SessionImpl.doSave(SessionImpl.java:576) at cirrus.hibernate.impl.SessionImpl.save(SessionImpl.java:458) at misc.Test.test(Test.java:258) at misc.Test.main(Test.java:89) Note that it says ReflectHelper.java:183 instead of 169 because I added a bunch of debug code to figure out what was null. >I'm concerned that the testsuite didn't show this / these problems :( > > Yeah, that confused me too, since I checked the test suite and saw that there were tests for this, and thought it was something I was doing.... -Mark |