Unable to upgrade Fabric containers after adding containers to the ensemble
Issue
- java.lang.NullPointerException occurs when trying to upgrade Fabric containers which are part of an ensemble
- The following error might be seen in the log
2013-03-20 08:07:33,240 | INFO | l Console Thread | Console | ? ? | 15 - org.apache.karaf.shell.console - 2.3.0.fuse-71-047 | Exception caught while executing command
java.lang.RuntimeException: java.lang.NullPointerException
at org.fusesource.fabric.internal.ContainerImpl.setVersion(ContainerImpl.java:194)[56:org.fusesource.fabric.fabric-core:7.1.0.fuse-047]
at org.fusesource.fabric.commands.ContainerUpgrade.doExecute(ContainerUpgrade.java:89)[252:org.fusesource.fabric.fabric-commands:7.1.0.fuse-047]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:171)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]
Caused by: java.lang.NullPointerException
at org.fusesource.fabric.internal.ProfileImpl.configurationEquals(ProfileImpl.java:467)[56:org.fusesource.fabric.fabric-core:7.1.0.fuse-047]
at org.fusesource.fabric.internal.ContainerImpl.requiresUpgrade(ContainerImpl.java:635)[56:org.fusesource.fabric.fabric-core:7.1.0.fuse-047]
at org.fusesource.fabric.internal.ContainerImpl.setVersion(ContainerImpl.java:185)[56:org.fusesource.fabric.fabric-core:7.1.0.fuse-047]
... 12 more
-
This occurs in the following scenario:
-
Fabric is created on sever one
- A new profile version is created: 2.0
- Server two is joined to the fabric
- A child container is created on server two
- The server two container and server two child containers are added to the ensemble
- All containers are attempted to be upgraded to the version 2.0 profiles
- The null pointer occurs
Environment
- Fuse ESB Enterprise 7.1
- Fabric
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
