Hi all,

I was getting the following exception on equinox startup (equinox 
3.5.0.v20090520 launched using a jsmooth exe wrapper and pax-runner), following 
which the framework would exit.
After looking at a few other posts talking about similar problems, it seems to 
happen when launching in a way that doesn't provide a standard in stream.  The 
workaround is to disable the console by omitting the -console option (or 
--org.ops4j.pax.runner.platform.console=false with pax-runner).

This exception wasn't causing the error (it's being caught and printed at 
FrameworkConsole.java:276), which means that something is breaking further down 
the line, causing the framework to close.

Is this expected behaviour, or is this a bug in equinox?  If expected 
behaviour, a warning message at the very least would be nice.

Other reports of the same problem:
http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04730.html
http://markmail.org/message/5cfm6gnabeemajcb

The stack trace:
java.io.IOException: The handle is invalid
      at java.io.FileInputStream.readBytes(Native Method)
      at java.io.FileInputStream.read(Unknown Source)
      at java.io.BufferedInputStream.read1(Unknown Source)
      at java.io.BufferedInputStream.read(Unknown Source)
      at java.io.FilterInputStream.read(Unknown Source)
      at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
      at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
      at sun.nio.cs.StreamDecoder.read(Unknown Source)
      at java.io.InputStreamReader.read(Unknown Source)
      at java.io.BufferedReader.fill(Unknown Source)
      at java.io.BufferedReader.readLine(Unknown Source)
      at java.io.BufferedReader.readLine(Unknown Source)
      at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:276)
      at 
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
      at java.lang.Thread.run(Unknown Source)

-Sam.

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to