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 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 directly

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
] 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 PROTECTED] Sent: April 26, 2007 11:20 PM

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
:[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 PROTECTED] Sent: April 26, 2007

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
if it 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

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 little piece (of a much larger

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
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. ___ Notice: This email message

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
:[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 record back I am after. Does

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
: How to debug object retrieveal in JPA? Can you post the current full exception + any nested exceptions and their nested exceptions and their nested exceptions and so on? I think that that data is already in this thread, but I just want to confirm that things are still the same as they were

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
) ... 64 more -Original Message- From: Patrick Linskey [mailto:[EMAIL PROTECTED] Sent: April 30, 2007 2:41 PM To: open-jpa-dev@incubator.apache.org Subject: RE: How to debug object retrieveal in JPA? Can you post the current full exception + any nested exceptions and their nested

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

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
: 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

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 the

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
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 that it was an OpenJPA-generated method, but if so, there shouldn't be a line number

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: Abe White [mailto:[EMAIL 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

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 stack traces under OpenJPA

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

RE: How to debug object retrieveal in JPA?

2007-04-30 Thread Phill Moran
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 it knows that all fields have been set to their Java default values. [That's why we

Re: How to debug object retrieveal in JPA?

2007-04-30 Thread Patrick Linskey
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 it knows that all

How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
Community, How does one go about debugging object retrieval/creation. I continue to have exceptions and little to go on as far as the cause. The named JPQL is good since I know it generates a good sql (can trace code and see it) . I know the sql is good as I can copy/paste it into mysql query

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
recipient, and have received this message 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 12:39 PM To: open-jpa-dev@incubator.apache.org Subject: How to debug object

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 fix

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
:[EMAIL PROTECTED] On Behalf Of Marc Prud'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

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
received this message 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 1:18 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
-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 setup trace already and I

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? 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 closed? I don't

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
: 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't seem to get more data out of it Once the system.out is executed

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 Exception? Can you

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
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 -Original Message- From: Patrick Linskey [mailto:[EMAIL

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Phill Moran
) ... 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)).printStackTrace

RE: How to debug object retrieveal in JPA?

2007-04-26 Thread Patrick Linskey
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? Run that config gives us this lovely message: 0|false

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.init(Locale.java:272

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 between