You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2009/06/09 17:49:24 UTC
Kitchen Sink Demo: exception via Web Start
Hi to all,
I've just tried the Kitchen Sink Demo via Web Start, but this time
with the new Java 6 Update 14 (as always under Windows XP).
Now it gives the following exception:
java.security.AccessControlException: access denied
(java.util.PropertyPermission mrj.version read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at pivot.wtk.DesktopApplicationContext.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Someone has the same problem ?
On Windows too (with other Java versions) ?
Bye,
Sandro
Re: Kitchen Sink Demo: exception via Web Start
Posted by Greg Brown <gk...@mac.com>.
I think it is safe to read that property, but I'll double-check. I
haven't uploaded the latest JARs - the trunk code isn't really stable
enough for that right now.
On Jun 10, 2009, at 3:49 AM, Sandro Martini wrote:
> Hi Greg,
> thanks ... in a hurry I forgot to tell that seems something related to
> mac-only properties ... but you find it without my hint :-) .
> Only one question (i don't remember): from an untrusted execution, is
> it enabled to read the os.name property ?
>
> But I've just re-tried the online Web Start Demo (under Demos/Kitchen
> Sink/ Web Start Demo) but i still have the same problem ... have you
> already updated jars on the site ?
>
>
> On the Web Start theme i have other questions, but it's better to put
> them in another mail ...
>
>
> Bye,
> Sandro
Re: Kitchen Sink Demo: exception via Web Start
Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
thanks ... in a hurry I forgot to tell that seems something related to
mac-only properties ... but you find it without my hint :-) .
Only one question (i don't remember): from an untrusted execution, is
it enabled to read the os.name property ?
But I've just re-tried the online Web Start Demo (under Demos/Kitchen
Sink/ Web Start Demo) but i still have the same problem ... have you
already updated jars on the site ?
On the Web Start theme i have other questions, but it's better to put
them in another mail ...
Bye,
Sandro
Re: Kitchen Sink Demo: exception via Web Start
Posted by Greg Brown <gb...@vmware.com>.
Never mind, I see the problem. I thought I read something that said
the best way to check for Mac OS X was to look for the mrj.version
property. However, it appears that I should be looking at the os.name
property. Fixed.
On Jun 9, 2009, at 11:57 AM, Greg Brown wrote:
> I thought I fixed that. Where are you trying to run it from?
>
> On Jun 9, 2009, at 11:49 AM, Sandro Martini wrote:
>
>> Hi to all,
>> I've just tried the Kitchen Sink Demo via Web Start, but this time
>> with the new Java 6 Update 14 (as always under Windows XP).
>>
>> Now it gives the following exception:
>>
>> java.security.AccessControlException: access denied
>> (java.util.PropertyPermission mrj.version read)
>> at java.security.AccessControlContext.checkPermission(Unknown
>> Source)
>> at java.security.AccessController.checkPermission(Unknown Source)
>> at java.lang.SecurityManager.checkPermission(Unknown Source)
>> at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
>> at java.lang.System.getProperty(Unknown Source)
>> at pivot.wtk.DesktopApplicationContext.main(Unknown Source)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
>> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
>> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
>> at com.sun.javaws.Launcher.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>>
>> Someone has the same problem ?
>> On Windows too (with other Java versions) ?
>>
>> Bye,
>> Sandro
>
Re: Kitchen Sink Demo: exception via Web Start
Posted by Greg Brown <gk...@mac.com>.
I thought I fixed that. Where are you trying to run it from?
On Jun 9, 2009, at 11:49 AM, Sandro Martini wrote:
> Hi to all,
> I've just tried the Kitchen Sink Demo via Web Start, but this time
> with the new Java 6 Update 14 (as always under Windows XP).
>
> Now it gives the following exception:
>
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission mrj.version read)
> at java.security.AccessControlContext.checkPermission(Unknown Source)
> at java.security.AccessController.checkPermission(Unknown Source)
> at java.lang.SecurityManager.checkPermission(Unknown Source)
> at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
> at java.lang.System.getProperty(Unknown Source)
> at pivot.wtk.DesktopApplicationContext.main(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at com.sun.javaws.Launcher.executeApplication(Unknown Source)
> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
> at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
> at com.sun.javaws.Launcher.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> Someone has the same problem ?
> On Windows too (with other Java versions) ?
>
> Bye,
> Sandro