Nexus doesn't startup on Linux with a "IOException: Stream Closed"

We've had a number of reports from the field of people downloading Nexus, installing the server, and then seeing the following exception on startup:

jvm 1 | 2012-03-15 11:44:21.972:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/nexus,file:/opt/download/nexus-2.0.2/nexus/},./nexus 
jvm 1 | Stream closed. 
jvm 1 | at


W've tracked this down to an incompatible JVM or JRE.   If you are using Debian you may be running the GNU Interpreter for Java (gij).   Nexus is not tested or qualified with this unsupported Java runtime.   If you are experiencing this error, Sonatype recommends that you obtain a JDK or JRE from Oracle.    If you are running on an Ubuntu or Debian distribution the current recommendation is to use Sun Java 1.6.

See, the Debian Java page for more information about installing the Sun Java 1.6 JDK or JRE.

Update: This error can occur if GCJ is used to run Nexus.  GCJ is  the default Java on many Redhat/CentOS systems.  Use Oracle or OpenJDK on these systems.

Have more questions? Submit a request


Article is closed for comments.