amolbabu / geocoder-java

Automatically exported from code.google.com/p/geocoder-java
0 stars 0 forks source link

java.lang.RuntimePermission modifyThreadGroup on app engine #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I could swear it was working before, but I had commented out my call to geocode 
because I was worried about going over my quota on geocode calls.  Now the code 
is back in and on app engine I'm getting this error:

[testappzzy/1.349848961219651097].<stdout>: ERROR: [pool-4-thread-1] 
com.google.code.geocoder.Geocoder.geocode.54: 
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission modifyThreadGroup)

I'm wondering if it's caused by line 29, in geocoder

private static final HttpClient HTTP_CLIENT = new HttpClient(new 
MultiThreadedHttpConnectionManager());

I.e., is there a single threaded http connection manager you could use instead?

Original issue reported on code.google.com by rusty.wr...@gmail.com on 20 Apr 2011 at 4:39

GoogleCodeExporter commented 9 years ago

Original comment by panchmp on 13 Jun 2011 at 7:06

GoogleCodeExporter commented 9 years ago
Please update to the new version and try 

Geocoder.setConnectionManager(new SimpleHttpConnectionManager());
geocoder = new Geocoder();

Original comment by panchmp on 13 Jun 2011 at 7:09

GoogleCodeExporter commented 9 years ago

Original comment by panchmp on 8 Feb 2012 at 8:23