[google-appengine] App engine GaeVFS java.io.FilePermission

2011-06-08 Thread xiu
when i use app engine to develop my apps,and i just want to read the
file stored in the gaevfs using the code :
this.shpAccessFile = new RandomAccessFile(this.shpFileName, r);
but it throw new AccessControlException(access denied +perm, perm);
so can someone tell me how to solve the problem?
java.security.AccessControlException: access denied
(java.io.FilePermission gae:\F:\workspace\GeoCloud\war\gaevfs
\cecc8aa0-7405-102e-b976-026d7f01\longrive.shp read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.RandomAccessFile.init(RandomAccessFile.java:203)
at java.io.RandomAccessFile.init(RandomAccessFile.java:98)
at
com.vobject.appengine.java.io.RandomAccessFile.init(RandomAccessFile.java:
90)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [appengine-java] Mapper Blobstore bytes read limit

2010-12-16 Thread xiu
i know the 1.4.0 version was released, the limit was raised to 32mb.
http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html
so i wanna upload my dem data .
the data dem.bil is under the /war/dem.bil directory.and these are my
codes to fetch the data dem.bil that is 3M:
 try{ URLConnection a = url.openConnection();
 InputStream b = a.getInputStream();
 int len = a.getContentLength();
if (len  0) { return null; } //System.out.println(Total: +len);
 byte[] c = new byte[len];
 b.read(c,0,len);
 return c;
}catch (Exception e)
{ e.printStackTrace();
 return null;
 }
 }
but when it goes to InputStream b = a.getInputStream(); it's debug is
com.google.appengine.api.urlfetch.ResponseTooLargeException: The
response from url localhost:/dem.bil was too large. .so can you
can tell me why?or some wrong with my codes?
thanks.
xiu

Cyrille Vincey wrote:
 I've been testing Ikai's bulkload mapper (see url below) with a pretty big
 csv file (200 Mb).
 It works great, and I encourage most of you to consider implementing this
 for entity uploads.

 Yet, I do face one last issue with an unexpected quota : blobstore bytes
 read.
 This quota cannot be tuned via the billing settings, and it's not clear
 whether it limits the speed of my process or not when it's reached.


 See ? Yep, it's a lot of bytes readÅ 
 Could someone confirm that the blob csv file is *NOT* fully fetched each
 time the mapper iterates on a new line ?

 (ikai's post)
 http://ikaisays.com/2010/08/11/using-the-app-engine-mapper-for-bulk-data-imp
 ort/

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.