[appengine-java] Using BulkUpload into Local Java Dev Server on Mac

2011-03-10 Thread Brian Conneen
I've seen a bunch of threads on this issue, but there doesn't seem to
be a definitive example of getting this to work.

Essentially I want to migrate my existing Python app to Java, and I
know I can deploy both versions into production. But I want to do lots
of testing locally before ever deploying a Java version.  And in order
to test, I need to upload my data into my local Java dev server
datastore.

I can use bulkuploader to export the datastore from the production
PYTHON app and load it into a local PYTHON dev server datastore no
problem. I've done it hundreds of time.

If I try to use the same export to load into my local JAVA dev server
datastore, I always get an AuthenticationException [See stack below].
Yes I've configured remote_api. Yes I can access 
http://localhost:/remote_api
from a browser. It first takes me to the authentication page.  But
bulkupload just won't work against my local JAVA dev datastore.

I've now read every thread on this subject, and it seems like there
might be a commonality.  Perhaps everyone running into this
AuthenticationException is running on a Mac? I really don't know
what's causing it, and I can't believe more people don't want to do
the same thing.


Stack Trace:



[DEBUG   ] Bulkloader using app_id: bofprod
[INFO] Connecting to localhost:8080/remote_api
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 3175, in Run
self.request_manager.Authenticate()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 1187, in Authenticate
remote_api_stub.MaybeInvokeAuthentication()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 540, in
MaybeInvokeAuthentication
datastore_stub._server.Send(datastore_stub._path, payload=None)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/appengine_rpc.py", line 346, in Send
f = self.opener.open(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 389, in open
response = meth(req, response)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/throttle.py", line 473, in
http_response
self.AddResponse(BANDWIDTH_DOWN, res)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/throttle.py", line 414, in AddResponse
content = res.read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/socket.py", line 327, in read
data = self._sock.recv(rbufsize)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 537, in read
s = self.fp.read(amt)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/socket.py", line 351, in read
data = self._sock.recv(left)
error: [Errno 54] Connection reset by peer
[INFO] Authentication Failed

-- 
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-java@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.



[appengine-java] Re: Remote_api in Java works in Development Server?

2011-03-11 Thread Brian Conneen
I'm also having the same problem.  I'm pretty surprised we don't see
more people complaining about this. And I'm genuinely shocked that
there is so little official communication from Google. There are about
a dozen threads complaining about this issue and very few official
responses.

I'd very much like to migrate my Python GAE app to Java GAE, but if I
can't test using real data locally, then I can't do real development.

Brian

On Feb 17, 10:23 am, Carlos Aguilar  wrote:
> I've been following all tutorials, but I always get the same error
> when trying to upload data to the Development Server:
>
> - Authentication Failed  at Terminal
> - Cookie name "Path" is a reserved token -> in Server
>
> I'm having some troubles in my production app because the data so I
> would like to debug with the same data. Is this impossible with
> appengine?
>
> Carlos

-- 
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-java@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.



[appengine-java] Source Code?

2011-03-31 Thread Brian Conneen
Are there any plans to make the source code for JAVA GAE available?
The python source is available, and having the Java source could be
helpful in certain situations.

Thanks,

Brian

-- 
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-java@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.