Page 1 of 1

Connection to Servoy Server is invalid

PostPosted: Thu Jun 20, 2013 4:19 pm
by jdbruijn
I've got a customer that gets the error 'Connection to Servoy Server is invalid'
Other users can still use the application.
I've tried cleaning the java cache, reinstall java but to no avail.

Strange part is that usually the java network settings have to be set to Direct connection, but when I enable that the application does not get past the 'Verifying application' screen.
And if I use the 'Use browser settings', the download and verifying of the aplication seems to go correctly, the smart client starts and then shows the error 'Connection to Servoy Server is invalid'. I've compared the java settings to another users and they appear the same. Apart from the version: 7.25 gives the error and the other user has 7.21

Any suggestions?

Re: Connection to Servoy Server is invalid

PostPosted: Thu Jun 20, 2013 4:24 pm
by jdbruijn
When I enable tracing on the app server I get the following messages:

2013-06-20 16:22 SocketAccepter1-thread-20378 INFO com.servoy.j2db.util.Debug Compressing socket closed
2013-06-20 16:22 SocketAccepter1-thread-20378 ERROR com.servoy.j2db.util.Debug SocketAcceptor failure for socket: Socket[addr=/192.168.3.117,port=49866,localport=1099]
I/O exception, see log for full details: null
2013-06-20 16:22 SocketAccepter1-thread-20378 WARN com.servoy.j2db.util.Debug Got -1, compressing socket is closed 2
java.lang.RuntimeException: Got -1, compressing socket is closed 2
at com.servoy.j2db.rmi.compressing.CompressingInputStream.readIn(CompressingInputStream.java:117)
at com.servoy.j2db.rmi.compressing.CompressingInputStream.read(CompressingInputStream.java:85)
at java.io.DataInputStream.readInt(DataInputStream.java:370)
at com.servoy.j2db.rmi.ServerTwoWaySocketFactory$SocketAcceptor.run(ServerTwoWaySocketFactory.java:422)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)

Re: Connection to Servoy Server is invalid

PostPosted: Thu Jun 20, 2013 4:26 pm
by jdbruijn
When I enable tracing and logging on the client side I get the following in my java console:
CacheEntry[http://server.customer.nl/servoy-client/MySolution.jnlp]: updateAvailable=true,lastModified=Thu Jun 20 16:21:30 CEST 2013,length=-1
Resource http://crl.globalsign.net/root.crl has future expires: Sun Jun 23 14:34:54 CEST 2013 update check skipped.
Resource http://crl.globalsign.com/gs/gscodesigng2.crl has future expires: Thu Jun 20 17:16:37 CEST 2013 update check skipped.
JNLP JREDesc in Component ignored: http://server.customer.nl/servoy-client ... s.jar.jnlp
JNLP JREDesc in Component ignored: http://server.customer.nl/servoy-client ... s.jar.jnlp
Missing Permissions manifest attribute for: http://server.customer.nl/lib/j2db.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/j2db.jar
Missing Permissions manifest attribute for: http://server.customer.nl/lib/js.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/js.jar
Missing Permissions manifest attribute for: http://server.customer.nl/plugins/brows ... ng-SWT.jar
Missing Codebase manifest attribute for: http://server.customer.nl/plugins/brows ... ng-SWT.jar
Missing Permissions manifest attribute for: http://server.customer.nl/plugins/brows ... eSwing.jar
Missing Codebase manifest attribute for: http://server.customer.nl/plugins/brows ... eSwing.jar
Missing Permissions manifest attribute for: http://server.customer.nl/lib/commons-logging.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/commons-logging.jar
Missing Permissions manifest attribute for: http://server.customer.nl/lib/rmitnl.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/rmitnl.jar
Missing Permissions manifest attribute for: http://server.customer.nl/lib/log4j.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/log4j.jar
Missing Permissions manifest attribute for: http://server.customer.nl/lib/slf4j-api.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/slf4j-api.jar
Missing Permissions manifest attribute for: http://server.customer.nl/lib/slf4j-jdk14.jar
Missing Codebase manifest attribute for: http://server.customer.nl/lib/slf4j-jdk14.jar
ERROR - Debug - Throwable
java.net.SocketException: factory already defined
at java.rmi.server.RMISocketFactory.setSocketFactory(Unknown Source)
at com.servoy.j2db.rmi.DefaultClientSocketFactoryFactory.initRMISocketFactory(DefaultClientSocketFactoryFactory.java:54)
at com.servoy.j2db.rmi.DefaultClientSocketFactoryFactory.<init>(DefaultClientSocketFactoryFactory.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.servoy.j2db.smart.J2DBClient.initRMISocketFactory(J2DBClient.java:782)
at com.servoy.j2db.smart.J2DBClient.startupApplication(J2DBClient.java:719)
at com.servoy.j2db.smart.J2DBClient$4.run(J2DBClient.java:644)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
ERROR - Debug - Already factory registered com.sun.deploy.net.protocol.rmi.DeployRMISocketFactory

ERROR - Debug - Error getting the service servoy.IApplicationServer from host server.customer.nl:1099
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
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 com.servoy.j2db.smart.J2DBClient.connectApplicationServer(J2DBClient.java:1774)
at com.servoy.j2db.smart.J2DBClient.startApplicationServerConnection(J2DBClient.java:1753)
at com.servoy.j2db.ClientState.applicationServerInit(ClientState.java:308)
at com.servoy.j2db.smart.J2DBClient.applicationServerInit(J2DBClient.java:1053)
at com.servoy.j2db.smart.J2DBClient.startupApplication(J2DBClient.java:725)
at com.servoy.j2db.smart.J2DBClient$4.run(J2DBClient.java:644)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readByte(Unknown Source)
... 24 more

Re: Connection to Servoy Server is invalid

PostPosted: Thu Jun 20, 2013 8:39 pm
by swingman
Have you tried "http&socket" in the network settings on the Servoy server?

Re: Connection to Servoy Server is invalid

PostPosted: Wed Nov 06, 2013 5:00 pm
by huber
One user has the same message. I am wondering what the solution was?