Page 1 of 1

Java 9 and Servoy admin page

PostPosted: Thu Sep 14, 2017 1:58 pm
by lwjwillemsen
After installing Java 9 (on Application Servoy 7 Server) the following error appears in the browser after logging in
to the Servoy admin page:

ERR_CONTENT_DECODING_FAILED

Tested with Chrome, Firefox and Internet Explorer.

After installing Java 8: no error.

Solution?

Re: Java 9 and Servoy admin page

PostPosted: Mon Sep 18, 2017 9:46 am
by jcompagner
do you have any stacktraces in the servoy log file?

Re: Java 9 and Servoy admin page

PostPosted: Mon Sep 18, 2017 12:49 pm
by jcompagner
i did some test

Servoy 8.2 works fine with java 9 and the admin page
Servoy 7.2.10 in WAR export on a tomcat 8.5.9 also works fine
but Servoy 7.2.10 as the application server doesn't work

So it seems that this is a problem of the tomcat that we ship in Servoy 7.2.10
That is Tomcat 6.0.44

But if i just install that tomcat on my system and then put a 74 war on top of that then it works again fine.

So when i searched on then the difference is the compression setting:

application_server/server/conf/server.xml

has in the <connector section:

compression="4096"
compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css"

if you remove that then it works.

So there seems to be a bug in tomcat 6.0.44 with the zip libs of java9 that you can't enable compression because then something wrong is send over the line.

i also tested this the latest 6.0.x (53) and there is see the same problem, so for 7 we can't really fix this. (only by removing those compression configuration)

Re: Java 9 and Servoy admin page

PostPosted: Mon Sep 18, 2017 7:48 pm
by lwjwillemsen
Are there consequences performance wise for the Servoy web client(s) if you remove those connector settings?

Re: Java 9 and Servoy admin page

PostPosted: Tue Sep 19, 2017 10:57 am
by jcompagner
it is just that some stuff are then not compressed
You need to check this also in a webclient, but i guess that a webclient if compression kicks in also should have that same problem

By default tomcat is not even configured like that, its just something we put in by default.

The solution always is to use an actual tomcat 85x install and configure that one with compression (that seems to work as far as i can see), and use a servoy7x war on top of that.

Re: Java 9 and Servoy admin page

PostPosted: Tue Sep 19, 2017 12:40 pm
by lwjwillemsen
? Please update Servoy 7 in the (near) future with a Tomcat version that does not have this (Java 9 related) problem.
I've seen Tomcat updates in Servoy 7 updates in the past...

Re: Java 9 and Servoy admin page

PostPosted: Tue Sep 19, 2017 12:56 pm
by jcompagner
No that will not happen
Servoy 7 will stay on tomcat 6, we won't move to a new major tomcat version. Thats why we have Servoy 8

we could move to the latest Tomcat 6 version, but that doesn't seem to fix the problem

Re: Java 9 and Servoy admin page

PostPosted: Tue Sep 19, 2017 3:14 pm
by lwjwillemsen
Then please fix the problem in Servoy 7 without extra work / problems for us developers.
Servoy Application Server runs on Java and Servoy 7 is still supported by Servoy!

Re: Java 9 and Servoy admin page

PostPosted: Tue Sep 19, 2017 4:48 pm
by jcompagner
yes it is fully supported for the use of Java 8

We will try to do as much as we can for Java9 which will be released almost 3.5 years later then Servoy 7.4
But we will not update a large amount of libs (and code around it for 7..4.x)

So the choice is to stay at Java8 (for running the application server) for the time to come or
disable the compression in the server.xml or
run Servoy 7 as in a WAR configuration on a latest tomcat with Java9

That last thing is the preferred or even needed way (ngclient) for Servoy 8.x anyway.

Re: Java 9 and Servoy admin page

PostPosted: Thu Oct 26, 2017 4:44 pm
by jcompagner
Oracle also seem to have fixed this for java 9 build 179

https://bugs.openjdk.java.net/browse/JDK-8184306

Re: Java 9 and Servoy admin page

PostPosted: Sat Feb 10, 2018 8:55 pm
by ellenmeserow
This is also the case for the newest Java 1.8 161 -- I can't get the admin page to work with Servoy 7. So since the above says you support Java 8 and Servoy 7, we have a bug.... I'll try the instructions above.