JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

classic Classic list List threaded Threaded
7 messages Options
hs
Reply | Threaded
Open this post in threaded view
|

JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

hs
JNLPAppletLauncher does not work on OSX 10.9.1 / Java7u45 / safari 7.0.1.

A demo applet
http://jogamp.org/deployment/v2.1.3/jogl-demos/applet-gears-launcheronly.html
generates IOException.

java.io.IOException: Cannot create directory /Users/test/.jnlp-applet/cache/jogamp_org/5f5884646e05bc5cfb96a6ddc87db80f3fc379e1
        at org.jdesktop.applet.util.JNLPAppletLauncher.createCacheDir(JNLPAppletLauncher.java:1456)
        at org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1405)
        at org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1310)
        at org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:662)
        at org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:911)

And if a cache directory already exists, exception becomes

java.io.FileNotFoundException: /Users/test/.jnlp-applet/cache/jogamp_org/369fb5c6672c00e81887c4fd273bbbb985254289/cache.lck (Operation not permitted)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
        at org.jdesktop.applet.util.JNLPAppletLauncher.validateCache(JNLPAppletLauncher.java:1665)
        at org.jdesktop.applet.util.JNLPAppletLauncher.processNativeJar(JNLPAppletLauncher.java:1629)
        at org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1413)
        at org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1310)
        at org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:662)
        at org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:911)

Firefox works. It seems similar to https://jogamp.org/bugzilla/show_bug.cgi?id=865

Reply | Threaded
Open this post in threaded view
|

Re: JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

Sven Gothel
Administrator
On 12/27/2013 01:43 PM, hs [via jogamp] wrote:

> JNLPAppletLauncher does not work on OSX 10.9.1 / Java7u45 / safari 7.0.1.
>
> A demo applet
> http://jogamp.org/deployment/v2.1.3/jogl-demos/applet-gears-launcheronly.html
> generates IOException.
>
> java.io.IOException: Cannot create directory
> /Users/test/.jnlp-applet/cache/jogamp_org/5f5884646e05bc5cfb96a6ddc87db80f3fc379e1
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.createCacheDir(JNLPAppletLauncher.java:1456)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1405)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1310)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:662)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:911)
>
> And if a cache directory already exists, exception becomes
>
> java.io.FileNotFoundException:
> /Users/test/.jnlp-applet/cache/jogamp_org/369fb5c6672c00e81887c4fd273bbbb985254289/cache.lck
> (Operation not permitted)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.validateCache(JNLPAppletLauncher.java:1665)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.processNativeJar(JNLPAppletLauncher.java:1629)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1413)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1310)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:662)
>
>         at
> org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:911)
>
> Firefox works. It seems similar to https://jogamp.org/bugzilla/show_bug.cgi?id=865
Indeed. Since using our 'NApplet' approach, i.e. simple Applet tag w/o JNLP,
is preferred and working well, this shall be no blocking issue.

Please file the bug w/ Oracle's Applet plugin, since it's theirs ..

Thank you for giving us the 'heads up'.

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

Sven Gothel
Administrator
In reply to this post by hs
On 12/27/2013 02:28 PM, Sven Gothel wrote:

> On 12/27/2013 01:43 PM, hs [via jogamp] wrote:
>> JNLPAppletLauncher does not work on OSX 10.9.1 / Java7u45 / safari 7.0.1.
>>
>> A demo applet
>> http://jogamp.org/deployment/v2.1.3/jogl-demos/applet-gears-launcheronly.html
>> generates IOException.
>>
>> java.io.IOException: Cannot create directory
>> /Users/test/.jnlp-applet/cache/jogamp_org/5f5884646e05bc5cfb96a6ddc87db80f3fc379e1
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.createCacheDir(JNLPAppletLauncher.java:1456)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1405)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1310)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:662)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:911)
>>
>> And if a cache directory already exists, exception becomes
>>
>> java.io.FileNotFoundException:
>> /Users/test/.jnlp-applet/cache/jogamp_org/369fb5c6672c00e81887c4fd273bbbb985254289/cache.lck
>> (Operation not permitted)
>>         at java.io.FileOutputStream.open(Native Method)
>>         at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
>>         at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.validateCache(JNLPAppletLauncher.java:1665)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.processNativeJar(JNLPAppletLauncher.java:1629)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.initResources(JNLPAppletLauncher.java:1413)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.initAndStartApplet(JNLPAppletLauncher.java:1310)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher.access$000(JNLPAppletLauncher.java:662)
>>
>>         at
>> org.jdesktop.applet.util.JNLPAppletLauncher$1.run(JNLPAppletLauncher.java:911)
>>
>> Firefox works. It seems similar to https://jogamp.org/bugzilla/show_bug.cgi?id=865
>
> Indeed. Since using our 'NApplet' approach, i.e. simple Applet tag w/o JNLP,
> is preferred and working well, this shall be no blocking issue.
>
> Please file the bug w/ Oracle's Applet plugin, since it's theirs ..
Ooops .. I was reading too fast :)

So it's _our_ org.jdesktop.applet.util.JNLPAppletLauncher - I see.

We will soon deprecate this method, i.e. remove it
in favor of described 'NApplet' method.

>
> Thank you for giving us the 'heads up'.

Thank you!

>
> ~Sven


signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

gouessej
Administrator
Sven Gothel wrote
So it's _our_ org.jdesktop.applet.util.JNLPAppletLauncher - I see.

We will soon deprecate this method, i.e. remove it
in favor of described 'NApplet' method.
What should we use when NApplet isn't suitable?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

Sven Gothel
Administrator
On 12/27/2013 03:47 PM, gouessej [via jogamp] wrote:
>     Sven Gothel wrote
>     So it's _our_ org.jdesktop.applet.util.JNLPAppletLauncher - I see.
>
>     We will soon deprecate this method, i.e. remove it
>     in favor of described 'NApplet' method.
>
> What should we use when NApplet isn't suitable?

'NApplets' implement all the functionality of 'JNLPAppletLauncher',
i.e. exposing native libraries included in JAR files,
capable to be loaded by the [signed] user class.

Hence I don't see why 'NApplet' isn't suitable.

However, you can still choose 'JNLP Applets',
as they are now supported on all systems by Oracle and IcedTea-Web.

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

gouessej
Administrator
I need to go on using JNLP in applets, I have to load some native libraries not in JogAmp.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JNLPAppletLauncher on OSX 10.9.1 / safari 7.0.1

Sven Gothel
Administrator
On 12/28/2013 01:32 PM, gouessej [via jogamp] wrote:
> I need to go on using JNLP in applets, I have to load some native libraries
> not in JogAmp.

NApplet can ofc load any native library, i.e. other than jogamp if deployed
within a jar file ..

~Sven



signature.asc (911 bytes) Download Attachment