Issue Details (XML | Word | Printable)

Key: GLASSFISH-13879
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mitesh Meswani
Reporter: techhusky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Using OpenJPA with Glassfish 3.0.1 issues LDR5206 during enhancement

Created: 08/Oct/10 07:58 AM   Updated: 09/Feb/13 03:36 AM   Resolved: 09/Feb/13 03:36 AM
Component/s: entity-persistence
Affects Version/s: v3.0.1
Fix Version/s: 4.0

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 13,879
Tags: 3_1-exclude
Participants: Mitesh Meswani and techhusky


 Description  « Hide

I originally reported this issue under
https://glassfish.dev.java.net/issues/show_bug.cgi?id=13111 due to the nature of
the exception, but it looks like it is the same symptom, different issue. A GF
developer indicated that the issue should be opened under this component.

When OpenJPA 2.0 is used with Glassfish 3.0.1, the warning + stack below[1]
shows up in the JPA entity byte-code enhancement phase - which takes place
during application deployment/startup. While it doesn't appear to affect the
runtime behavior of the app, the message is concerning. I'm not certain if
Glassfish is providing the incorrect loader or if OpenJPA is using a loader it
should not or ? I'll attach a simple netbeans project
(GF_Issue1311_NB_Project.zip) that can be used to demonstrate the issue. The
warning output is in the root of the zip in DeploymentWarning.txt. The
attachment is too large, so I've provided a link to the project zip[1]. You can
also get more information in JIRA OPENJPA-1774[2].

[1]
WARNING: LDR5206: ASURLClassLoader EarLibClassLoader :
doneCalled = true
doneSnapshot = ASURLClassLoader.done() called ON EarLibClassLoader :
urlSet = [URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-collections-3.2.1.jar,
URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-lang-2.1.jar,
URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/commons-pool-1.5.3.jar,
URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/geronimo-jpa_2.0_spec-1.0.jar,
URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/JPALibrary.jar,
URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/openjpa-2.0.0.jar,
URLEntry :
file:/C:/Users/Administrator/Documents/NetBeansProjects/JPAApplication/dist/gfdeploy/JPAApplication/lib/serp-1.13.1.jar]
doneCalled = false
Parent -> org.glassfish.internal.api.DelegatingClassLoader@ed4dd2d
AT Fri Aug 27 12:36:40 CDT 2010
BY :java.lang.Throwable: printStackTraceToString
at com.sun.enterprise.util.Print.printStackTraceToString(Print.java:634)
at
com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:170)
at
com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:153)
at
org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:96)
at
org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:212)
at
org.glassfish.deployment.common.DeploymentContextImpl.getClassLoader(DeploymentContextImpl.java:164)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:159)
at
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:211)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185)
at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
Parent -> org.glassfish.internal.api.DelegatingClassLoader@ed4dd2d
was requested to find resource test/model/Employee.class after done was invoked
from the following stack trace
java.lang.Throwable
at
com.sun.enterprise.loader.ASURLClassLoader.findResource(ASURLClassLoader.java:456)
at java.lang.ClassLoader.getResource(ClassLoader.java:1003)
at
org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:410)
at
org.apache.openjpa.lib.util.J2DoPrivHelper$13.run(J2DoPrivHelper.java:408)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getSourceFile(AnnotationPersistenceMetaDataParser.java:797)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.getMetaData(AnnotationPersistenceMetaDataParser.java:753)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parseClassAnnotations(AnnotationPersistenceMetaDataParser.java:546)
at
org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.parse(AnnotationPersistenceMetaDataParser.java:416)
at
org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:260)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:554)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:374)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:358)
at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:256)
at org.apache.openjpa.enhance.PCEnhancer.<init>(PCEnhancer.java:227)
at
org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:139)
at
org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:120)
at
org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:312)
at
org.glassfish.persistence.jpa.JPADeployer$ProviderContainerContractInfoImpl$1.transform(JPADeployer.java:202)
at
com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:672)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:693)
at
com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:150)
at
com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:144)
at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:99)
at
org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:207)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:197)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
at
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:362)
at
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:185)
at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)

[2]
https://docs.google.com/uc?id=0BwmtqFNOpQ7eYmNiNDMzMDUtZDY1Yi00YjkzLTg0NjEtMDdmY2JjZTY0Yzc0&export=download&authkey=CLyyu5sN&hl=en

[3] https://issues.apache.org/jira/browse/OPENJPA-1774



Mitesh Meswani added a comment - 08/Oct/10 07:27 PM

Targeting for MS07


Mitesh Meswani added a comment - 09/Feb/13 03:36 AM

Marking as fixed because corresponding OpenJPA issue is marked as fixed. Please reopen if that is not the case.