Java 7u21 broke server ability to shutdown smart clients

Questions, answers, tips and ideas on Servoy Client

Java 7u21 broke server ability to shutdown smart clients

Postby awvservoy » Tue Dec 31, 2013 10:48 pm

Hello everyone and Happy New Year!

We've run into a situation where it appears that Smart Clients running on Windows (XP/7/8) using Java 7 Update 21 or later cannot be shutdown from the Application Server, even after multiple attempts to kill from the Application Server. No errors are observed while doing the Application Server kill command itself (Server display that it was successful), but the Server log provides the following error:

2013-12-31 15:42 TaskExecuter[0] ERROR com.servoy.j2db.dataprocessing.Zb Error flushing message buffer to client 74CBF405-24D3-4A7A-A6A5-C78BA85F619F
java.lang.NullPointerException
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.invokeLater(Unknown Source)
at javax.swing.SwingUtilities.invokeLater(Unknown Source)
at com.servoy.j2db.smart.J2DBClient.invokeLater(J2DBClient.java:3944)
at com.servoy.j2db.ClientState.invokeLater(ClientState.java:1626)
at com.servoy.j2db.ClientStub.shutDown(ClientStub.java:64)
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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
at com.sun.proxy.$Proxy16.shutDown(Unknown Source)
at com.servoy.j2db.dataprocessing.ClientProxy.Zc(ClientProxy.java:158)
at com.servoy.j2db.dataprocessing.Zo.run(Zo.java:21)
at com.servoy.j2db.util.TaskExecuter.run(TaskExecuter.java:82)
at java.lang.Thread.run(Unknown Source)

Also, broadcast messages from the Application Server to the Smart Client application do not make it to the Smart Client.

The Smart Client will continue to run on the user workstation even past a complete shutdown and start up of the Application Server. However, at that time the Smart Client will error out and finally exit.

Our Application Server is 5.2.10 on CentOS Linux 32-bit running JRE 1.6 Update 45. We are in progress with our application upgrade to Servoy 7, but in the meantime this can cause some issues especially with user deployments. We have tested the same server configuration with end-user JRE 1.7 Update 17 and it works.

Any ideas would be greatly appreciated. Thanks!

Regards, Tony
Anthony Vitrano
ReadQ Technologies LLC
awvservoy
 
Posts: 20
Joined: Wed Dec 13, 2006 10:11 pm
Location: New York, NY USA

Re: Java 7u21 broke server ability to shutdown smart clients

Postby jcompagner » Thu Jan 02, 2014 11:27 am

this is a bug in the latest java release. we already worked around it in our code for Servoy 7

There is no workaround it except downgrading java or upgrading servoy
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8339
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java 7u21 broke server ability to shutdown smart clients

Postby lwjwillemsen » Thu Jan 02, 2014 1:33 pm

Hi Johan,

Do you have a (public) Servoy support case id concerning this problem ?

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 669
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Java 7u21 broke server ability to shutdown smart clients

Postby awvservoy » Thu Jan 02, 2014 2:07 pm

Thanks Johan for the update. Can you confirm no plans to incorporate workaround in Servoy 6?

jcompagner wrote:this is a bug in the latest java release. we already worked around it in our code for Servoy 7

There is no workaround it except downgrading java or upgrading servoy
Anthony Vitrano
ReadQ Technologies LLC
awvservoy
 
Posts: 20
Joined: Wed Dec 13, 2006 10:11 pm
Location: New York, NY USA

Re: Java 7u21 broke server ability to shutdown smart clients

Postby jcompagner » Thu Jan 02, 2014 2:10 pm

Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8339
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java 7u21 broke server ability to shutdown smart clients

Postby lwjwillemsen » Thu Jan 02, 2014 2:51 pm

Ok, thanks Johan.

Is there a Oracle Java bug id for the Java bug mentioned ?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 669
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Java 7u21 broke server ability to shutdown smart clients

Postby jcompagner » Mon Jan 06, 2014 1:31 pm

Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8339
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 2 guests