Re: How to debug object retrieveal in JPA?

2007-05-01 Thread Abe White
> Actually I am doing the clear, once I got rid of it the exception > disappeared. > SO IMHO no bug No, you're clearing a list. Craig is referring to the pcClearFields call. Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its

Re: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
, 2007 5:08 PM To: open-jpa-dev@incubator.apache.org Subject: Re: How to debug object retrieveal in JPA? IMHO, this is a bug in the generated code for pcNewInstance. I don't understand why the pcNewInstance should ever call pcClearFields. It just got finished creating a new instance, and i

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
debug object retrieveal in JPA? IMHO, this is a bug in the generated code for pcNewInstance. I don't understand why the pcNewInstance should ever call pcClearFields. It just got finished creating a new instance, and it knows that all fields have been set to their Java default values. [That

Re: How to debug object retrieveal in JPA?

2007-04-30 Thread Craig Russell
IMHO, this is a bug in the generated code for pcNewInstance. I don't understand why the pcNewInstance should ever call pcClearFields. It just got finished creating a new instance, and it knows that all fields have been set to their Java default values. [That's why we require the user to specify a

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
: April 30, 2007 3:52 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? > That is the original method with a new name. As the documentation > states, the getters and setters used in property access may appear > with a "pc" prefix in

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
e 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:29 PM > To: open-jpa-dev@incubator.apache.org > Sub

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
AIL PROTECTED] > Sent: Monday, April 30, 2007 12:29 PM > To: open-jpa-dev@incubator.apache.org > Subject: Re: How to debug object retrieveal in JPA? > > >> ca.BidSpec.emall.user.Person.pcsetPhoneNumbers(Person.java:727) > > > > I had read this and assumed th

Re: How to debug object retrieveal in JPA?

2007-04-30 Thread Abe White
>> 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? That is

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
nal 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.ArrayL

Re: How to debug object retrieveal in JPA?

2007-04-30 Thread Abe White
> 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(

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
ubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > This is all I get: > > <0.9.7-incubating nonfatal general error> > org.apache.openjpa.persistence.PersistenceException: null > at > org.apache.openj

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
-Original Message- > From: Phill Moran [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 11:13 AM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Sure here it is and the sql it generates. BTW the SQL works as I can > exe

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 11:13 AM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Sure here it is and the sql it generates. BTW the SQL works > as I can execute it in MySQL query browser and get the r

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
om: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: April 30, 2007 2:01 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? Odd indeed. Can you post your named query definition? -Patrick -- Patrick Linskey BEA Systems, Inc. __

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
return this by email and then delete it. > -Original Message- > From: Phill Moran [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 10:55 AM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Hard to pull this li

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
clears. IF not I will have to package and send along Phill -Original Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: April 30, 2007 1:45 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? Odd. Any chance of packaging it up and

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
immediately return this by email and then delete it. > -Original Message- > From: Phill Moran [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 10:37 AM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > I upgra

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
ll Moran [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 7:28 AM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Anyone have any more suggestions on how to debug this? > > -Original Message- > From: Phil

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 7:28 AM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Anyone have any more suggestions on how to debug this? > > -Original Message- > From: Phill Moran [mailto:[EMAIL

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
Anyone have any more suggestions on how to debug this? -Original Message- From: Phill Moran [mailto:[EMAIL PROTECTED] Sent: April 26, 2007 11:20 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? I don't close it in anyway dir

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
I don't close it in anyway directly -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: April 26, 2007 11:16 PM To: open-jpa-dev@incubator.apache.org Subject: Re: How to debug object retrieveal in JPA? Can it be that there is a glue code that closes EM in be

Re: How to debug object retrieveal in JPA?

2007-04-26 Thread Marina Vatkina
Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: April 26, 2007 9:59 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.Locale.toLowerCase(Locale.java:1060) at

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? > Caused by: java.lang.NullPointerException > at java.util.Locale.toLowerCase(Locale.java:1060) > at java.util.Locale.convertOldISOCodes(Locale.java:1083) > at java.util.Locale.(Locale.java:272

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
in error, please immediately return this by email and then delete it. > -Original Message- > From: Phill Moran [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 26, 2007 6:32 PM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA?

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
va:828) ... 64 more -Original Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: April 26, 2007 5:40 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? > Can you post what you get if you do '((Exception) > results.get(0)

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
il and then delete it. > -Original Message- > From: Phill Moran [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 26, 2007 2:36 PM > To: open-jpa-dev@incubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Can't cast List to Exception > > -

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
Can't cast List to Exception -Original Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: April 26, 2007 5:00 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? So you're saying that the ResultList contains an Exceptio

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
ubator.apache.org > Subject: RE: How to debug object retrieveal in JPA? > > Some more information on this exception > > Right after the execution the exception held inside the > result is "com.sun.jdi.InvocationException occurred invoking > method..." Can'

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
en-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? > What is interesting is the line with a "1" (from > System.out.println(results.size())). What this represents is the > message that the "result list is closed" nothing else in the trace. &g

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
list has been closed" -Original Message- From: Phill Moran [mailto:[EMAIL PROTECTED] Sent: April 26, 2007 4:18 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? I did not mean it threw an NPE but I was left with a null result list. I have

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
after test execution > > What is interesting is the line with a "1" (from > System.out.println(results.size())). What this represents is > the message that the "result list is closed" nothing else in > the trace. > > So what causes the result list to be c

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
hommeaux Sent: April 26, 2007 3:54 PM To: open-jpa-dev@incubator.apache.org Subject: Re: How to debug object retrieveal in JPA? Phill- The maximum verbosity of logging is obtained by specifying the "openjpa.Log" property to "DefaultLevel=TRACE". What is the full exception s

Re: How to debug object retrieveal in JPA?

2007-04-26 Thread Marc Prud'hommeaux
Phill- The maximum verbosity of logging is obtained by specifying the "openjpa.Log" property to "DefaultLevel=TRACE". What is the full exception stack trace? We might be able to help identify the problem. In any case OpenJPA should never be throwing an NPE, so we should at least probably

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
Could you post the full NPE? Is results null, or is the NPE coming from within OpenJPA somewhere? OpenJPA shouldn't be returning a null collection in any situation, I don't think. One way to fish for causes of suspicious problems is to set the default log level to TRACE: This will generate tons