I have the similar issue. This happened after upgrading to 
appengine-gcs.client 0.5. 

We can't run  our app locally anymore. Filestorage is broken in lcoal dev 
mode in java environment,

Can you please, look into this as a matter of urgency.

Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
at 
com.google.appengine.tools.cloudstorage.dev.LocalRawGcsService$BlobStorageAdapter.storeBlob(LocalRawGcsService.java:161)
at 
com.google.appengine.tools.cloudstorage.dev.LocalRawGcsService.finishObjectCreation(LocalRawGcsService.java:336)
at 
com.google.appengine.tools.cloudstorage.GcsOutputChannelImpl$1.call(GcsOutputChannelImpl.java:201)
at 
com.google.appengine.tools.cloudstorage.GcsOutputChannelImpl$1.call(GcsOutputChannelImpl.java:198)

On Saturday, October 31, 2015 at 10:34:30 AM UTC, Thomas Wiradikusuma wrote:
>
>
> Hi guys,
>
> This code used to work, before upgrading to Java SDK 1.9.28:
>
> gcs.createOrReplace(
> new GcsFilename("myapp.appspot.com", "/gs/myapp.appspot.com/foo/bar.jpg"),
> new Builder().mimeType("image/jpeg").build())
>
> This is the exception:
>
> Oct 31, 2015 6:28:32 PM com.google.apphosting.utils.jetty.JettyLogger warn
> WARNING: /foo/bar
> com.google.appengine.tools.cloudstorage.NonRetriableException: 
> com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Files 
> API is disabled. Further information: 
> https://cloud.google.com/appengine/docs/deprecations/files_api
>         at 
> com.google.appengine.tools.cloudstorage.RetryHelper.doRetry(RetryHelper.java:120)
>         at 
> com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:166)
>         at 
> com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:156)
>         at 
> com.google.appengine.tools.cloudstorage.GcsServiceImpl.createOrReplace(GcsServiceImpl.java:70)
>         at 
> com.hohero.servlet.AnnouncementImageUploadServlet.doPost(AnnouncementImageUploadServlet.scala:32)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> ...
> Caused by: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: 
> The Files API is disabled. Further information: 
> https://cloud.google.com/appengine/docs/deprecations/files_api
>         at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:515)
>         at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:484)
>         at 
> com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:461)
>         at 
> java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:493)
>
> What needs to be changed? FYI I'm following 
> https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/getstarted
>  
> - Writing a Byte Array to a Cloud Storage File.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c75282b8-4aa6-4e4d-9c79-16a95953e9cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to