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

Error updating from 6.2.0 to 6.2.1: Could not initialize class org.eclipse.jgit.transport.Transport

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.2
    • Patching
    • None
    • % %
    • Hide

      Followed the upgrade steps from 6.2.0 to 6.2.1 in a Fuse Environment with insight-* profiles assigned to root container.

      Show
      Followed the upgrade steps from 6.2.0 to 6.2.1 in a Fuse Environment with insight-* profiles assigned to root container.

      Instructions followed: https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.2.1/html/Migration_Guide/ESBMigrationPatching-Fabric.html#ESBMigrationPatching-Fabric-BaselineSSH

      I found a error upgrading Fuse 6.2.0 to Fuse 6.2.1 when my root container has included the following profiles:

      • insight-console
      • insight-elasticsearch.node

      When I executed the command (rh6fuse01 is the root container and child-01-gateway is the child container):

      fabric:container-upgrade 1.1 rh6fuse01 child-01-gateway
      

      Then the process will not work and then in fuse.log file I found the next stacktrace:

      2015-12-22 11:29:48,646 | INFO  | loyer-3-thread-1 | patch-management                 | 311 - io.fabric8.patch.patch-management - 1.2.0.redhat-621084 | Configuring patch management system
      2015-12-22 11:29:48,650 | ERROR | 1.1.1-1-thread-1 | DeploymentAgent                  | 81 - io.fabric8.fabric-agent - 1.2.0.redhat-621084 | Unable to update agent
      io.fabric8.common.util.MultiException: Error restarting bundles
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:960)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:366)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:199)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_85]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_85]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_85]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_85]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_85]
      Caused by: org.osgi.framework.BundleException: Activator start error in bundle io.fabric8.patch.patch-management [311].
      	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2204)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2072)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:]
      	at io.fabric8.agent.service.Agent$BaseDeployCallback.startBundle(Agent.java:482)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Deployer$3.call(Deployer.java:935)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	at io.fabric8.agent.service.Deployer$3.call(Deployer.java:930)[81:io.fabric8.fabric-agent:1.2.0.redhat-621084]
      	... 4 more
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.transport.Transport
      	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:120)
      	at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.ensurePatchManagementInitialized(GitPatchManagementServiceImpl.java:1621)
      	at io.fabric8.patch.management.impl.Activator.start(Activator.java:112)
      	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
      	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)
      	... 10 more
      

      Workaround: If I removed the insight-* profiles in root container and I repeat the process then the upgrade worked successfully.

            Unassigned Unassigned
            rmarting@redhat.com Roman Martin Gil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: