Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codenvy> help -> Error executing command: java.lang.NullPointerException #101

Closed
paulvi opened this issue Oct 31, 2014 · 7 comments
Closed

Comments

@paulvi
Copy link
Contributor

paulvi commented Oct 31, 2014

when trying cli from master within Eclipse TCF Terminal

E:\Codenvy\cli>codenvy-cli
                                  _
                                 | |
         _           ___ ___   __| | ___ _ ____   ___   _
 {    ('   )    }   / __/ _ \ / _` |/ _ \ '_ \ \ / / | | |
{{  ('       )  }} | (_| (_) | (_| |  __/ | | \ V /| |_| |
 { (__,__,__,_) }   \___\___/ \__,_|\___|_| |_|\_/  \__, |
                                                     __/ |
                                                    |___/

  Codenvy CLI (2.2.0-SNAPSHOT)
  http://www.codenvy.com

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'exit' to exit Codenvy CLI

codenvy>
codenvy>
exit    help
codenvy>
exit    help
codenvy>
exit    help
codenvy> help
Error executing command: java.lang.NullPointerException
codenvy> ^C
codenvy>
@paulvi
Copy link
Contributor Author

paulvi commented Oct 31, 2014

cli-tcf-error

@benoitf
Copy link
Contributor

benoitf commented Oct 31, 2014

Hi,
Could you enable stack trace in your console please ?

codenvy> stack-traces-print
Printing of stacktraces set to true

and then reproduce your step please ?

@paulvi
Copy link
Contributor Author

paulvi commented Nov 3, 2014

similar to #102

stack-traces-print also gives NullPointerException

E:\Codenvy\cli>codenvy-cli
                                  _
                                 | |
         _           ___ ___   __| | ___ _ ____   ___   _
 {    ('   )    }   / __/ _ \ / _` |/ _ \ '_ \ \ / / | | |
{{  ('       )  }} | (_| (_) | (_| |  __/ | | \ V /| |_| |
 { (__,__,__,_) }   \___\___/ \__,_|\___|_| |_|\_/  \__, |
                                                     __/ |
                                                    |___/

  Codenvy CLI (2.2.0-SNAPSHOT)
  http://www.codenvy.com

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'exit' to exit Codenvy CLI

codenvy> ERROR: Bundle com.codenvy.cli.command [63] Error starting mvn:com.codenvy.cli/cli-command/2.2.0-SNAPSHOT (org.osg
ommand [63]: Unable to resolve 63.0: missing requirement [63.0] osgi.wiring.package; (&(osgi.wiring.package=com.codenvy.cl
ve 64.0: missing requirement [64.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7))])
org.osgi.framework.BundleException: Unresolved constraint in bundle com.codenvy.cli.command [63]: Unable to resolve 63.0:
envy.cli.preferences)(version>=2.2.0)(!(version>=3.0.0))) [caused by: Unable to resolve 64.0: missing requirement [64.0] o
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Thread.java:745)
ERROR: Bundle com.codenvy.cli.preferences-impl [64] Error starting mvn:com.codenvy.cli/cli-preferences-impl/2.2.0-SNAPSHOT
nvy.cli.preferences-impl [64]: Unable to resolve 64.0: missing requirement [64.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7)
org.osgi.framework.BundleException: Unresolved constraint in bundle com.codenvy.cli.preferences-impl [64]: Unable to resol
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Thread.java:745)

codenvy>
codenvy> stack-traces-print
Error executing command: java.lang.NullPointerException
codenvy> help
Error executing command: java.lang.NullPointerException
codenvy>


@benoitf
Copy link
Contributor

benoitf commented Nov 3, 2014

Could you print the Java version that you're using ?

@paulvi
Copy link
Contributor Author

paulvi commented Nov 4, 2014

E:\Codenvy\cli>java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

@benoitf
Copy link
Contributor

benoitf commented Nov 4, 2014

Thanks Paul

FYI the master branch is now including Karaf version 3.0.2 which is now compliant to JDK 8

Could you try to use cli on the master branch please ?
If you don't want to recompile you may use binaries from Nexus repository:
http://maven.codenvycorp.com/content/repositories/public/com/codenvy/cli/cli-assembly/2.2.0-SNAPSHOT/

@paulvi
Copy link
Contributor Author

paulvi commented Nov 5, 2014

similar to #103 was Java 8 issue

@paulvi paulvi closed this as completed Nov 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants