You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Achim Nierbeck (JIRA)" <ji...@apache.org> on 2013/11/12 07:24:17 UTC

[jira] [Commented] (KARAF-2562) When running karaf under Java 1.8, once the console comes up to the shell, any command cause a NullPointException

    [ https://issues.apache.org/jira/browse/KARAF-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819872#comment-13819872 ] 

Achim Nierbeck commented on KARAF-2562:
---------------------------------------

This is a followup-issue, the main issue is the fact that ASM 4.1 used by Karaf doesn't work with Java 8. 

> When running karaf under Java 1.8, once the console comes up to the shell, any command cause a NullPointException
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-2562
>                 URL: https://issues.apache.org/jira/browse/KARAF-2562
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0.RC1
>         Environment: ARM / Linux
>            Reporter: Steven Whyte
>             Fix For: 3.1.0
>
>
> When trying to execute a shell command, get a  _Error executing command: java.lang.NullPointerException_ . 
> In the logs the following error is thrown:
> {code:title=NullPointerException}
> 2000-01-02 06:17:54,869 | ERROR | Local user karaf | ShellUtil                        | 40 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command
> java.lang.NullPointerException
> 	at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:484)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:192)
> 	at java.lang.Thread.run(Thread.java:724)[:1.8.0-ea]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:109)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:100)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0-ea]
> 	at javax.security.auth.Subject.doAs(Subject.java:360)[:1.8.0-ea]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:98)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)