[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-use
Subject:    Re: [Grinder-use] Exception in ServerReceiver
From:       "Di Wu" <Di.Wu () netent ! com>
Date:       2009-07-02 12:59:47
Message-ID: 78DD389C2574C947AD8B34B9D043309E02DCF56A () ex01 ! netentertainment ! com
[Download RAW message or body]

I replaced gcj with sun JVM. Now it works fine. Thank you, vivin and
Phil.

/Di

-----Original Message-----
From: Philip Aston [mailto:philip.aston@oracle.com] 
Sent: Thursday, July 02, 2009 9:16 AM
To: grinder-use
Subject: Re: [Grinder-use] Exception in ServerReceiver

Sounds likely - gcj isn't the best for compatibility. You could also
install the Sun JVM through the Ubuntu package manager and use
update-java-alternatives.

- Phil

vivin wrote:
> Hello Di,
>
> I had this same issue about two days ago. I spent the whole day trying
to
> figure it out. I was running a console on one ubuntu machine and
agents on
> that machine and three others. I would always get the ServerReceiver
> exception when transferring files. Then all the agents would
disconnect form
> the console, and wouldn't reconnect. I had to restart all agents and
> consoles. I tried to to run the console on a separate machine and I
realize
> that it wouldn't even start there! I got some sort of exception in
swing. So
> I checked to see what was different in the environment between the two
> machines (i.e., the first one where the console worked fine vs. the
second
> one where it didn't).
>
> It turned out to be an issue with the JRE/JDK. Do NOT use Ubuntu's
JDK/JRE
> that you get with the package manager (IceTea or whatever it's
called). I
> replaced the JDK on the other 3 machines (the first one was already
running
> Java 1.6) with Java 1.6 that I downloaded from java.sun.com.
Everything
> started working perfectly after that.
>
> Vivin
>
>
> Di Wu wrote:
>   
>> Hi,
>>
>>  
>>
>> I ran a console in my local machine (Windows) and agents on a remote
>> machine (Ubuntu). 
>>
>>  
>>
>> It worked well until I installed Jython 2.2.1 on Ubuntu, (because I
was
>> not able to import socket and random). Then, I saw an exception
during
>> transferring scripts to agents. It happens everytime.
>>
>>  
>>
>> ---------------------------------------------------------
>>
>> Exception in thread "ServerReceiver (7010, [AGENT connection type,
>> CONSOLE_CLIENT connection type, WORKER connection type]) thread 1"
>> java.lang.NullPointerException
>>
>>  
>>
>>         at java.util.regex.Pattern.readObject(Unknown Source)
>>
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
>>
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
>>
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>
>>         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
>>
>>         at java.io.ObjectInputStream.readSerialData(Unknown Source)
>>
>>         at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readObject0(Unknown Source)
>>
>>         at java.io.ObjectInputStream.defaultReadFields(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readSerialData(Unknown Source)
>>
>>         at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readObject0(Unknown Source)
>>
>>         at java.io.ObjectInputStream.defaultReadFields(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readSerialData(Unknown Source)
>>
>>         at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readObject0(Unknown Source)
>>
>>         at java.io.ObjectInputStream.defaultReadFields(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readSerialData(Unknown Source)
>>
>>         at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)
>>
>>         at java.io.ObjectInputStream.readObject0(Unknown Source)
>>
>>         at java.io.ObjectInputStream.readObject(Unknown Source)
>>
>>         at
>>
net.grinder.communication.ServerReceiver$ServerReceiverRunnable.interrup
>> tibleRun(ServerReceiver.java:263)
>>
>>         at
>>
net.grinder.util.thread.InterruptibleRunnableAdapter.run(InterruptibleRu
>> nnableAdapter.java:59)
>>
>>         at java.lang.Thread.run(Unknown Source)
>>
>> ------------------------------------------------
>>
>>  
>>
>> I guess it has something to do with Jython. So I uninstalled Jython,
but
>> it still gets the exception.
>>
>>  
>>
>> Please help me figure out what is the problem. Thanks!
>>
>>  
>>
>> Regards,
>>
>> Di
>>
>>  
>>
>>
>>
------------------------------------------------------------------------
------
>>
>> _______________________________________________
>> grinder-use mailing list
>> grinder-use@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>>     



------------------------------------------------------------------------
------
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use

------------------------------------------------------------------------------
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic