Floating licence applet not working as expected

Oxygen general issues.
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Floating licence applet not working as expected

Post by neon096 »

I've setup the floating license server using the provided WAR file and I've setup the applet to use this. It works as a standalone applet and connects correctly. However when I embed the applet into our Spring MVC application it fails to connect. I've used fiddler to capture the packets and found the following error.

Fiddler has detected a protocol violation in session #2316.

The Request's Host header did not match the URL's host component.

URL Host: <user>:<password>@ukmy-nfs-02.smg-uk.com:8080
Header Host: ukmy-nfs-02.smg-uk.com:8080

The code I'm using is

factory.init(frameworkZips, optionsZipURL, codeBase, appletID, "http://ukmy-nfs-02.smg-uk.com:8080/oXyg ... se-servlet", "user", "password");


I've also tested the same request that was sent from the applet in chrome and I got a valid license response from the server.

The other problem I have is I've tried to revert to the evaluation license because I have a demonstration this morning and it still trys to get a license from the server.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Floating licence applet not working as expected

Post by Radu »

Hi Neil,

Quick answer to second problem, I'll be thinking a little longer on the first one:
The other problem I have is I've tried to revert to the evaluation license because I have a demonstration this morning and it still trys to get a license from the server.
Follow step number (4) from this procedure:

http://www.oxygenxml.com/doc/ug-oxygen/ ... oting.html

to remove any local settings the applet might have save.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Floating licence applet not working as expected

Post by Radu »

Hi Neil,

I have a hunch why this warning is given:
Fiddler has detected a protocol violation in session #2316.

The Request's Host header did not match the URL's host component.

URL Host: <user>:<password>@ukmy-nfs-02.smg-uk.com:8080
Header Host: ukmy-nfs-02.smg-uk.com:8080
and we can fix this on our side but I'm not sure if this warning has any relation to your problem.

Basically on the applet side our code creates an URL and connects to it.
In order to provide basic authentication our code sets a new authenticator because this is the usual way to work with the standard Java HTTP connections.
But I think that it might be a possibility that the Spring MVC application might overwrite the "http" protocol with a custom implementation.
Could you save a detailed log of the HTTP communication between the applet embedded in the MVC application and the license servlet and send it to us? (support@oxygenxml.com).
I could also try to remove the warning reported by Fiddler and send you an updated Author Component project but this may not help.
Spring seems to be Eclipse-based, right? How exactly are you embedding the applet in it? Are you embedding the applet in a web page which is opened in it?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply