Hi Johan, Nice to see you at ServoyCamp 3…
I am still having trouble with this, and I am not sure if it is a signing issue still or a direct connection problem.
I have again resigned my jars in my servoy 4.1.7 solution with my bought Comodo code signing certificate. It seems to unsign repack and resign them successfully (although I don’t know if there is any way to check or confirm it once it is done… It verifies whether I re-sign my jars or not.)
Once done, I try to launch servoy client from my laptop, and I get a grey screen with Ready at the bottom. After a while it says “Cannot find dataservice, it may not be running on server.”
My console says this:
CacheEntry[http://www.templeton-smith.com:8080/servoy-client/servoy_client.jnlp]: updateAvailable=false,lastModified=Mon Jan 27 12:42:05 GMT 2014,length=-1
CacheEntry[http://www.templeton-smith.com:8080/servoy-client/servoy_client.jnlp]: updateAvailable=false,lastModified=Mon Jan 27 12:42:05 GMT 2014,length=-1
Java Web Start 10.51.2.13
Using JRE version 1.7.0_51-b13 Java HotSpot™ 64-Bit Server VM
User home directory = /Users/bevil
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to
Jan 27, 2014 1:29:25 PM com.servoy.j2db.util.Debug error
SEVERE: Throwable
java.net.ConnectException: Operation timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:407)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at com.servoy.j2db.util.rmi.Zj.Zb(Zj.java:104)
at com.servoy.j2db.util.rmi.Zj.(Zj.java:91)
at com.servoy.j2db.util.rmi.Zo.Za(Zo.java:58)
at com.servoy.j2db.J2DBClient.Za(J2DBClient.java:1549)
at com.servoy.j2db.J2DBClient.Zi(J2DBClient.java:6)
at com.servoy.j2db.J2DBClient.startupApplication(J2DBClient.java:595)
at com.servoy.j2db.J2DBClient.main(J2DBClient.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Jan 27, 2014 1:29:25 PM com.servoy.j2db.util.Debug error
SEVERE: Already factory registered com.servoy.j2db.util.rmi.Zo
java.net.ConnectException: Operation timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:407)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at com.servoy.j2db.util.rmi.Zo.createSocket(Zo.java:37)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:101)
at com.servoy.j2db.J2DBClient.getServerService(J2DBClient.java:1497)
at com.servoy.j2db.J2DBClient.Ze(J2DBClient.java:1145)
at com.servoy.j2db.ClientState.dataServerInit(ClientState.java:207)
at com.servoy.j2db.J2DBClient.dataServerInit(J2DBClient.java:1365)
at com.servoy.j2db.J2DBClient.startupApplication(J2DBClient.java:171)
at com.servoy.j2db.J2DBClient.main(J2DBClient.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Jan 27, 2014 1:29:35 PM com.servoy.j2db.util.Debug error
SEVERE: Connection failed to: http://www.templeton-smith.com:1101 with endpoint: Endpoint:www.templeton-smith.com:1101, waiting a bit (4s)
java.io.IOException: Operation timed out
at com.servoy.j2db.util.rmi.Zo.createSocket(Zo.java:38)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:101)
at com.servoy.j2db.J2DBClient.getServerService(J2DBClient.java:1497)
at com.servoy.j2db.J2DBClient.Ze(J2DBClient.java:1145)
at com.servoy.j2db.ClientState.dataServerInit(ClientState.java:207)
at com.servoy.j2db.J2DBClient.dataServerInit(J2DBClient.java:1365)
at com.servoy.j2db.J2DBClient.startupApplication(J2DBClient.java:171)
at com.servoy.j2db.J2DBClient.main(J2DBClient.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
java.net.ConnectException: Operation timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:407)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at com.servoy.j2db.util.rmi.Zo.createSocket(Zo.java:37)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:101)
at com.servoy.j2db.J2DBClient.getServerService(J2DBClient.java:1497)
at com.servoy.j2db.J2DBClient.Ze(J2DBClient.java:1145)
at com.servoy.j2db.ClientState.dataServerInit(ClientState.java:207)
at com.servoy.j2db.J2DBClient.dataServerInit(J2DBClient.java:1365)
at com.servoy.j2db.J2DBClient.startupApplication(J2DBClient.java:171)
at com.servoy.j2db.J2DBClient.main(J2DBClient.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
Jan 27, 2014 1:29:48 PM com.servoy.j2db.util.Debug error
SEVERE: Connection failed to: http://www.templeton-smith.com:1101 with endpoint: Endpoint:www.templeton-smith.com:1101, waiting a bit (8s)
java.io.IOException: Operation timed out
at com.servoy.j2db.util.rmi.Zo.createSocket(Zo.java:38)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:101)
at com.servoy.j2db.J2DBClient.getServerService(J2DBClient.java:1497)
at com.servoy.j2db.J2DBClient.Ze(J2DBClient.java:1145)
at com.servoy.j2db.ClientState.dataServerInit(ClientState.java:207)
at com.servoy.j2db.J2DBClient.dataServerInit(J2DBClient.java:1365)
at com.servoy.j2db.J2DBClient.startupApplication(J2DBClient.java:171)
at com.servoy.j2db.J2DBClient.main(J2DBClient.java:201)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:744)
I have tried with and without ‘SocketFactory.useTwoWaySocket:’ ticked.
If I try to run Servoy client on the server its-self, I get an error that “Failed to validate certificate. The application will not be executed.” I don’t know if there are cached certificates on the server? Does it need to be purged once I’ve signed my jars?
Therefore I am still unclear whether signing the jars has been successful, and it is difficult to know whether it is that or something else that is causing the problems.
Thanks for any help or advice anyone can offer.
Bevil