thanks tom, but i think the problem is that i am not running launch 
synchronously and thats why jenkins/hudson still thinks the channel is open 
and then tries to close it.

is there anyone out there that can point to an example that shows how to 
run launch synchronously?

thanks,

xterm

On Thursday, October 18, 2012 9:45:15 AM UTC-5, xterm wrote:
>
> i am a first time poster and first time plugin creator. i am trying to 
> create a plugin to revert an esx vm to a snapshot during the build step. I 
> have everything working up to the point where i commit the launch but when 
> i try and perform the 'setChannel' i get this:
>
> runtimeexception: java.io.EOFException: unexpected stream termination
>
> because of this line:
>
> vsSlave.setChannel(new BufferedInputStream(System.in), 
> new BufferedOutputStream(System.out), 
> listener.getLogger(), null);
>
> i guess i am not doing something right but i am not sure how to make it 
> right. the documentation says to run setChannel after launch to let 
> hudson/jenkins know of the etablished connection and to tie inputstream to 
> slave.jar but im not sure how to do this.  i believe that if i do this 
> correctly, the channel will be synced and i wont get the following error if 
> this line is not included.
>  
> if i dont include the setchannel in the code, i get another run time 
> exception: channelalreadyclosed exception.
>
> --xterm
>

Reply via email to