[appengine-java] Re: How to use Python Bulk uploader to import data in local_db.bin ?

2010-11-06 Thread Sam E.
I've been getting the same problems when trying to import my csv
backup to my local development datastore.  I've had success with using
a live app engine instance, but am having errors with my development
datastore.

I've been running the following command:
appcfg.py upload_data --url=http://localhost:/remote_api --
kind=Deal  --filename=Deal.csv --config_file=dealsconfig.yml --
application=dealsexample

I end up with this error:
/usr/local/bin/appcfg.py:42: DeprecationWarning: the sha module is
deprecated; use the hashlib module instead
  os.path.join(DIR_PATH, 'lib', 'django'),
/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/tools/dev_appserver_login.py:33:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Uploading data records.
[INFO] Logging to bulkloader-log-20101107.012940
[INFO] Throttling transfers:
[INFO] Bandwidth: 25 bytes/second
[INFO] HTTP connections: 8/second
[INFO] Entities inserted/fetched/modified: 20/second
[INFO] Batch Size: 10
[INFO] Opening database: bulkloader-progress-20101107.012940.sql3
Please enter login credentials for localhost
Email: t...@example.com
Password for t...@example.com:
[INFO] Connecting to localhost:/remote_api
[ERROR   ] Exception during authentication
Traceback (most recent call last):
  File "/Users/ssaammee/Desktop/data/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 "/Users/ssaammee/Desktop/data/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 "/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
line 539, in MaybeInvokeAuthentication
datastore_stub._server.Send(datastore_stub._path, payload=None)
  File "/Users/ssaammee/Desktop/data/GoogleAppEngineLauncher.app/
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/tools/appengine_rpc.py", line 341,
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
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 502, in http_response
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 427, in error
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 361, in _call_chain
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urllib2.py", line 510, in http_error_default
HTTPError: HTTP Error 404: Not Found
[INFO] Authentication Failed


I am on a Mac with App Engine SDK 1.3.8.  I've been messing around
with this for hours to no avail.  I've tried tips from
http://stackoverflow.com/questions/1260835/which-credentials-should-i-put-in-for-google-app-engine-bulkloader-at-development
but no luck.

Any suggestions for loading into the local datastore using java and
the remote_api servlet?  This would be really helpful for testing.

Thank you!
-Sam Edwards
http://handstandsam.com


On Oct 21, 4:13 am, cYr4X  wrote:
> Hi,
>
> Currently, I successfully download and upload data into my Java
> Application on Google App Engine in production environment using the
> python BulkUploader (I followed this nice tutorial 
> :http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...)
>
> But I'm facing a problem using the same process to import data in my
> local environment.
>
> The Google App Engine's documentation says that we need to run the
> following command in order to upload data inlocalhost:
>
> appcfg.pyupload_data--config_file=album_loader.py --
> filename=album_data.csv --kind=Album --url=http://localhost:8080/
> remote_api 
>
> where  contains my app.yaml.
>
> But when i ran this command, appcfg.py has returned the following
> error :
>
> Unable to assign value 'java' to attribute 'runtime':
> Value 'java' for key runtime does not match expression '^python$'
>
> Is it possible to bulkupload data in Local Database of a Java
> Application using the Python Bulkloader?
>
> Best Regards

-- 
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

Re: [appengine-java] Re: What Does Hosted SQL Entail?

2010-11-06 Thread Wilson MacGyver
It's mysql, no other solution has been announced, and I doubt
they will be, so postgresql is very unlikely. There is currently a beta
signup right now. I doubt it will be accessible to none gae apps.
Since google isn't trying to get into hosted RDBMS solution.
So you'd have the solve this by building remote REST API yourself.

On Nov 5, 2010, at 3:41 PM, adahlquist  wrote:

> I'm looking for some more information on Hosted SQL as well and can't
> seem to find detailed docs on what is planned for the Q4 release. I
> found the road map, but no details pertaining to which sql databases
> will be supported, or what the limitations may be.  Will PostgreSQL be
> supported, and will the data stores only accessible by applications
> running in the app engine? Answers to these questions or a link to
> documentation would be greatly appreciated. Thanks.

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



[appengine-java] Problem with JSF 2.0

2010-11-06 Thread vaninh0
Hello,

I have an application running on EclipsePlugin (JSF2.0), but when I
deploy it got the following error:
(it's started when I used the templates)

Anyone can help me?

java.lang.RuntimeException: java.io.NotSerializableException:
br.com.controlecartao.web.managed.EmpresaMBean
at
com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
387)
at
com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java:
364)
at com.google.apphosting.runtime.jetty.SessionManager
$AppEngineSession.save(SessionManager.java:164)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
41)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
261)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:8486)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:8484)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
418)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:
572)
at com.google.tracing.TraceContext$TraceContextRunnable
$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:
688)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
326)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
318)
at com.google.tracing.TraceContext
$TraceContextRunnable.run(TraceContext.java:446)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.NotSerializableException:
br.com.controlecartao.web.managed.EmpresaMBean
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1173)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
343)
at java.util.HashMap.writeObject(HashMap.java:1018)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:
962)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1478)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
1409)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1167)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:
1526)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1491)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
1409)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1167)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:
1355)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1163

[appengine-java] Re: What Does Hosted SQL Entail?

2010-11-06 Thread adahlquist
I'm looking for some more information on Hosted SQL as well and can't
seem to find detailed docs on what is planned for the Q4 release. I
found the road map, but no details pertaining to which sql databases
will be supported, or what the limitations may be.  Will PostgreSQL be
supported, and will the data stores only accessible by applications
running in the app engine? Answers to these questions or a link to
documentation would be greatly appreciated. Thanks.

On Sep 27, 3:04 am, "l.denardo"  wrote:
> NoSQLis available at the moment.SQLsupport is planned in the App Engine for 
> business version, which
> you can read about in the docs (planned Q4 2010).
>
> Regards
> Lorenzo
>
> On Sep 26, 5:29 am, Stefan  wrote:
>
> > I'm trying to figure out if a traditional RDBMS will support my
> > companies needs better than the given Google Datastore(BigTable).  The
> > fact is that I don't know what the available RDBMS is/are and can't
> > seem to find any info on what is out there. Do you know what the
> > available options are, short of me calling sales? Please advise.
>
> > Stefan

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



Re: [appengine-java] Task Queue on other App Servers

2010-11-06 Thread Maxim Veksler
Hi Andrew,

We would be interested in sharing info about moving to/from appengine. Guess
the biggest trouble would be the datastore implementation, we don't
currently use the task queue api.

Are you aware of http://code.google.com/p/appscale/ ?


Maxim.

-- Sent from my Nexus.
On Oct 26, 2010 4:24 PM, "andrew"  wrote:
> Anyone out there got an implementation of the TaskQueue working on
> other app servers (jetty, tomcat)?
>
> We would like this as an option to ensure portability of our
> application between app engine and other options.
>
> Either the same Google TaskQueue code configured to run on another
> server, or a compatible implementation.
>
> If not, anyone else looking for the same - who is interested in
> sharing the effort of getting that running?
>
> --
> 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.
>

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



[appengine-java] while adding plugin(http://dl.google.com/eclipse/plugin/3.5) in eclipse-galileo

2010-11-06 Thread new2app
I'm getting error like this...how can i make complete install?


Cannot complete the install because one or more required items could
not be found.
Software being installed: Google App Engine Java SDK 1.3.8
1.3.8.v201010161055
(com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.8.feature.group
1.3.8.v201010161055)
Missing requirement: Google App Engine Plugin 1.4.0.v201010280047
(com.google.appengine.eclipse.core 1.4.0.v201010280047)
requires 'bundle org.eclipse.wst.sse.core 0.0.0' but it could not be
found
Cannot satisfy dependency:
From: Google App Engine SDK 1.3.8.v201010161055
(com.google.appengine.eclipse.sdkbundle.1.3.8 1.3.8.v201010161055)
To: bundle com.google.appengine.eclipse.core 0.0.0
Cannot satisfy dependency:
From: Google App Engine Java SDK 1.3.8 1.3.8.v201010161055
(com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.8.feature.group
1.3.8.v201010161055)
To: com.google.appengine.eclipse.sdkbundle.1.3.8 [1.3.8.v201010161055]

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



[appengine-java] Re: OpenID: What's the use of the createLoginURL attributesRequest parameter

2010-11-06 Thread dflorey
Are you using OpenID? Is logout working with app engine? I thought it
is not yet usable.
You could use additional attributes to e.g. set PAPE=0 to emulate a
proper logout

Daniel


On Nov 5, 2:00 pm, Alex  wrote:
> Hi,
>
> the createLoginURL method for federated login with OpenID has a Set of
> Strings parameter attribuesRequest.
> The JavaDoc states the following about this parameter:
>
> "attributesRequest - additional attributions requested for this login,
> IDP may not may not support these attributes."
>
> Until now I didn't require to fill this attribute to use OpenID with
> parties like Google, Yahoo etc. But I was wondering what kind of
> requests I might encounter / use here. Are there any (Java) examples
> where this parameter is used? And what does IDP mean?
>
> Alex

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



[appengine-java] Re: SMS Already Verifies

2010-11-06 Thread Patou
It's a Pb with google app account !

Try to logging with the public interface :
http://appengine.google.com/

or by the google app interface

http://appengine.google.com/a/creativelift.net

There are two account, and just one is active !

Regards

Patrice

On Nov 5, 11:27 pm, citizen  wrote:
> Hi! When I try to create a new application, it asks me for SMS
> verification - but I have already been verified! Now it wont let me
> enter my phone number again because it says it has been used already
> but thats for this same account!
>
> My account is t...@creativelift.net and I am logging in 
> athttp://appengine.google.com/a/creativelift.net
>
> Thank you,
>
> Ted

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



[appengine-java] Re: request to html - context initialized

2010-11-06 Thread Didier Durand
Hi Aswath,

This means just that your application was "swapped out" of App Engine
because of its low activity and the next time you come, initialization
has to be done again.

You cannot avoid it as long as your application activity is low (dev),
but when it gets higher (production), this should disappear.

regards
didier

On Nov 6, 8:17 am, aswath satrasala 
wrote:
> Hello,
> I am requesting for a HTML resource on my app-id.  I get the following in
> the logs.  How can I serve the HTML requests with out starting the context.
>
> -Aswathhttp://vs-accounting.appspot.com
> Accounting for India Market.
>
> 11-06 12:09AM 28.270
>
> com.veersoft.listener.VsServletContextListener contextInitialized:
>
>  11-06 12:09AM 33.288
>
> This request caused a new process to be started for your
> application, and thus caused your application code to be
> loaded for the first time. This request may thus take longer
> and use more CPU than a typical request for your application

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



[appengine-java] request to html - context initialized

2010-11-06 Thread aswath satrasala
Hello,
I am requesting for a HTML resource on my app-id.  I get the following in
the logs.  How can I serve the HTML requests with out starting the context.

-Aswath
http://vs-accounting.appspot.com
Accounting for India Market.

11-06 12:09AM 28.270

com.veersoft.listener.VsServletContextListener contextInitialized:

 11-06 12:09AM 33.288

This request caused a new process to be started for your
application, and thus caused your application code to be
loaded for the first time. This request may thus take longer
and use more CPU than a typical request for your application

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