You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Chao Wang <ch...@ericsson.com> on 2012/03/01 03:44:59 UTC
Can GoGo shell start with felix without telnet port?
Hi,
When I run java -Dfelix.config.properties=file:/home/asuser/nodes/1/felix/mpe/config/config.properties -jar ./lib/org.apache.felix.main-4.0.2.jar & with gogo shell defined in config.properties.
I meet
g! java.io.IOException: Unknown error 512
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:199)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at org.apache.felix.gogo.runtime.threadio.ThreadInputStream.read(ThreadInputStream.java:77)
at org.apache.felix.gogo.shell.Console.getLine(Console.java:117)
at org.apache.felix.gogo.shell.Console.run(Console.java:53)
at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
at java.lang.Thread.run(Thread.java:662)
gosh: stopping framework
Can anyone help?
Re: Can GoGo shell start with felix without telnet port?
Posted by "Richard S. Hall" <he...@ungoverned.org>.
I'm assuming that Gogo is trying to read from stdin and since you are
starting it in the background, then it cannot do so. To avoid starting
an interactive Gogo shell session, start the framework like this:
java -Dgosh.args=--nointeractive bin/felix.jar
-> richard
On 2/29/12 21:44 , Chao Wang wrote:
> Hi,
> When I run java -Dfelix.config.properties=file:/home/asuser/nodes/1/felix/mpe/config/config.properties -jar ./lib/org.apache.felix.main-4.0.2.jar& with gogo shell defined in config.properties.
> I meet
> g! java.io.IOException: Unknown error 512
> at java.io.FileInputStream.readBytes(Native Method)
> at java.io.FileInputStream.read(FileInputStream.java:199)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at org.apache.felix.gogo.runtime.threadio.ThreadInputStream.read(ThreadInputStream.java:77)
> at org.apache.felix.gogo.shell.Console.getLine(Console.java:117)
> at org.apache.felix.gogo.shell.Console.run(Console.java:53)
> at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
> at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
> at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
> at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
> at java.lang.Thread.run(Thread.java:662)
> gosh: stopping framework
>
>
> Can anyone help?
>
>