Skip to main content

P2P Sockets demo program --- gives error

1 reply [Last post]
spsarolkar
Offline
Joined: 2009-08-20
Points: 0

I am trying out p2p socket program
https://p2psockets.dev.java.net/docs/tutorials/2.html
But it is not able to find rendezvoud peer the output I get for http server is
F:\p2psockets>ant webserver-run -D--host=www.nike.laborpolicy -D--network=TestNetwork -D--port=80
Buildfile: build.xml

osfam:
[echo] windows

init:

build-src:

build-tests:

build-examples:

build:

core-jar:

jetty-ext-jar:

httpclient-ext-jar:

scache-ext-jar:

apache-xmlrpc-ext-jar:

ext-jar:

tests-jar:

examples-jar:

jar:

webserver-run:
[java] [Signing In] Using JXTA_HOME = f:\p2ps
ockets/test/serverpeer/.jxta
[java] No JXTA account exists; creating one f
or serverpeer...
[java] [Creating Account] JXTA_HOME =
f:\p2psockets/test/serverpeer/.jxta
[java] Deleting JXTA configuration dir
ectory at f:\p2psockets\test\serverpeer\.jxta...
[java] :146> JXTA_HOME = F:\p2psockets\test\s
erverpeer\.jxta
[java] f:\p2psockets\test\se
rverpeer\.jxta\PlatformConfig already exists
[java] jxta.properties reset
f:\p2psockets\test\serverpeer\.jxta\jxta.properties
[java] Log4J [user default
] requested, not adjusting logging priority
[java] Log4J [user default
] requested, not adjusting logging priority
[java] Waiting for RendezVous Conn
ection.
[java] Exception in thread "main" java.lang.RuntimeException: No RendezVous found for the peer group
NetPeerGroup
[java] at org.p2psockets.P2PNetwork.contactRendezVous(P2PNetwork.java:483)
[java] at org.p2psockets.P2PNetwork.createAccount(P2PNetwork.java:179)
[java] at org.p2psockets.P2PNetwork.createAccount(P2PNetwork.java:136)
[java] at org.p2psockets.P2PNetwork.signin(P2PNetwork.java:280)
[java] at org.p2psockets.P2PNetwork.signin(P2PNetwork.java:256)
[java] at ExampleP2PWebServer.main(ExampleP2PWebServer.java:37)
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 2 minutes 26 seconds

Output for client is
F:\p2psockets>ant httpclient-run -D--network=TestNetwork -D-- url=p2phttp://www.nike.laborpolicy/webapps/
examples/jsp/index.html
Buildfile: build.xml

osfam:
[echo] windows

init:

build-src:

build-tests:

build-examples:

build:

core-jar:

jetty-ext-jar:

httpclient-ext-jar:

scache-ext-jar:

apache-xmlrpc-ext-jar:

ext-jar:

tests-jar:

examples-jar:

jar:

httpclient-run:
[java] [Signing In] Using JXTA_HOME = f:\p2ps
ockets/test/clientpeer/.jxta
[java] :146> JXTA_HOME = F:\p2psockets\test\c
lientpeer\.jxta
[java] f:\p2psockets\test\cl
ientpeer\.jxta\PlatformConfig already exists
[java] f:\p2psockets\test\cl
ientpeer\.jxta\jxta.properties already exists
[java] Log4J [user default
] requested, not adjusting logging priority
[java] Log4J [user default
] requested, not adjusting logging priority
[java] Waiting for RendezVous Conn
ection.
[java] java.lang.RuntimeException: No RendezVous found for the peer group NetPeerGroup
[java] at org.p2psockets.P2PNetwork.contactRendezVous(P2PNetwork.java:483)
[java] at org.p2psockets.P2PNetwork.signin(P2PNetwork.java:311)
[java] at org.p2psockets.P2PNetwork.signin(P2PNetwork.java:229)
[java] at org.p2psockets.P2PNetwork.signin(P2PNetwork.java:212)
[java] at test.org.apache.commons.httpclient.P2PHttpClient.main(P2PHttpClient.java:97)
[java] Java Result: 1

BUILD FAILED
Target "p2phttp://www.nike.laborpolicy/webapps/examples/jsp/index.html" does not exist in the project "P2
PSockets".

Total time: 2 minutes 22 seconds

Can somebody tell me exact procedure to run this code ... When I started learning JXTA I had many dreams of creating applications on JXTA but without communicating over internet it is impossible.

The configuration I did is as stated
F:\p2psockets>echo %p2psockets_home%
f:\p2psockets

Are there any other configuration

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sakthisekaran11
Offline
Joined: 2010-01-11
Points: 0

hello i too got the same error...
if you got the output r some one replied you... pls say me...
my id is priyachandru_sekar@yahoo.co.in