Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2536

HHH000231: Schema export unsuccessful when undeploying camel-jpa qs on karaf

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.1
    • Component/s: quickstarts
    • Labels:
      None

      Description

      Apparently hibernate.hbm2ddl.auto is not working well on karaf.

      2015-02-18 13:04:56,499 | ERROR | l Console Thread | SchemaExport                     | 134 - org.jboss.logging.jboss-logging - 3.1.4.GA | HHH000231: Schema export unsuccessful
      java.lang.IllegalStateException: Invalid BundleContext.
      	at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
      	at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:425)
      	at org.apache.aries.jndi.services.ServiceHelper.findService(ServiceHelper.java:375)
      	at org.apache.aries.jndi.services.ServiceHelper.access$500(ServiceHelper.java:66)
      	at org.apache.aries.jndi.services.ServiceHelper$JNDIServiceDamper.call(ServiceHelper.java:180)
      	at Proxyf928064b_5d59_4732_a7d5_19c5b2487b9e.getConnection(Unknown Source)
      	at org.apache.aries.jpa.container.unit.impl.DelayedLookupDataSource.getConnection(DelayedLookupDataSource.java:36)
      	at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:70)
      	at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
      	at org.hibernate.tool.hbm2ddl.DatabaseExporter.<init>(DatabaseExporter.java:52)
      	at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:367)
      	at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:318)
      	at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:314)
      	at org.hibernate.internal.SessionFactoryImpl.close(SessionFactoryImpl.java:1401)
      	at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:208)
      	at org.apache.aries.jpa.container.impl.CountingEntityManagerFactory.close(CountingEntityManagerFactory.java:68)
      	at org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.destroyEntityManagerFactories(EntityManagerFactoryManager.java:400)
      	at org.apache.aries.jpa.container.impl.EntityManagerFactoryManager.bundleStateChange(EntityManagerFactoryManager.java:199)
      	at org.apache.aries.jpa.container.impl.PersistenceBundleManager.modifiedBundle(PersistenceBundleManager.java:300)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1127)
      	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4429)
      	at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2695)
      	at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1043)
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:1076)
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.uninstallFeature(FeaturesServiceImpl.java:1025)
      	at org.apache.karaf.features.command.UninstallFeatureCommand.doExecute(UninstallFeatureCommand.java:58)
      	at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_75]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_75]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_75]
      	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_75]
      	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[11:org.apache.aries.proxy.impl:1.0.3]
      	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[11:org.apache.aries.proxy.impl:1.0.3]
      	at org.apache.karaf.shell.console.commands.$BlueprintCommand104207118.execute(Unknown Source)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[17:org.apache.karaf.shell.console:2.4.0]
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:196)[17:org.apache.karaf.shell.console:2.4.0]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_75]
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mageshbk Magesh Bojan
                Reporter:
                igarashitm tomohisa igarashi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: