WOOW!!! thanks!!! seems to be working now!!!
This is due to the fact the 1.0 distribution of XML-RPC uses the > sun.misc Base64 encoder/decoder classes so as to encode/decode binary > parts of XML-RPC messages in the applet package. YEAP, that was the problem... i changed JAR files to those from http://www.activemath.org/~ilo/revisions/xmlrpc/ and now applet works, at least under SUN JVM 1.3.1_01 huge thanks!!! Anton Litvinenko. ----- Original Message ----- From: "Paul Libbrecht" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 12:39 AM Subject: Re: AccessControlException in applet > Hey, hey, > > > That's our famous one. > This is due to the fact the 1.0 distribution of XML-RPC uses the > sun.misc Base64 encoder/decoder classes so as to encode/decode binary > parts of XML-RPC messages in the applet package. > This exception has been noticed, by us at least, as SecurityException, > using appletviewer and all non-internet-explorer related applet engines > on MacOSX and Linux. > > The workaround ? Use the base64 encoding classes that are under LGPL in > the org.apache.xmlrpc package (not the applet one). > > I have made this fix, together with a few others and have suggested > these to the mailing list about a week ago. It is published (under the > same licenses) at: > > http://www.activemath.org/~ilo/revisions/xmlrpc/ > > Using this should fix your problem. > (we're using the applet parameters for port number and other such as > applet-params, i.e. not an absolute or computed URL which makes sure > that the host is the same and it works fine with us) > Tell me (the list I guess) of any problem you encounter as we cannot > eternally debug on all flavours of browsers/platforms combinations. > > Paul > > > On Mercredi, mars 13, 2002, at 03:59 , Anton Litvinenko wrote: > > > Hello, > > > > I am trying to run applet, that connects to Server and tries to execute > > methods via xmlrpc. > > > > The connecion establishes, but when applet tries to call a method a > > java.security.AccessControlException appears.... > > > > please help me to solve this problem > > > > Exception TRace: > > java.security.AccessControlException: access denied > > (java.lang.RuntimePermission accessClassInPackage.sun.misc) > > 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.checkPackageAccess(Unknown Source) > > at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source) > > at sun.applet.AppletClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClass(Unknown Source) > > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > > at > > org.apache.xmlrpc.applet.SimpleXmlRpcClient.execute(SimpleXmlRpcClient.java) > > at org.apache.xmlrpc.applet.XmlRpcApplet.execute(XmlRpcApplet.java) > > at xmlrpc.init(xmlrpc.java:29) > > at sun.applet.AppletPanel.run(Unknown Source) > > at java.lang.Thread.run(Unknown Source) > > > > Applet Code: > > > > public void init() { > > try { > > jbInit(); > > System.out.println("client init "); > > initClient(6666); > > Vector params = new Vector (); > > params.addElement ("Hello World"); > > // this method returns a string > > System.out.println("executin the query"); > > String result = (String) execute ("echo", params); > > System.out.println(result); > > textField1.setText("result"); > > > > } > > catch(Exception e) { > > e.printStackTrace(); > > } > > } > > > > > > > > sincerely Yours, > > ANTON Litvinenko. > > > > >
