[appengine-java] Re: SecurityException when using Apache HttpClient classes from Groovy

2011-03-27 Thread radomir
John,

I experienced exactly the same problem and was able to workaround. See
my post:
http://radomirml.com/2011/03/27/fixing-strange-noclassdeffounderror-on-app-engine

Hope this helps.

Radomir




On Mar 26, 3:57 pm, John supp...@weespr.com wrote:
 Actually based on the exception, it seems that the change happened on the
 servers any time during Friday.
 (my cron job kicks in once a day and first exception happened around
 midnight Friday night PST).

-- 
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] Sort function now throws an exception

2011-03-27 Thread ZeroCool
Hi App Engine Team,

I see 100% error rate for a servlet in my application.
The function had been working well for months.
The lines of code that generate errors are as following:

ListKeyUser memKeys = userDao.getUserKeys();
MapKeyUser, User mem = userDao.get(memKeys);
ListUser memList = new ArrayListUser(mem.values());
Collections.sort(memList, comp);

ComparatorUser comp = new ComparatorUser()
{
@Override
public int compare(User user1, User user2)
{

int ret = user2.getGroupRank() - user1.getGroupRank();
if (ret == 0)
{
ret = ((user2.getRep() - user1.getRep()) = 0 ? 1 : -1);
}
return ret;
}
};

The error is:


[27/Mar/2011:00:45:28 -0700] POST /GM HTTP/1.1 500 0 - a.
2.3.0,gzip(gfe) pe-server2.appspot.com ms=76 cpu_ms=140
api_cpu_ms=0 cpm_usd=0.003913
W 2011-03-27 00:45:28.770
/GM
java.lang.IllegalArgumentException: Comparison method violates its
general contract!
at java.util.TimSort.mergeLo(TimSort.java:747)
at java.util.TimSort.mergeAt(TimSort.java:483)
at java.util.TimSort.mergeCollapse(TimSort.java:408)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:1347)
at java.util.Collections.sort(Collections.java:217)
at com.miracle.server.pe.GroupMember.doPost(GroupMember.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
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
$2.handleRequest(RuntimePb.java:9285)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
437)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:
573)
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)


With some googling, I found that the error was related to JDK bugs.

I'm not using a sorted map or set which will possibly impose such
error:
In particular the sorted set (or sorted map) will violate the general
contract for set (or map), which is defined in terms of equals. as in

[appengine-java] Re: java.io.NotSerializableException

2011-03-27 Thread footy
I am having similar issue with
com.google.appengine.api.datastore.LazyList but it's to do with
writing to Memcache.
I haven't changed anything in the application either. Got any idea?

I have posted here:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/ea9b91efb23c46a6


On Mar 27, 12:00 am, Melanie Kirchner
kirchner.mela...@googlemail.com wrote:
 Hi,

 my app is having some problems lately. I haven't changed anything and
 since some hours I'm getting the following exception during the login
 proccess (load data from the DB, store them in the session and
 redirecht to another page).

 java.lang.RuntimeException: java.io.NotSerializableException:
 com.google.appengine.api.datastore.LazyList
         at
 com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
 393)
         at
 com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java:
 370)
         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
 $2.handleRequest(RuntimePb.java:9285)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
 437)
         at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:
 573)
         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:
 com.google.appengine.api.datastore.LazyList
         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.writeObject(ObjectOutputStream.java:
 343)
         at
 com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
 390)
         ... 

[appengine-java] Gig 0.3.0 has been released

2011-03-27 Thread Eiichiro
Hi Google App Engine Java developers, 

Gig (Google app engine Innovation Gear) 0.3.0 has been released and now a 
new feature CRUD Scaffolding is bundled. Gig is a Google App Engine Java 
application toolkit developed by Eiichiro Uchiumi (http://www.eiichiro.org/) 
and can be performed on JDK 6 and App Engine SDK for Java 1.4.0 or later. 
Gig offers the full set of tools to develop, deploy and operate Google App 
Engine Java application more easily, quickly and safely.

Gig - Google App Engine Rock 'n' Roll!
http://code.google.com/p/gig/

CRUD Scaffolding
http://code.google.com/p/gig/wiki/CRUDScaffolding


Thanks, 

Eiichiro

-- 
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] What are my options in implementing a video upload/streaming functionality in GAE

2011-03-27 Thread ruskyn
Hi,

I researched and found two options; but i would appreciate opinions/
experiences

1. Youtube Direct API. I have two problems here - the user who is
uploading video has to log into youtube too. If i have a website/
mobile app this becomes a deterrent to users. Is there a work around?
Also, the videos will be public and become a part of youtube; the
advantage is its free of cost and will incur GAE charges.

2. Using blobstore API . Can anyone point me to an example where this
has been done? What is the best free video player to use?

I have a small other problem. I am using a restlet framework to create
REST API's to expose various services. Can i combine Blobstore API
into restlet framework.

Any help will be appreciated.


-- 
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] Sort function now throws an exception

2011-03-27 Thread Stephen Johnson
There have been some people that have been reporting code that was working
for weeks, etc. not working in the last week or so. I'm beginning to wonder
if maybe behind the scenes a switch to Java 7 or some other Java switch is
occurring. In relation to your error, it looks like what I've found so far
that Java 7 (not sure) is switching to using TimSort for ArrayList sorting.
This TimSort is also used on Android from what I'm reading. If you look at
the source code to TimSort you will see the exception you are seeing being
thrown. It seems to me and further reading needs to be done that this type
of error shouldn't occur for a Comparator used outside of a Set or Map as
you suggest but should only occur when used in conjunction with a Set or
Map. I'm including a couple of links to help you and other readers out as
I'm sure your not the only one doing sorts this way (I know I am).

http://news.ycombinator.com/item?id=752677

http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/TimSort.java?view=co

On Sun, Mar 27, 2011 at 1:19 AM, ZeroCool zero...@gmail.com wrote:

 Hi App Engine Team,

 I see 100% error rate for a servlet in my application.
 The function had been working well for months.
 The lines of code that generate errors are as following:

 ListKeyUser memKeys = userDao.getUserKeys();
 MapKeyUser, User mem = userDao.get(memKeys);
 ListUser memList = new ArrayListUser(mem.values());
 Collections.sort(memList, comp);

 ComparatorUser comp = new ComparatorUser()
 {
@Override
public int compare(User user1, User user2)
{

int ret = user2.getGroupRank() - user1.getGroupRank();
if (ret == 0)
{
ret = ((user2.getRep() - user1.getRep()) = 0 ? 1 :
 -1);
}
return ret;
}
 };

 The error is:


 [27/Mar/2011:00:45:28 -0700] POST /GM HTTP/1.1 500 0 - a.
 2.3.0,gzip(gfe) pe-server2.appspot.com ms=76 cpu_ms=140
 api_cpu_ms=0 cpm_usd=0.003913
 W 2011-03-27 00:45:28.770
 /GM
 java.lang.IllegalArgumentException: Comparison method violates its
 general contract!
at java.util.TimSort.mergeLo(TimSort.java:747)
at java.util.TimSort.mergeAt(TimSort.java:483)
at java.util.TimSort.mergeCollapse(TimSort.java:408)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:1347)
at java.util.Collections.sort(Collections.java:217)
at com.miracle.server.pe.GroupMember.doPost(GroupMember.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
 97)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
 35)
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
 $2.handleRequest(RuntimePb.java:9285)
at 

[appengine-java] Re: Gig 0.3.0 has been released

2011-03-27 Thread Marcel Overdijk
Hi Eiichiro,

Just browsed the Gig documentation pages and it looks interesting.
Is this framework already used in public production websites?

Cheers,
Marcel

On Mar 27, 4:38 pm, Eiichiro eiichiro.uchi...@gmail.com wrote:
 Hi Google App Engine Java developers,

 Gig (Google app engine Innovation Gear) 0.3.0 has been released and now a
 new feature CRUD Scaffolding is bundled. Gig is a Google App Engine Java
 application toolkit developed by Eiichiro Uchiumi (http://www.eiichiro.org/)
 and can be performed on JDK 6 and App Engine SDK for Java 1.4.0 or later.
 Gig offers the full set of tools to develop, deploy and operate Google App
 Engine Java application more easily, quickly and safely.

 Gig - Google App Engine Rock 'n' Roll!http://code.google.com/p/gig/

 CRUD Scaffoldinghttp://code.google.com/p/gig/wiki/CRUDScaffolding

 Thanks,

 Eiichiro

-- 
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: SecurityException when using Apache HttpClient classes from Groovy

2011-03-27 Thread Don Schwarz
Sorry for the trouble, folks.  Can you respond privately with your app ids?

On Sun, Mar 27, 2011 at 2:44 AM, radomir radomi...@gmail.com wrote:

 John,

 I experienced exactly the same problem and was able to workaround. See
 my post:

 http://radomirml.com/2011/03/27/fixing-strange-noclassdeffounderror-on-app-engine

 Hope this helps.

 Radomir




 On Mar 26, 3:57 pm, John supp...@weespr.com wrote:
  Actually based on the exception, it seems that the change happened on the
  servers any time during Friday.
  (my cron job kicks in once a day and first exception happened around
  midnight Friday night PST).

 --
 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: [appengine-java] Sort function now throws an exception

2011-03-27 Thread Stephen Johnson
Hi ZeroCool,
I'm not sure if this will help, and I don't know how the TimSort works but
looking at your compare method I'm curious about this particular situation.
If you have two users UserA and UserB and
   UserA has  groupRank of 5 and Rep of 3
and
   UserB has groupRank of 5 and Rep of 3
Then, if you call compare(UserA, UserB) you get a return value of 1
indicating that UserA  UserB
But, if you call compare(UserB, UserA) you get a return value of 1
indicating that UserB  UserA
So, this situation seems wrong. Now, if I'm interpreting your compare method
correctly, then my guess would be that either new data was added to your
dataset that hit this particular case or the old mergeSort used by
Collections.sort only called compare with the objects in one particular
order if it used them multiple times and the new TimSort can call the
compare in either order multiple times and it is seeing this discrepancy.

I think you should try re-coding your compare so that if groupRank and Rep
are the same for both objects then you return 0 not a 1.

I hope this helps,
Stephen

On Sun, Mar 27, 2011 at 1:19 AM, ZeroCool zero...@gmail.com wrote:

 Hi App Engine Team,

 I see 100% error rate for a servlet in my application.
 The function had been working well for months.
 The lines of code that generate errors are as following:

 ListKeyUser memKeys = userDao.getUserKeys();
 MapKeyUser, User mem = userDao.get(memKeys);
 ListUser memList = new ArrayListUser(mem.values());
 Collections.sort(memList, comp);

 ComparatorUser comp = new ComparatorUser()
 {
@Override
public int compare(User user1, User user2)
{

int ret = user2.getGroupRank() - user1.getGroupRank();
if (ret == 0)
{
ret = ((user2.getRep() - user1.getRep()) = 0 ? 1 :
 -1);
}
return ret;
}
 };

 The error is:


 [27/Mar/2011:00:45:28 -0700] POST /GM HTTP/1.1 500 0 - a.
 2.3.0,gzip(gfe) pe-server2.appspot.com ms=76 cpu_ms=140
 api_cpu_ms=0 cpm_usd=0.003913
 W 2011-03-27 00:45:28.770
 /GM
 java.lang.IllegalArgumentException: Comparison method violates its
 general contract!
at java.util.TimSort.mergeLo(TimSort.java:747)
at java.util.TimSort.mergeAt(TimSort.java:483)
at java.util.TimSort.mergeCollapse(TimSort.java:408)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:1347)
at java.util.Collections.sort(Collections.java:217)
at com.miracle.server.pe.GroupMember.doPost(GroupMember.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
 97)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
 35)
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
 

[appengine-java] Check Table Exists

2011-03-27 Thread Arjun Jain
How to check table exists or not or how to display all table 

-- 
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] Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-27 Thread branflake2267
After uploading a file to the blobstore via base64 gives me the wrong file 
size when retrieving the blobinfo. This happens on the dev and production 
side of app engine. Is there a work around or am I missing something?

 private String getRequest_Image(String fileName, String contentType, String 
file) {
String s = ;
s += Content-Disposition: form-data; name=\File\; filename=\ + 
fileName + \\r\n;
s += Content-Transfer-Encoding: base64 \r\n;
s += Content-Type:  + contentType + \r\n\r\n; //
s += file;
s += \r\n;
return s;
  }


http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - my 
blob notes

http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5#Upload_Canvas_Image - 
upload via request builder

Brandon Donnelson
http://gwt-examples.googlecode.com 

-- 
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: Check Table Exists

2011-03-27 Thread Didier Durand
Hi,

Check the metadata queries: exactly what you need

http://code.google.com/appengine/docs/java/datastore/metadataqueries.html

regards

didier

On Mar 28, 4:53 am, Arjun Jain arjun.j...@gmail.com wrote:
 How to check table exists or not or how to display all table

-- 
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] appcfg error: No address associated with hostname

2011-03-27 Thread Ruggero
ok, I've solved this last problem, but with python2.5 I got the same
error as with 2.7

  File /usr/local/lib/python2.5/urllib2.py, line 392, in _open
'_open', req)
  File /usr/local/lib/python2.5/urllib2.py, line 353, in _call_chain
result = func(*args)
  File /usr/local/lib/python2.5/urllib2.py, line 1109, in https_open
return self.do_open(httplib.HTTPSConnection, req)
  File 
/home/ruggero/Documenti/programmazione/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
line 355, in do_open
raise url_error
urllib2.URLError: urlopen error (-5, 'No address associated with hostname')


2011/3/26 Ruggero giurr...@gmail.com:
 2011/3/23 Robert Kluin robert.kl...@gmail.com:
 Have you tried it with Python 2.5?




 Robert


 yes, but now with python2.5 I got:

 Traceback (most recent call last):
  File /home/ruggero/google_appengine/appcfg.py, line 71, in module
    run_file(__file__, globals())
  File /home/ruggero/google_appengine/appcfg.py, line 67, in run_file
    execfile(script_path, globals_)
  File /home/ruggero/google_appengine/google/appengine/tools/appcfg.py,
 line 63, in module
    from google.appengine.tools import appengine_rpc
  File 
 /home/ruggero/google_appengine/google/appengine/tools/appengine_rpc.py,
 line 24, in module
    import fancy_urllib
  File 
 /home/ruggero/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py,
 line 341, in module
    class FancyHTTPSHandler(urllib2.HTTPSHandler):
 AttributeError: 'module' object has no attribute 'HTTPSHandler'





 On Tue, Mar 22, 2011 at 16:09, Ruggero Turra giurr...@gmail.com wrote:
 I got this error every time I use appcfg doing updating, dowloading, ... I
 found some other threads with this problem and the reason was related to the
 use of a proxy, but I'm not under a proxy.
 ~/google_appengine/appcfg.py --noisy --email=giurr...@gmail.com update
 myapplication

 Application: myapplication; version: 1.
 Host: appengine.google.com
 2011-03-22 21:04:30,530 DEBUG appengine_rpc.py:443 Could not load
 authentication cookies; LoadError: '/home/ruggero/.appcfg_cookies' does not
 look like a Netscape format cookies file
 2011-03-22 21:04:30,530 INFO appengine_rpc.py:153 Server:
 appengine.google.com
 2011-03-22 21:04:30,532 INFO appcfg.py:413 Checking for updates to the SDK.
 2011-03-22 21:04:30,533 DEBUG appengine_rpc.py:345 Sending HTTPS request:
 POST
 /api/updatecheck?release=1.4.2timestamp=1294960686api_versions=%5B%271%27%5D
 HTTPS/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.4.2 Linux/2.6.35.11-83.fc14.x86_64
 Python/2.7.0.final.0

 2011-03-22 21:04:30,534 DEBUG __init__.py:81 Creating preset proxy https
 conn: appengine.google.com
 2011-03-22 21:04:35,633 INFO appcfg.py:422 Update check failed: urlopen
 error [Errno -5] No address associated with hostname
 2011-03-22 21:04:35,634 INFO appcfg.py:1761 Reading app configuration.
 Beginning update of app: myapplication, version: 1
 Scanning files on local disk.
 2011-03-22 21:04:35,637 INFO appcfg.py:1779 Processing file 'app.yaml'
 2011-03-22 21:04:35,638 INFO appcfg.py:1868 Ignoring file 'index.html~':
 File matches ignore regex.
 2011-03-22 21:04:35,638 INFO appcfg.py:1868 Ignoring file 'my_model.pyc':
 File matches ignore regex.
 2011-03-22 21:04:35,639 INFO appcfg.py:1779 Processing file 'hello.py'
 2011-03-22 21:04:35,639 INFO appcfg.py:1868 Ignoring file 'contacts.html~':
 File matches ignore regex.
 2011-03-22 21:04:35,640 INFO appcfg.py:1779 Processing file 'index.html'
 2011-03-22 21:04:35,640 INFO appcfg.py:1868 Ignoring file 'my_model.py~':
 File matches ignore regex.
 2011-03-22 21:04:35,640 INFO appcfg.py:1868 Ignoring file 'hello.py~': File
 matches ignore regex.
 2011-03-22 21:04:35,641 INFO appcfg.py:1868 Ignoring file 'app.yaml~': File
 matches ignore regex.
 2011-03-22 21:04:35,641 INFO appcfg.py:1779 Processing file 'index.yaml'
 2011-03-22 21:04:35,642 INFO appcfg.py:1779 Processing file 'contacts.html'
 2011-03-22 21:04:35,642 INFO appcfg.py:1779 Processing file 'my_model.py'
 2011-03-22 21:04:35,643 INFO appcfg.py:1779 Processing file
 'stylesheets/main.css'
 Initiating update of app: myapplication, version: 1
 2011-03-22 21:04:35,662 INFO appcfg.py:1502 Send: /api/appversion/create,
 params={'version': '1', 'app_id': 'myapplication'}
 2011-03-22 21:04:35,667 DEBUG appengine_rpc.py:345 Sending HTTPS request:
 POST /api/appversion/create?version=1app_id=myapplication HTTPS/1.1
 Host: appengine.google.com
 X-appcfg-api-version: 1
 Content-type: application/octet-stream
 User-agent: appcfg_py/1.4.2 Linux/2.6.35.11-83.fc14.x86_64
 Python/2.7.0.final.0
 admin_console:
   pages:
   - name: Datastore Admin
     url: /_ah/datastore_admin/
 api_version: '1'
 application: myapplication
 builtins:
 - datastore_admin: 'on'
 - default: 'on'
 derived_file_type:
 - python_precompiled
 handlers:
 - login: admin
   script: $PYTHON_LIB/google/appengine/ext/datastore_admin/main.py
   secure: 

[google-appengine] Forum (message board) engine for Google App Engine

2011-03-27 Thread iryndin
Hi all,

I want to announce a Google App Engine-based forum engine. It is coded
in Python.
It is named GForum, open-source (Apache 2.0. License) and hosted at
http://code.google.com/p/gforum

Live demo is hosted at http://gforum-demo.appspot.com.

How it was born?
Simple. I wanted to add forums to some of my GAE-based sites. I found
no good GAE-based forum engines and decided to make it myself.

What are design guidelines?
Clean and simple. Occam's razor: do with fewer things.

Features for now:
 - login with 5 auth providers: Google, Facebook, Twitter, MyOpenID,
Vkontakte.
 - view forums and threads, write messages
 - view user profiles
 - SEO-friendly permalinks to forums and threads
 - design via themes

Features in progress:
 - edit user profile data
 - edit avatar
 - Gravatar usage

Features to be implemented:
 - pagination
 - paste images or make links to outside images (e.g. at Flickr)
 - i18n
 - automatic sitemap generation
 - private messages for users
 - RSS/ATOM feeds for threads/forums
 - administrator interface

Hope it will be useful to anybody besides me.
Will be glad to any comments/suggestions/contributions.

Regards,
Ivan.


-- 
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] Branded Google Account Login

2011-03-27 Thread speedplane
Hi,

My site currently uses google accounts for authentication. I use the
get_login_url() function to send the user to a log in page. However, I
would really like to create my own login page that is consistent with
my UI.

I know that spot-cloud is able to do this (see link below), how do
they do it?
https://spotcloud.appspot.com/buyer/register

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.



[google-appengine] Re: Branded Google Account Login

2011-03-27 Thread Calvin
You'll notice that if you click the login button at the top right you get 
the plain old Google-branded login page.  The page you are looking at is 
probably just creating a User object with the supplied email.  If it's an 
invalid email it will be an orphaned User object.  If it's a valid email you 
still won't be able to do much with them until they've logged in through the 
Google-branded page (which appears immediately after you've registered with 
this site).

http://code.google.com/appengine/docs/python/users/userobjects.html

A User instance can be also constructed from an email address:

user = users.User(albert.john...@example.com)

If the User constructor is called with an email address that does not 
correspond with a valid Google account, the object will be created but it 
will not correspond with a real Google account. This will be the case even 
if someone creates a Google account with the given email address after the 
object is stored. A User value with an email address that does not represent 
a Google account at the time it is created will never match a User value 
that represents a real user.

-- 
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: Two entities in datastore have exactly the same key

2011-03-27 Thread Dale
Thanks, Jeff. That's what I thought, and was really confused when the
keys appeared to be the same. I consequently used a base64 decoder to
decode the key and that's where I found my error.

Dale

On Mar 25, 10:58 pm, Jeff Schnitzer j...@infohazard.org wrote:
 Just to clear up a bit of confusion you may have:

 An id (or name) is *part* of a key.  It is a tautological
 impossibility to have two keys that are identical but ids that are
 different.

 Jeff

 On Thu, Mar 24, 2011 at 11:59 PM, Dale dalehu...@gmail.com wrote:
  Ok, my bad. In the light of day the entity keys are different: The
  difference was one character, an i changed to a j, probably due to the
  ID being incremented.

  Changing my code to use a key name so that the task does a get before
  the put to check if the entity already exists.

  Dale

  On Mar 25, 12:41 am, Dale dalehu...@gmail.com wrote:
  Hi

  I insert an entity in to the datastore using a task. The first time
  the task ran it successfully put the entity, but the code crashed
  after the put (I forgot to include logging.) The task re-ran 7s later,
  and did the put again. This time due to a slightly different code path
  after the put it didn't need to log, and task completed successfully.

  However, on that kind I have two entities with the exact same key,
  just with different ID's. The data of the two entities is the same.

  I thought that it was not possible to have two keys that were the
  same. Did I miss something?

  I am using high replication datastore. The entities do not have any
  parents.

  Any help would be appreciated.

  Dale

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



Re: [google-appengine] Re: Two entities in datastore have exactly the same key

2011-03-27 Thread Robert Kluin
Hey Dale,
  You might find the Key class' id_or_name method useful, if you're
using Python.  There are some other handy methods there too.

http://code.google.com/appengine/docs/python/datastore/keyclass.html#Key_id_or_name




Robert





On Sun, Mar 27, 2011 at 16:41, Dale dalehu...@gmail.com wrote:
 Thanks, Jeff. That's what I thought, and was really confused when the
 keys appeared to be the same. I consequently used a base64 decoder to
 decode the key and that's where I found my error.

 Dale

 On Mar 25, 10:58 pm, Jeff Schnitzer j...@infohazard.org wrote:
 Just to clear up a bit of confusion you may have:

 An id (or name) is *part* of a key.  It is a tautological
 impossibility to have two keys that are identical but ids that are
 different.

 Jeff

 On Thu, Mar 24, 2011 at 11:59 PM, Dale dalehu...@gmail.com wrote:
  Ok, my bad. In the light of day the entity keys are different: The
  difference was one character, an i changed to a j, probably due to the
  ID being incremented.

  Changing my code to use a key name so that the task does a get before
  the put to check if the entity already exists.

  Dale

  On Mar 25, 12:41 am, Dale dalehu...@gmail.com wrote:
  Hi

  I insert an entity in to the datastore using a task. The first time
  the task ran it successfully put the entity, but the code crashed
  after the put (I forgot to include logging.) The task re-ran 7s later,
  and did the put again. This time due to a slightly different code path
  after the put it didn't need to log, and task completed successfully.

  However, on that kind I have two entities with the exact same key,
  just with different ID's. The data of the two entities is the same.

  I thought that it was not possible to have two keys that were the
  same. Did I miss something?

  I am using high replication datastore. The entities do not have any
  parents.

  Any help would be appreciated.

  Dale

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



-- 
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] SPF Records for App Engine?

2011-03-27 Thread Dave Peck
My sign-up validation emails are ending up in users' junk mail
folders.

What's the scoop with SPF records for App Engine? I found a few older
posts on this group about it, but nothing from a GOOG employee or
pointing to official GOOG documentation.

Could someone point me in the right direction here?

Thanks,
Dave

-- 
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] SPF Records for App Engine?

2011-03-27 Thread Chris Copeland
If you are sending from an address f...@yourdomain.com and yourdomain.com is
setup with Google Apps, then here are the instructions:
http://www.google.com/support/a/bin/answer.py?answer=178723

If that doesn't help (Yahoo may still be a problem for you), then just use
Postmark or Amazon.

-Chris

On Sun, Mar 27, 2011 at 4:28 PM, Dave Peck davep...@gmail.com wrote:

 My sign-up validation emails are ending up in users' junk mail
 folders.

 What's the scoop with SPF records for App Engine? I found a few older
 posts on this group about it, but nothing from a GOOG employee or
 pointing to official GOOG documentation.

 Could someone point me in the right direction here?

 Thanks,
 Dave

 --
 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: SPF Records for App Engine?

2011-03-27 Thread Dave Peck
I've seen some claims from potentially reliable sources that the
correct SPF record is in fact:

v=spf1 include:aspmx.googlemail.com ~all

But this seems wrong given the link you just pointed me to?

Thanks!

Cheers,
Dave


On Mar 27, 2:36 pm, Chris Copeland ch...@cope360.com wrote:
 If you are sending from an address f...@yourdomain.com and yourdomain.com is
 setup with Google Apps, then here are the 
 instructions:http://www.google.com/support/a/bin/answer.py?answer=178723

 If that doesn't help (Yahoo may still be a problem for you), then just use
 Postmark or Amazon.

 -Chris







 On Sun, Mar 27, 2011 at 4:28 PM, Dave Peck davep...@gmail.com wrote:
  My sign-up validation emails are ending up in users' junk mail
  folders.

  What's the scoop with SPF records for App Engine? I found a few older
  posts on this group about it, but nothing from a GOOG employee or
  pointing to official GOOG documentation.

  Could someone point me in the right direction here?

  Thanks,
  Dave

  --
  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: how to make gae and gwt sdks work together?

2011-03-27 Thread Ania
Thanks very much!That's exactly what I was doing,haha!

-- 
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: SPF Records for App Engine?

2011-03-27 Thread Barry Hunter
aspmx.googlemail.com is simply a redirect to _spf.google.com

# dig aspmx.googlemail.com TXT
;; ANSWER SECTION:
aspmx.googlemail.com.   4174IN  TXT v=spf1
redirect=_spf.google.com


I would think using _spf.google.com directly would be safer, but
shouldnt really matter.

We where once told to use _netblocks.google.com by a google employee
in this forum. It returns the same IP ranges as _spf anyway.

On 27 March 2011 22:38, Dave Peck davep...@gmail.com wrote:
 I've seen some claims from potentially reliable sources that the
 correct SPF record is in fact:

 v=spf1 include:aspmx.googlemail.com ~all

 But this seems wrong given the link you just pointed me to?

 Thanks!

 Cheers,
 Dave


 On Mar 27, 2:36 pm, Chris Copeland ch...@cope360.com wrote:
 If you are sending from an address f...@yourdomain.com and yourdomain.com is
 setup with Google Apps, then here are the 
 instructions:http://www.google.com/support/a/bin/answer.py?answer=178723

 If that doesn't help (Yahoo may still be a problem for you), then just use
 Postmark or Amazon.

 -Chris







 On Sun, Mar 27, 2011 at 4:28 PM, Dave Peck davep...@gmail.com wrote:
  My sign-up validation emails are ending up in users' junk mail
  folders.

  What's the scoop with SPF records for App Engine? I found a few older
  posts on this group about it, but nothing from a GOOG employee or
  pointing to official GOOG documentation.

  Could someone point me in the right direction here?

  Thanks,
  Dave

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



-- 
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] JDO Query problem

2011-03-27 Thread Ania
Hi,
I'm trying to query my database.my code for query is as follows:
String user=(String) req.getParameter(user);

PersistenceManager pm=PMF.get().getPersistenceManager();
Query q=pm.newQuery(SELECT email FROM crypto.server.ChatUser WHERE 
this.email==user);
List c=(List) q.execute();

The problem is that it returns all rows in database.I hardcoded actual email 
and it returned correct row.When I switch it to this statement,it completely 
ignores WHERE condition.
Anyone can help on that?
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.



[google-appengine] Re: JDO Query problem

2011-03-27 Thread Ania
Sorted.I used 'addParameters' and then assigned 'user' to it:)

-- 
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] how to access gae via ipv6?

2011-03-27 Thread Brian Davenport
I also seem to recall a there being a none whitelist cname of
ghs46.google.com
On Mar 26, 2011 4:04 PM, Brandon Wirtz drak...@digerat.com wrote:
 No changes necessary if you/your ISP are on Google's IPv6 Whitelist. If
 they aren't no IPv6 for you.



 -Original Message-
 From: google-appengine@googlegroups.com
 [mailto:google-appengine@googlegroups.com] On Behalf Of saintthor
 Sent: Saturday, March 26, 2011 8:01 AM
 To: Google App Engine
 Subject: [google-appengine] how to access gae via ipv6?

 must i edit the hosts file? is there any other way?

 if must, where can i get safe ipv6 adress?

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


-- 
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] Forum (message board) engine for Google App Engine

2011-03-27 Thread Tom Wu
Thanks Ivan.


2011/3/28 iryndin iryn...@gmail.com

 Hi all,

 I want to announce a Google App Engine-based forum engine. It is coded
 in Python.
 It is named GForum, open-source (Apache 2.0. License) and hosted at
 http://code.google.com/p/gforum

 Live demo is hosted at http://gforum-demo.appspot.com.

 How it was born?
 Simple. I wanted to add forums to some of my GAE-based sites. I found
 no good GAE-based forum engines and decided to make it myself.

 What are design guidelines?
 Clean and simple. Occam's razor: do with fewer things.

 Features for now:
  - login with 5 auth providers: Google, Facebook, Twitter, MyOpenID,
 Vkontakte.
  - view forums and threads, write messages
  - view user profiles
  - SEO-friendly permalinks to forums and threads
  - design via themes

 Features in progress:
  - edit user profile data
  - edit avatar
  - Gravatar usage

 Features to be implemented:
  - pagination
  - paste images or make links to outside images (e.g. at Flickr)
  - i18n
  - automatic sitemap generation
  - private messages for users
  - RSS/ATOM feeds for threads/forums
  - administrator interface

 Hope it will be useful to anybody besides me.
 Will be glad to any comments/suggestions/contributions.

 Regards,
 Ivan.


 --
 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: SPF Records for App Engine?

2011-03-27 Thread Greg
Hi Dave -

I implemented SPF records and they helped, but you're going to find
Yahoo Mail blocks your messages even with SPF. I've been fighting a
losing battle with them to whitelist my domain. They will only
whitelist an IP address, which means we're stuck because Appengine
uses many varying IP addresses.

Yahoo basically told me the only solution is to use DKIM. Google
recently implemented this for Google Apps mail, but not Appengine. We
need a small change to the Appengine mail API to add the DKIM header
ourselves - please star this issue if you think it might be useful for
you too:

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

I'm not happy to switch mail to another provider because then I have
additional points of failure.

Cheers
Greg.

-- 
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] how to access gae via ipv6?

2011-03-27 Thread Brandon Wirtz
Some Google person told me don't do that. I don't see the thread. but about
3 months back this came up.

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of Brian Davenport
Sent: Sunday, March 27, 2011 6:33 PM
To: google-appengine@googlegroups.com
Subject: RE: [google-appengine] how to access gae via ipv6?

 

I also seem to recall a there being a none whitelist cname of
ghs46.google.com

On Mar 26, 2011 4:04 PM, Brandon Wirtz drak...@digerat.com wrote:
 No changes necessary if you/your ISP are on Google's IPv6 Whitelist. If
 they aren't no IPv6 for you.
 
 
 
 -Original Message-
 From: google-appengine@googlegroups.com
 [mailto:google-appengine@googlegroups.com] On Behalf Of saintthor
 Sent: Saturday, March 26, 2011 8:01 AM
 To: Google App Engine
 Subject: [google-appengine] how to access gae via ipv6?
 
 must i edit the hosts file? is there any other way?
 
 if must, where can i get safe ipv6 adress?
 
 -- 
 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
mailto:google-appengine%2bunsubscr...@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
mailto:google-appengine%2bunsubscr...@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.

-- 
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] how to access gae via ipv6?

2011-03-27 Thread Robert Kluin
Looks like this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/a2c23ea32c5c1ab3







On Sun, Mar 27, 2011 at 22:59, Brandon Wirtz drak...@digerat.com wrote:
 Some Google person told me don’t do that… I don’t see the thread… but about
 3 months back this came up.



 From: google-appengine@googlegroups.com
 [mailto:google-appengine@googlegroups.com] On Behalf Of Brian Davenport
 Sent: Sunday, March 27, 2011 6:33 PM
 To: google-appengine@googlegroups.com
 Subject: RE: [google-appengine] how to access gae via ipv6?



 I also seem to recall a there being a none whitelist cname of
 ghs46.google.com

 On Mar 26, 2011 4:04 PM, Brandon Wirtz drak...@digerat.com wrote:
 No changes necessary if you/your ISP are on Google's IPv6 Whitelist. If
 they aren't no IPv6 for you.



 -Original Message-
 From: google-appengine@googlegroups.com
 [mailto:google-appengine@googlegroups.com] On Behalf Of saintthor
 Sent: Saturday, March 26, 2011 8:01 AM
 To: Google App Engine
 Subject: [google-appengine] how to access gae via ipv6?

 must i edit the hosts file? is there any other way?

 if must, where can i get safe ipv6 adress?

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


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


-- 
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] Review my app and win a $25 Amazon Gift Certificate

2011-03-27 Thread Robert Kluin
Hi Zeynel,
  Interesting idea, it's like Google search minus the search (ie with
only the 'sponsored' results).  In any event, glad you're learning and
having fun with Python and App Engine.

  Would probably be helpful if you had some way to view all tags.  It
would be nice to 'browse' the tags.  You could also update the search
results to indicate which terms were used for a particular search and
how they were combined (are they ORed or ANDed?).  Might also be cool
to see some info about the 'paid rank' and/or click count of each
link.





Robert






On Thu, Mar 24, 2011 at 19:27, Zeynel azeyn...@gmail.com wrote:
 I posted the link to my application a few days ago to HN but there
 were no comments so I reposted it today with the offer in the title to
 encourage comments: http://news.ycombinator.com/item?id=2366115

 Please take a look and let me know what you think.

 http://ting-1.appspot.com/

 And thanks again to everyone here who helped with my questions.

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