Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink in Glassfish, roundup


Try setting logging to finest and see if
anything odd is occurring.

Nothing particularily odd.
I get CONFIG-level messages stating that "Class yatayata.DocumentList could not weaved for change tracking as not supported by its mappings.", even with "persistence.tools.weaving.changetracking" set to "false" in persistence.xml, but that's about the oddest thing to happen. (There is no such warning for DocumentListSorting, btw, which is one of the offending Entities -- that makes sense to me, as all relationships are LAZY there.)

It could have something to do with the
weaving of change tracking, so you could try turning weaving off in your
persistence.xml and see if the issue still occurs.

Setting "persistence.tools.weaving" to false seems to have no effect? At least the "registered to be processed by weaver" messages stay.
Tests still fail.

By the way, does the same application work with TopLink Essentials, or do
you get issues as well?

No, the application runs perfectly well on Essentials. (It's a rather large application developed for and tested with Glassfish/Essentials).

Before you look into this: I'd like to do some more research to check if really /all/ LAZY relationships show up empty or if there are dependencies. I have a vague feeling that the problem occurrs more frequently in transactions that have already done a lot of data modification. (I double-checked the scaffolding and it's ok, and, as said, all is well with EAGER or when deploying on Essentials, but perhaps Essentials is more forgiving and the code is indeed doing something it shouldn't be doing.)

I'll update you when I know more.

Thanks for the quick response -- the M4 stack trace is attached. I'll go fire up the debugger now and find out more about the LAZY thing...

rv



---



#|2008-02-07T16:42:13.505+0100|WARNING|sun-appserver9.1| javax.enterprise.system.core.classloading| _ThreadID = 21 ;_ThreadName =Thread-29;_RequestID=fe9b7e59-34f3-473c-9789-6104f3bc0b33;|Exception [EclipseLink-28018] (Eclipse Persistence Services - 1.0 (Build M4 - 20080206)): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [ormpersistence] failed.
Internal Exception: java.lang.UnsupportedOperationException
javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 1.0 (Build M4 - 20080206)): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [ormpersistence] failed.
Internal Exception: java.lang.UnsupportedOperationException
at org .eclipse .persistence .internal .jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:806) at org .eclipse .persistence .jpa .PersistenceProvider .createContainerEntityManagerFactory(PersistenceProvider.java:155) at com .sun .enterprise .server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java: 149) at com .sun .enterprise .server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java: 84) at com .sun .enterprise .server.AbstractLoader.loadPersistenceUnits(AbstractLoader.java:898) at com .sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java: 184) at com .sun .enterprise .server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126) at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java: 244) at com .sun .enterprise .server.ApplicationManager.applicationDeployed(ApplicationManager.java: 336) at com .sun .enterprise .server.ApplicationManager.applicationDeployed(ApplicationManager.java: 210) at com .sun .enterprise .server.ApplicationManager.applicationDeployed(ApplicationManager.java: 645) at com .sun .enterprise .admin .event .AdminEventMulticaster .invokeApplicationDeployEventListener(AdminEventMulticaster.java:928) at com .sun .enterprise .admin .event .AdminEventMulticaster .handleApplicationDeployEvent(AdminEventMulticaster.java:912) at com .sun .enterprise .admin .event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java: 461) at com .sun .enterprise .admin .event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java: 176) at com .sun .enterprise .admin .server .core .DeploymentNotificationHelper .multicastEvent(DeploymentNotificationHelper.java:308) at com .sun .enterprise .deployment .phasing .DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226) at com .sun .enterprise .deployment .phasing .ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298) at com .sun .enterprise .deployment .phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132) at com .sun .enterprise .deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java: 108) at com .sun .enterprise .deployment .phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com .sun .enterprise .deployment.phasing.PEDeploymentService.start(PEDeploymentService.java: 591) at com .sun .enterprise .deployment.phasing.PEDeploymentService.start(PEDeploymentService.java: 635) at com .sun .enterprise .admin .mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25)
	at java.lang.reflect.Method.invoke(Method.java:585)
at com .sun .enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java: 375) at com .sun .enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java: 358) at com .sun .enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java: 464) at com .sun .jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java: 213)
	at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com .sun .jmx .interceptor .DefaultMBeanServerInterceptor .invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java: 784)
	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25)
	at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java: 90)
	at $Proxy1.invoke(Unknown Source)
at com .sun .enterprise .admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java: 304) at com .sun .enterprise .interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174) at com .sun .enterprise .deployment .client .DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145) at com .sun.enterprise.deployment.client.DeployAction.run(DeployAction.java: 537)
	at java.lang.Thread.run(Thread.java:613)
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 1.0 (Build M4 - 20080206)): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [ormpersistence] failed.
Internal Exception: java.lang.UnsupportedOperationException
at org .eclipse .persistence .exceptions .EntityManagerSetupException .predeployFailed(EntityManagerSetupException.java:203)
	... 45 more
Caused by: java.lang.UnsupportedOperationException
at java.util.Collections $UnmodifiableCollection.addAll(Collections.java:1028) at org .eclipse .persistence .internal .jpa .metadata .MetadataProcessor.initPersistenceUnitClasses(MetadataProcessor.java: 196) at org .eclipse .persistence .internal .jpa .metadata .MetadataProcessor.processEntityMappings(MetadataProcessor.java:285) at org .eclipse .persistence .internal .jpa .deployment .PersistenceUnitProcessor .processORMetadata(PersistenceUnitProcessor.java:258) at org .eclipse .persistence .internal .jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:763)
	... 44 more
|#]


Back to the top