Servoy smart client 7.3 crashes on startup

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Re: Servoy smart client 7.3 crashes on startup

Postby jcompagner » Wed Jan 15, 2014 12:30 pm

thats a bit weird why it wouldn't it should be signed
But for smart clients that doesn't matter, that is a server side only jar
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 1:30 pm

RIGHT !!!

Okay, now I have spent $365.00 for a 5 year code signing certificate from KSoftware (Comodo), I have imported into my Firefox, and exported a pfx, and converted to a jks to use with the signtester tool and.........................

It does nothing.. It does not resign the one jar that 'didnt verify' with this error:

/Applications/Servoy/application_server/./lib/wicket-extentions.jar didnt verify
/Applications/Servoy/application_server/./lib/wicket-extentions.jar repacked
java.lang.RuntimeException: exit not allowed, status = 1
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java:100)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:921)
at sun.security.tools.JarSigner.run(JarSigner.java:210)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:238)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:130)
/Applications/Servoy/application_server/./lib/wicket-extentions.jar repacked
java.lang.RuntimeException: exit not allowed, status = 1
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java:100)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:921)
at sun.security.tools.JarSigner.run(JarSigner.java:210)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:238)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:130)
/Applications/Servoy/application_server/./lib/wicket-extentions.jar signed
/Applications/Servoy/application_server/./lib/wicket.jar did verify

Verifiying dir: ./plugins

Verifiying dir: ./plugins/adobe_pdf_forms
,

and if I try to overwrite, I get this error on the first jar:

Unsigning: IClock.jar
/Applications/Servoy/application_server/./beans/IClock.jar unsigned (renamed)
/Applications/Servoy/application_server/./beans/IClock.jar repacked
java.lang.RuntimeException: exit not allowed, status = 1
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java:100)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:921)
at sun.security.tools.JarSigner.run(JarSigner.java:210)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:238)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:128)
/Applications/Servoy/application_server/./beans/IClock.jar repacked
java.lang.RuntimeException: exit not allowed, status = 1
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java:100)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:921)
at sun.security.tools.JarSigner.run(JarSigner.java:210)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:238)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:128)
Exception in thread "main" java.lang.RuntimeException: exit not allowed, status = 1
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java:100)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:921)
at sun.security.tools.JarSigner.run(JarSigner.java:210)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:260)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:128)
mail:application_server administrator$


I have no idea what the error is, or what I should do, and would be grateful for any help anyone can give
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 1:38 pm

Incidentally, this is in my Servoy 4.1.7 solution, not 7.3. I will try that one now and report back.
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 2:11 pm

RIGHT !!!

on Johan's direction:

this looks like a signing issue.

What would be the best in this case to get your own valid code signing certificate and resign with the latest signtester tool all the jars of servoy


Soooo I bought a code signing certificate from Comodo / Ksoftware, and followed the instructions (I think perfectly). It has resigned all my Jars, and I am now trying to run my 7.3 solution and I get:

"Failed to validate certificate. The application will not be executed."

and the details:

java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: java.security.InvalidKeyException: Wrong key usage
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(TrustDecider.java:715)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(AppPolicy.java:295)
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1851)
at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:1527)
at com.sun.javaws.Launcher.prepareResources(Launcher.java:1283)
at com.sun.javaws.Launcher.prepareAllResources(Launcher.java:636)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:338)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:238)
at com.sun.javaws.Launcher.launch(Launcher.java:127)
at com.sun.javaws.Main.launchApp(Main.java:460)
at com.sun.javaws.Main.continueInSecureThread(Main.java:292)
at com.sun.javaws.Main$1.run(Main.java:125)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.security.cert.CertPathValidatorException: java.security.InvalidKeyException: Wrong key usage
at sun.security.provider.certpath.OCSPResponse.verifyResponse(OCSPResponse.java:456)
at sun.security.provider.certpath.OCSPResponse.<init>(OCSPResponse.java:411)
at sun.security.provider.certpath.OCSP.check(OCSP.java:216)
at sun.security.provider.certpath.OCSP.check(OCSP.java:120)
at com.sun.deploy.security.TrustDecider.doOCSPEEValidation(TrustDecider.java:1002)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(TrustDecider.java:696)
... 12 more
Caused by: java.security.InvalidKeyException: Wrong key usage
at java.security.Signature.initVerify(Signature.java:459)
at sun.security.provider.certpath.OCSPResponse.verifyResponse(OCSPResponse.java:440)
... 17 more


Before I lose my rag, and vent about all this, does anyone have any idea where I now need to start bashing my head to get this fixed? I have followed the advice, and paid the money for a solution, and at every turn there is a new issue / problem / failure..
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby jcompagner » Wed Jan 15, 2014 4:51 pm

weird you seem to get: http://bugs.sun.com/bugdatabase/view_bu ... id=8000280

but that should be fixed for quite some time now.

Also those exit() warnings/errors really shouldn't happen, are you sure you don't run the latest signtester tool against a running instance of servoy?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 5:42 pm

Absolutely, latest signtester (latest I could find anyway) - version 1.3

Also, Servoy (and databases - although I doubt that matters) were closed when I ran it.

Servoy is broken on all my machines apart from the server its-self which I guess has old certificates..

My (one) server is 4.1.7, but it did resign for all jars. Now I am getting "cannot find data service it may not be running on server"
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 6:11 pm

Wow.. In the past week, I have probably spent about 3 full days trying to make Servoy work IN ANY WAY POSSIBLE on our machines. We are all without Servoy apart from on our server. I have bought (for $365 !!!) the code signing certificate, and tried endless ways to make this work. I am an IT consultant with 20 years experience. Should it really be THIS difficult to make software (that I have been using and selling successfully for 10+ years) work at all - even to simply start up??

Am at the end of my tether.
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby jcompagner » Wed Jan 15, 2014 6:40 pm

my guess is that your certificate is not valid.

Maybe you can ask another one (like robert) to sign your stuff for you with its certificate and see if that then works out of the box (so the only thing you change in your process is using another certificate)
if that works then you need to go back to your certificate provider and tell them that it doesn't work for Java.
(maybe you generated it wrong, i am not sure)

if you get "cannot find data service it may not be running on server" did you get any dialog or error before that? (like java webstart telling you that it is blocked?)
because if it does then that happens.
other wise that message mostly means that the port is not open (rmi) on the server or the socket factory can't be set (that's also an error in the log)
then you have to specify "direct connection" in the proxy settings or use the tunnel (http or http&socket) instead of 2 way socket.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 6:49 pm

Hi Johan.

I am sorry. I am close to ranting and my frustration is starting to get the better of me. I don't mean to sound annoyed. Thank you for the replies and patience.

Is there no other way to check whether the code signing certificate is invalid? Everything seems to work to the point of running servoy client (the signing process looks like it is working).

When I try to start it now, I get no errors before 'not running on server'. Only a grey servoy window with 'ready' at the bottom.

The java console log includes this which seems significant, but I don't know how to interpret or fix it:

Jan 15, 2014 4:47:03 PM com.servoy.j2db.util.Debug error
SEVERE: Already factory registered com.servoy.j2db.util.rmi.Zo
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 6:51 pm

Also, maybe I did generate it wrong, but i followed as closely as possible this instruction from Scott:

http://www.servoyguy.com/knowledge_base ... _and_beans

which is also the reason I chose Comodo as the certificate provider...
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Wed Jan 15, 2014 7:10 pm

As for the other (new) issue, my java preferences are set to direct connection.
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby jcompagner » Thu Jan 16, 2014 10:37 am

bevil wrote:
The java console log includes this which seems significant, but I don't know how to interpret or fix it:

Jan 15, 2014 4:47:03 PM com.servoy.j2db.util.Debug error
SEVERE: Already factory registered com.servoy.j2db.util.rmi.Zo


if you come that far, everything signing was is correct.

This is the issue i talked about on my last post
The rmi socket factory can't be set because webstart already set it for you. Then we can't talk to the server

see this page: https://wiki.servoy.com/display/DOCS/Ne ... d+settings

under "Available Connection modes"

"However, in case Java WebStart on the client machine is configured to connect through a proxy, Servoy will not be able to instantiate Two-Way socket and thus falls back to the Direct Connection mode, with the restrictions that come with Direct Connection mode. It is possible to configure Java WebStart on each client machine to not use a proxy, but this needs to be done on each individual machine and might conflict with other Java WebStart applications that do require the proxy settings. If this happens then on the client the java preferences -> network settings need to be changed, so that the proxy settings are configured as "direct connection" instead of "use browser". Better is to use one of the tunnels below."

So you have to change your java preferences (on every client) or switch from 2 way socket to a tunnel mode one.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Mon Jan 27, 2014 3:36 pm

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(TM) 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 <n>
----------------------------------------------------
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.<init>(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.<init>(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.<init>(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.<init>(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
Last edited by bevil on Mon Jan 27, 2014 4:34 pm, edited 1 time in total.
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby bevil » Mon Jan 27, 2014 3:38 pm

On my server its-self (which is still Java 6), I get this in the console:

java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: java.security.InvalidKeyException: Wrong key usage
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(TrustDecider.java:723)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(AppPolicy.java:288)
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1833)
at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:1512)
at com.sun.javaws.Launcher.prepareResources(Launcher.java:1283)
at com.sun.javaws.Launcher.prepareAllResources(Launcher.java:636)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:338)
at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:238)
at com.sun.javaws.Launcher.launch(Launcher.java:127)
at com.sun.javaws.Main.launchApp(Main.java:454)
at com.sun.javaws.Main.continueInSecureThread(Main.java:286)
at com.sun.javaws.Main$1.run(Main.java:119)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.security.cert.CertPathValidatorException: java.security.InvalidKeyException: Wrong key usage
at sun.security.provider.certpath.OCSPResponse.verifyResponse(OCSPResponse.java:456)
at sun.security.provider.certpath.OCSPResponse.<init>(OCSPResponse.java:411)
at sun.security.provider.certpath.OCSP.check(OCSP.java:216)
at sun.security.provider.certpath.OCSP.check(OCSP.java:120)
at com.sun.deploy.security.TrustDecider.doOCSPEEValidation(TrustDecider.java:1010)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(TrustDecider.java:704)
... 12 more
Caused by: java.security.InvalidKeyException: Wrong key usage
at java.security.Signature.initVerify(Signature.java:459)
at sun.security.provider.certpath.OCSPResponse.verifyResponse(OCSPResponse.java:440)
... 17 more
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Servoy smart client 7.3 crashes on startup

Postby jcompagner » Mon Jan 27, 2014 5:06 pm

no 2 way socket doesn't work, you need to use the tunnel sebster/http/socket (but i don't know if we really ship that with servoy 4 from the top of my head)

or you just say in your java preferences that it must use a direct connection. (on every client)

that second error is i guess that java 6 doesn't understand that new kind of certificate.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

PreviousNext

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 10 guests

cron