Pierre De Rop created FELIX-5382:
------------------------------------

             Summary: NPE when starting gogo shell using jline
                 Key: FELIX-5382
                 URL: https://issues.apache.org/jira/browse/FELIX-5382
             Project: Felix
          Issue Type: Bug
          Components: Gogo Shell
            Reporter: Pierre De Rop
            Priority: Minor


While validating gogo release 1.0.0, I'm observing the following NPE (but it 
does not perturbate):

{code}
java -jar bin/felix.jar 
gogo: NullPointerException: null
gogo: NullPointerException: null
java.lang.NullPointerException
        at java.util.Objects.requireNonNull(Objects.java:203)
        at org.jline.reader.impl.LineReaderImpl.<init>(LineReaderImpl.java:262)
        at org.jline.reader.LineReaderBuilder.build(LineReaderBuilder.java:90)
        at org.apache.felix.gogo.jline.Shell.gosh(Shell.java:297)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:136)
        at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:548)
        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:474)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:363)
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:227)
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
____________________________
Welcome to Apache Felix Gogo
{code}

I'm using the following bundles:

{code}
    0|Active     |    0|System Bundle (5.6.0)|5.6.0
    1|Active     |    1|JLine (3.0.0)|3.0.0
    2|Active     |    1|Apache Felix Bundle Repository (2.0.8)|2.0.8
    3|Active     |    1|Apache Felix Gogo Command (1.0.0)|1.0.0
    4|Active     |    1|Apache Felix Gogo JLine Shell (1.0.0)|1.0.0
    5|Active     |    1|Apache Felix Gogo Runtime (1.0.0)|1.0.0
    6|Active     |    1|Apache Felix Gogo Shell (1.0.0)|1.0.0
{code}

Tested on Fedora code 21, with GNU bash, version 4.3.42(1)-release 
(x86_64-redhat-linux-gnu), and with oracle jvm version:

java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to