Skip to main content

help! test the2.5rc tutorial.multicast

1 reply [Last post]
Joined: 2007-07-15

when i run JxtaMulticastSocketServer.i got the result as below:
2007-7-24 16:23:20 org.mortbay.http.HttpServer start
??: Starting Jetty/4.2.25
2007-7-24 16:23:20 org.mortbay.http.HttpContext start
??: Started HttpContext[/]
2007-7-24 16:23:20 org.mortbay.http.SocketListener start
??: Started SocketListener on
2007-7-24 16:23:20 org.mortbay.http.HttpServer start
??: Started org.mortbay.http.HttpServer@df8ff1
Creating JxtaMulticastSocket
Exception in thread "main" java.lang.NullPointerException
at net.jxta.socket.JxtaMulticastSocket.joinGroup(
at net.jxta.socket.JxtaMulticastSocket.(
at tutorial.multicast.JxtaMulticastSocketServer.main(

thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-07-19


i new to the jxta api so i am also currently learning and using the tutorial
i tried now the jxta multicast tutorial and i didn´t get the same output as you
i only recieve also a nullpointer exception from the multicast server !

As i can see in the tutorial the jxta neetpeergroup variable isnt init through the manager so the variable still holds a null pointer and cause the nullpointer exception.....maybee try to get a instance from the manger so that you can use the neetpeer group...