Skip to main content

help! test the2.5rc tutorial.multicast

1 reply [Last post]
jianglinji
Offline
Joined: 2007-07-14
Points: 0

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 0.0.0.0:9700
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(JxtaMulticastSocket.java:204)
at net.jxta.socket.JxtaMulticastSocket.(JxtaMulticastSocket.java:183)
at tutorial.multicast.JxtaMulticastSocketServer.main(JxtaMulticastSocketServer.java:123)

why?
thanks in advance.

Reply viewing options

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

Hi,

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...