Hi all,

My problem here is i cannot get images from Picasa and display them in
an applet.
I've found some older, 2008, mention of this issue but none since and
i cannot get past it.

I'm using the sample code from the dev guide
http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_java.html
in the List photos by community search but instead of getting the
photo title, description, etc. i create some images and display them

This all works fine in Eclipse but when i create an applet and run it
there i get the following

Exception in thread "AWT-EventQueue-2"
java.lang.ExceptionInInitializerError
        at com.google.gdata.client.http.GoogleGDataRequest
$Factory.createRequest(GoogleGDataRequest.java:91)
        at com.google.gdata.client.http.HttpGDataRequest
$Factory.getRequest(HttpGDataRequest.java:162)
        at com.google.gdata.client.http.HttpGDataRequest
$Factory.getRequest(HttpGDataRequest.java:168)
        at com.google.gdata.client.Service.createRequest(Service.java:733)
        at
com.google.gdata.client.GoogleService.createRequest(GoogleService.java:
535)
        at com.google.gdata.client.Service.createFeedRequest(Service.java:
1194)
        at com.google.gdata.client.Service.getFeed(Service.java:1014)
        at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
662)
        at com.google.gdata.client.Service.query(Service.java:1175)
        at com.google.gdata.client.Service.query(Service.java:1116)
        at
Picasa_Public_Search.initialPicassaConnection(Picasa_Public_Search.java:
68)
...
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission com.google.gdata.DisableCookieHandler
read)

So i went through com.google.gdata.client.http.GoogleGDataRequest and
HttpGDataRequest and i removed all attempt to use get or set system
properties.

This got me as far as this error

Exception in thread "AWT-EventQueue-2"
java.security.AccessControlException: access denied
(java.net.SocketPermission picasaweb.google.com:80 connect,resolve)
        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.checkConnect(Unknown Source)
        at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown
Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
Source)
        at
com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
487)
        at
com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
527)
        at com.google.gdata.client.Service.getFeed(Service.java:1073)
        at com.google.gdata.client.Service.getFeed(Service.java:1015)
        at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
662)
        at com.google.gdata.client.Service.query(Service.java:1175)
        at com.google.gdata.client.Service.query(Service.java:1116)
        at
Picasa_Public_Search.initialPicassaConnection(Picasa_Public_Search.java:
68)

So it looks like applet security restrictions are preventing me from
creating images from the Picasa PhotoEntry's

Has anyone ever managed to get images from Picasa and display them in
an applet

Thanks for any help,

Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to