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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -