RE: problem with remote classloading

"Guijarro, Julio" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <8D5B24B83C6A2E4B9E7EE5FA82627DC9C1A17B@sdcexcea01.emea.cpqcorp.net>
Hi Andreas,

I don't see any reason why this should be happening.

Could you enable "   org.smartfrog.logger.logStackTrace=true" in
default.ini so that we can see the stacktrace.?

For your message, I get that the null pointer is happening just before
the send() call. The only think I can think of is that one of the
elements of the debug statement is causing this null pointer exception.

In any case, the code in that method was a bit broken 
[EventPrimImpl. sendEvent ()] :

It should be :
                if (sfLog().isDebugEnabled()) { 
                    String infoStr = sfCompleteNameSafe().toString()+"
sending "+ event+" to "+s;
                    sfLog().debug(infoStr);   
                }

This bug is fixed in CVS and I have also improved the error messages.

Regards,

	Julio




> -----Original Message-----
> From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-
> developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Andreas
Unterkircher
> Sent: 22 June 2005 16:36
> To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [Smartfrog-developer] problem with remote classloading
> 
> 
> 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:-800
0,
> 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
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer


-------------------------------------------------------
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_idt77&alloc_id492&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.