Unable to apply patch on Fuse
Issue
- In our system test environment I attempted to install Rollup 2 and Rollup 2 Patch 1 .
The install into the system test environment appears to have failed and generated many zero length jar files in /var/opt/jboss-fuse/data/maven.
Now I can not apply the patch again as I get an IOException.
I have rolled back to the previous fabric version, but cannot now roll forward to the patched version as I can't install it.
I do not want to rebuild the whole fabric environment, what I can do now?
java.lang.RuntimeException: Unable to apply patch
at io.fabric8.service.PatchServiceImpl.applyPatch(PatchServiceImpl.java:143)
at io.fabric8.commands.PatchApply.doExecute(PatchApply.java:62)
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.felix.gogo.runtime:0.11.0.redhat-610379]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)
at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:158)[49:org.apache.karaf.shell.ssh:2.3.0.redhat-610379]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:149)
at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_65]
at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[27:org.apache.karaf.jaas.modules:2.3.0.redhat-610379]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:147)[49:org.apache.karaf.shell.ssh:2.3.0.redhat-610379]
Caused by: java.lang.NullPointerException
at io.fabric8.service.PatchServiceImpl.applyPatch(PatchServiceImpl.java:65)
[svcmktfusetst@test maven]$ pwd
/var/opt/jboss-fuse/data/maven
[svcmktfusetst@test maven]$ du -sh *
5.0M agent
18M proxy
[svcmktfusetst@test maven]$
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-agent-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-agent-1.0.0.redhat-424.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-agent-commands-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-autoscale-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-boot-commands-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-camel-autotest-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-commands-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-docker-api-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-dosgi-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-features-service-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-git-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-git-1.0.0.redhat-424.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-git-hawtio-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-groups-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-hadoop-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-redirect-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-web-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-zookeeper-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-zookeeper-1.0.0.redhat-424.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 fabric-zookeeper-commands-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 gateway-fabric-support-1.0.0.redhat-423.jar
-rw-r--r--. 1 svcmktfusetst mktjbossfuse 0 Mar 19 10:42 mq-fabric-camel-6.1.1.redhat-423.jar
Environment
- Red Hat JBoss Fuse 6.1.0
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.
