Skip to main content

WorkingWithLocalConfiguration: connected: false/ connection refused

1 reply [Last post]
puce
Offline
Joined: 2007-09-01

Hi,
I'm going through the tutorials.
I could run the HelloWorld tutorial successfully but the WorkingWithLocalConfiguration cannot connect:

Peer Group ID : urn:jxta:uuid-59616261646162614E504720503250338DEE56ED6EE144CF8AB2B03C863B5A0903
Waiting for a rendezvous connection for 25 seconds ? + ?(maximum)
16.08.2009 20:57:30 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.36:9701 / 192.18.37.36:9701
16.08.2009 20:57:30 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.36:9701/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAFB... : Connection refused
16.08.2009 20:57:30 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.36:9700/) -> failed
16.08.2009 20:57:30 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.36:9700/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAF... : Connection refused
16.08.2009 20:57:30 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.39:9701 / 192.18.37.39:9701
16.08.2009 20:57:30 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.39:9701/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAFB... : Connection refused
16.08.2009 20:57:30 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.39:9700/) -> failed
16.08.2009 20:57:30 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.39:9700/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAF... : Connection refused
16.08.2009 20:57:30 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.37:9701 / 192.18.37.37:9701
16.08.2009 20:57:31 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.37:9701/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAFB... : Connection refused
16.08.2009 20:57:31 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.37:9700/) -> failed
16.08.2009 20:57:31 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.37:9700/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAF... : Connection refused
16.08.2009 20:57:31 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.38:9701 / 192.18.37.38:9701
16.08.2009 20:57:31 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.38:9701/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAFB... : Connection refused
16.08.2009 20:57:31 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.38:9700/) -> failed
16.08.2009 20:57:31 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.38:9700/EndpointService:jxta-NetGroup/uuid-DEADBEEFDEAF... : Connection refused
16.08.2009 20:57:31 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.38:9701 / 192.18.37.38:9701
16.08.2009 20:57:31 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.37:9701 / 192.18.37.37:9701
16.08.2009 20:57:31 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.36:9701 / 192.18.37.36:9701
16.08.2009 20:57:32 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.38:9701 : Connection refused
16.08.2009 20:57:32 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.36:9701 : Connection refused
16.08.2009 20:57:32 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A78746150325033D7BD36C8A3064300B4DEDA0153B43A9203
16.08.2009 20:57:32 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A787461503250337B59AE24F1DC4C66AA9881046A14D83003
16.08.2009 20:57:32 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.37:9701 : Connection refused
16.08.2009 20:57:32 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A7874615032503363F783E78A954132B524FA6ED245142903
16.08.2009 20:57:32 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.38:9700/) -> failed
16.08.2009 20:57:32 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.38:9700 : Connection refused
16.08.2009 20:57:32 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.36:9700/) -> failed
16.08.2009 20:57:32 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A78746150325033D7BD36C8A3064300B4DEDA0153B43A9203
16.08.2009 20:57:32 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.36:9700 : Connection refused
16.08.2009 20:57:32 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A787461503250337B59AE24F1DC4C66AA9881046A14D83003
16.08.2009 20:57:32 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.37:9700/) -> failed
16.08.2009 20:57:32 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.37:9700 : Connection refused
16.08.2009 20:57:32 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A7874615032503363F783E78A954132B524FA6ED245142903
16.08.2009 20:57:44 net.jxta.impl.endpoint.tcp.TcpMessenger
INFO: Creating new TCP Connection to : tcp://192.18.37.39:9701 / 192.18.37.39:9701
16.08.2009 20:57:44 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
WARNUNG: Could not get messenger for tcp://192.18.37.39:9701 : Connection refused
16.08.2009 20:57:44 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A7874615032503354C1DDB08EE5422AA522990F4AC79F9303
16.08.2009 20:57:45 net.jxta.impl.endpoint.servlethttp.HttpClientMessenger retreiveLogicalDestinationAddress
WARNUNG: Ping (http://192.18.37.39:9700/) -> failed
16.08.2009 20:57:45 net.jxta.impl.endpoint.servlethttp.HttpMessageSender getMessenger
WARNUNG: Failed to connect to http://192.18.37.39:9700 : Connection refused
16.08.2009 20:57:45 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNUNG: null messenger for dest :jxta://uuid-59616261646162614A7874615032503354C1DDB08EE5422AA522990F4AC79F9303
16.08.2009 20:57:54 net.jxta.platform.NetworkManager stopNetwork
INFO: Stopping JXTA Network!
Connected :false
Stopping JXTA

Is this because of NAT/ firewall? Is there an easy way to make this tutorial work from behind a NAT/ firewall? JXTA should work from behind NAT/ firewall, right?

-Puce

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
liangyitao
Offline
Joined: 2007-09-17

Hi, Puce.

Your problem is that the program always try to connect to some default rendezvous and it seems that they are unreachable.

In the WorkingWithLocalConfiguration example, the most important part is to learn to use a coded configuration instead of a popup window. So you can skip the connection of any rendezvous. Try to delete the statement such as "waitForRendezvousConnection", and modify the program logic if necessary.