[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlrpc-user
Subject: Re: Xml-rpc client from Applet
From: "remigijus" <bauzys () takas ! lt>
Date: 2003-11-07 16:22:09
[Download RAW message or body]
No I Don't. Rpc connection is to the same host. I just switched to the
marque xmlrpc package for the client side. And had the same problem, which i
have solved.
Marqeu package was calling system.getProperty in order to det default sax
parser. That part I changed and evrything went Ok.
I think the problem with apache xmlrpc is similar. So for real use it have
to be taseted yet again to make sure that it works properly from the applet.
No I have no time to do any sort of investigation on this, but later I going
to try to find where wxacty is the problem.
Remis
----- Original Message -----
From: "sorribas" <sorribas@cmima.csic.es>
To: <xmlrpc-user@ws.apache.org>
Sent: Thursday, November 06, 2003 3:25 PM
Subject: Re: Xml-rpc client from Applet
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(AbstractButto
n.java:1839)
> at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
20)
> 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(Basic
MenuItemUI.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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic