ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Indra Syafruddin <indra_syafrud...@yahoo.com>
Subject Re: Can we use XML RPC Client within an Applet
Date Mon, 16 May 2005 11:24:37 GMT
I haven't tried xml-rpc yet. But maybe I can help.

Maybe you are trying to access local file. Applet are not allowed to access local files, either
in client or in server. 
Maybe you should check some points :

   The class you are trying to execute should be able to be accessed by applet (in same package,
or in URL form)
   try to execute the class in URL format, not in directory format 

For example, you put your applet in c:\tomcat\web_inf\applet.class 

if you try to execute foo.class in directory c:\tomcat\web_inf\foo\foo.class. 

try to execute foo.class in http://localhost/foo/foo.class or ./foo/foo.class 

instead of c:\tomcat\web_inf\foo\foo.class.

I had the almost-same problem when trying to connect to microsoft access database (without
using JDBC). 

 

 

 

sumeet.s@netsol.co.in wrote:

Hi all, 
   I am using XML RPC Version 1.2 b1 and it is giving such an error when I access xml rpc
requests from an applet.  It works fine until I have been running as a standalone client,
but when I wrap it up as an applet it gives the following error message. Could anyone tell
me what am I doing wrong.  

java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.xmlrpc.TypeFactory
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 org.apache.xmlrpc.XmlRpc.<init>(XmlRpc.java:200) 
            at org.apache.xmlrpc.XmlRpcClient$Worker.<init>(XmlRpcClient.java:325) 
            at org.apache.xmlrpc.XmlRpcClient.getWorker(XmlRpcClient.java:234) 
            at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:160) 
            at MyApplet$20.actionPerformed(MyApplet.java:2236) 
            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) 
            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) 
            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 
            at javax.swing.DefaultButtonModel.setPressed(Unknown Source) 
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) 
            at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) 
            at java.awt.Component.processMouseEvent(Unknown Source) 
            at javax.swing.JComponent.processMouseEvent(Unknown Source) 
            at java.awt.Component.processEvent(Unknown Source) 
            at java.awt.Container.processEvent(Unknown Source) 
            at java.awt.Component.dispatchEventImpl(Unknown Source) 
            at java.awt.Container.dispatchEventImpl(Unknown Source) 
            at java.awt.Component.dispatchEvent(Unknown Source) 
            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) 
            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) 
            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) 
            at java.awt.Container.dispatchEventImpl(Unknown Source) 
            at java.awt.Component.dispatchEvent(Unknown Source) 
            at java.awt.EventQueue.dispatchEvent(Unknown Source) 
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) 
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
            at java.awt.EventDispatchThread.run(Unknown Source) 

Thanks, 
Sumeet 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message