From: Gavin K. <ga...@ap...> - 2002-09-25 11:24:07
|
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. I'm concerned that the testsuite didn't show this / these problems :( ----- Original Message ----- From: "Mark Woon" <mor...@SM...> To: "Hibernate Mailing List" <hib...@li...> Sent: Wednesday, September 25, 2002 5:03 PM Subject: [Hibernate] Problem with <component> element > > I'm getting this with both 1.1 and what's currently in CVS. I'm getting > an NPE at > cirrus.hibernate.helpers.ReflectHelper.get(ReflectHelper.java:169) > because target is null. > > My mapping looks like this: > > <class name="Foo" table="Foos"> > <id name="id" column="id" type="string" unsaved-value="null"> > <generator class="assigned" /> > </id> > <property name="name" /> > <component name="subComp" class="SubComp"> > <property name="version" column=version" /> > <property name="value" column="value" /> > </component> > </class> > > > All I'm doing is: > > Foo f = new Foo(); > f.setId("ID1"); > session.save(f); > > > If I comment out the <component> element, everything works. > > Any ideas? > > -Mark > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel |