Jars are downloaded several times during application running (and it fails)
Jars are downloaded several times during application running (and it fails)
Hello,
My JWS application is hosted on AWS public Cloud (it’s AWS but could be another one), for example : https://myapp.com/
The codebase of the application in jnlp is https://myapp.com/
When I run OWS, it downloads all jars, starts the application, but when I navigate into my app it tries to download jars, and my app fails.
I checked in the cache, and into the logs: the jars are correctly downloaded before starting the application. I don’t know why there is an additional download.
I suspected that the OWS cache reference jars by IP and not by dns name, because the DNS resolution of https://myapp.com/ could return several IPs.
So I did a test by replacing the codebase of my app with an IP instead of DNS name, ex : https://50.50.20.12/
Then, the application runs correctly, and in the logs I can see that the jars are no longer downloaded.
Do you think that my problem is due to DNS resolution ?
Thanks for your help
Regards
My JWS application is hosted on AWS public Cloud (it’s AWS but could be another one), for example : https://myapp.com/
The codebase of the application in jnlp is https://myapp.com/
When I run OWS, it downloads all jars, starts the application, but when I navigate into my app it tries to download jars, and my app fails.
I checked in the cache, and into the logs: the jars are correctly downloaded before starting the application. I don’t know why there is an additional download.
I suspected that the OWS cache reference jars by IP and not by dns name, because the DNS resolution of https://myapp.com/ could return several IPs.
So I did a test by replacing the codebase of my app with an IP instead of DNS name, ex : https://50.50.20.12/
Then, the application runs correctly, and in the logs I can see that the jars are no longer downloaded.
Do you think that my problem is due to DNS resolution ?
Thanks for your help
Regards
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
You say the jars are downloaded and the application is started successfully but after that jars are downloaded again?
Can you please send the logs? What does your C:\Users\Janak\.cache\icedtea-web\cache\recently_used.cache look like?
Is your application using JNLP API like DownloadService?
Can you please send the logs? What does your C:\Users\Janak\.cache\icedtea-web\cache\recently_used.cache look like?
Is your application using JNLP API like DownloadService?
Re: Jars are downloaded several times during application running (and it fails)
Hello,
Here's the logs and the recently_used.cache.
We don't use JNLP API like DownloadService.
Sometimes the app can't start due to a missing ressource in a jar OWS tries to download...but it has it in his cache.
Regards.
Here's the logs and the recently_used.cache.
We don't use JNLP API like DownloadService.
Sometimes the app can't start due to a missing ressource in a jar OWS tries to download...but it has it in his cache.
Regards.
- Attachments
-
- recently_used.cache.log
- (10.37 KiB) Downloaded 1977 times
-
- 2023-04-05_10_55_53.833-ows-stage2.log
- (1.03 MiB) Downloaded 1932 times
-
- 2023-04-05_10_55_53.833-ows-stage1.log
- (27.01 KiB) Downloaded 1896 times
Re: Jars are downloaded several times during application running (and it fails)
Hello,
any update on my issue ?
any update on my issue ?
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
can you please try with the latest release 1.8.0? Please clean cache, run the app once, the run the app again and send logs from bo the runs. Please set log level to debug and also log contents of jnlp.
Re: Jars are downloaded several times during application running (and it fails)
Hello Janak,
here's the logs for the 2 runs.
First run failed quickly...the second one failed 1 minute later...you see exception stack traces when application fails.
Thanks.
here's the logs for the 2 runs.
First run failed quickly...the second one failed 1 minute later...you see exception stack traces when application fails.
Thanks.
- Attachments
-
- OWS.7z
- (42.43 KiB) Downloaded 2007 times
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
The logs for run1 were missing in the zip file.
>
When I run OWS, it downloads all jars, starts the application, but when I navigate into my app it tries to download jars, and my app fails.
I checked in the cache, and into the logs: the jars are correctly downloaded before starting the application. I don’t know why there is an additional download.
>
For the run2, in stage2 logs: OWS is starting the app but during runtime there are NoClassDefFound exceptions for some jidesoft classes as while downloading jide-properties.jar there seems to have been a java.util.zip.ZipException: zip END header not found. It needs to be investigated why it is trying to download this.
>
I suspected that the OWS cache reference jars by IP and not by dns name, because the DNS resolution of https://myapp.com/ could return several IPs.
So I did a test by replacing the codebase of my app with an IP instead of DNS name, ex : https://50.50.20.12/
Then, the application runs correctly, and in the logs I can see that the jars are no longer downloaded.
>
In 1.8.0 we fixed caching to use the string version of the url. So are the jars still downloaded multiple times?
You say that your app works when you specify URLs with IP addresses in the jnlp file instead of URLs with DNS names. Did you try this with OWS 1.8.0? Did it work?
>
When I run OWS, it downloads all jars, starts the application, but when I navigate into my app it tries to download jars, and my app fails.
I checked in the cache, and into the logs: the jars are correctly downloaded before starting the application. I don’t know why there is an additional download.
>
For the run2, in stage2 logs: OWS is starting the app but during runtime there are NoClassDefFound exceptions for some jidesoft classes as while downloading jide-properties.jar there seems to have been a java.util.zip.ZipException: zip END header not found. It needs to be investigated why it is trying to download this.
>
I suspected that the OWS cache reference jars by IP and not by dns name, because the DNS resolution of https://myapp.com/ could return several IPs.
So I did a test by replacing the codebase of my app with an IP instead of DNS name, ex : https://50.50.20.12/
Then, the application runs correctly, and in the logs I can see that the jars are no longer downloaded.
>
In 1.8.0 we fixed caching to use the string version of the url. So are the jars still downloaded multiple times?
You say that your app works when you specify URLs with IP addresses in the jnlp file instead of URLs with DNS names. Did you try this with OWS 1.8.0? Did it work?
Re: Jars are downloaded several times during application running (and it fails)
Hello, the tests of the 06 june where done with OWS 1.8.0...and it failed.
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
I will investigate further and come back to you.
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
Can you please send a mail at openwebstart@karakun.com?
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
Hi
Would you be interested in testing the fix with your application?
Thanks
Would you be interested in testing the fix with your application?
Thanks
Re: Jars are downloaded several times during application running (and it fails)
Hello,
yes I'm interested in testing a fix
yes I'm interested in testing a fix
-
- Posts: 763
- Joined: 24 Mar 2020, 13:37
Re: Jars are downloaded several times during application running (and it fails)
We have fixed the jar cache key to use Url string instead of the Url. We are hoping that this would fix the problem. we are planning to make a release this week. You can try the new release.
Re: Jars are downloaded several times during application running (and it fails)
Thanks, I will give you my feedback
-
- Posts: 232
- Joined: 27 Mar 2020, 09:55
Re: Jars are downloaded several times during application running (and it fails)
New release 1.9.0 is now available
Re: Jars are downloaded several times during application running (and it fails)
Our initial tests seem to show that the bug has been fixed. We'll continue to test this version and get back to you.