-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: jboss-fuse-6.2.1
-
Fix Version/s: jboss-fuse-6.3
-
Component/s: Patching
-
Labels:None
-
Environment:
jboss fuse 6.2.1 build 078
-
Sprint:6.3 Sprint 3 (Feb 29 - Mar 25)
1. unzip fuse 6.2 GA
2. unzip new patch management 078 to $FUSE_HOME
3. start bin/fuse
4. install bundle that doesn't resolve 100% correctly
JBossFuse:karaf@root> osgi:install -s mvn:org.python/jython/2.7.0
|
RROR: Bundle org.apache.camel.camel-script [231] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory)
|
java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory
|
at java.lang.ClassLoader.defineClass1(Native Method)
|
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
|
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2318)
|
|
|
|
|
JBossFuse:karaf@root> osgi:list -l
|
...
|
[ 265] [Active ] [ ] [ ] [ 80] mvn:org.python/jython/2.7.0
|
....
|
5. install new patching mechanism and patch
JBossFuse:karaf@root> features:removeurl --uninstall-all mvn:io.fabric8.patch/patch-features/1.2.0.redhat-133/xml/features
|
ERROR: Bundle org.apache.camel.camel-script [231] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory)
|
java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory
|
at java.lang.ClassLoader.defineClass1(Native Method)
|
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
|
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2318)
|
...
|
|
|
JBossFuse:karaf@root> features:addurl mvn:io.fabric8.patch/patch-features/1.2.0.redhat-621078/xml/features
|
|
|
JBossFuse:karaf@root> features:install patch
|
|
|
JBossFuse:karaf@root> patch:add file:/home/jludvice/apps/fuse/jboss-fuse-full-6.2.1.redhat-078.zip
|
[name] [installed] [description]
|
jboss-fuse-full-6.2.1.redhat-078 false jboss-fuse-full-6.2.1.redhat-078
|
|
|
JBossFuse:karaf@root> patch:install jboss-fuse-full-6.2.1.redhat-078
|
java.lang.NullPointerException
|
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
|
at java.util.regex.Matcher.reset(Matcher.java:309)
|
at java.util.regex.Matcher.<init>(Matcher.java:229)
|
at java.util.regex.Pattern.matcher(Pattern.java:1093)
|
at io.fabric8.patch.management.Utils.stripSymbolicName(Utils.java:434)
|
at io.fabric8.patch.impl.OSGiPatchHelper.getCoreBundles(OSGiPatchHelper.java:73)
|
at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:393)
|
at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:344)
|
at io.fabric8.patch.commands.InstallAction.doExecute(InstallAction.java:63)
|
at io.fabric8.patch.commands.PatchActionSupport.doExecute(PatchActionSupport.java:41)
|
at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
|
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
at java.lang.reflect.Method.invoke(Method.java:497)
|
at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
|
at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
|
at io.fabric8.patch.commands.$Install274817420.execute(Unknown Source)
|
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
|
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
|
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
|
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
|
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
|
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
|
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
|
at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)
|
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)
|
Error executing command: io.fabric8.patch.management.PatchException
|
6. see NullPointerException in karaf shell and logs
2015-11-20 11:15:40,516 | ERROR | l Console Thread | Console | ? ? | 34 - org.apache.karaf.shell.console - 2.4.0.redhat-620133 | Exception caught while executing command
|
io.fabric8.patch.management.PatchException
|
at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:562)
|
at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:344)
|
at io.fabric8.patch.commands.InstallAction.doExecute(InstallAction.java:63)
|
at io.fabric8.patch.commands.PatchActionSupport.doExecute(PatchActionSupport.java:41)
|
at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
|
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_65]
|
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_65]
|
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_65]
|
at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_65]
|
at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[18:org.apache.aries.proxy.impl:1.0.4]
|
at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[18:org.apache.aries.proxy.impl:1.0.4]
|
at io.fabric8.patch.commands.$Install274817420.execute(Unknown Source)[268:io.fabric8.patch.patch-commands:1.2.0.redhat-621078]
|
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
|
Caused by: java.lang.NullPointerException
|
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)[:1.8.0_65]
|
at java.util.regex.Matcher.reset(Matcher.java:309)[:1.8.0_65]
|
at java.util.regex.Matcher.<init>(Matcher.java:229)[:1.8.0_65]
|
at java.util.regex.Pattern.matcher(Pattern.java:1093)[:1.8.0_65]
|
at io.fabric8.patch.management.Utils.stripSymbolicName(Utils.java:434)
|
at io.fabric8.patch.impl.OSGiPatchHelper.getCoreBundles(OSGiPatchHelper.java:73)
|
at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:393)
|
... 21 more
|
- is incorporated by
-
ENTESB-4276 [Patch mechanism] Reported bugs [QA]
-
- Closed
-