ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sorribas <sorri...@cmima.csic.es>
Subject Re: Xml-rpc client from Applet
Date Thu, 06 Nov 2003 13:25:37 GMT
Are you calling an XML-RPC conection to a server that is different where
applet is downloaded ? If so... your error is probably a matter of the
applet security mechanism (appletviewer don't take care about ) You must
sign your applet or download it to the same host that you are trying to
stablish a network connection. I have experimented this using RMI.
Jordi

El jue, 06-11-2003 a las 12:58, Cristiano da Silva Rufino escribió:
> I also want to know this ...
>   ----- Original Message ----- 
>   From: Danny Lopes 
>   To: xmlrpc-user@ws.apache.org 
>   Sent: Thursday, 06 November, 2003 10:26
>   Subject: Re: Xml-rpc client from Applet
> 
> 
>   How do I unsubscribe from this list ?
> 
>     ----- Original Message ----- 
>     From: remigijus 
>     To: xmlrpc-user@ws.apache.org 
>     Sent: Wednesday, November 05, 2003 6:37 PM
>     Subject: Xml-rpc client from Applet
> 
> 
>     Hi
> 
> 
>     When I'm using XmlRpcClient from the applet i getting the following message in the
Sun Java Console
> 
>     java.security.AccessControlException: access denied (java.util.PropertyPermission
org.apache.xmlrpc.TypeFactory read)
>      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
>      at java.security.AccessController.checkPermission(AccessController.java:401)
>      at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
>      at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1276)
>      at java.lang.System.getProperty(System.java:573)
>      at org.apache.xmlrpc.XmlRpc.<init>(Unknown Source)
>      at org.apache.xmlrpc.XmlRpcClient$Worker.<init>(Unknown Source)
>      at org.apache.xmlrpc.XmlRpcClient.getWorker(Unknown Source)
>      at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source)
>      at adminApplet.CategoriesModule$GetCategoriesAction.xmlRpcGetList(Unknown Source)
>      at adminApplet.CategoriesModule$GetCategoriesAction.actionPerformed(Unknown Source)
>      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
>      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
>      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
>      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>      at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
>      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
>      at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
>      at java.awt.Component.processMouseEvent(Component.java:5100)
>      at java.awt.Component.processEvent(Component.java:4897)
>      at java.awt.Container.processEvent(Container.java:1569)
>      at java.awt.Component.dispatchEventImpl(Component.java:3615)
>      at java.awt.Container.dispatchEventImpl(Container.java:1627)
>      at java.awt.Component.dispatchEvent(Component.java:3477)
>      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
>      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
>      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
>      at java.awt.Container.dispatchEventImpl(Container.java:1613)
>      at java.awt.Component.dispatchEvent(Component.java:3477)
>      at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread...java:201)
>      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>      at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> 
> 
>     It looks like XmlRpc object is trying to access some property which is denyed by
the Applet's security manager. 
> 
>     So is it possible to use XmlRpcClient client from the applet.
> 
>     By the way, when I'm do debugging from AppletViewer evrything is Ok.
> 
>     I tryed to use Client classes from Applet package but there is comments that they
are pretty old.
> 
>     So where is problem and how to deal with it
> 
> 
> 
>     Remis



Mime
View raw message