AccessControlException using jogl.debug.TextRenderer in applet

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

AccessControlException using jogl.debug.TextRenderer in applet

martinezmj
I'm seeing the following exception in my applet:

Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "jogl.debug.TextRenderer" "read")

If I remove my use of com.jogamp.opengl.util.awt.TextRenderer, the problem goes away.  Using Java 7, I get the same behavior on Mac and Windows.  Any ideas what's going on?
Reply | Threaded
Open this post in threaded view
|

Re: AccessControlException using jogl.debug.TextRenderer in applet

gouessej
Administrator
Hi

Which version of JOGL do you use?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: AccessControlException using jogl.debug.TextRenderer in applet

martinezmj
I'm using the latest version from http://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar.  I've followed the example on this page: https://jogamp.org/wiki/index.php/Using_JOGL_in_Java_Web_Start#Base_class

It's a pretty big application, using lots of JOGL features -- everything works, except for the use of TextRenderer.  Any help would be appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: AccessControlException using jogl.debug.TextRenderer in applet

martinezmj
Correction, following the example on this page: http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet
Reply | Threaded
Open this post in threaded view
|

Re: AccessControlException using jogl.debug.TextRenderer in applet

Sven Gothel
Administrator
On 07/12/2013 03:12 PM, martinezmj [via jogamp] wrote:
> Correction, following the example on this page:
> http://jogamp.org/wiki/index.php/Using_JOGL_in_a_Java_applet

Who sets or reads property 'jogl.debug.TextRenderer' ?

I assume we do ? :)
In that case, it should have been allowed.

Note: You cannot set this property in an applet/JNLP,
but you need to use what we call jnlp. aliasing,
i.e. you need to set: 'jnlp.jogl.debug.TextRenderer'
in your applet html tag or JNLP file.

~Sven



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

Re: AccessControlException using jogl.debug.TextRenderer in applet

martinezmj
More specifically, what do I need to add to my JNLP?  I've tried the following, but get the same behavior:

<property name="jnlp.jogl.debug.TextRenderer" value="all"/>
<property name="jnlp.jogl.debug.TextRenderer" value="true"/>

Sven Gothel wrote
Who sets or reads property 'jogl.debug.TextRenderer' ?
I assume we do ? :)
Yes, I see this property being used in the first line of the class, here:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/util/awt/TextRenderer.java

private static final boolean DEBUG = Debug.isPropertyDefined("jogl.debug.TextRenderer", true);

The exception occurs when it's trying to load the class.
Reply | Threaded
Open this post in threaded view
|

Re: AccessControlException using jogl.debug.TextRenderer in applet

Sven Gothel
Administrator
On 07/12/2013 05:32 PM, martinezmj [via jogamp] wrote:

> More specifically, what do I need to add to my JNLP?  I've tried the
> following, but get the same behavior:
>
> <property name="jnlp.jogl.debug.TextRenderer" value="all"/>
> <property name="jnlp.jogl.debug.TextRenderer" value="true"/>
>
>     Sven Gothel wrote
>     Who sets or reads property 'jogl.debug.TextRenderer' ?
>     I assume we do ? :)
>
> Yes, I see this property being used in the first line of the class, here:
> https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/util/awt/TextRenderer.java
>
> private static final boolean DEBUG =
> Debug.isPropertyDefined("jogl.debug.TextRenderer", true);
>
> The exception occurs when it's trying to load the class.
Thank you - it's a bug on our side,
the debug access has not been set up 'yet'.

Pls file a bug report, will be fixed soon - for 2.0.2.

~Sven



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

Re: AccessControlException using jogl.debug.TextRenderer in applet

martinezmj
Thanks for the quick reply.  I've submitted the bug here: https://jogamp.org/bugzilla/show_bug.cgi?id=782