Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: could not destruct listeners when undeploying hibernate app
PostPosted: Wed Apr 27, 2011 8:46 am 
Newbie

Joined: Wed Apr 27, 2011 8:39 am
Posts: 1
I've got a web application that uses Hibernate 3.6.0. I started to see an Exception when I undeployed my app after upgrading from GlassFish 3.0.1 to GlassFish 3.1. I've posted this question on the GlassFish forum, but I've got no replies after a month so I thought I'd see if anyone here has run into this. The exception is:

Quote:
INFO: closing
WARNING: Exception while dispatching an event
org.hibernate.HibernateException: could not destruct listeners
at org.hibernate.event.EventListeners.destroyListeners(EventListeners.java:226)
at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:970)
at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:127)
at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404)
at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:395)
at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.hibernate.event.EventListeners$2], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at org.hibernate.event.EventListeners.destroyListeners(EventListeners.java:215)
... 11 more


The topic on the GlassFish forum:

http://www.java.net/forum/topic/glassfish/glassfish/undeploy-exception-upgrading-glassfish-301-31


Top
 Profile  
 
 Post subject: could not destruct listeners when restarting hibernate app
PostPosted: Mon May 30, 2011 12:22 pm 
Newbie

Joined: Mon May 30, 2011 12:18 pm
Posts: 1
Hi.

I've got an EJB application that uses Hibernate 3.3.2. I started to see an Exception when I restared my app.

11/05/30 09:46:21 ADVERTENCIA: EJBContainer.unbindHomes Error unbind homeorg.hibernate.HibernateException: could not destruct listeners
at org.hibernate.event.EventListeners.destroyListeners(EventListeners.java:226)
at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:898)
at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:46)
at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.destroy(PersistenceUnitManagerImpl.java:123)
at com.evermind.server.ejb.EJBPackageDeployment.destroyPersistenceUnitManager(EJBPackageDeployment.java:767)
at com.evermind.server.ejb.EJBContainer.cleanupPersistenceManager(EJBContainer.java:1655)
at com.evermind.server.ejb.EJBContainer.unbindHomes(EJBContainer.java:1621)
at com.evermind.server.ejb.EJBContainer.destroyNonTimerObjects(EJBContainer.java:1134)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:166)
at com.evermind.server.Application.setConfig(Application.java:454)
at com.evermind.server.Application.setConfig(Application.java:348)
at com.evermind.server.Application.doStart(Application.java:2032)
at com.evermind.server.Application.start(Application.java:1965)
at oracle.oc4j.admin.management.mbeans.J2EEStateManageableObjectBase.start(J2EEStateManageableObjectBase.java:213)
at oracle.oc4j.admin.management.mbeans.J2EEApplication.start(J2EEApplication.java:1348)
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:592)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1073)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:954)
at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:700)
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 oracle.oc4j.admin.jmx.server.state.ApplicationStateFilterMBeanServer.invoke(ApplicationStateFilterMBeanServer.java:572)
at oracle.oc4j.admin.jmx.shared.UserMBeanServer.invoke(UserMBeanServer.java:634)
at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.invoke(LocalizationFilterMBeanServer.java:579)
at oracle.sysman.ias.studio.jmx.spi.JMXConnectorImpl.invoke(JMXConnectorImpl.java:389)
at oracle.sysman.ias.studio.oc4j.JMXAppAdminBean.startApp(JMXAppAdminBean.java:257)
at oracle.sysman.ias.studio.oc4j.AppHelper.startApplications(AppHelper.java:1384)
at oracle.sysman.ias.studio.oc4j.AppHelper.doStartAppOp(AppHelper.java:752)
at oracle.sysman.ias.studio.oc4j.AppHelper.access$400(AppHelper.java:116)
at oracle.sysman.ias.studio.oc4j.AppHelper$AppControlProcessingBean.appControlOperation(AppHelper.java:1623)
at oracle.sysman.ias.studio.oc4j.AppHelper$AppControlProcessingBean.doWork(AppHelper.java:1642)
at oracle.sysman.ias.studio.util.ProcessingBean$ProcessingThread.run(ProcessingBean.java:273)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalStateException: ClassLoader "vel_core_EAR.root:0.0.0" (de <application> in /C:/oas/j2ee/home/applications/vel_core_EAR/): Este cargador se ha cerrado y no debe estar en uso.
at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)
at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1994)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1659)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.hibernate.event.EventListeners.destroyListeners(EventListeners.java:215)
... 43 more

When the APP y redeployed the problem is gone.

Can any one help me please.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.