Skip to main content

problem with socket example

1 reply [Last post]
chabernac
Offline
Joined: 2010-01-22

Hello,

I tried to run the socket example from the tutorial but keep getting a timeout.
Someone knows what can be the cause of this problem?

Gr,

INFO: Creating InputPipe for urn:jxta:uuid-59616261646162614E5047205032503357AA73ADECC84BFCB5A883AE868D870A04 of type JxtaUnicast with listener
22-jan-2010 17:32:33 net.jxta.impl.endpoint.router.RouteControl addRoute
WARNING: Failed to connect to address :jxta://uuid-59616261646162614E50472050325033FA798F17442942718E4FF1809A95FA4F03
22-jan-2010 17:32:33 net.jxta.impl.resolver.ResolverServiceImpl sendMessage
WARNING: Failed to add route for urn:jxta:uuid-59616261646162614E50472050325033FA798F17442942718E4FF1809A95FA4F03
java.net.SocketTimeoutException: Connection (resolution) timeout
Run #2
Connecting to the server
at net.jxta.socket.JxtaSocket.connect(JxtaSocket.java:661)
at net.jxta.socket.JxtaSocket.(JxtaSocket.java:484)
at chabernac.p2pmesenger.SocketClient.run(SocketClient.java:127)
at chabernac.p2pmesenger.SocketClient.main(SocketClient.java:204)
22-jan-2010 17:32:35 net.jxta.impl.pipe.InputPipeImpl
INFO: Creating InputPipe for urn:jxta:uuid-59616261646162614E50472050325033B1D8F01647C144598135C5BA674B881704 of type JxtaUnicast with listener
22-jan-2010 17:32:36 net.jxta.impl.resolver.ResolverServiceImpl$FailureListener messageSendFailed
WARNING: Clearing SRDI tables for failed peer : urn:jxta:uuid-59616261646162614E50472050325033FA798F17442942718E4FF1809A95FA4F03

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chabernac
Offline
Joined: 2010-01-22

Hi guys,

I finally found a solution to this problem.
The jvm had no internet connectivity. After specifying the proxy server, port, username and passwd things started to work. I added the following parameters when starting server and client:

-Dhttp.proxyHost=[proxyHost] Dhttp.proxyPort=[proxyPort] Djxta.proxy.user=[proxyUser] Djxta.proxy.password=[proxyPassword]

Hope this can help someone else too.
Gr,
Guy.