Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing (and reading) files to the blobstore throws an error #71

Open
colemc opened this issue Apr 27, 2013 · 3 comments
Open

Writing (and reading) files to the blobstore throws an error #71

colemc opened this issue Apr 27, 2013 · 3 comments

Comments

@colemc
Copy link

colemc commented Apr 27, 2013

First off, I hope appengine magic continues to evolve as it fills a big gap and is very helpful. In any case, we just started using the FileService api to read and write files to the blobstore, as referenced here:

https://developers.google.com/appengine/docs/java/blobstore/overview#Writing_Files_to_the_Blobstore

It works perfectly in production, but does not appear to be compatible with appengine magic. For example, .createNewBlobFile works fine, but .openWriteChannel throws the following exception:

java.lang.NullPointerException 
at com.google.appengine.tools.development.RequestEndListenerHelper.register(RequestEndListenerHelper.java:39)
at com.google.appengine.api.files.dev.LocalFileService.open(LocalFileService.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

running version 0.5.0.

@gcv
Copy link
Owner

gcv commented Apr 27, 2013

Yes, it's on the task list for the next version. Patches welcome. :)

@colemc
Copy link
Author

colemc commented Apr 27, 2013

Great to hear, really glad the next version is alive and well. If you'd like to point me in the right direction or outline how you'd like to have it implemented i'll see what we can do about a patch in the meantime. Any ballpark for the next version?

@gcv
Copy link
Owner

gcv commented Apr 27, 2013

Start by implementing a wrapper for the App Engine FileService, using any existing service wrapper as a guide for what it needs to do. Then look in appengine_magic/services/blobstore.clj for where you'd write the appropriate entry point. A complete patch needs to work with production and the interactive REPL mode.

I guess a patch on top of 0.5.0 would be fine, since recent App Engine changes have made the master branch fall pretty far behind. Though I'd really like to get all those problems fixed, too. I've been pretty busy with consulting projects lately, so no real ETA for the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants