You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
in Apache Karaf, if I restart the "Aries JPA Container" bundle when BatooJPA's bundle is Active, I have the following error:
2013-10-11 11:07:04,912|ERROR|org.apache.karaf.shell.console |Console > Exception caught while executing command
org.apache.karaf.shell.console.MultiException: Error starting bundles:
Unable to start bundle 65: Activator start error in bundle org.apache.aries.jpa.container [65].
at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)
at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:43)[24:org.apache.karaf.shell.osgi:2.3.3]
at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)[24:org.apache.karaf.shell.osgi:2.3.3]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.3]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:173)[14:org.apache.karaf.shell.console:2.3.3]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
Caused by: java.lang.Exception: Unable to start bundle 65: Activator start error in bundle org.apache.aries.jpa.container [65].
at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:39)[24:org.apache.karaf.shell.osgi:2.3.3]
... 12 more
Caused by: org.osgi.framework.BundleException: Activator start error in bundle org.apache.aries.jpa.container [65].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:37)[24:org.apache.karaf.shell.osgi:2.3.3]
... 12 more
Caused by: javax.persistence.PersistenceException: Unable to build the entity manager factory for persistence unit: DATAPU_BATOO
at org.batoo.jpa.core.BatooPersistenceProvider.createContainerEntityManagerFactory(BatooPersistenceProvider.java:86)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.BatooPersistenceProvider.createContainerEntityManagerFactory(BatooPersistenceProvider.java:44)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.createEntityManagerFactories(EntityManagerFactoryManager.java:329)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.registerEntityManagerFactories(EntityManagerFactoryManager.java:242)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.bundleStateChange(EntityManagerFactoryManager.java:185)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.aries.jpa.container.impl.PersistenceBundleManager.setupManager(PersistenceBundleManager.java:394)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.aries.jpa.container.impl.PersistenceBundleManager.addingBundle(PersistenceBundleManager.java:154)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerAdding(BundleHookBundleTracker.java:487)[11:org.apache.aries.util:1.1.0]
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerAdding(BundleHookBundleTracker.java:433)[11:org.apache.aries.util:1.1.0]
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.trackAdding(BundleHookBundleTracker.java:749)[11:org.apache.aries.util:1.1.0]
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.trackInitial(BundleHookBundleTracker.java:674)[11:org.apache.aries.util:1.1.0]
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker.open(BundleHookBundleTracker.java:159)[11:org.apache.aries.util:1.1.0]
at org.apache.aries.util.tracker.RecursiveBundleTracker.open(RecursiveBundleTracker.java:106)[11:org.apache.aries.util:1.1.0]
at org.apache.aries.jpa.container.impl.PersistenceBundleManager.open(PersistenceBundleManager.java:134)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.aries.jpa.container.impl.PersistenceBundleManager.start(PersistenceBundleManager.java:624)[65:org.apache.aries.jpa.container:1.0.0]
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)[org.apache.felix.framework-4.0.3.jar:]
... 16 more
Caused by: java.lang.RuntimeException: Cannot enhance class: class com.github.lburgazzoli.examples.karaf.jpa.batoo.data.Item
at org.batoo.jpa.core.impl.model.EntityTypeImpl.enhance(EntityTypeImpl.java:254)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.impl.model.EntityTypeImpl.<init>(EntityTypeImpl.java:207)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.impl.model.MetamodelImpl.<init>(MetamodelImpl.java:227)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:153)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.BatooPersistenceProvider.createContainerEntityManagerFactory(BatooPersistenceProvider.java:72)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
... 32 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_40]
at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_40]
at org.batoo.jpa.core.impl.instance.Enhancer.loadClass(Enhancer.java:652)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.impl.instance.Enhancer.enhance0(Enhancer.java:528)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.impl.instance.Enhancer.enhance(Enhancer.java:522)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
at org.batoo.jpa.core.impl.model.EntityTypeImpl.enhance(EntityTypeImpl.java:245)[95:org.batoo.jpa.batoo-jpa:2.0.1.3-SNAPSHOT]
... 36 more
Caused by: java.lang.LinkageError: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5): attempted duplicate class definition for name: "com/github/lburgazzoli/examples/karaf/jpa/batoo/data/Item$Enhanced"
at java.lang.ClassLoader.defineClass1(Native Method)[:1.7.0_40]
at java.lang.ClassLoader.defineClass(ClassLoader.java:792)[:1.7.0_40]
at java.lang.ClassLoader.defineClass(ClassLoader.java:635)[:1.7.0_40]
... 44 more
The text was updated successfully, but these errors were encountered:
Hi,
in Apache Karaf, if I restart the "Aries JPA Container" bundle when BatooJPA's bundle is Active, I have the following error:
The text was updated successfully, but these errors were encountered: