dev@glassfish.java.net

Re: broken pipe when running asadmin

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 02 Sep 2009 15:04:51 -0700

Bobby Bissett wrote on 09/02/09 14:05:
> Any ideas how I got myself stuck in this position?
>
> --- begin ---
> hostname% ps -ef | grep java
> 501 35518 245 0 0:00.00 ttys001 0:00.00 grep java
> hostname%
> hostname% asadmin start-domain domain1
>
> JVM failed to start: java.io.IOException: Broken pipe
> Command start-domain failed.
> --- end ---
>
> I was trying to start asadmin with Runtime.exec() inside upgrade tool
> and was hitting this, but I've exited all java processes and see it with
> the command line asadmin now as well. I can then run the server with
> "java -jar modules/ [etc]" but trying asadmin gives me the above error.
> This is new territory for me, so I'd appreciate any help.

What are you doing with the process's output streams after calling
Runtime.exec?