[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    RE: Can we use XML RPC Client within an Applet
From:       "Leverett, Paul Van" <paul.leverett () hp ! com>
Date:       2005-05-19 16:56:09
Message-ID: 7D6953BFA3975C44BD80BA89292FD60E02ECA2C1 () cacexc08 ! americas ! cpqcorp ! net
[Download RAW message or body]

Hi Sumeet,
 
I've also found that you can't use the class "org.apache.xmlrpc.XmlRpcClient" when \
your client is an applet. I've tried and ran into the same error message you did.  
I switched to using "org.apache.xmlrpc.applet.SimpleXmlRpcClient" and my applet works \
fine now.  
- Paul

________________________________

From: James Carroll [mailto:jim@microbrightfield.com] 
Sent: Wednesday, May 18, 2005 6:12 AM
To: xmlrpc-user@ws.apache.org
Subject: RE: Can we use XML RPC Client within an Applet



 

Hi Sumeet, 

 

The applet can be an XML-RPC client, and it can make requests to other machines, the \
trick

is that the applet make the request back to the originating machine (the one with the \
web page

and the applet...)   but make the request to something that will proxy the request to \
the other

machine, receive the result, and then return that result to your applet.  You can use \
a Directory

directive in apache.conf with mod_proxy to do the proxying...  (but be careful you \
don't let it

proxy any request from anywhere to anywhere, hackers will use this to anonymize their \
traffic.)

There are other ways of having something on your originating server return the \
results from 

another machine too...  a java servlet would look something like:

 

                    URL url = new URL(ourRequest);

                    URLConnection connection = url.openConnection();

 

                    BufferedInputStream bis = new \
BufferedInputStream(connection.getInputStream());

                    OutputStream binout = null;

 

                    byte[] storage = new byte[storageLength];

                    binout = response.getOutputStream();

                    // relay whatever content type is returned from our request

                    response.setContentType(connection.getContentType());

 

                    while (true)

                    {

                        int bytesRead = bis.read(storage, 0, storageLength);

 

                        if (bytesRead == -1)

                        {

                            break;

                        }

 

                        binout.write(storage, 0, bytesRead);

                   ....

 

(not a working example.)

 

-Jim

 

________________________________

From: sumeet.s@netsol.co.in [mailto:sumeet.s@netsol.co.in] 
Sent: Wednesday, May 18, 2005 12:44 AM
To: xmlrpc-user@ws.apache.org
Subject: RE: Can we use XML RPC Client within an Applet

 

Hi andreas, 
  Is the server the applet tries to connect to the same one it (the applet) \
                originated from ? 
A: No. It is a different machine. 
  

Rgds, 
Sumeet 
-----Original Message----- 
From: "Schölver, Andreas" [mailto:Andreas.Schoelver@ebootis.de] 
Sent: Tuesday, May 17, 2005 4:56 PM 
To: 'xmlrpc-user@ws.apache.org' 
Subject: RE: Can we use XML RPC Client within an Applet 

Is the server the applet tries to connect to the same one it (the applet) originated \
from ?   
Andreas 
-----Original Message----- 
From: sumeet.s@netsol.co.in [mailto:sumeet.s@netsol.co.in] 
Sent: Sunday, May 15, 2005 7:33 AM 
To: xmlrpc-user@ws.apache.org 
Subject: Can we use XML RPC Client within an Applet 
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 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>RE: Can we use XML RPC \
Client within an Applet</TITLE> <META http-equiv=Content-Type content="text/html; \
charset=iso-8859-1"> <META content="MSHTML 6.00.2900.2627" name=GENERATOR><!--[if \
!mso]> <STYLE>v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="time" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType \
 name="date" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if \
!mso]> <STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: blue; TEXT-DECORATION: underline
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New \
Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto }
SPAN.EmailStyle18 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2>Hi Sumeet,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2>I've also found that you can't use the class 
"org.apache.xmlrpc.XmlRpcClient" when your client is an applet. I've tried and 
ran into the same error message you did.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2>I switched to using 
"org.apache.xmlrpc.applet.SimpleXmlRpcClient" and my applet works fine 
now.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=482405116-19052005><FONT face="Trebuchet MS" 
color=#0000ff size=2>- Paul</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> James Carroll 
[mailto:jim@microbrightfield.com] <BR><B>Sent:</B> Wednesday, May 18, 2005 6:12 
AM<BR><B>To:</B> xmlrpc-user@ws.apache.org<BR><B>Subject:</B> RE: Can we use XML 
RPC Client within an Applet<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi \
Sumeet,  <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The \
applet can be an  XML-RPC client, and it can make requests to other machines, the 
trick<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">is that the applet make 
the request back to the originating machine (the one with the web 
page<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">and the 
applet…)&nbsp;&nbsp; but make the request to something that will proxy the 
request to the other<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">machine, receive the 
result, and then return that result to your applet.&nbsp; You can use a 
Directory<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">directive in 
apache.conf with mod_proxy to do the proxying… &nbsp;(but be careful you don’t 
let it<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">proxy any request from 
anywhere to anywhere, hackers will use this to anonymize their 
traffic.)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">There are other ways of 
having something on your originating server return the results from 
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">another machine too… 
&nbsp;a java servlet would look something like:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 URL url = new URL(ourRequest);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 URLConnection connection = url.openConnection();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 BufferedInputStream bis = new 
BufferedInputStream(connection.getInputStream());<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 OutputStream binout = null;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 byte[] storage = new byte[storageLength];<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;binout  \
= response.getOutputStream();<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT \
face=Arial color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;  \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// \
 relay whatever content type is returned from our 
request<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.setContentType(connection.getContentType());<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 while (true)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 {<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 int bytesRead = bis.read(storage, 0, 
storageLength);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 if (bytesRead == -1)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 {<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  \
break;<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 }<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 binout.write(storage, 0, bytesRead);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 ….<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">(not a working  example.)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">-Jim<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P> <DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: \
Tahoma">From:</SPAN></FONT></B><FONT  face=Tahoma size=2><SPAN style="FONT-SIZE: \
10pt; FONT-FAMILY: Tahoma">  sumeet.s@netsol.co.in [mailto:sumeet.s@netsol.co.in] \
<BR><B><SPAN  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, <st1:date \
w:st="on"  ls="trans" Month="5" Day="18" Year="2005">May 18, 2005</st1:date> \
<st1:time  w:st="on" Hour="0" Minute="44">12:44 AM</st1:time><BR><B><SPAN 
style="FONT-WEIGHT: bold">To:</SPAN></B> xmlrpc-user@ws.apache.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: Can we use XML RPC Client 
within an Applet</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Hi andreas, 
</SPAN></FONT><BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Is the 
server the applet tries to connect to the same one it (the applet) originated 
from ?</SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">A: No. It is 
a different machine. </SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp; </SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Rgds, 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">Sumeet</SPAN></FONT> <BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">-----Original Message-----</SPAN></FONT> <BR><FONT 
size=2><SPAN style="FONT-SIZE: 10pt">From: "Schölver, Andreas" [<A 
href="mailto:Andreas.Schoelver@ebootis.de">mailto:Andreas.Schoelver@ebootis.de</A>] 
</SPAN></FONT><BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Sent: Tuesday, 
<st1:date w:st="on" ls="trans" Month="5" Day="17" Year="2005">May 17, 
2005</st1:date> <st1:time w:st="on" Hour="16" Minute="56">4:56 
PM</st1:time></SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">To: 
'xmlrpc-user@ws.apache.org'</SPAN></FONT> <BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">Subject: RE: Can we use XML RPC Client within an 
Applet</SPAN></FONT> <o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Is the 
server the applet tries to connect to the same one it (the applet) originated 
from ?</SPAN></FONT> <BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;</SPAN></FONT> <BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">Andreas</SPAN></FONT> <BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">-----Original Message-----</SPAN></FONT> <BR><FONT 
size=2><SPAN style="FONT-SIZE: 10pt">From: sumeet.s@netsol.co.in [<A 
href="mailto:sumeet.s@netsol.co.in">mailto:sumeet.s@netsol.co.in</A>] 
</SPAN></FONT><BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Sent: Sunday, 
<st1:date w:st="on" ls="trans" Month="5" Day="15" Year="2005">May 15, 
2005</st1:date> <st1:time w:st="on" Hour="7" Minute="33">7:33 
AM</st1:time></SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">To: 
xmlrpc-user@ws.apache.org</SPAN></FONT> <BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">Subject: Can we use XML RPC Client within an 
Applet</SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Hi all, 
</SPAN></FONT><BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">&nbsp;&nbsp; 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.&nbsp; 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.&nbsp; 
</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN 
style="FONT-SIZE: 10pt">java.security.AccessControlException: access denied 
(java.util.PropertyPermission org.apache.xmlrpc.TypeFactory read) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.security.AccessControlContext.checkPermission(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.security.AccessController.checkPermission(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.lang.SecurityManager.checkPermission(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.lang.System.getProperty(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at org.apache.xmlrpc.XmlRpc.&lt;init&gt;(XmlRpc.java:200) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at org.apache.xmlrpc.XmlRpcClient$Worker.&lt;init&gt;(XmlRpcClient.java:325) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at org.apache.xmlrpc.XmlRpcClient.getWorker(XmlRpcClient.java:234) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:160) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at MyApplet$20.actionPerformed(MyApplet.java:2236) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Component.processMouseEvent(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at javax.swing.JComponent.processMouseEvent(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Component.processEvent(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Container.processEvent(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Component.dispatchEventImpl(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Container.dispatchEventImpl(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Component.dispatchEvent(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Container.dispatchEventImpl(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.Component.dispatchEvent(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.EventQueue.dispatchEvent(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
</SPAN></FONT><BR><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 at java.awt.EventDispatchThread.run(Unknown Source) </SPAN></FONT><BR><FONT 
size=2><SPAN style="FONT-SIZE: 10pt">Thanks, </SPAN></FONT><BR><FONT 
size=2><SPAN style="FONT-SIZE: 10pt">Sumeet 
</SPAN></FONT><o:p></o:p></P></DIV></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic