IBM J2SDK

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

IBM J2SDK

Aleksandar Kostadinov
Hallo.

I have an issue starting a hudson slave with

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux s390-31
j9vmxz3123-20070426 (JIT enabled)

I get an error:
Starting slave:
Exception in thread "main" java.io.StreamCorruptedException: invalid
stream header
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
        at hudson.remoting.Channel.<init>(Channel.java:170)
        at hudson.remoting.Channel.<init>(Channel.java:116)
        at hudson.remoting.Launcher.main(Launcher.java:30)
        at hudson.remoting.Launcher.main(Launcher.java:24)
%s slave agent was terminated

java.io.EOFException
        at
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at hudson.remoting.Channel$ReaderThread.run(Channel.java:434)

Any advice how can I make that work?

Thanks,
Aleksandar

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Starting slave (WAS: IBM J2SDK)

Aleksandar Kostadinov
Update:

Actually it seems not related to IBM JVM but something strange.

When I just start the slave there is no issue. But if I setup a run of
an rsync script before slave startup command, then slave startup fails.

I run the rsync script with something like:
<PATH>/main.sh $HOST &> /dev/null

If I manually run the script from terminal and immediately try starting
the slave (hudson doesn't execute the rsync) it starts.

Seems like startup error changes. Last I've got:

java.io.EOFException
        at
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at hudson.remoting.Channel$ReaderThread.run(Channel.java:434)
java.io.StreamCorruptedException: invalid stream header
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
        at hudson.remoting.Channel.<init>(Channel.java:170)
        at hudson.remoting.Channel.<init>(Channel.java:116)
        at hudson.remoting.Launcher.main(Launcher.java:30)
        at hudson.remoting.Launcher.main(Launcher.java:24)


Aleksandar Kostadinov wrote, On 10/26/2007 04:50 PM (EEST):

> Hallo.
>
> I have an issue starting a hudson slave with
>
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux s390-31
> j9vmxz3123-20070426 (JIT enabled)
>
> I get an error:
> Starting slave:
> Exception in thread "main" java.io.StreamCorruptedException: invalid
> stream header
> at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
> at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
> at hudson.remoting.Channel.<init>(Channel.java:170)
> at hudson.remoting.Channel.<init>(Channel.java:116)
> at hudson.remoting.Launcher.main(Launcher.java:30)
> at hudson.remoting.Launcher.main(Launcher.java:24)
> %s slave agent was terminated
>
> java.io.EOFException
> at
> java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
> at hudson.remoting.Channel$ReaderThread.run(Channel.java:434)
>
> Any advice how can I make that work?
>
> Thanks,
> Aleksandar
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Starting slave (WAS: IBM J2SDK)

Kohsuke Kawaguchi
Administrator

Does your main.sh contains just the rsync part, or does it also invoke
the slave agent?

Aleksandar Kostadinov wrote:

> Update:
>
> Actually it seems not related to IBM JVM but something strange.
>
> When I just start the slave there is no issue. But if I setup a run of
> an rsync script before slave startup command, then slave startup fails.
>
> I run the rsync script with something like:
> <PATH>/main.sh $HOST &> /dev/null
>
> If I manually run the script from terminal and immediately try starting
> the slave (hudson doesn't execute the rsync) it starts.
>
> Seems like startup error changes. Last I've got:
>
> java.io.EOFException
> at
> java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
> at hudson.remoting.Channel$ReaderThread.run(Channel.java:434)
> java.io.StreamCorruptedException: invalid stream header
> at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
> at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
> at hudson.remoting.Channel.<init>(Channel.java:170)
> at hudson.remoting.Channel.<init>(Channel.java:116)
> at hudson.remoting.Launcher.main(Launcher.java:30)
> at hudson.remoting.Launcher.main(Launcher.java:24)
>
>
> Aleksandar Kostadinov wrote, On 10/26/2007 04:50 PM (EEST):
>> Hallo.
>>
>> I have an issue starting a hudson slave with
>>
>> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux s390-31
>> j9vmxz3123-20070426 (JIT enabled)
>>
>> I get an error:
>> Starting slave:
>> Exception in thread "main" java.io.StreamCorruptedException: invalid
>> stream header
>> at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
>> at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
>> at hudson.remoting.Channel.<init>(Channel.java:170)
>> at hudson.remoting.Channel.<init>(Channel.java:116)
>> at hudson.remoting.Launcher.main(Launcher.java:30)
>> at hudson.remoting.Launcher.main(Launcher.java:24)
>> %s slave agent was terminated
>>
>> java.io.EOFException
>> at
>> java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
>> at hudson.remoting.Channel$ReaderThread.run(Channel.java:434)
>>
>> Any advice how can I make that work?
>>
>> Thanks,
>> Aleksandar
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment