Page 1 of 1

Solution opens to blank gray screen

PostPosted: Wed Mar 23, 2016 2:49 pm
by wes.s.grayson
My solution has been working fine, and this morning when users launch the smart client it opens to a blank gray screen and the solution never opens. No errors are given. I believe Java was updated overnight. Client systems are at Java 7 update 97 (1.7.0.97). I'm running Servoy 7.3.1.

thanks for any quick help you can provide!

Re: Solution opens to blank gray screen

PostPosted: Wed Mar 23, 2016 3:23 pm
by wes.s.grayson
My Servoy server is running java.version=1.7.0_40. Does the server version need to be upgraded to match clients?

Re: Solution opens to blank gray screen

PostPosted: Wed Mar 23, 2016 4:10 pm
by jdbruijn
Server version should not matter.
Do the clients see any error messages in the java console?
Maybe try to clear the java cache and download the client again.

Re: Solution opens to blank gray screen

PostPosted: Wed Mar 23, 2016 4:28 pm
by wes.s.grayson
I rolled clients back to Java 1.7.0_91 and the solution opens properly again. This is a temporary fix so I still need to resolve the issue before the next update. Before doing so, I enabled Show Console and see the following error when opening on client side:

Mar 23, 2016 9:21:23 AM com.servoy.j2db.util.Debug error
SEVERE: Couldnt export object with port from server, trying to do on anonym port
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
at com.sebster.tunnel.impl.cb.a(cb.java:9)
at com.sebster.tunnel.impl.bb.connect(bb.java:8)
at com.sebster.tunnel.DelegatingTunnelClient.connect(DelegatingTunnelClient.java:2)
at com.sebster.tunnel.impl.le.<init>(le.java:11)
at com.sebster.tunnel.multiplexer.rmi.ClientMultiplexedRmiSocketFactoryProvider$1.<init>(ClientMultiplexedRmiSocketFactoryProvider.java:2)
at com.sebster.tunnel.multiplexer.rmi.ClientMultiplexedRmiSocketFactoryProvider.<init>(ClientMultiplexedRmiSocketFactoryProvider.java:11)
at com.sebster.tunnel.multiplexer.rmi.ClientMultiplexedRmiSocketFactoryProvider.<init>(ClientMultiplexedRmiSocketFactoryProvider.java:10)
at com.servoy.j2db.server.rmi.tunnel.ClientTunnelRMISocketFactoryFactory$RmiSocketFactoryProvider.<init>(ClientTunnelRMISocketFactoryFactory.java:301)
at com.servoy.j2db.server.rmi.tunnel.ClientTunnelRMISocketFactoryFactory$RmiSocketFactoryProvider.<init>(ClientTunnelRMISocketFactoryFactory.java:299)
at com.servoy.j2db.server.rmi.tunnel.ClientTunnelRMISocketFactoryFactory.createFactoryProvider(ClientTunnelRMISocketFactoryFactory.java:253)
at com.servoy.j2db.server.rmi.tunnel.ClientTunnelRMISocketFactoryFactory.getClientSocketFactory(ClientTunnelRMISocketFactoryFactory.java:276)
at com.servoy.j2db.smart.J2DBClient.exportObject(J2DBClient.java:3367)
at com.servoy.j2db.smart.J2DBClient.bindUserClient(J2DBClient.java:3325)
at com.servoy.j2db.ClientState.applicationServerInit(ClientState.java:316)
at com.servoy.j2db.smart.J2DBClient.startupApplication(J2DBClient.java:789)
at com.servoy.j2db.smart.J2DBClient$4.run(J2DBClient.java:695)
at com.servoy.j2db.smart.J2DBClient.mainImpl(J2DBClient.java:719)
at com.servoy.j2db.smart.J2DBClient.main(J2DBClient.java:682)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(Unknown Source)
Mar 23, 2016 9:21:23 AM com.servoy.j2db.util.Debug error
SEVERE: Fatal Exception
Mar 23, 2016 9:21:23 AM com.servoy.j2db.util.Debug error
SEVERE: Throwable
java.lang.NullPointerException
at com.servoy.j2db.server.rmi.tunnel.ClientTunnelRMISocketFactoryFactory.getClientSocketFactory(ClientTunnelRMISocketFactoryFactory.java:277)
at com.servoy.j2db.smart.J2DBClient.exportObject(J2DBClient.java:3367)
at com.servoy.j2db.smart.J2DBClient.bindUserClient(J2DBClient.java:3325)
at com.servoy.j2db.ClientState.applicationServerInit(ClientState.java:316)
at com.servoy.j2db.smart.J2DBClient.startupApplication(J2DBClient.java:789)
at com.servoy.j2db.smart.J2DBClient$4.run(J2DBClient.java:695)
at com.servoy.j2db.smart.J2DBClient.mainImpl(J2DBClient.java:719)
at com.servoy.j2db.smart.J2DBClient.main(J2DBClient.java:682)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(Unknown Source)

Re: Solution opens to blank gray screen

PostPosted: Wed Mar 23, 2016 4:53 pm
by jdbruijn
Looks like a problem with your SSL settings.

Re: Solution opens to blank gray screen

PostPosted: Wed Mar 23, 2016 8:26 pm
by Roberto Blasco
I'd the same problem when the system was updated to Java 8.

The issue ended when I turned back to Java 7. This was, in my case, because the solution was not properly digitally signed.

Also I had to configure Java Control Panel - Security the server exception (http://my-server-ip:port)

Re: Solution opens to blank gray screen

PostPosted: Thu Mar 24, 2016 4:22 pm
by wes.s.grayson
I think the digital signature is likely the issue in my case. Can you point me to a good resource for figuring out how to properly sign? Is this possibly the result of plugins that are being used?

Re: Solution opens to blank gray screen

PostPosted: Thu Mar 24, 2016 9:56 pm
by Roberto Blasco
Hi we.s.grayson

I think the digital signature is likely the issue in my case. Can you point me to a good resource for figuring out how to properly sign? Is this possibly the result of plugins that are being used?


In my case .... YES
The issue was caused because the plugins I devoleped were not digitally signed

In this link you will see the toturial how to fight with it ;-)

https://wiki.servoy.com/display/public/ ... 8728576B30

Hope it will be useful for you

Re: Solution opens to blank gray screen

PostPosted: Fri Mar 25, 2016 5:55 pm
by wes.s.grayson
thanks, I removed all plugins and still get the same problem. Going in to Network Settings on the server and unchecking "Use SSL" solves the problem for now. This particular solution is on an internal network only and does not have a need for secure transactions or encrypted communication. Do you see any reason to continue fighting the certificate battle?

Re: Solution opens to blank gray screen

PostPosted: Fri Mar 25, 2016 9:56 pm
by Roberto Blasco
Hi we.s.grayson

In my opinion, it is strongly recommended to digitally sign your plugins.

As far as I know, without do it, you will not be able to run yout solutions in clients with Java 8 or higher (strong security restricted).

If you follow the totorial I told you, it's very easy to create your own CA (self signed) and install it in your clients to prevent any kind of security problems with Java.

Best regards. Roberto Blasco