|
Description
Michael OBrien
Created attachment 177233 [details]
EAR (with JSF managed-bean element) that reproduces NPE exception when application.xml module order is war first
Created attachment 177234 [details]
EAR Eclipse Project Source (3) (with JSF managed-bean element) that reproduces NPE exception when application.xml module order is war first
Created attachment 177253 [details] New DescriptorException specifically for "_persistence_*_vh" weaved methods that would have thrown a secondary NPE >New DescriptorException specifically for "_persistence_*_vh" weaved methods that would have thrown a secondary NPE Exception [EclipseLink-218] (Eclipse Persistence Services - 2.2.0.qualifier): org.eclipse.persistence.exceptions.DescriptorException Exception Description: A NullPointerException would have occurred accessing a non-existent weaved method [_persistence_get_right_vh] for the mapping [org.eclipse.persistence.mappings.OneToOneMapping[right]]. The class was not weaved properly - check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any module that uses it. at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:471) >post patch to eclipselink-dev for review http://dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg04791.html >Note: the secondary NPE on missing _vh_ weaved functions in bug # 322679 will show this change after checkin
Created attachment 177431 [details]
New 218 DescriptorException specifically for "_persistence_*_vh" weaved methods that would have thrown a secondary NPE
Created attachment 177469 [details]
Remove override of MethodAttributeAccessor function so there is no redirect of SDOMethodAttributAccessor for SDO
>See checkin of new 218 exception patch https://fisheye2.atlassian.com/changelog/eclipselink/?cs=8081 >See JPA fix that fixes SDO temporary redirection of SDOMethodAttributeAccessor.getGetMethodReturnType() to superclass https://fisheye2.atlassian.com/changelog/eclipselink/?cs=8085 >retest 8085 on WebLogic with a broken JSF ear in web/ejb order - OK (expected exception on deploy)
Exception Description: A NullPointerException would have occurred accessing a non-existent weaved _vh_ method [_persistence_get_right_vh]. The class was not weaved properly - for EE deployments, check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any other module that uses it.
- reversing the application.xml order failed to print the exception on deploy - as expected, where JSF was initialized fine in this case
25-Aug-2010 4:04:34 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_09-20081212-SNAPSHOT) for context '/enterprise_jsf'
>See rev# 8081, 8085 for new 218 DescriptorException
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |