java - Karaf: Command Not Found Exception -
i trying execute karaf commands in java : executing list
command works fine when try run command stop 123
(bundle id) code :
futuretask< string > commandfuture = new futuretask< string >( new callable< string >() { public string call() { try { // import : import org.apache.karaf.shell.api.console.session; // import org.apache.karaf.shell.api.console.sessionfactory; session.execute( command ); thread.sleep( 1000 ); } catch ( exception e ) { e.printstacktrace( system.err ); } `
exception:
org.apache.felix.gogo.runtime.commandnotfoundexception: command not found: bundle:stop @ org.apache.karaf.shell.impl.console.osgi.secured.securedsessionfactoryimpl.checksecurity(securedsessionfactoryimpl.java:116) @ org.apache.karaf.shell.impl.console.osgi.secured.securedcommand.execute(securedcommand.java:66) @ org.apache.karaf.shell.impl.console.osgi.secured.securedcommand.execute(securedcommand.java:87) @ org.apache.felix.gogo.runtime.closure.executecmd(closure.java:480) @ org.apache.felix.gogo.runtime.closure.executestatement(closure.java:406) @ org.apache.felix.gogo.runtime.pipe.run(pipe.java:108) @ org.apache.felix.gogo.runtime.closure.execute(closure.java:182) @ org.apache.felix.gogo.runtime.closure.execute(closure.java:119) @ org.apache.felix.gogo.runtime.commandsessionimpl.execute(commandsessionimpl.java:94)
any ??
Comments
Post a Comment