Java 9 and Servoy admin page

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Java 9 and Servoy admin page

Postby lwjwillemsen » Thu Sep 14, 2017 1:58 pm

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?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 571
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Java 9 and Servoy admin page

Postby jcompagner » Mon Sep 18, 2017 9:46 am

do you have any stacktraces in the servoy log file?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7978
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java 9 and Servoy admin page

Postby jcompagner » Mon Sep 18, 2017 12:49 pm

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)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7978
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java 9 and Servoy admin page

Postby lwjwillemsen » Mon Sep 18, 2017 7:48 pm

Are there consequences performance wise for the Servoy web client(s) if you remove those connector settings?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 571
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Java 9 and Servoy admin page

Postby jcompagner » Tue Sep 19, 2017 10:57 am

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7978
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java 9 and Servoy admin page

Postby lwjwillemsen » Tue Sep 19, 2017 12:40 pm

? 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...
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 571
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Java 9 and Servoy admin page

Postby jcompagner » Tue Sep 19, 2017 12:56 pm

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
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7978
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Java 9 and Servoy admin page

Postby lwjwillemsen » Tue Sep 19, 2017 3:14 pm

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!
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 571
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Java 9 and Servoy admin page

Postby jcompagner » Tue Sep 19, 2017 4:48 pm

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.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7978
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 2 guests