Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   When Javascript call applet method, applet throw security exception. (http://www.velocityreviews.com/forums/t638489-when-javascript-call-applet-method-applet-throw-security-exception.html)

crazytazo 10-06-2008 04:20 AM

When Javascript call applet method, applet throw security exception.
 
My test applet was signed and work well on applet viewer.
In browser, when javascript call applet method f(), the applet throw
java.security.AccessControlException
But if call f() through Java code, it works well.
f() method must called by javascript for arguments that created
webpage.
Give a solution please.

java.security.AccessControlException: access denied
(java.util.PropertyPermission xml.catalog.ignoreMissing read)
at java.security.AccessControlContext.checkPermission (Unknown Source)
at java.security.AccessController.checkPermission(Unk nown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unkn own Source)
at java.lang.System.getProperty(Unknown Source)
at
com.sun.org.apache.xml.internal.resolver.CatalogMa nager.<init>(Unknown
Source)
at
com.sun.xml.internal.ws.util.xml.XmlUtil.createDef aultCatalogResolver(Unknown
Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.p arseWSDL(Unknown
Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.< init>(Unknown
Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.< init>(Unknown
Source)
at
com.sun.xml.internal.ws.spi.ProviderImpl.createSer viceDelegate(Unknown
Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at org.tempuri.ICFSWebServices.<init>(ICFSWebServices .java:46)
at bizapplet.ICFSClient.<init>(ICFSClient.java:12)
at bizapplet.Main.t(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
java.lang.Exception: java.security.AccessControlException: access
denied (java.util.PropertyPermission xml.catalog.ignoreMissing read)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)

Daniel Pitts 10-06-2008 02:37 PM

Re: When Javascript call applet method, applet throw security exception.
 
Please don't multi-post. If you must, you should cross-post, but anyone
likely to read clj.gui is probably reading clj.programmer as well, so no
need.

crazytazo wrote:
a multi-posted post

I have already answered your question on clj.gui
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

crazytazo 10-06-2008 09:51 PM

Re: When Javascript call applet method, applet throw securityexception.
 
On Oct 6, 11:37*pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.net> wrote:
> Please don't multi-post. *If you must, you should cross-post, but anyone
> likely to read clj.gui is probably reading clj.programmer as well, so no
> need.
>
> crazytazo wrote:
>
> a multi-posted post
>
> I have already answered your question on clj.gui
> --
> Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>


Thanks Daniel.
I didn't know that multi posting is illegal(?). Sorry.


Daniel Pitts 10-06-2008 11:12 PM

Re: When Javascript call applet method, applet throw security exception.
 
crazytazo wrote:
> Thanks Daniel.
> I didn't know that multi posting is illegal(?). Sorry.
>

No need to apologize, just make sure to follow this "dogma" in the
future :-).

It's not illegal, but it does tend to fragment discussions.
cross-posting is often better if you truly can't find a single
appropriate group, although cross-posting can be dangerous if it is a
"debate" question to groups with differing prevalent opinions.

In other-words, it depends. for comp.lang.java.*, use cross-posting, or
only post to comp.lang.java.programmer.

Hope this helps,
Daniel.

--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57