-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Main Class Not Found with AdoptOpneJDK/IcedTea-Web version >1.8, working in 1.8 #465
Comments
@solcaj is this issue still open? If yes, can you please provide a JNLP file? |
I ran into the same issue a few days ago, I think. Deleting the cache solved it as far as i remember. I think there was a problem trying to download a jardiff for an updated jar. The downloader said the jardiff could not be found (it was available on the server though) |
Waiting for exception dialog to be closed |
We suspect that there might be an issue with JarDiff.
So the problem could be at different places. Either with the server to provide the jardiff. |
If you are able to give us access to a system where we can reproduce this behavior we are more than happy to look into this. |
It was no problem to get the Jardiff via browser and it also works via Oracle Webstart, so I don't think it's a server issue. I will try to pin it down further though. I will see what I can do to reproduce this, but I' not sure it's going to work. |
I think the wrong cache folder is used when doing the operation. It's configured to be /var/cache/java.deployment but it tries to use icedtea-web/cache (default). I have to leave now but may look into whether this is the case later. |
Btw: using CacheUtil.downloadAndGetCacheFile on the jardiff seems to work |
I'm currently unable to reproduce, but I now believe this exceptions occurs, because the folder ~/.cache/icedtea-web/tmp does not exist, i. e. when using another cache folder than the default one. In other cases there are calls like this
so the folder seems to get created at some point. But when using another folder it does not get created. Calling unpack(final InputStream input) does
which is using /.cache/icedtea-web/tmp/, but the (parent) folder was not created at any point. Is this possible? I will try to reproduce the issue if you need more information, but I'm short of time at the moment. So to fix this issue I think you must make sure that the folder
exists. |
@sclassen This test throws java.io.FileNotFoundException: /home/myuser/.cache/icedtea-web/tmp/1bd2adfe-77dc-44d7-bdc8-21b073fa8aa6.jardiff (Datei oder Verzeichnis nicht gefunden) if /home/myuser/.cache/icedtea-web/tmp/ does not exist.
Adding FileUtils.createParentDir(diffJarFile); seems to fix the issue for me. I'm not sure it's the right way to do it though
|
we have an application which is started using JNLP and was working using IcedTeaWeb Version 1.8 (classpath.org, pipermail march 19).
When I tried the same JNLP file with AdoptOpenJDK/IcedTea-Web Version 1.8.1 .. 1.8.3 I got the following errors (identical error for all three versions of IcedTea Web > 1.8)
The Jar file at
https://XXXXX/YY/docs/jnlp/doc-applet.jar
is falsely not found since with 1.8 is ok ok and pointing a browser to this URL finds the JAR file. Then in the JNLP the main class is declared in the<application-desc>
section.Any hints or advises would be very helpful
The text was updated successfully, but these errors were encountered: