Exception in ServerReceiver

View: Old framed views
5 Messages — Rating Filter:   Alert me  
Di Wu
Exception in ServerReceiver
Reply More
Rate this Message:
Print
Show in thread view
Show in list view (by date)
Permalink
Some parts of this message have been removed. Learn more about Nabble's security policy.

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.interruptibleRun(ServerReceiver.java:263)

        at net.grinder.util.thread.InterruptibleRunnableAdapter.run(InterruptibleRunnableAdapter.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@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Philip Aston-2
Re: Exception in ServerReceiver
Reply More
Rate this Message:
Print
Show in thread view
Show in list view (by date)
Permalink
I don't think this is to do with Jython 2.2.1. But perhaps the Jython
installation on Ubuntu installed some other Java package as a
dependency, and so changed your environment.

Double check the classpaths you are using on the two machines, they
should contain the same version of grinder.jar. Also check you are using
Java 1.4 or later.

- Phil

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.interruptibleRun(ServerReceiver.java:263)
>
>         at
> net.grinder.util.thread.InterruptibleRunnableAdapter.run(InterruptibleRunnableAdapter.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@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Vivin Paliath
Re: Exception in ServerReceiver
Reply More
Rate this Message:
Print
Show in thread view
Show in list view (by date)
Permalink
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
Philip Aston-3
Re: Exception in ServerReceiver
Reply More
Rate this Message:
Print
Show in thread view
Show in list view (by date)
Permalink
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@...
>> https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>>    



------------------------------------------------------------------------------
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
Di Wu
Re: Exception in ServerReceiver
Reply More
Rate this Message:
Print
Show in thread view
Show in list view (by date)
Permalink
I replaced gcj with sun JVM. Now it works fine. Thank you, vivin and
Phil.

/Di

-----Original Message-----
From: Philip Aston [mailto:philip.aston@...]
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@...
>> https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>>    



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

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