problem with remote classloading

Andreas Unterkircher <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Hello,
I'm using SF 3.06.000_rc1. I wrote a component extending EventPrimImpl. It 
sends an event to some other component and this works fine when I place 
the jar containing the component into $SFHOME/lib. The LogLevel=2 output 
on the sender side is:

EventSender starting to send an object 
ch.cern.openlab.smartfrog.pbs.PBSnodeAdd
2005/06/22 17:25:10:402 CEST [DEBUG][RMI TCP Connection(2)-137.138.38.90] 
HOST oplapro34.cern.ch:rootProcess:pbsNodeEventSender - HOST 
oplapro34.cern.ch:rootProcess:pbsNodeEventSender:send sending 
ch.cern.openlab.smartfrog.pbs.PBSnodeAdd@53fcc0a2 to 
ch.cern.openlab.smartfrog.pbs.PBSserverWatcher_Stub[RemoteStub [ref: 
[endpoint:[137.138.38.90:39682](remote),objID:[6345e044:104a4a66844:-8000, 
4]]]]

Now I want to get the jar from a web server instead of copying it into 
$SFHOME/lib. I enable SFDYNAMICCLASSLOADING_ON. Deploying the component 
works, i.e. it gets the class from the jar on the web server (I removed 
the jar in $SFHOME/lib) but sendEvent no longer works. The log output is:

EventSender starting to send an object 
ch.cern.openlab.smartfrog.pbs.PBSnodeAdd
2005/06/22 17:22:29:313 CEST [ERROR][RMI TCP Connection(2)-137.138.38.90] 
HOST oplapro34.cern.ch:rootProcess:pbsNodeEventSender - Failed to send 
event: ch.cern.openlab.smartfrog.pbs.PBSnodeAdd@35f03691[class 
ch.cern.openlab.smartfrog.pbs.PBSnodeAdd], cause: null 
<java.lang.NullPointerException>

What could be the problem ? I don't know why sendEvent no longer works 
with remote class loading. Thanks !

Best regards,
Andreas



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.