fabric:join fails when there is no container version 1.0
Issue
When trying to join a Fabric that has no version "1.0" with fabric:join, this fails with a NullPointerException.
2018-01-02 14:35:30,838 | WARN | admin-1-thread-1 | FabricConfigAdminBridge | 173 - io.fabric8.fabric-configadmin - 1.2.0.redhat-630310 | No profile data yet so cannot update!
2018-01-02 14:35:30,841 | WARN | store-2-thread-1 | ZkDataStoreImpl | 170 - io.fabric8.fabric-core - 1.2.0.redhat-630310 | Caught: java.lang.NullPointerException
java.lang.NullPointerException
at io.fabric8.internal.ContainerImpl.getContainerProfile(ContainerImpl.java:764)[170:io.fabric8.fabric-core:1.2.0.redhat-630310]
at io.fabric8.internal.ContainerImpl.getOverlayProfile(ContainerImpl.java:306)[170:io.fabric8.fabric-core:1.2.0.redhat-630310]
at io.fabric8.features.FabricFeaturesServiceImpl.listInstalledRepositories(FabricFeaturesServiceImpl.java:396)[178:io.fabric8.fabric-features-service:1.2.0.redhat-630310]
at io.fabric8.features.FabricFeaturesServiceImpl.run(FabricFeaturesServiceImpl.java:116)[178:io.fabric8.fabric-features-service:1.2.0.redhat-630310]
at io.fabric8.service.ZkDataStoreImpl.doRunCallbacks(ZkDataStoreImpl.java:259)[170:io.fabric8.fabric-core:1.2.0.redhat-630310]
at io.fabric8.service.ZkDataStoreImpl.access$100(ZkDataStoreImpl.java:103)[170:io.fabric8.fabric-core:1.2.0.redhat-630310]
at io.fabric8.service.ZkDataStoreImpl$1.run(ZkDataStoreImpl.java:247)[170:io.fabric8.fabric-core:1.2.0.redhat-630310]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_151]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_151]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_151]
2018-01-02 14:35:30,846 | WARN | admin-1-thread-1 | FabricConfigAdminBridge | 173 - io.fabric8.fabric-configadmin - 1.2.0.redhat-630310 | No profile data yet so cannot update!
Is there any way to set the version to use with fabric:join?
Environment
- JBoss Fuse 6.3
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.
