执行命令时出错:在servicemix中卸载软件包时会话

时间:2014-10-15 20:11:57

标签: java apache-servicemix

以下是我运行 list |时获得的捆绑包列表 Servicemix

中的grep -i context
[  86] [Active     ] [            ] [       ] [   30] Spring Context (3.2.4.RELEASE)
[  87] [Active     ] [            ] [       ] [   30] Spring Context Support (3.2.4.RELEASE)
[ 288] [Installed  ] [            ] [       ] [   30] Apache ServiceMix :: Bundles :: spring-context (4.0.5.RELEASE_1)
[ 289] [Installed  ] [            ] [       ] [   30] Apache ServiceMix :: Bundles :: spring-context-support (4.0.5.RELEASE_1)
[ 371] [Installed  ] [            ] [       ] [   80] Spring Context (3.0.3.RELEASE)
[ 372] [Installed  ] [            ] [       ] [   80] Spring Context Support (3.0.3.RELEASE)

我可以看到相同依赖项有多个版本。所以我想先卸载前4并保留最后的2.每当我尝试停止或卸载前4个中的任何一个时,我会得到错误执行命令:session

任何见解? 非常感谢。

命令我跑了,输出::

smx@root> stop 86
Error executing command: session

完整的堆栈跟踪::

2014-10-15 13:21:35,032 | ERROR | Thread-90        | Console                          | ?                                     ? | 15 - org.apache.karaf.shell.console - 2.3.7 | Exception caught while executing command
java.lang.NoSuchFieldError: session
at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:43)
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)    [15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)   [15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[     15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)  [15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)  [15:org.apache.karaf.shell.console:2.3.7]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) [15:org.apache.karaf.shell.console:2.3.7]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:184) [15:org.apache.karaf.shell.console:2.3.7]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:144) [37:org.apache.karaf.shell.ssh:2.3.7]
at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:135)
at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_65]
at javax.security.auth.Subject.doAs(Subject.java:356)[:1.7.0_65]

0 个答案:

没有答案