[
https://issues.apache.org/jira/browse/OPENJPA-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794891#action_12794891
]
Xiaoqin Feng commented on OPENJPA-1441:
---------------------------------------
I am on vacation from 12/20/2009 Â to 12/26/2009.
If you have any question on deployment and JEE bugs, please contact Saurabh
Arora or my manager Maruthi Nuthikattu.
For emergency, contact me at 925-209-5517.
> NPE when enhancing a Serializable, versioned class
> --------------------------------------------------
>
> Key: OPENJPA-1441
> URL: https://issues.apache.org/jira/browse/OPENJPA-1441
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.2.2, 1.3.0, 2.0.0-M4
> Reporter: Rick Curtis
> Assignee: Rick Curtis
> Fix For: 1.3.0, 2.0.0-M4
>
> Attachments: OPENJPA-1441.1.2.x.patch
>
>
> I'm unable to enhance a Serializable class that has a version field when I
> have the DetachState property set as follows:
> openjpa.DetachState=fgs(DetachedStateField=true).
> The exception I'm seeing is :
> -----
> null
> Exception in thread "main" <openjpa-2.0.0-SNAPSHOT-r422266:890859 nonfatal
> general error> org.apache.openjpa.util.GeneralException: An error occurred
> while enhancing
> com.test.acme.annuity.common.bean.jpa.AbstractPersistebleObject. Exception
> message: null
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:545)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4652)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4594)
> at main.EnhancerDriver.main(EnhancerDriver.java:19)
> Caused by: java.lang.NullPointerException
> at
> org.apache.openjpa.enhance.PCEnhancer.addGetManagedValueCode(PCEnhancer.java:4320)
> at
> org.apache.openjpa.enhance.PCEnhancer.addGetManagedValueCode(PCEnhancer.java:4278)
> at
> org.apache.openjpa.enhance.PCEnhancer.writeExternal(PCEnhancer.java:4266)
> at
> org.apache.openjpa.enhance.PCEnhancer.addWriteExternal(PCEnhancer.java:4203)
> at
> org.apache.openjpa.enhance.PCEnhancer.addDetachExternalize(PCEnhancer.java:3991)
> at
> org.apache.openjpa.enhance.PCEnhancer.addAttachDetachCode(PCEnhancer.java:3761)
> at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:532)
> ... 3 more
> -----
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.