[appengine-java] Re: How can I make the session to be held open as long as the user got its browser opened?

2011-04-10 Thread Daniel
any1?

On Apr 6, 1:18 pm, Daniel vedm...@gmail.com wrote:
 Hi

 I need to keep the session opened as long as the user got its browser
 opened in my web app...

 Is there such a setting that i can enable for my web app?

 If not, Is there any suggester/recommend way to achieve it?

 Thanks ahead!

 Daniel.

-- 
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] How to model object with lots of small properties

2011-04-10 Thread Thomas Wiradikusuma
Hi guys,

I want to model an object with lots of small properties, e.g.:

House {
  boolean hasAirCond, boolean hasInternet, boolean nearSchool, etc;
}

Is this naive way the best way to model it? Is there any better GAE-
way to do this?

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



Re: [appengine-java] How to model object with lots of small properties

2011-04-10 Thread Ravi Sharma
May be you can do womething like this

class HouseProperty{
Key id;
String Name;
}
in above class you can create your all properties like
hasAirCond,hasInternet etc. One property
per Row.
and in House you can have somethin glike this
class House{
SetKey properties;
}

and if some house has airCond, then add one key to this collection
house.properties.add(Key corresponding to airCon);

if some house has two or more then
house.properties.add(Key corresponding to airCon);
house. properties.add(Key corresponding to hasInternet );
house. properties.add(Key corresponding to some other feature.);


If you do like this, you dont need to worry about increasing the table
columns later as you will be doing in your current solution. If new
prooperty of a house comes just add another row and your solution will keep
working.


Thanks,
Ravi.




On Sun, Apr 10, 2011 at 7:22 AM, Thomas Wiradikusuma wiradikus...@gmail.com
 wrote:

 Hi guys,

 I want to model an object with lots of small properties, e.g.:

 House {
  boolean hasAirCond, boolean hasInternet, boolean nearSchool, etc;
 }

 Is this naive way the best way to model it? Is there any better GAE-
 way to do this?

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



-- 
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: How to model object with lots of small properties

2011-04-10 Thread Didier Durand
Hi,

You should use an enum class for the properties (so that you can
extend later on) and store them as proposed above in a Set

regards

didier

On Apr 10, 8:29 am, Ravi Sharma ping2r...@gmail.com wrote:
 May be you can do womething like this

 class HouseProperty{
 Key id;
 String Name;}

 in above class you can create your all properties like
 hasAirCond,hasInternet etc. One property
 per Row.
 and in House you can have somethin glike this
 class House{
 SetKey properties;

 }

 and if some house has airCond, then add one key to this collection
 house.properties.add(Key corresponding to airCon);

 if some house has two or more then
 house.properties.add(Key corresponding to airCon);
 house. properties.add(Key corresponding to hasInternet );
 house. properties.add(Key corresponding to some other feature.);

 If you do like this, you dont need to worry about increasing the table
 columns later as you will be doing in your current solution. If new
 prooperty of a house comes just add another row and your solution will keep
 working.

 Thanks,
 Ravi.

 On Sun, Apr 10, 2011 at 7:22 AM, Thomas Wiradikusuma wiradikus...@gmail.com

  wrote:
  Hi guys,

  I want to model an object with lots of small properties, e.g.:

  House {
   boolean hasAirCond, boolean hasInternet, boolean nearSchool, etc;
  }

  Is this naive way the best way to model it? Is there any better GAE-
  way to do this?

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



-- 
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: How can I make the session to be held open as long as the user got its browser opened?

2011-04-10 Thread Max
have you tried to use memcache or simply store session into datastore?

-- 
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: Weird 500 Internal Server Error nginx/0.7.67

2011-04-10 Thread rml
We use Nginx with SLL to proxy to our GAE application and don't have
any issue with multipart/form-data posts.

You may find this useful:
http://radomirml.com/2011/01/30/reverse-proxy-for-gae-application-using-nginx-and-ssl


On Apr 10, 4:31 am, miglate miglat...@gmail.com wrote:
 Hi I have just found out that this error occurs when I use my custom domain.
 If I use appspot.com, no error is given. Is this a bug of GAE or is there a
 problem with nginx?

 I'd really like someone from Google check this issue.

 Thanks in advance,

-- 
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: How can I make the session to be held open as long as the user got its browser opened?

2011-04-10 Thread Didier Durand
Hi,

You should clarify what you mean by an open session: do you mean the
http one defined by the cookie, the security one after login, etc ?

regards

didier

On Apr 10, 9:35 am, Max thebb...@gmail.com wrote:
 have you tried to use memcache or simply store session into datastore?

-- 
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] Failed to compile jsp files.

2011-04-10 Thread Eric Wu
My project works fine in local server. But when I upload my project to
GAE, there is an error: How to solve the problem

Regards

Creating staging directory
Scanning for jsp files.
Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile jsp files.
2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp
\appcfg7905816927184108608.tmp\WEB-INF\classes\org\apache\jsp
\match_jsp.java [javac] Compiling 1 source file

2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Javac exception
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
473)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: Cannot run program javac.exe:
CreateProcess error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
--- Nested Exception ---
java.io.IOException: Cannot run program javac.exe: CreateProcess
error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric
\LOCALS~1\Temp\appcfg7905816927184108608.tmp\WEB-INF\classes\org\apache
\jsp\match_jsp.java
classpath=/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api-labs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api-stubs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-local-
runtime.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\appengine-
local-runtime-shared.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib
\shared\el-api.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\jsp

[appengine-java] Re: Weird 500 Internal Server Error nginx/0.7.67

2011-04-10 Thread Sinan Yuce
rml,

Thanks for reply, but issue still exists. Our investigation showed that it 
only happens when the post size exceed  ~40K bytes.

If you do not have any issue like this, can you make any suggestions about 
why this happens when I try to post to an url  that starts with my custom 
domain rather than I do with appspot.com url? So maybe we can fix on that. 

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-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] only allowing local connections to dev server?

2011-04-10 Thread Luis Montes
When running a java webapp in eclipse it seems that I can only connect to
the dev jetty instance from the localhost.  Is jetty fired up only bound to
127.0.0.1?

I have some mobile wifi devices (android, ipad, etc.) that I'd like to test
with on the LAN but it seems that I'm going to have do some tunneling or
proxying to get things to work.

I can't find a way to configure networking in the sdk.  Is
127.0.0.1:hardcoded somewhere?


Luis

-- 
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] Owned relationship. Lost reference

2011-04-10 Thread Luca Matteis
I have a Recipe entity that contains two images:

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true)
public class Recipe {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
private MyImage myImage; // full-size image
@Persistent
private MyImage thumb; // 224x230 thumbnail version of the above

When I persist this to the datastore, the images are stored correctly.
However the issue comes when I try referencing the images using
`.getMyImage()` and `.getThumb()`.
They both point to the same object even though I can see in the
datastore viewer that they are two images of different size. If they
are stored in the datastore corretly this means that there's an issue
with how I reference the object I suppose. Why is this?

This is the object I persist, and as you can see the `myImage` and
`thumb` objects are different (not showing the code for them, but
trust me they are).

Recipe recipe = new Recipe(user.getKey(), title, new Text(content),
myImage, thumb, tagsAsStrings);

Any ideas why I keep on referencing the same object?

-- 
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] Server Error(500) problem

2011-04-10 Thread giannisdag
Hi, I have an error Server Error(500) in my application, it happens only for 
one entity out of three. I did a search and see that it is very common and 
usually the developer gives its application-id and people of google fix the 
problem. What should I do in my case?
Thanks in advance

-- 
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: URL Fetch java.io.IOException

2011-04-10 Thread Stefan
Hi Thomad and Z,

could one of you describe what you did? Do you simply mean that you
remove this line:

con.setRequestProperty(Content-Length,  +
Integer.toString(urlParameters.getBytes().length));

For what it's worth: I think this is related to issue 4823 (though the
title seems to suggest it is only concerned with https):

http://code.google.com/p/googleappengine/issues/detail?id=4823

Best regards,
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-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: HTTP POST failing in dev environment with SDK 1.4.3

2011-04-10 Thread Stefan
Could be related to issue 
http://code.google.com/p/googleappengine/issues/detail?id=4823

-- 
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: URL Fetch java.io.IOException

2011-04-10 Thread Stefan
Ok, never mind. I removed the con.setRequestProperty(Content-
Length,...) in the offending code and that solved my problem.
Thanks!

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



Re: [appengine-java] Re: How can I make the session to be held open as long as the user got its browser opened?

2011-04-10 Thread James
Please take a look at channel api.

Daniel vedm...@gmail.com wrote:

any1?

On Apr 6, 1:18 pm, Daniel vedm...@gmail.com wrote:
 Hi

 I need to keep the session opened as long as the user got its browser
 opened in my web app...

 Is there such a setting that i can enable for my web app?

 If not, Is there any suggester/recommend way to achieve it?

 Thanks ahead!

 Daniel.

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


-- 
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] -javaagent gets removed from Run Configuration / Arguments in Eclipse

2011-04-10 Thread Dzmitry Lazerka
Hi folks,

I've mavenized my project for Eclipse Helios as described at 
http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html,
 
and other web sites. And it works, but only for one run. When I run it 
again, it says:
Unable to locate the App Engine agent. Please use dev_appserver, KickStart, 
 or set the jvm flag: -javaagent:sdk_root/lib/agent/appengine-agent.jar

When I specify -javaagent again and press Run -- it runs successfully. When 
I open Run Configuration, I see only 
-Xmx512m
-Dappengine.sdk.root=/home/lazerka/.m2/repository/com/google/appengine/appengine-java-sdk/1.4.3/appengine-java-sdk-1.4.3
(no my -javaagent I've put there earlier). Could you give any insight on 
this behavior?

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



Re: [appengine-java] only allowing local connections to dev server?

2011-04-10 Thread Fabrizio Accatino
I use rinetd. It's a port forwarder.
http://www.boutell.com/rinetd/

fabrizio (from android)
Il giorno 10/apr/2011 19.57, Luis Montes monte...@gmail.com ha scritto:
 When running a java webapp in eclipse it seems that I can only connect to
 the dev jetty instance from the localhost. Is jetty fired up only bound to
 127.0.0.1?

 I have some mobile wifi devices (android, ipad, etc.) that I'd like to
test
 with on the LAN but it seems that I'm going to have do some tunneling or
 proxying to get things to work.

 I can't find a way to configure networking in the sdk. Is
 127.0.0.1:hardcoded somewhere?


 Luis

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


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



RE: [google-appengine] Re: Not able to access the appengine dashboard

2011-04-10 Thread Brandon Wirtz
I have a way to know that my app is up, and to not panic.  I switched to HR.
:-)

 

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of nischalshetty
Sent: Saturday, April 09, 2011 10:33 PM
To: google-appengine@googlegroups.com
Subject: [google-appengine] Re: Not able to access the appengine dashboard

 

+1 on @Greg's suggestion. We need a way to assure ourselves that someone's
looking into the issue. Without that we can do nothing but panic. 

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

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



[google-appengine] Re: login across different subdomains

2011-04-10 Thread roberto.cr
this is not a solution, this is changing the problem :P

no surprise here, app engine is again mixing great tools with shameful
problems
I've just started my app engine experience and I've already faced many
stupid restrictions: no domain-wide login, no naked domain support,
google's domain redirection ignores full path...
I was prepared for all the reasonable restrictions... but some app
engine stuff just feels weird

On Apr 10, 1:26 am, Robert Kluin robert.kl...@gmail.com wrote:
 The login is controlled with a cookie.  The cookie's domain matches
 the subdomain they authenticated on.  I'm sure a google for cookie
 domain would return some information on the topic.

    http://en.wikipedia.org/wiki/HTTP_cookie#Domain_and_Path

 One solution: don't use separate subdomains.

 Robert







 On Sat, Apr 9, 2011 at 16:31, roberto.cr roberto...@gmail.com wrote:
  Does this happen to *everyone* ??? How come there's not much info
  about it on this discussion group ?
  How are people solving this ?

  On Apr 9, 5:47 am, roberto.cr roberto...@gmail.com wrote:
  The login isn't working across different subdomains

  My app needs to accept any user input for the subdomain (I've already
  set the subdomain wildcard in google apps and in my dns settings, it's
  working as desired)
  pizza.mydomain.com
  coke.mydomain.com
  But when the user logs in pizza subdomain, he doesn't appear logged in
  coke subdomain. I need any login to work across any subdomain.

  users.auth_domain clearly states This method is internal and should
  not be used by client applications.

  I simply don't know where to start. Is this something I can control or
  not?

  --
  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 
  athttp://groups.google.com/group/google-appengine?hl=en.

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



[google-appengine] Anyone on HR affected by today's (2010-04-10) outage?

2011-04-10 Thread Raymond C.
My apps are on M/S so I don't know.  Appreciate if anyone on HR can confirm 
if they are (not) affected by today's outage. (status page shows no error 
for both)

Attached the chart for one of my app which was mostly down for like an hour.

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

attachment: Screen shot 2011-04-10 at 16.51.01.png

[google-appengine] Re: Anyone on HR affected by today's (2010-04-10) outage?

2011-04-10 Thread Strom
I'm on M/S and I wasn't affected by it.

On Apr 10, 11:54 am, Raymond C. windz...@gmail.com wrote:
 My apps are on M/S so I don't know.  Appreciate if anyone on HR can confirm
 if they are (not) affected by today's outage. (status page shows no error
 for both)

 Attached the chart for one of my app which was mostly down for like an hour.

  Screen shot 2011-04-10 at 16.51.01.png
 19KViewDownload

-- 
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: [google-appengine] Re: Scheduled Downtime Woes

2011-04-10 Thread Simon Knott
I do have a caching strategy and I've looked into whether it could be 
causing this issue.  However, I've confirmed that the entity retrieved is 
definitely coming from the datastore and is bypassing the cache.

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



[google-appengine] Re: Unit Testing of DAOs locally on App Engine

2011-04-10 Thread Kayode Odeyemi
Can somebody help me please?

On Fri, Apr 8, 2011 at 5:33 PM, Kayode Odeyemi drey...@gmail.com wrote:

 I am hoping David Chandler can help here as regards his post at
 http://turbomanage.wordpress.com/2009/10/19/unit-testing-the-appengine-datastore-with-jdo/.
 I have added aeftools.jar to my project classpath, but the test keeps
 failing with the error:

 warning: FAILED: No tests found
 junit.framework.AssertionFailedError

 Initially, I added just the 3 classes in
 com.appenginefan.toolkit.unittests, as well as appengine-testing.jar to my
 classpath, but the compiler keeps reporting a NoClassFound on
 com.google.appengine.tools.development.ApiProxyLocalImpl.

 Please I need help on this as I really can't query the datastore and
 blobstore without a unit test.

 Here's my test class:

 public class UserEntityJDOTest extends BaseTest {


 @Test
 public void testFindUserByEmail(String email) {

 UserEntityDAOImpl userentityDAO = new UserEntityDAOImpl();
 email = t...@gmail.com;
 PersistenceManager manager = newPersistenceManager();
 // run a query
 UserEntity expectedemail = manager.getObjectById(UserEntity.class,
 email);
 assertEquals(expectedemail, userentityDAO.findUserByEmail(email));
 manager.close();
 fail(The test case is a prototype.);
 }
 }

 Regards
 --
 Odeyemi 'Kayode O.
 http://www.sinati.com




-- 
Odeyemi 'Kayode O.
http://www.sinati.com

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



[google-appengine] Are tasks executed again on URL Fetch error?

2011-04-10 Thread nischalshetty
com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The
API call urlfetch.Fetch() took too long to respond and was cancelled.


I'm making use of Task Queue in my app. What happens when a task being
executed gets this exception? Is the task executed again or is this
considered as task complete?

-Nischal

-- 
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: [google-appengine] Trouble with Blogger to WP tool

2011-04-10 Thread meaglith
I got the same error sometimes too.

I guess it caused by using Django 1.2.
I put this code in the main.py:

from google.appengine.dist import use_library
use_library('django', '1.2')

When the first request of not processed main.py made up a dynamic instance,
the error show up.

---
Blog: http://douhua.im
Twitter: http://twitter.com/genedna
Website: http://douhua.im
---


On Sun, Apr 10, 2011 at 5:05 AM, Jason Correia jasonbcorr...@gmail.comwrote:

 I received this message after uploading my file:

 Error: Server Error The server encountered an error and could not complete
 your request.

 If the problem persists, please 
 reporthttp://code.google.com/appengine/community.html your
 problem and mention this error message and the query that caused it.

 Well, there it is. I could really use this service right now. I hope this
 message goes to someone who can fix the problem.

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


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



[google-appengine] Channel API offline messages

2011-04-10 Thread Valentyn Shybanov
Hello.

I am investigating way of usage of Channel API and as I see, it use 
GoogleTalk-like messaging internally (making request ot 
'talkgadget.google.com').

So one of the first thought I've got was: if in API I'm using only 
client-id, what happen if client with some client-id disconnects, I'll send 
some messages to that 'client-id' and then connects again with same 
'client-id'?

In normal messaging (like Google Talk) I'll rechieve all messages, sent to 
me when I was offline. And according to some messages in discussions (GAE, 
GAE/J) I've found that application is changed for two hours after we create 
a channel.

But actual expirements showed that there is no reall 'offline messages'. I 
can send messages to clients that are actually offline (closed window) 
without errors and there is even no possibility to know if channel was 
closed or is there any connected channels with some 'client-id' (or list 
them).

So there is a question: Is there any plans to make Channel API supports 
offline *OR *adding events to track actual disconnection of clients (without 
need of hand-made pinging as it is now) or other ways to handle 
disconnection/reconnection of clients?

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



[google-appengine] Re: Are tasks executed again on URL Fetch error?

2011-04-10 Thread JH
If the exception is uncaught it will retry

On Apr 10, 8:24 am, nischalshetty nischalshett...@gmail.com wrote:
 com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The
 API call urlfetch.Fetch() took too long to respond and was cancelled.

 I'm making use of Task Queue in my app. What happens when a task being
 executed gets this exception? Is the task executed again or is this
 considered as task complete?

 -Nischal

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



[google-appengine] Re: Anyone on HR affected by today's (2010-04-10) outage?

2011-04-10 Thread JH
I don't know about this one specific (I don't follow latency anymore)
but since moving to HR i have had 0 datastore timeouts...

On Apr 10, 5:25 am, Strom st...@masendav.org wrote:
 I'm on M/S and I wasn't affected by it.

 On Apr 10, 11:54 am, Raymond C. windz...@gmail.com wrote:







  My apps are on M/S so I don't know.  Appreciate if anyone on HR can confirm
  if they are (not) affected by today's outage. (status page shows no error
  for both)

  Attached the chart for one of my app which was mostly down for like an hour.

   Screen shot 2011-04-10 at 16.51.01.png
  19KViewDownload

-- 
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: [google-appengine] Re: Anyone on HR affected by today's (2010-04-10) outage?

2011-04-10 Thread Brandon Wirtz
My HR apps were up during the outage, My MS apps were down for less than 5
minutes.  And some of my MS pages were never down because they lived in the
Google Edge Cache through the outage.


-Original Message-
From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of JH
Sent: Sunday, April 10, 2011 9:16 AM
To: Google App Engine
Subject: [google-appengine] Re: Anyone on HR affected by today's
(2010-04-10) outage?

I don't know about this one specific (I don't follow latency anymore) but
since moving to HR i have had 0 datastore timeouts...

On Apr 10, 5:25 am, Strom st...@masendav.org wrote:
 I'm on M/S and I wasn't affected by it.

 On Apr 10, 11:54 am, Raymond C. windz...@gmail.com wrote:







  My apps are on M/S so I don't know.  Appreciate if anyone on HR can 
  confirm if they are (not) affected by today's outage. (status page 
  shows no error for both)

  Attached the chart for one of my app which was mostly down for like an
hour.

   Screen shot 2011-04-10 at 16.51.01.png 19KViewDownload

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


-- 
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: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-10 Thread Tim


On Monday, April 4, 2011 6:42:31 PM UTC+1, Brandon Wirtz wrote:

 Current thinking on VCs around App Engine Powered startups is unfortunately 
 negative.  VCs are aware that Google often kills beta products or 
 drastically changes the economics of products they offer at a price.  When 
 GAE comes out of beta this may change, but currently the risk as a VC is 
 that an App Engine Powered Startup gets to 10M users and 1M lines of code, 
 and Google decides it isn’t in the App engine business, any more.  All of 
 sudden you are homeless and without a compatible alternative.

 Isn't Typhoon  

  http://code.google.com/p/typhoonae/

a good enough argument for having a compatible alternative ??

I mean, it's not guaranteed to be 100% compatible (as a victim of many SQL 
database ports and the like, I'd ask what ever is?) but it matches the API, 
it's open source so you can trace what's gone wrong, and you can run it up 
on your own hardware. And if you really wanted to be sure, you could spend a 
week or so testing an anticipatory port now - you might be pleasantly 
surprised, or maybe find some fixes to suggest back and help the project.

Plus, I’m hoping Google will just buy me before I get to that point, and 
 then if they close the project I’ll already be paid out :-)

You and me both pal, you and me both... :)

--
T
 

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



[google-appengine] Re: Are tasks executed again on URL Fetch error?

2011-04-10 Thread nischalshetty
Cool, thanks.

-N

On Apr 10, 9:15 pm, JH jamesthop...@gmail.com wrote:
 If the exception is uncaught it will retry

 On Apr 10, 8:24 am, nischalshetty nischalshett...@gmail.com wrote:







  com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The
  API call urlfetch.Fetch() took too long to respond and was cancelled.

  I'm making use of Task Queue in my app. What happens when a task being
  executed gets this exception? Is the task executed again or is this
  considered as task complete?

  -Nischal

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



[google-appengine] Build index stuck?

2011-04-10 Thread Diego Ezequiel Pérez
 Hi, I have an application which has no data but the datastore index is 
still building. Others completed really quick, but this one is stuck:

App ID: wwweazel7info
Index: Article: article_type ▲ , published ▼

could you take a look at it?

Thanks!

-- 
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: RE: [google-appengine] Re: Anyone on HR affected by today's (2010-04-10) outage?

2011-04-10 Thread Raymond C.
Thx everyone for the information!  

Looking forward for the chance to switch to HR.

-- 
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: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-10 Thread Jeff Schnitzer
I'm not a VC and haven't taken any money from them.  But I will say
throw my opinion into the ring:

Of all the causes-of-failure a startup can experience, Google shuts
down appengine and team is wholly unable to migrate to new platform
is so far down the list that it might as well go next to meteor
impacts and alien invasions.  In an Goopocalypse scenario, any app can
be migrated off of appengine.  It just takes all the work that you
would otherwise have to invest right now building out your own
infrastructure.

On the other hand, if using GAE provides a 10% reduction in the
likelihood of catastrophic operational failure, this is a clear win.
Not to mention cost savings by not hiring sysadmins, dbas, and build
engineers.

I'd like to meet one of these VCs and talk some clue into them.

Jeff

On Sun, Apr 10, 2011 at 12:56 PM, Tim meer...@gmail.com wrote:


 On Monday, April 4, 2011 6:42:31 PM UTC+1, Brandon Wirtz wrote:

 Current thinking on VCs around App Engine Powered startups is
 unfortunately negative.  VCs are aware that Google often kills beta products
 or drastically changes the economics of products they offer at a price.
 When GAE comes out of beta this may change, but currently the risk as a VC
 is that an App Engine Powered Startup gets to 10M users and 1M lines of
 code, and Google decides it isn’t in the App engine business, any more.  All
 of sudden you are homeless and without a compatible alternative.

 Isn't Typhoon
   http://code.google.com/p/typhoonae/
 a good enough argument for having a compatible alternative ??
 I mean, it's not guaranteed to be 100% compatible (as a victim of many SQL
 database ports and the like, I'd ask what ever is?) but it matches the API,
 it's open source so you can trace what's gone wrong, and you can run it up
 on your own hardware. And if you really wanted to be sure, you could spend a
 week or so testing an anticipatory port now - you might be pleasantly
 surprised, or maybe find some fixes to suggest back and help the project.

 Plus, I’m hoping Google will just buy me before I get to that point, and
 then if they close the project I’ll already be paid out :-)

 You and me both pal, you and me both... :)
 --
 T


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


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



[google-appengine] Re: Redirect from naked domain preserving full path

2011-04-10 Thread roberto.cr
a newbie trying to deal with DNS settings is a mess, plus it's boring
to wait and see if it worked, so I decided to come back here and tell
more detailed steps on how to solve this before google does ;)

Google Apps tells you to insert 4 A records pointing to 4 google IPs.
How to reach it: Domain Settings, Domain names (
https://www.google.com/a/cpanel/mydomain.com/DomainSettingsDomains )
Then you need to set which subdomains you want to listen in
yourdomain.com and point to your appengine app. Yes, you can now set
the * wildcard (this is what I'll use for the CNAME later).
How to reach it: Dashboard, your Google App Engine project (
https://www.google.com/a/cpanel/mydomain.com/AppEngineServiceSettings?appId=myappengineid
)

Google Apps recommends you to do this on your DNS settings:
mydomain.com A - google 4 IPs
* CNAME - ghs.google.com

But I've changed it to (replace 'app' with your desired subdomain):
app.mydomain.com A - google 4 IPs
* CNAME - ghs.google.com
app A - your regular hosting IP

then, on your regular hosting (hostgator in my case, godaddy for
others), create a .htaccess on the root with this content:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com$
RewriteRule ^(.*)$ http\:\/\/app\.mydomain\.com\/$1 [R=302,L]

this way you keep google apps handling everything except the naked
mydomain redirection.
your regular hosting will be foing the naked domain redirection
preserving full path (as described in this .htaccess), redirecting it
to app.mydomain.com/full/path (and from there forward it's back on
google's hands).
it's a good way to fix this problem by yourself, until google fixes
their redirector (I've already warned about the problem on Google
Apps).

On Apr 9, 3:59 pm, Robert Kluin robert.kl...@gmail.com wrote:
 If you read back through this entire thread you'll see some discussion
 on that issue.  Perhaps people are generally using some other
 forwarding service.

 Robert







 On Sat, Apr 9, 2011 at 04:36, roberto.cr roberto...@gmail.com wrote:
  TL;DR

  Google is not redirecting my naked domain preserving full path.
  Examples:
  mydomain.com - app.mydomain.com CORRECT
  mydomain.com/login - app.mydomain.com WRONG ( should've pointed to
  app.mydomain.com/login )
  john.mydomain.com/login - john.mydomain.com/login CORRECT

  Does this happen to *everyone* ??? How come there's not much info
  about it on this discussion group ?
  How are people solving this ?

  On Apr 8, 10:29 pm, roberto.cr roberto...@gmail.com wrote:
  I'm having the same problem!

  I've set (under google apps cpanel DomainSettingsDomains) google apps
  to redirect mydomain.com to app.mydomain.com (because appengine
  doesn't allow for naked domains anymore)
  Then I've set (under google apps cpanel AppEngineServiceSettings) app
  engine to listen to *.mydomain.com (yes, you can set the * wildcard
  there now)
  This worked almost perfectly, but the only thing off is actually the
  most important:

  mydomain.com would redirect to app.mydomain.com
  userinput.mydomain.com would keep the userinput and load my regular
  app.mydomain.com (as described in my app.yaml, having my app to treat
  userinput: in Python's webapp framework you can access this with
  self.request.headers['Host'] )
  userinput.mydomain.com/login would keep the url but behave like
  app.mydomain.com/login (as expected) while still being able to read
  userinput
  BUT mydomain.com/login would NOT redirect to app.mydomain.com/login !
  it simply redirects to app.mydomain.com ignoring the full path!

  the problem seems to be the way google redirects my naked domain. it
  ignores the full path. I guess it's not just me, is it?

  so you are saying the solution really involves setting everything up
  on godaddy ?
  (in my case hostgator. I bought a .to domain, set the NS to my regular
  hostgator account and setting all DNS settings there.)

  On Apr 2, 1:13 am, Thomas Wiradikusuma wiradikus...@gmail.com wrote:

   Hi Giacinto,

   I'm having exactly the same problem. Can you get into more detail
   (step-by-step, starting 
   fromhttps://www.google.com/a/cpanel/MYDOMAIN/DomainSettingsDomains
   probably?) on how you get it done? I understand your post, but I'm
   afraid I might click/delete the wrong stuff.

   On Mar 31, 2:31 am, Giacinto decata...@gmail.com wrote:

Well, i solved the problem! None of the previous solutions is really 
the
good solution, or better, none is complete. The real problem of the 
lost
request's full path is the google autosetting for wwwredirect!

  --
  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 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google