> ca.BidSpec.emall.user.Person.pcsetPhoneNumbers(Person.java:727) I had read this and assumed that it was an OpenJPA-generated method, but if so, there shouldn't be a line number. Did you reverse-compile your classes at some point and change the synthetic interception methods?
-Patrick -- Patrick Linskey BEA Systems, Inc. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. > -----Original Message----- > From: Abe White [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 12:22 PM > To: open-jpa-dev@incubator.apache.org > Subject: Re: How to debug object retrieveal in JPA? > > > > Caused by: java.lang.NullPointerException > > at java.util.ArrayList.addAll(ArrayList.java:472) > > at > ca.BidSpec.emall.user.Person.pcsetPhoneNumbers(Person.java:727) > > at ca.BidSpec.emall.user.Person.pcClearFields(Person.java) > > at ca.BidSpec.emall.user.Person.pcNewInstance(Person.java) > > at > > > org.apache.openjpa.enhance.PCRegistry.newInstance(PCRegistry.java:121) > > There you go. OpenJPA is clearing the instance state as part > of its initialization routine, and that's causing a > NullPointerException in your setter at Person.java line 727. > > Notice: This email message, together with any attachments, > may contain information of BEA Systems, Inc., its > subsidiaries and affiliated entities, that may be > confidential, proprietary, copyrighted and/or legally > privileged, and is intended solely for the use of the > individual or entity named in this message. If you are not > the intended recipient, and have received this message in > error, please immediately return this by email and then delete it. > Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.