Hi regarding download always in using icedtea-web

brahmam sreerama.naga at gmail.com
Mon Aug 20 10:46:40 UTC 2018


Hi,

On Mon, Aug 13, 2018 at 6:28 PM Jiri Vanek <jvanek at redhat.com> wrote:

> On 08/09/2018 12:41 PM, brahmam wrote:
> > Hi,
> >
> > To launch JNLP, we started using icedtea-web.
> >
> > Below is the way we configured:
> >
> > We tried launching downloaded JNLP from windows.
> > 1. Using adopt-openjdk8172 and configured the java_home as required.
> > 2. downloaded icedtea-web 1.7.1 installer and installed on my windows
> machine.
>
> You downloaded ITW form
> http://icedtea.wildebeest.org/download/icedtea-web-binaries/1.7.1/windows/
> ?
>
>
Yes, I downloaded from the above url


>
> > 3. Use icedtea-web\bin javaws to launch the JNLP file.
> >
> >  > It opens command window and logs the details.. can we disable showing
> this window?
>
> Currently the upstream builds conatains onl .bat lucnhers. 'msorry for it.
> We have .sh for linux and
> those works fine.
> As Alex mentioned, hist itw which is included in his OpenJDK msi have
> native launchers.
>
> For 1.8, the major rework is to rewrite launchers to native ones, so this
> issue will disappear.
>

OK. 1.8 is the next version planned for ITW?


>
> >
> >  > In the above window it also shows errors as below, this is shown for
> many files..
> > Removing execute permissions on file
> > C:\Users\<UserId>\.config\icedtea-web\security\trusted.clientcerts.temp
> failed
>
> This is most likely windows specific issue. It should do no harm. We are
> working on removing windows
> issues, but as windows workd is fresh for ite (year) opposite to
> linux(10years including gnu
> classapth) similar problems may appear.
> Patches welcomed!
>

OK


> >
> >  > It always downloads the libraries, is it normal? is any cache
> behaviour not to download always
> > except there is a new version of libraries available?
>
> Nope. the offline work and caching should work fine. If it is really
> escaping, serious bug escaped
> us. Do you mind to fill the https://icedtea.classpath.org/bugzilla/ for
> us? Please be sure I must be
> able to reproduce to fix it. Again, fix welcomed.
>

On fresh launch of JNLP it works fine. and try next time to launch same
JNLP it shows it is downloading and after it throws the below exception,
I  suspect
either the class loader tries to load jar files twice as both the
files(current and previous) downloaded are in the same folder see below
image, here 0 & 1 folders are created at first launch and downloads are
kept in those folders and 2 & 3 folders are created and downloads are kept
on second launch
or the loaded classes are not erased properly when terminated.


Folder path: C:\Users\<UserID>\.cache\icedtea-web\cache
[image: image.png]

*Part of Exception:*
*netx: Launch Error: Could not launch JNLP file. ( (loader (instance of
net/sourceforge/jnlp/runtime/JNLPClassLoader): attempted  duplicate class
definition for name: "org/apache/xerces/impl/dv/dtd/DTD*
*DVFactoryImpl"))*
*net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not
launch JNLP file. The application has not been initialized, for more
information execute javaws/browser from the command line and se*
*nd a bug report.*
*        at
net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:577)*
*        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:940)*
*Caused by: java.lang.reflect.InvocationTargetException*
*        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
*        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)*
*        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
*        at java.lang.reflect.Method.invoke(Method.java:498)*
*        at
net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:571)*
*        ... 1 more*
*Caused by: java.lang.LinkageError: loader (instance of
net/sourceforge/jnlp/runtime/JNLPClassLoader): attempted  duplicate class
definition for name: "org/apache/xerces/impl/dv/dtd/DTDDVFactoryImpl"*
*        at java.lang.ClassLoader.defineClass1(Native Method)*
*        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)*

are there any settings to do to enable caching and not to download the
contents mentioned in the JNLP file always unless there is change in the
content ?

Before file a Bug, I need to clean/mask few things. will do once things are
ready to file.


> >
> > Thanks in advance for your help!
> >
>
> ITW is new in Windws world. Any help you can provide, wil be appreciated.
>

OK, currently it is in evaluation for us, as and when we find anything we
will be definitely provide them.


>
> J.
> >
> > Regards,
> > Sreeram
>
>
> --
> Jiri Vanek
> Senior QE engineer, OpenJDK QE lead, Mgr.
> Red Hat Czech
> jvanek at redhat.com    M: +420775390109
>


-- 
Thanks & Regards,
Sreeramabrahmam
Mob:+91-9535000477
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180820/917cef43/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 16738 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180820/917cef43/image-0001.png>


More information about the distro-pkg-dev mailing list