connecting to multi developer repository

I get the following two error dialogs when connecting to the multi developer repository. This happened after the restart of the server machine.

java.rmi.ConnectException: Connection refused to host: pilotserver; nested exception is:
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect

Developer will be closed, please fix the problem and restart

I got the multi developer login dialog. I have inputted the username and password. After that I got the above issues. Please help. I cannot work on my solution any more. I just have wait for your help.

The windows service seems to running fine.

Here is the log.

2007-05-07 10:21:02,624 ERROR [AWT-EventQueue-0] com.servoy.j2db.util.Debug - Connection failed to: hameed:1088 with endpoint: Endpoint:hameed:1088, waiting a bit (20s)
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at com.servoy.j2db.util.a.k.createSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at com.servoy.j2db.plugins.ClientPluginAccessProvider.getServerService(Unknown Source)
at com.it2be.servoy.plugin.q.a(Unknown Source)
at com.it2be.servoy.plugin.q.a(Unknown Source)
at com.it2be.servoy.plugin.splash.b.c(Unknown Source)
at com.it2be.common.y.e(Unknown Source)
at com.it2be.common.fg.b(Unknown Source)
at com.it2be.common.fg.a(Unknown Source)
at com.it2be.servoy.plugin.splash.c.unload(Unknown Source)
at com.servoy.j2db.plugins.PluginManager.flushCachedItems(Unknown Source)
at com.servoy.j2db.ClientState.shutDown(Unknown Source)
at com.servoy.j2db.J2DBClient.shutDown(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.shutDown(Unknown Source)
at com.servoy.j2db.J2DBClient$7.windowClosing(Unknown Source)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2007-05-07 10:21:23,546 ERROR [AWT-EventQueue-0] com.servoy.j2db.util.Debug - Throwable
java.rmi.ConnectException: Connection refused to host: hameed; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at com.servoy.j2db.plugins.ClientPluginAccessProvider.getServerService(Unknown Source)
at com.it2be.servoy.plugin.q.a(Unknown Source)
at com.it2be.servoy.plugin.q.a(Unknown Source)
at com.it2be.servoy.plugin.splash.b.c(Unknown Source)
at com.it2be.common.y.e(Unknown Source)
at com.it2be.common.fg.b(Unknown Source)
at com.it2be.common.fg.a(Unknown Source)
at com.it2be.servoy.plugin.splash.c.unload(Unknown Source)
at com.servoy.j2db.plugins.PluginManager.flushCachedItems(Unknown Source)
at com.servoy.j2db.ClientState.shutDown(Unknown Source)
at com.servoy.j2db.J2DBClient.shutDown(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.shutDown(Unknown Source)
at com.servoy.j2db.J2DBClient$7.windowClosing(Unknown Source)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at com.servoy.j2db.util.a.k.createSocket(Unknown Source)

I am using Servoy 3.5 b3[/code]

Also how can I revert back the repository to the normal server (non-multi developer) if I do not have access to the servoy-admin page?

do you have your rmi port on hameed:1088 ??
Is that really accessible from your developer? Aren’t there any firewalls?

For example can you telnet from your devleoper machine to hameed:1088 ?

telnet harmeed 1088 ?

Reverting back can only really be done in the admin pages by clearing out the ip/dns name of the multi dev server and restart once.
Why can’t you access the admin pages?

I will check these details shortly.

I could not access the admin page. First of all let me try to fix it first & provide you more details. Thanks for your help.

Hello

How did this go on? I wonder since we have a similar problem, now that we changed to multi developer (Servoy 3.5 rc4): Working in the office is fine. But working from home over VPN does not work any more. I first got an error saying: “Error connecting to the multi developer server: 10.0.1.2:1100”. We opened the ports 1099 to 1101. The error changed to “Error connecting to the multi developer server: 10.0.1.2:1099” (see attachment).

We now switched back to single developer and hope for your help.

Thanks and regards
Birgit

can you get from the machine that didn’t work to the admin pages?
so 10.0.1.2:8080 (if that is still the default http port on tomcat)

or can you do a telnet session to 10.0.1.2:1099?

somehow it can’t find the host or the connection is refused because of a firewall

johan

Thank you for the answer.

Yes, I can start the server admin page. The telnet to port 1099 I’ll have to try on Monday (now we switched back to single developer).

Regards
Birgit

So, after some testing from home and from work, this is the current state:

  • multi developer works in the office (LAN)
  • server admin page can be startet form home (connected over VPN with PPTP)
  • telnet to port 1099 ok
  • telnet to port 1100 ok
  • multi developer cannot be startet from home. Still same error message with port 1100.

Any idea what we should try or change will be appreciated a lot!

Regards
Birgit

is the multi developer server started in 2 way server mode?
(admin pages → network settings)

You have to restart if you change this.

Hi Birgit,

What rmi port is set on the multi-dev server ?

What ports are being used by LAN dev and home dev copies to try to reach the server ?

The server will listen on its rmi port ( usually 1099 ) and yet you mention both 1099 & 1100

Also you mention that the ports are open on your firewall but I believe that they need to be forwarded to the server machine for external use

Cheers
Harry

Solved!

Thank you all for your posts. It was the two way socked mode which had to be checked, as Johan Compagner suggested.

Best regards
Birgit Rieder

PS: Sorry for answering late. I was on vacation for a week.

For Information:

Just had similar experience of not being able to access multi-dev server from a remote location

Reason/Solution:
Firmware update of router at remote location had closed ports as default setting
Opening of standard Servoy ports allowed smart client connect but did not allow multi-dev connect
Tests showed lots of traffic going out on port 3306 (MySQL default) on launch of my developer
Open port 3306 and it works

Seems that in order to display multi-dev login screen Servoy needed to query the users directly in the remote repository (in this case in MySQL) but was getting no answer because port was closed !!

One for the scrapbook anyway !

Cheers
Harry