hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen ter Voorde <j.tervoo...@home.nl>
Subject Re: HttpClient not good for applets
Date Sun, 03 Jul 2005 11:16:59 GMT
I think you should sign the httpclient jar too.
We're currently using it an applet and it works fine.

Gábor SEBESTYÉN wrote:

>
> On 2005.07.02., at 20:20, Michael Becke wrote:
>
>> HttpClient is not specifically tested for plugin compliance, but I
>> know a number of people do use it in applets.  As Ken has mentioned I
>> believe the key is signing the applet.
>>
> OK, I gave a try for signed applet. I did so, created a test  
> certificate, signed the jar, verified. Browser asked me to trust the  
> certificate, I pressed "Yes" I trust in myself :)
> So far everything is simple.
> Then came the suprise, applet crashed again with  
> java.security.AccessControlException disallowing the communication to  
> proxy.
>
> Java(TM) Plug-in: Version 1.4.2_07
> Using JRE version 1.4.2_07 Java HotSpot(TM) Client VM
> java.security.AccessControlException: access denied  
> (java.net.SocketPermission core0 resolve)
>     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.checkConnect(SecurityManager.java: 1023)
>     ...
>     at java.net.InetAddress.getByName(InetAddress.java:889)
>     at java.net.InetSocketAddress.<init>(InetSocketAddress.java:114)
>     at java.net.Socket.<init>(Socket.java:184)
>     at  
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.crea 
> teSocket(DefaultProtocolSocketFactory.java:79)
>     at  
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.crea 
> teSocket(DefaultProtocolSocketFactory.java:121)
>     at org.apache.commons.httpclient.HttpConnection.open 
> (HttpConnection.java:704)
>     ...
>     at org.apache.commons.httpclient.HttpClient.executeMethod 
> (HttpClient.java:324)
>     at com.netforum.talk2me.comm.NetBridge.post(NetBridge.java:179)
>     ...
>     at com.netforum.talk2me.OperatorApplet.start(OperatorApplet.java: 
> 114)
>     at sun.applet.AppletPanel.run(AppletPanel.java:391)
>     at java.lang.Thread.run(Thread.java:552)
>
> I know it is not the right place of signed applets but maybe there's  
> an applet expert ho can help me resolving this very annoying issue.
> A big thanks for them :)
>
>     Gábor
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message