Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12838

Hibernate feature is broken on karaf distribution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.6-GA
    • fuse-7.6-ER2
    • Karaf
    • % %
      • Fuse on Karaf 7.6.0.fuse-760014-redhat-00001
      • feature:install hibernate
      • feature:install hibernate

      Fuse 7.6 on Karaf distribution has got a broken Hibernate feature. When I install it for the first time I receive some patch-management log information and Invalid BundleContext error.

      The first attempt, it looks like hibernate is installed but does not work:

      karaf@root()> feature:install hibernate
      INFO : org.jboss.fuse.modules.patch.patch-management (2): Configuring patch management system
      INFO : org.jboss.fuse.modules.patch.patch-management (2): No user changes detected
      org.ops4j.pax.url.wrap [org.ops4j.pax.url.commons.handler.HandlerActivator] DEBUG : Handler for protocols [wrap] started
      karaf@root()> org.apache.karaf.deployer.features [org.apache.karaf.deployer.features.osgi.Activator] ERROR : Invalid BundleContext.
      java.lang.IllegalStateException: Invalid BundleContext.
      	at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
      	at org.apache.felix.framework.BundleContextImpl.addBundleListener(BundleContextImpl.java:211)
      	at org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:89)
      	at org.apache.karaf.deployer.features.osgi.Activator$DeploymentFinishedListener.deploymentEvent(Activator.java:86)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.callListeners(FeaturesServiceImpl.java:321)
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1067)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      The second attempt of feature installation completely broke running Karaf instance and throw error GC overhead limit exceeded.

      karaf@root()> feature:install hibernate
      java.lang.OutOfMemoryError: GC overhead limit exceeded
      	at org.apache.felix.resolver.util.CandidateSelector.copy(CandidateSelector.java:45)
      	at org.apache.felix.resolver.util.OpenHashMapList.deepClone(OpenHashMapList.java:39)
      	at org.apache.felix.resolver.Candidates.copy(Candidates.java:1143)
      	at org.apache.felix.resolver.Candidates.permutate(Candidates.java:1196)
      	at org.apache.felix.resolver.ResolverImpl$ResolveSession.permutateIfNeeded(ResolverImpl.java:136)
      	at org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1451)
      	at org.apache.felix.resolver.ResolverImpl.checkConsistency(ResolverImpl.java:579)
      	at org.apache.felix.resolver.ResolverImpl.findValidCandidates(ResolverImpl.java:532)
      	at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:395)
      	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377)
      	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:331)
      	at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:478)
      	at org.apache.felix.framework.Felix.resolveBundles(Felix.java:4108)
      	at org.apache.felix.framework.FrameworkWiringImpl.resolveBundles(FrameworkWiringImpl.java:133)
      	at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.resolveBundles(BundleInstallSupportImpl.java:244)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveBundles(FeaturesServiceImpl.java:1168)
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1022)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl$$Lambda$508/792962570.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

              ggrzybek Grzegorz Grzybek
              tturek@redhat.com Tomas Turek
              Tomas Turek Tomas Turek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: