Hello Rob, I'm have little knowledge about Karaf, but I would like to reproduce your issue. Do you have somewhere a feature containing the dm declaration that I could try to install ? (I have installed karaf 4.0.8).
now I have some questions: - do you have some resolution errors in logs during startup ? (can you provide full logs during startup) - also, are you able to run some other gogo commands (are you only having the issue with the dm shell command) ? Now, can you also try the latest dm version (org.apache.felix.dependencymanager:4.3.0 and org.apache.felix.dependencymanager.shell:4.0.4) ? let me know; cheers; /Pierre On Tue, Jan 10, 2017 at 11:29 AM, Rod Allen <[email protected]> wrote: > Hi All, > > I posted a question on stackoverflow here :- > > http://stackoverflow.com/questions/41551076/dependency- > manager-commands-not-working-after-upgrading-servicemix-from-5-4-0-to > > Wondering if anyone who reads this mailing list can help though? I put the > detail in the post above but it relates to the dm wtf command 'no longer > working' when configured in a similar way in Servicemix 6.1.2 > > the key config section I used for my replication was to add this to a > features xml file :- > > <feature name="example-feature" version="X.X.X"> > > <bundle>mvn:org.apache.felix/org.apache.felix.metatype/1.0.10</bundle> > > <bundle>mvn:org.apache.felix/org.apache.felix.dependencymanager/3.2.0</ > bundle> > > <bundle>mvn:org.apache.felix/org.apache.felix. > dependencymanager.shell/3.2.0</bundle> > </feature> > > where x.x.x was the version of other features in the same config (I added > to an existing one to save time). The error I get when typing dm wtf is :- > > karaf@root>dm wtf > Error executing command: Cannot coerce dm(String) to any of > [(CommandSession, boolean, String, boolean, boolean, boolean, String, > String, String, String)] > > The error in the log has this > 2017-01-09 16:51:29,627 | ERROR | l for user karaf | > ShellUtil | 27 - org.apache.karaf.shell.console - > 3.0.7 | Exception caught while executing command > java.lang.IllegalArgumentException: Cannot coerce dm() to any of > [(CommandSession, boolean, String, boolean, boolean, boolean, String, > String, String, String)] > at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective. > java:178) > at > org.apache.felix.gogo.runtime.CommandProxy.execute( > CommandProxy.java:82)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure. > java:480)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.executeStatement( > Closure.java:406)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27: > org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java: > 182)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java: > 119)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.CommandSessionImpl.execute( > CommandSessionImpl.java:94) > at > org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl. > java:210) > at > org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run( > LocalConsoleManager.java:109) > at java.security.AccessController.doPrivileged(Native > Method)[:1.7.0_79] > at > org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper. > java:57)[28:org.apache.karaf.jaas.modules:3.0.7] > at > org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run( > LocalConsoleManager.java:102)[27:org.apache.karaf.shell.console:3.0.7] > 2017-01-09 16:51:33,179 | ERROR | l for user karaf | > ShellUtil | 27 - org.apache.karaf.shell.console - > 3.0.7 | Exception caught while executing command > java.lang.IllegalArgumentException: Cannot coerce dm(String) to any of > [(CommandSession, boolean, String, boolean, boolean, boolean, String, > String, String, String)] > at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective. > java:178) > at > org.apache.felix.gogo.runtime.CommandProxy.execute( > CommandProxy.java:82)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure. > java:480)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.executeStatement( > Closure.java:406)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27: > org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java: > 182)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java: > 119)[27:org.apache.karaf.shell.console:3.0.7] > at > org.apache.felix.gogo.runtime.CommandSessionImpl.execute( > CommandSessionImpl.java:94) > at > org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl. > java:210) > at > org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run( > LocalConsoleManager.java:109) > at java.security.AccessController.doPrivileged(Native > Method)[:1.7.0_79] > at > org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper. > java:57)[28:org.apache.karaf.jaas.modules:3.0.7] > at > org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run( > LocalConsoleManager.java:102)[27:org.apache.karaf.shell.console:3.0.7] > > Any thoughts please folks? > > Regards > > Rod >

