dev@glassfish.java.net

Re: deployment fails with "I/O Error: Cannot write output after reading input."

From: Amy Roh <amy.roh_at_oracle.com>
Date: Fri, 28 May 2010 12:21:13 -0700

You can easily reproduce it by deploying with --upload=true

bash-3.2$ glassfishv3/glassfish/bin/asadmin deploy --upload=true
/tests/hello.war
I/O Error: Cannot write output after reading input.
Command deploy failed.

Nothing in the server.log.

Marina Vatkina wrote:
> Hong,
>
> As you can see I have the same problem, and it seems to be connected
> to --upload=true. There are no stack traces anywhere, just the error.
>
> thanks,
> -marina
>
> Hong Zhang wrote:
>> Hi, Amy
>> I think the warning message of undeployment is just because the
>> deployment did not go through so there is nothing to undeploy.
>>
>> When you get the deployment error, anything in the stack trace?
>>
>> - Hong
>>
>> Amy Roh wrote:
>>> Also undeployment prints out "no version registered" SEVERE warning
>>> messages although it seems to go through.
>>>
>>> undeploy-war-common:
>>> [exec] asadmin --host localhost --port 46523 --user anonymous
>>> --passwordfile
>>> /files/hudson/workspace/webtier-dev-tests-v3/appserv-tests/config/adminpassword.txt
>>> --interactive=false --echo=true --terse=true undeploy --target
>>> server --keepreposdir=false --cascade=false --ignorecascade=false
>>> web-chunking-disabled-web
>>> [exec] remote failure: Application web-chunking-disabled-web has
>>> no version registered
>>> [exec]
>>> [exec] Result: 1
>>>
>>> Amy Roh wrote:
>>>> Many web devtests are failing with "I/O Error: Cannot write output
>>>> after reading input." on hudson. I can reproduce it after updating
>>>> my workspace this morning also. Any idea?
>>>>
>>>> deploy-war-commonpe:
>>>> [exec] asadmin --host localhost --port 46523 --user anonymous
>>>> --passwordfile
>>>> /files/hudson/workspace/webtier-dev-tests-v3/appserv-tests/config/adminpassword.txt
>>>> --interactive=false --echo=true --terse=true deploy --contextroot
>>>> /web-localName --force=false --precompilejsp=true --verify=false
>>>> --enabled=true --generatermistubs=false --availabilityenabled=false
>>>> --target server --keepreposdir=false --keepfailedstubs=false
>>>> --logreportederrors=true --upload=true
>>>> /files/hudson/workspace/webtier-dev-tests-v3/appserv-tests/build/module/archive/web-localName-web.war
>>>>
>>>> [exec] I/O Error: Cannot write output after reading input.
>>>> [exec] Result: 1
>>>>
>>>> Amy
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>