openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpalache <>
Subject Re: NullPointerException in pcReplaceField
Date Wed, 27 May 2009 17:22:16 GMT

Hi Mike,

The openJPA test case for
can be found under one of my previous posts :

You can also download directly from:

The above test case can not replicate nullpointer exception but will nullify
the state manager on 
evicting the embedded object.

Regarding the test case for nullpointer Exception, I have a JDO sample for
In the JDO sample I can clearly replicate the nullpointer.
Modified the same test case to use JPA specific api's.
Doing so is resulting in a hung process rather than a nullpointer.

Please let me know if you want this test case also.

If you have openJPA specific testcase, that can result in nullpointer, then
please upload it.


Michael Dick wrote:
> Hi Ravi and Udi
> This is interesting, the issue referenced mentions JDOHelper (not part of
> OpenJPA) and Kodo 4.4. I wouldn't have been sure it applied to OpenJPA.
> Do either of you have a testcase that reproduces the issue without JDO?
> -mike
> On Wed, May 27, 2009 at 8:13 AM, Ravi Palacherla
> <
>> wrote:
>> Sorry, I do not have a proper resolution for this.
>> The following JIRA was already opened for this:
>> It is currently unassigned.
>> I think the cause of the issue is, if you have multithreaded environment
>> and when transactions begin and end, all
>> references to embedded objects become invalid. Reacquiring the reference
>> from owning persistent object is the
>> only workaround that I know of.
>> Regards,
>> Ravi.
>> -----Original Message-----
>> From: Udi []
>> Sent: Wednesday, May 27, 2009 6:27 AM
>> To:
>> Subject: RE: NullPointerException in pcReplaceField
>> Hey Ravi,
>> Thanks for the comment. "Tree" is indeed an embedded object...
>> What did you do with this exception?
>> --
>> View this message in context:
>> Sent from the OpenJPA Users mailing list archive at

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message