[appengine-java] I have an error here with the Google App Engine

2011-11-24 Thread Thomas Z.
Here's exactly what it says:
Over Quota
This Google App Engine application is temporarily over its serving
quota. Please try again later.
_
I was browsing the internet and found a site called: www.playalterego.com
and it has that error every time I try to go in. Please help!




-- 
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: Show project: Neytap (classifieds)

2011-11-21 Thread Thomas Wiradikusuma
Hi Michele,

Thanks. I haven't integrated it with Facebook auth, currently it's
just an isolated app under Facebook chrome. I'm planning to implement
it this weekend. I'll post an update to this thread later :)


On Nov 22, 2:06 am, Miguel  wrote:
> Hi,
> it's very interesting project. I have a question: how do you deal with
> authentication? Have you tried to integrate the Facebook
> authentication with Google App Engine?
>
> Thank you
> Michele
>
> On Nov 20, 9:52 pm, Thomas Wiradikusuma 
> wrote:
>
>
>
>
>
>
>
> > Hi guys,
>
> > Last night I launched my pet project to public,www.neytap.com. It's a
> > (very) simple classifieds for room rentals inside Facebook.
>
> > It runs on GAE/Java and written in Scala, using just Servlet/JSP in
> > the server. I tried Spring but given up.
>
> > Other than that, it uses:
> > Objectify, StringTemplate, SiteMesh, jQuery (and some plugins),
> > Backbone.js. Man, I'm really standing on the shoulders of giants.
>
> > My design sucks, so the website looks plain. Anyway looking forward
> > for some suggestion :)
>
> > @ikai this is the website I was working on in Google Hackaton in KL :)

-- 
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] Show project: Neytap (classifieds)

2011-11-20 Thread Thomas Wiradikusuma
Hi guys,

Last night I launched my pet project to public, www.neytap.com. It's a
(very) simple classifieds for room rentals inside Facebook.

It runs on GAE/Java and written in Scala, using just Servlet/JSP in
the server. I tried Spring but given up.

Other than that, it uses:
Objectify, StringTemplate, SiteMesh, jQuery (and some plugins),
Backbone.js. Man, I'm really standing on the shoulders of giants.

My design sucks, so the website looks plain. Anyway looking forward
for some suggestion :)

@ikai this is the website I was working on in Google Hackaton in KL :)

-- 
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: Serious Performance Issues Due To Constant Startup of New Instances

2011-10-23 Thread Thomas Wiradikusuma
I was using Spring, Spring Security, Sitemesh, JSP and Objectify.
Sometimes I experienced deadline exception (remember last time request
timeout was set to 30sec).

Now that I use JSP, Servlet, Objectify and custom Sitemesh, it takes
less than 5secs to warmup.


On Oct 24, 3:16 am, Miroslav Genov  wrote:
> We had a similar issue with JDO, so we switched to twig-persist which starts
> faster then JDO and has a really nice API.
>
> About spinning, you can specify how long GAE can wait for new request to
> complete, until start a new instance of the application to handle it. You
> can check this options in the "Application Settings" page in the admin panel
> of your application under label "Performance".

-- 
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: Upload attachments Google Sites

2011-08-23 Thread Thomas Wiradikusuma
Hi Ikai,

Just wondering, is it possible if instances are given limited space
"temp" dir where programs can write to it?
It will greatly help 3rd party frameworks which use file system for
temp data.

On Aug 24, 5:53 am, "Ikai Lan (Google)"  wrote:
> Hah, I should have looked at the code. Yeah, my example writes the thing to
> disk. Thanks for the catch, Stephen!

-- 
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] Java PaaS shoutout

2011-08-18 Thread Thomas Wiradikusuma
Hi guys,

I just stumbled upon this article:
http://www.ibm.com/developerworks/java/library/j-paasshootout

Are these constraints/limitations still valid? (the article date is
April 2011)

"GAE forces any application-initiated connection to close after 5 to
10 seconds"

"But its raw performance is often slow.. ..GAE often takes 1 to 3
seconds to respond to database-related requests."

"One tip: Set up a cron job inside GAE to load your own website every
2 to 3 minutes to keep the JVM active."

"GAE limits the returned dataset of each query to 1,000 rows"

"GAE allows only 100 indexes per table"

"GAE provides no easy way to delete indexes that are no longer in use"

"doesn't support free text search in the database"

"no standard API for directly accessing BigTable, you must write data-
import and data-export logic into servlets inside your own
application, and use your own web interface to import or export data"

"some of the components in GAE still feel experimental rather than
production-ready"

-- 
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: Gaelyk 1.0 is here, the lightweight Groovy toolkit for Google App Engine

2011-08-05 Thread Thomas Wiradikusuma
Guillaume, congrats to Gaelyk and all its developers! Glad to hear
it's now version 1.0!
I'm currently developing "admin console" for my app, so far so good :)

On Aug 6, 10:00 am, Guillaume Laforge  wrote:
> Hi all,
>
> I'm very happy to announce the *final release of Gaelyk 1.0*, the
> lightweight Groovy  toolkit for Google App
> Engine!

-- 
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: When to use a String as ID? (using Objectify and GWT)

2011-06-15 Thread Thomas Wiradikusuma
Sorry for the stupid question, but in what scenarios would we need to
allocate id?

Usually if I need the id to be something, i just use string (e.g.
email address), otherwise, just let datastore set it for me (when
persisting).

On Jun 15, 6:26 pm, Drew Spencer  wrote:
> Just one question - the DatastoreService.allocateIdRange() - when would 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.



[appengine-java] Re: AccessControlException java.io.FilePermission

2011-05-10 Thread Thomas Wiradikusuma
Btw this is the console output (I'm using IntelliJ):

/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java -
javaagent:/java/appengine-java-sdk-1.4.3/lib/agent/appengine-agent.jar
-XstartOnFirstThread -javaagent:/java/JRebel/jrebel.jar -noverify -
Dfile.encoding=MacRoman -classpath /java/appengine-java-sdk-1.4.3/lib/
appengine-tools-api.jar
com.google.appengine.tools.development.DevAppServerMain --
address=0.0.0.0 -p 8080 --disable_update_check /Users/wiradikusuma/
Documents/code/myapp/web/war

May 11, 2011 2:13:47 AM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
May 11, 2011 2:13:47 AM
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed /Users/wiradikusuma/Documents/code/myapp/
web/war/WEB-INF/appengine-web.xml
May 11, 2011 2:13:47 AM
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed /Users/wiradikusuma/Documents/code/myapp/
web/war/WEB-INF/web.xml
May 11, 2011 2:13:47 AM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: jetty-6.1.x
May 11, 2011 2:13:48 AM
com.google.appengine.tools.development.ApiProxyLocalImpl log
INFO: javax.servlet.ServletContext log: Initializing Spring root
WebApplicationContext
May 11, 2011 2:13:51 AM
com.google.appengine.tools.development.ApiProxyLocalImpl log
INFO: javax.servlet.ServletContext log: Initializing Spring
FrameworkServlet 'dispatcher'
May 11, 2011 2:13:52 AM
com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: Time to load datastore: 107 ms
May 11, 2011 2:13:52 AM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Started SelectChannelConnector@0.0.0.0:8080
May 11, 2011 2:13:52 AM
com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8080/
Connected to server
May 11, 2011 2:14:16 AM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: /index.jsp
org.springframework.web.util.NestedServletException: Request
processing failed; nested exception is
java.security.AccessControlException: access denied
("java.io.FilePermission" "/Users/wiradikusuma/Documents/code/myapp/
web/target/classes/context.xml" "read")
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
656)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:
549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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.handle(ServletHandler.java:
390)
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.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
... same exception as previous post

-- 
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] AccessControlException java.io.FilePermission

2011-05-10 Thread Thomas Wiradikusuma
Hi guys,

I don't know why, recently I always get this error everytime I run GAE/
J.

HTTP ERROR 500

Problem accessing /index.jsp. Reason:

Request processing failed; nested exception is
java.security.AccessControlException: access denied
("java.io.FilePermission" "/Users/wiradikusuma/Documents/code/myapp/
web/target/classes/context.xml" "read")

Caused by:

org.springframework.web.util.NestedServletException: Request
processing failed; nested exception is
java.security.AccessControlException: access denied
("java.io.FilePermission" "/Users/wiradikusuma/Documents/code/myapp/
web/target/classes/context.xml" "read")
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
656)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:
549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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.handle(ServletHandler.java:
390)
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.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:
706)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:
677)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
377)
at
org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:
313)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at com.google.appengine.tools.development.PrivilegedJspServlet.access
$101(PrivilegedJspServlet.java:23)
at com.google.appengine.tools.development.PrivilegedJspServlet
$2.run(PrivilegedJspServlet.java:59)
at java.security.AccessController.doPrivileged(Native Method)
at
com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:
57)
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 myapp.CustomFilter.obtainContent(CustomFilter.java:190)
at myapp.CustomFilter.doFilter(CustomFilter.java:150)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:
109)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:
83)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:
97)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:
100)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:
78)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:
54)
at org.springframework.security.web.FilterChainProxy
$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:
35)
at org.

[appengine-java] SystemProperty.environment.value() throws "NPE: Name is null" in Play Framework

2011-05-01 Thread Thomas Wiradikusuma
Hi guys,

I was playing with Play Framework and Objectify, then I hit this
problem. Whenever I add @Cached to any entity, the entity can't be
put.
The detail is here: 
http://groups.google.com/group/objectify-appengine/browse_thread/thread/de298fe07741cd53

Jeff Schnitzer suggested me to try executing plain
SystemProperty.environment.value() in my Play code. And it indeed
throws:

Internal Server Error (500) for request GET /

Execution exception (In /app/controllers/Application.java around line
14)
NullPointerException occured : Name is null

play.exceptions.JavaExecutionException: Name is null
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:228)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NullPointerException: Name is null
at java.lang.Enum.valueOf(Enum.java:236)
at com.google.appengine.api.utils.SystemProperty$Environment
$Value.valueOf(SystemProperty.java:70)
at com.google.appengine.api.utils.SystemProperty
$Environment.value(SystemProperty.java:91)
at controllers.Application.index(Application.java:14)
at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:
541)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:499)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:
475)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:
470)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:158)
... 1 more

I want to submit this to Play community, but I think it's more to GAE.
Or should I post this there?

-- 
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: Which one is best for development...Spring Framework or Servlet& Jsp....

2011-04-20 Thread Thomas Wiradikusuma
I'm also using Spring MVC and Spring Security.

I tried to ditch Spring in favor of Guice, but in the end I couldn't
live without it. Form handling, i18n, security, etc, everything make
me go back to Spring :) I use manual wiring, so performance is
acceptable. I no longer get timeout when first loading.

On Apr 20, 11:30 am, Nick Rudnik  wrote:
> Spring MVC 3 works very well inside App Engine. I have a fairly small and
> simple application and see a load time of around 20 seconds also.

-- 
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] Using Text instead of String - Problem?

2011-04-16 Thread Thomas Riley
I see, thanks. Only problem is, doesn't toString() only return 70 chars or 
will .getValue().toString() return the whole 'string' in it's true form?

-- 
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] Using Text instead of String - Problem?

2011-04-16 Thread Thomas Riley
Hello all,

In my app engine project I have been storing values in the datastore as Text 
(com.google.appengine.api.datastore.Text) instead of String as I expect the 
value may be greater than 500 sometimes.

It all works great bar one problem.

When extracting the Text value and converting it to a Sting it seems to 
store the underlying value inside some form of HTML-like 'tag'.

For example: storing 'testing' in the Datastore as Text returns ' when converting it to string using Text.getValue();

Does anyone have any ideas how to solve this without having to actually 
parse the string and extract the value?

Sample code below shows how I convert from Text to String:
Text command = new Text("testing");
String commandString = command.getValue();



-- 
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] HTTP Post not working

2011-04-15 Thread Thomas Riley
Hello, I'm using GAEJ as the back end for my Android application and have 
implemented Cloud to Device Messaging for Android (C2DM).

I have everything working bar one bit of code. The Servlet that is executed 
in a TaskQueue refuses to execute correctly. 

The code includes a HTTP POST that is technically correct as the code was 
adapted from Google's Chome2Phone App Engine sample code. For some reason, 
app engine does not execute my code however it does not log that an error 
has occured and the logging I have configured to occur during the HTTP POST 
process is not displayed (however any logging before or after the attempt to 
POST is displayed).

This is an extremely odd error that I can't figure out, has anyone 
else experienced a similar problem?

Note: This is not an issue with C2DM or my Android device client as I have 
successfully tested this using CURL.

If anyone has a suggestion, it will be greatly 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.



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

2011-04-09 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.



[appengine-java] Re: Happy Birthday Google App Engine !!

2011-04-06 Thread Thomas Wiradikusuma
I agree with Rajkumar,

GAE/J is a very important service, especially for indie Java
developers like me.
The service is getting better, and the developer groups are vibrant.

Happy Birthday GAE!

regards,
Thomas Wiradikusuma

On Apr 7, 12:17 pm, Rajkumar Radhakrishnan 
wrote:
> Hi,
>
> It is now 3 years since Google App Engine was first released. *Happy
> Birthday Google App Engine !!*

-- 
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-04 Thread Thomas Visser
It looks like there's a bug in the 1.4.3 development server regarding
to POST requests. It worked for me again when I removed the Content-
Length header parameter.

On Apr 4, 3:51 pm, Peter  wrote:
> Hi
>
> I have an application running on gae and another client application
> running on a local development server.
> The client application is trying to send some params through a http
> connection an recive some respone in the same connectin.
> The client application works fine but after i change the SDK versin
> 1.4.2 or higher I get an exception:
> java.io.IOException: Could not fetch 
> URL:http://myserverapplication.appspot.com/something
> at
> com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
> eption(URLFetchServiceImpl.java:
> 110) ..
> I got an exception when calling connection.getResponseCode();
>
> Can somebody help me?
>
> Here is my code:
>
> URL url = new URL("http://myserverapplication.appspot.com/something";);
> HttpURLConnection con;
> int responseCode = HttpURLConnection.HTTP_UNAVAILABLE;
> con = (HttpURLConnection) url.openConnection();
> con.setRequestMethod("POST");
> con.setRequestProperty("Content-Type", "application/x-www-form-
> urlencoded");
> con.setRequestProperty("Content-Length", "" +
> Integer.toString(urlParameters.getBytes().length));
> con.setRequestProperty("Content-Language", "en-US");
> con.setUseCaches(false);
> con.setDoInput(true);
> con.setDoOutput(true);
> DataOutputStream wr = new DataOutputStream(con.getOutputStream());
> wr.writeBytes(urlParameters);
> wr.flush();
> wr.close();
> responseCode = con.getResponseCode();

-- 
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-03 Thread Thomas Visser
I also experienced it using the dyuproject library for OpenID
authentication. It remained working fine on the app engine and I
managed to get it to work locally as well by removing the Content-
length header parameter.

On Apr 2, 12:33 pm, rml  wrote:
> I have an issue with local development server after upgrading to SDK
> 1.4.3. All HTTP POST requests fail with:
>
>     java.io.IOException: Could not fetch URL:http://sitename/login.php
>
> Can anyone confirm that POST is working or failing in dev environment?
>
> I create an issue for this so if anyone else is experiencing this,
> please starhttp://code.google.com/p/googleappengine/issues/detail?id=4836
>
> 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] Re: GAE implementation of java.util.concurrent....

2011-03-31 Thread Thomas Visser
The GAE SDK uses java.util.concurrent classes internally so I guess
they do work. However, I've never used them because when I need
locking, it should be application-wide. With java.util.concurrent you
can only achieve locking within an instance. Or am I wrong here?

On Mar 31, 12:55 pm, dilbert  wrote:
> I see that the java.util.concurrent... classes are on the whitelist 
> (http://code.google.com/intl/hr/appengine/docs/java/jrewhitelist.html). Are
> they implemented properly or as empty (do nothing) implementations. With the
> new *Concurrent Requests* feature I might need some locking classes.
>
> Thanks for Your time.

-- 
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: GAE with JPA and multiple jars

2011-01-31 Thread Thomas
mmm looks like i just forgot to add the class to my persistence unit after 
all

-- 
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] GAE with JPA and multiple jars

2011-01-31 Thread Thomas
I try to create a GAE webapp that is using a "model" jar where i have my JPA 
entity classes.

My war file includes the model.jar in the WEB-INF/lib directory

My entity class is like this:

 package com.example.model;


import java.io.Serializable;

import com.google.appengine.api.datastore.Key;

import javax.persistence.GeneratedValue;

import javax.persistence.GenerationType;

import javax.persistence.Id;

import javax.persistence.Entity;


@Entity

public class Message implements Serializable {


private static final long serialVersionUID = 1L;


@Id

@GeneratedValue(strategy = GenerationType.IDENTITY)

private Key id;


public Key getId() {

return id;

}

}


when i try to use that entity bean:
 public void create(Message message) {
try {
em.persist(message);
} finally {
em.close();
}
}

I always get:
Caused by: org.datanucleus.exceptions.NoPersistenceInformationException: The 
class "com.example.model.Message" is required to be persistable yet no 
Meta-Data/Annotations can be found for this class. Please check that the 
Meta-Data/annotations is defined in a valid file location.

Does anyone has a clue about what's going on ?

-- 
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] Sending email from Java dev server

2010-12-22 Thread Thomas Oldervoll
Is there a way to enable email sending for the AppEngine Java dev server? 
I've found instructions for 
Python<http://code.google.com/appengine/docs/python/tools/devserver.html#Using_Mail>,
 
but I can't figure out how to do this for the Jaav server - 
adding --enable_sendmail does not work.

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Problem switching to 1.4.0 - JSP compilation fails

2010-12-10 Thread Thomas Meyer
The problem has also been discussed here (the newer entries):
http://groups.google.com/group/google-appengine-java/browse_thread/thread/dd17f4150950374c

And there's an issue you can star:
http://code.google.com/p/googleappengine/issues/detail?id=4216

I can also confirm that the problem only exists locally on the
development server. If you deploy it to the app engine servers the
mappings will work.

Best, Thomas

On Dec 10, 9:10 am, "l.denardo"  wrote:
> Thank you Ikay and Starman.
> I'll try to use auto mapping, and verify everything's fine in
> production.
>
> I can confirm not-mapped JSP pages work correctly in dev, the mapping
> I use is just for the openID login page.
> I'll try and see if I can use something different to produce my login
> page, but if this is only for the dev server I can bypass this simply
> since login page address is different.
>
> I also hit the problem of static files not being filtered (I guess you
> are using spring security :-)), I ended up using real JSP since I
> customize the host page with email address and logout link from User
> service.
>
> Thank you again for your help.
> Regards
> Lorenzo
>
> On Dec 10, 6:01 am, Starman  wrote:
>
>
>
>
>
>
>
> > I was using a servlet mapping to make my url nicer. Instead of
> > appid.appspot.com/MyApp.jsp, I had appid.appspot.com/servletname. And
> > I was using the jsp-file tag to map the servlet to the jsp file.
>
> > I have commented out the servlet definition and just let the jsp auto
> > mapping do its thing. And everything works fine, albeit with uglier
> > urls.
>
> > Btw, I'm using a jsp for my GWT host file instead of an html file so
> > that I can secure the app host file. Html being statically deployed
> > makes it impossible to secure at the servlet layer.
>
> > R.
>
> > On Dec 9, 6:03 pm, "Ikai Lan (Google)" 
> > wrote:
>
> > > We're reproduced this. It seems to happen when you map a URL to a JSP, and
> > > only on the development server.
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blogger:http://googleappengine.blogspot.com
> > > Reddit:http://www.reddit.com/r/appengine
> > > Twitter:http://twitter.com/app_engine
>
> > > On Thu, Dec 9, 2010 at 8:36 AM, l.denardo  
> > > wrote:
> > > > Hello,
> > > > I'm having trouble switching to 1.4.0 SDK.
>
> > > > Development server starts regularly, but when I try to load my login
> > > > page (a jsp file) I get the following error:
>
> > > > [WARN] /_ah/login_required
> > > > org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> > > > An error occurred at line: 1 in the generated java file
> > > > The type javax.servlet.jsp.PageContext cannot be resolved. It is
> > > > indirectly referenced from required .class files
>
> > > > An error occurred at line: 1 in the generated java file
> > > > The type javax.servlet.jsp.tagext.TagSupport cannot be resolved. It is
> > > > indirectly referenced from required .class files
>
> > > > [more similar entries follow]
>
> > > > An error occurred at line: 1,079 in the generated java file
> > > > javax.servlet.jsp.tagext.JspTag cannot be resolved to a type
>
> > > > Stacktrace:
> > > >        at
>
> > > > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl
> > > >  er.java:
> > > > 92)
> > > >        at
> > > > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:
> > > > 330)
> > > >        at
> > > > org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:
> > > > 439)
> > > >        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
> > > >        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
> > > >        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
> > > >        at
> > > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
> > > > 592)
> > > >        at
> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
> > > > 317)
> > > >        at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> > > > 313)
> > > >        at 
> > > > org.apache.jasper.servlet.JspServlet.serv

[appengine-java] Re: 1.4 eclipse plugin

2010-12-07 Thread Thomas Meyer
I have the same problem - .jsp's work fine after moving the App Engine
SDK to the top of the Order and Export list, but JSP-mappings don't
work.

I can also confirm that it works on the App Engine servers, deployed
with the 1.4 SDK.

Mac OS X 10.6.5
Eclipse SDK, Version: 3.5.2
Google Plugin for Eclipse 3.5, 1.4.0.v201010280047

This is the error I'm getting in the browser:
HTTP ERROR 500

Problem accessing /admin/. Reason:

Unable to compile class for JSP:

An error occurred at line: 10 in the generated java file
org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type

...



On Dec 6, 8:39 pm, mscwd01  wrote:
> I'm running:
>
> Eclipse Java EE IDE for Web Developers.
> Build id: 20100218-1602
>
> With V1.4 of the App Engine SDK and cannot get servlets mapping to jsp
> files, i.e.
>
> 
>   about
>   /about.jsp
> 
>
> 
>   about
>   /about
> 
>
> However, other servlets work fine for example I have servlets which
> issue a redirect to a jsp file in my WEB-INF folder and they work
> fine.
>
> It's baffling me now.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Tic Tac Toe not there

2010-12-02 Thread Thomas Wiradikusuma
I just read 1.4.0 release announcement, congrats to GAE team!

Btw the sample project doesn't seem to exist
http://code.google.com/p/java-channel-tac-toe/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Sync datastore between server and local

2010-11-04 Thread Thomas Wiradikusuma
Hi,

Is there any way to "sync" data in datastore between server (live)
and
local (localhost)? I have some test data that I want to make
available
to both environments.

Another question:

I'm splitting the web to "front-facing" webapp and "admin panel"
webapp:
web.latest.myapp.appspot.com and admin.latest.myapp.appsot.com.

I'm aware that both share the same datastore in the server (live).
Can
I do that (share same datastore) in local (localhost)? I.e. Can I
make
two (or more) Java webapps to access the same datastore file?

(this is a repost from google app engine group)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Batch put for JDO objects

2010-09-30 Thread Thomas Bean
I have about 5 JDO objects that I want to write to the datastore
simultaneously. From other posts, it looks like you have to use the
low-level API to do this.


Here is what I'm trying:


ArrayList objectsToSave; // Create Entity objects from the keys
of the JDO objects
DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
datastore.put(null, objectsToSave);


The put call returns saying that all 5 objects were saved. However, in
AppStats I see that the objects get written when the persistence
manager is closed too.


1. Am I doing the batch writes correctly? Did it actually save my
modified JDO objects when calling put?
2. What do I need to do to tell JDO that the objects have been saved so
it doesn't try to write them again?


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Gaelyk 0.5 released, with images, urlfetch, capabilities services enhancements

2010-09-28 Thread Thomas Wiradikusuma
Hi Guillaume, congrats on the release!


On Sep 27, 10:33 pm, Guillaume Laforge  wrote:
> Hi all,
>
> This is with great pleasure that I'd like to announce the *release of Gaelyk
> 0.5*.
>
> Gaelyk 0.5, the *lightweight Groovy toolkit for Google App Engine*, is a
> significant release adding a lot of new features into the mix:

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Redirect 404 with Jetty

2010-09-15 Thread Thomas P.

Ah, forgot ...

Perhaps I should mention my current solution ...

Currently, I've got a java servlet which loads images from the harddisc 
and in case of a file-not-found-exception, it loads my "special" image.


My application is like google maps where there have to be loaded many 
small tiles and I don't like the idea a servlet is executed for each 
small tile - especially when one single view consists of 50-80 tiles. 
Allowing direct access to the images should be more performant and would 
reduce the load on the server, but then I would have to solve my problem 
with redirecting 404 errors within a special directory to a special file.


Hope for help :-)

Kind regards,
Thomas



On 16.09.2010 08:15, Thomas P. wrote:

Good Morning!

I've got a directory structure like following:

war
war/images
war/images/0
war/images/1
...
war/images/10

Now, I would like file-not-found errors within the image directory 
being redirected on an image which e.g. says "picture not found" or 
something.


I figured out, there are properties like  and  
for the web.xml file but they seem to work globally. I only want to 
redirect 404-errors within the image directory.


Does someone know how to do this with jetty?

Thx in advance!
Thomas





--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Redirect 404 with Jetty

2010-09-15 Thread Thomas P.

Good Morning!

I've got a directory structure like following:

war
war/images
war/images/0
war/images/1
...
war/images/10

Now, I would like file-not-found errors within the image directory being 
redirected on an image which e.g. says "picture not found" or something.


I figured out, there are properties like  and  
for the web.xml file but they seem to work globally. I only want to 
redirect 404-errors within the image directory.


Does someone know how to do this with jetty?

Thx in advance!
Thomas



--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Problem starting a GWT (with jetty) app via LAN

2010-09-13 Thread Thomas P.

Hi all,

Initially, I used GWT + GAE for my project and when compiled to 
Javascript I could start the project from everywhere in my home-lan over 
e.g. http://myip:.


Then, after I found out, GAE doesn't support the java-classes I need, I 
created a new project without GAE, but still using the Jetty server 
which is included in a GWT/GAE "hello-world" application.


But now, I got the problem, I can't access my project anymore. I just 
get an error message, the site hasn't been found. Running the app 
locally with http://localhost: works without problems - just running 
it from another computer doesn't work anymore.


I changed nothing on my system and the IP is correct, because I have 
another apache on port 80 running and this site is accessible well, so 
this issue has to be connected with Jetty.


Does someone know, what I can do in order to be able to run my compiled 
GWT project in my lan again?


Thx for help!

Best regards,
Thomas

--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: app eng java plugin not compatible with helios

2010-09-07 Thread Thomas P.

Hi,

Don't understand ... Here everything is listed fine ... Can't be easier:

http://code.google.com/intl/de-DE/eclipse/docs/getting_started.html

Best regards,
Thomas

On 08.09.2010 08:06, Jeroen Lapre' wrote:

Hi Kathrin,

I tried your suggestion, and it looks like it's working (still 
installing as of this writing, but getting further than last time).


Which means this web page needs to be updated:

http://code.google.com/appengine/docs/java/tools/eclipse.html

As it only makes reference to 3.5, and not 3.6.

Searching for http://dl.google.com/eclipse/plugin/3.6 returns this webpage

http://code.google.com/eclipse/docs/install-eclipse-3.6.html

but requires prior knowledge of 3.6. The pages for 3.5 and 3.6 should 
be linked.


thanks
-jeroen

On Tue, Sep 7, 2010 at 7:44 PM, Katharina Probst <mailto:kpro...@google.com>> wrote:


Hi Jeroen,

I think you're using the wrong update site.  Try this one:

http://dl.google.com/eclipse/plugin/3.6

Please let us know if it worked.

Thanks,
kathrin

On Tue, Sep 7, 2010 at 8:19 PM, Jeroen Lapre'
mailto:jeroen.la...@gmail.com>> wrote:
> Hi Rajeev,
> I'm using:
> http://dl.google.com/eclipse/plugin/3.5
> And get the following error in helios EE and JSE:
> Cannot complete the install because one or more required items
could not be
> found.
>   Software being installed: Google App Engine Java SDK 1.3.7
> 1.3.7.v201008311405
>
(com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.7.feature.group
> 1.3.7.v201008311405)
>   Missing requirement: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
> (com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302)
> requires 'org.eclipse.platform.feature.group [3.5.0,3.6.0)' but
it could not
> be found
>   Cannot satisfy dependency:
> From: Google App Engine Java SDK 1.3.7 1.3.7.v201008311405
>
(com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.7.feature.group
> 1.3.7.v201008311405)
> To: com.google.gdt.eclipse.suite.e35.feature.feature.group 1.3.3
> Any ideas?
> thanks
> -jeroen
> On Tue, Sep 7, 2010 at 12:51 PM, Rajeev Dayal mailto:rda...@google.com>> wrote:
>>
>> Hey synthetic,
>> Which update site were you using?
>>
>> Rajeev
>>
>> On Tue, Sep 7, 2010 at 1:29 PM, syntheticperson
mailto:jeroen.la...@gmail.com>>
>> wrote:
>>>
>>> Ok,
>>>
>>> good to know it works with helios.
>>> I'll give it another try.
>>>
>>> thanks
>>>
>>> synthetic p
>>>
>>> On Sep 6, 11:00 pm, "Thomas P." mailto:vi...@pcb-dev.com>> wrote:
>>> > I think you did something wrong ...
>>> >
>>> > I've been working with GAE+GWT with Helios for about 4 weeks
now and
>>> > everything works fine ...
>>> >
>>> > Best regards,
>>> > Thomas
>>> >
>>> > On 05.09.2010 19:33, syntheticperson wrote:
>>> >
>>> >
>>> >
>>> > > I tried to install google app engine java plugin for
eclipse, but it
>>> > > does not appear to be compatible with the latest helios
release of
>>> > > eclipse.
>>> >
>>> > > Cannot complete the install because one or more required
items could
>>> > > not be found.
>>> > >Software being installed: Google Plugin for Eclipse 3.5
>>> > > 1.3.3.v201006111302
>>> > > (com.google.gdt.eclipse.suite.e35.feature.feature.group
>>> > > 1.3.3.v201006111302)
>>> > >Missing requirement: Google Plugin for Eclipse 3.5
>>> > > 1.3.3.v201006111302
>>> > > (com.google.gdt.eclipse.suite.e35.feature.feature.group
>>> > > 1.3.3.v201006111302) requires
'org.eclipse.platform.feature.group
>>> > > [3.5.0,3.6.0)' but it could not be found
>>> >
>>> > > Are there any plans to upgrade google plugin for:
>>> >
>>> > > Eclipse Java EE IDE for Web Developers.
>>> >
>>> > > Version: Helios Release
>>> > > Build id: 20100617-1415
>>> >
>>> > > ?
>>> >
>>> > > thanks
>>> > > -synthetic person
>&

Re: [appengine-java] app eng java plugin not compatible with helios

2010-09-06 Thread Thomas P.

I think you did something wrong ...

I've been working with GAE+GWT with Helios for about 4 weeks now and 
everything works fine ...


Best regards,
Thomas

On 05.09.2010 19:33, syntheticperson wrote:

I tried to install google app engine java plugin for eclipse, but it
does not appear to be compatible with the latest helios release of
eclipse.

Cannot complete the install because one or more required items could
not be found.
   Software being installed: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302)
   Missing requirement: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302) requires 'org.eclipse.platform.feature.group
[3.5.0,3.6.0)' but it could not be found

Are there any plans to upgrade google plugin for:

Eclipse Java EE IDE for Web Developers.

Version: Helios Release
Build id: 20100617-1415

?

thanks
-synthetic person

   


--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Using datanucleus datastore without google app engine

2010-09-05 Thread Thomas P.

Hi all,

actually, I'm satisfied with the datastore from google app engine, but 
I'm not with GAE itself, because there are too many restrictions 
concerning java.awt and graphics2d which makes doing innovative things 
impossible ...


So, I decided to get rid of GAE, but I would like to keep jdo + 
datanuclues + datastore.


I'm aware of the fact, that I can't deploy my application in the google 
cloud and therefore can't use the "real" datastore, but is it possible 
to use datanucleus with the provided datastore.jar in a real enviroment?


How does the local version of datastore perform in a real web 
application with many users using it concurrently?


Or should I switch to mysql?

Thx for help!

All the best,
Thomas

--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Image Service Factory interpolated makeresize

2010-09-03 Thread Thomas P.
Hi all,

I have to create something like thumbnails and figured out, Google's
Image Service Factory scales down images without interpolation.

The result is unacceptable, unfortunately, because it's not a simple
gallery or something, it's a graphical multi-zoom-level application
which needs this ... It would simply look awful ...

Even worse is, GAE doesn't support libraries which support
interpolation because they are not on the white list (all need some
java.awt classes). I even can't export image data to rawdata, do it
myself and reimport it again, because there is no way getting hands on
the image rawdata.

Does someone know a trick how I could generate interpolated
thumbnails?

Thx in advance,
Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] (datastore) One large query vs lots of small ones

2010-09-02 Thread Thomas P.
Good morning,

I have to fetch about 100 items from the datastore and I considered
doing it this way:

select from ... where x == 5 || x== 9 || x==30 || x==2 || x==0 ||
x==150 || ...

The thing is ... I would have to append lots of "x == ... ||". This
could be 100, in the most cases less than 10 but even more than 200
(which is unlikely but not impossible).

My question now is, should I use a loop like this:

for (int i=0;ihttp://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] 2dGraphics for GAE

2010-09-02 Thread Thomas P.
Hello,

I have an application which essentially relies on being capable of
rendering 2d graphics on the server side.

I was quite shocked as I found out that BufferedImage and Graphics2D
are in java classes which are not supported.

So, I wanted to ask for help if:

- is it possible to add java-libraries to the white-list LOCALLY?
- is there a free substitute for BufferedImage and Graphics2D?
- is it possible to use the GWT+GAE SDK plugin for eclipse with e.g. a
seperated tomcat server? So, I would like to continue with GWT, but in
the worst case get rid of SDK-jetty and GAE, but to develop java
servlets for an extra tomcat server ...

Help would be very appreciated!

All the best,
Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: PDF Files

2010-07-20 Thread Thomas
Hi:

You can't let GAE/J Blobstore API serve the blob for you. You have
to read the blob content and serve by yourself. This approach reduces
to normal/regular pdf file download which is trivial.

On 7月19日, 下午10時36分, chrischelmi  wrote:
> You are right conor, i set the content to application/pdf and i cand
> display it. but my problem is that in some browsers and OS(Mac) ,the
> pdf is not displyed, the download starts automatically with a default
> name, i want to have control on the name given to the file before it
> is downloaded
>
> On Jul 18, 6:44 pm, Conor Power  wrote:
>
> > it doesn't sound like you need to generate the PDF using a library if it's
> > stored as a blob ... can't you just set the content type to be
> > application/pdf and stream the blog contents?
>
> > your servlet just needs the key or some mapping to look up the blob.
>
> > otherwise, i wrote a summary of my experiences with PDF generation a while
> > ago:
>
> >http://conorjpower.com/2010/01/11/pdf-generation-in-java/
>
> > C
>
> > On Sun, Jul 18, 2010 at 5:12 AM, Khor Yong Hao  wrote:
>
> > > Your Problem is not using iText to generate PDF content and download it,
> > > but is able to allow user upload their own PDF and providing download,
> > > right?
>
> > > On Thu, Jul 15, 2010 at 3:25 PM, dovm  wrote:
>
> > >> Hi,
>
> > >> Check this one
> > >>http://www.pdfjet.com/java/index.html
>
> > >> They claim to support Google App Engine
>
> > >> =Dov
>
> > >> On Jul 15, 7:57 am, Daniel  wrote:
> > >> > But it says that on" Will it play in App Engine"
>
> > >> > That its incompatible:
>
> > >> > iText
> > >> > Version(s): ?
> > >> > Status: INCOMPATIBLE
>
> > >> >     * iText relies on several classes not in the JRE class whitelist
> > >> > including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
> > >> > filed athttp://
> > >> sourceforge.net/tracker/?func=detail&atid=365255&aid=2810312&g
>
> > >> > On Jul 15, 7:51 am, Shyam Visamsetty  wrote:
>
> > >> > > Chris,
>
> > >> > > Did you want to generate a PDF File on the GAE?
> > >> > > If yes, you can use the iText library for generating the pdfs on the
> > >> > > app engine. You can have a servlet to download the PDF file you
> > >> > > generated.
>
> > >> > > Thanks,
> > >> > > Shyam Visamsetty
>
> > >> > > On Jul 14, 1:36 pm, chrischelmi  wrote:
>
> > >> > > > Helle every body,
> > >> > > > I am working on a Google App Engine Project that consists of
> > >> uploading
> > >> > > > PDF files and displaying it after.
> > >> > > > I use a Blob to store the PDF file
> > >> > > > i want to do a process to download this PDF file by giving the a
> > >> > > > specifics name.
> > >> > > > Is there a way to generaye PDF files with GAE?
> > >> > > > i have a process to display the PDF but i want to download it
> > >> direcly
> > >> > > > from an URL.
>
> > >> --
> > >> You received this message because you are subscribed to the Google Groups
> > >> "Google App Engine for Java" group.
> > >> To post to this group, send email to
> > >> google-appengine-j...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-appengine-java+unsubscr...@googlegroups.com
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-appengine-java?hl=en.
>
> > >  --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: App Engine Java servlet clearing my Content-type Header for form POST from python

2010-07-20 Thread Thomas
Hi:

   I don't think so. I have uploaded lots of files onto production
server without any problem. I guess the problem was due to your python
script. Anyway you can unit test your upload handler of the production
server with a browser. If the browser can upload files successfully,
you can be sure that there are bugs in the python script.

On 7月20日, 上午4時25分, Jean Hsu  wrote:
> Hi,
>
> I'm running a servlet on Google App Engine.  When I try to post multi-
> part form data to the url from a python script, locally it works, but
> when I deploy to app engine, it complains that the content-type header
> is null.
>
> When I print out the content type header to my logs, it is indeed
> correct when run locally ("multipart/form-data; boundary.") but
> null when run on app engine.
>
> Is App Engine clearing certain headers?
>
> Here's the stack trace when deployed to appengine:
>
> org.apache.commons.fileupload.FileUploadBase
> $InvalidContentTypeException: the request doesn't contain a multipart/
> form-data or multipart/mixed stream, content type header is null at
> org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.
> (FileUploadBase.java:885) at
> org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:
> 331) at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:
> 349) at
> org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:
> 126)
>
> Thanks!
> Jean

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Must only return a redirect from a Blobstore upload callback??? What does it mean?

2010-07-20 Thread Thomas
I forgot to metion that If you used jsp as handler, you should call
the response.sendRedirect(...) in your jsp's scriptlet.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Must only return a redirect from a Blobstore upload callback??? What does it mean?

2010-07-20 Thread Thomas
Hi:

The below document is copied from Blobstore doc. (
http://code.google.com/intl/en/appengine/docs/java/blobstore/overview.html
)

To prompt a user to upload a Blobstore value, your app presents a web
form with a file upload field. The app generates the form's action URL
by calling the Blobstore API. The user's browser uploads the file
directly to the Blobstore via the generated URL. Blobstore then stores
the blob, rewrites the request to contain the blob key, and passes it
to a path in your app. A request handler at that path in your app can
perform additional form processing and return a redirect response.

The example code in that doc is below.

Map blobs = blobstoreService.getUploadedBlobs(req);
BlobKey blobKey = blobs.get("myFile");

if (blobKey == null) {
res.sendRedirect("/");
} else {
res.sendRedirect("/serve?blob-key=" + blobKey.getKeyString());
}


On 7月19日, 下午6時38分, salvatore  wrote:
> Hi all!
>
> I have two jsp,
>     -one whith a form for upload a file
>     -one for managing upload
>
> But, stil the upload goes fine , I recive this warning
>
> 19-lug-2010 12.11.15
> com.google.appengine.api.blobstore.dev.UploadBlobServlet$3$2 write
> GRAVE: Must only return a redirect from a Blobstore upload callback.
> 19-lug-2010 12.11.15 com.google.apphosting.utils.jetty.JettyLogger
> warn
> AVVERTENZA: Committed before 500 Expected a redirect, tried to write
> content instead.
> 19-lug-2010 12.11.15 com.google.apphosting.utils.jetty.JettyLogger
> warn
>
> what does it mean?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-07-05 Thread Thomas
Hi Adrian:

 By plain normal servlet I meaned the url path (of the call to
blobstoreService.createUploadUrl(url) ) is mapping to a simple plain
HttpServlet implementation. And it is better to have the servlet
bypass any filter mapping in development phase. It's how I finally
succeeded to upload lots of blobs without any problems.

On 7月6日, 上午10時07分, Adrian Petrescu  wrote:
> Hi Thomas,
>
> Thanks for your reply :) But I'm not sure what you mean by "a plain normal
> HttpServlet#doPost to handle the upload"; in what sense am I not doing that?
> Do you mean the fact that I'm uploading to Blobstore? Why would that be a
> problem, and how else would I get them in there?
>
> Thanks,
> Adrian
>
> On Mon, Jul 5, 2010 at 10:03 PM, Thomas  wrote:
> > Hi:
>
> > I read the post on Stack Overflow. My opinion is that you had better
> > use a plain normal HttpServlet#doPost to handle the upload. I also
> > encountered 500 Internal Server Error, but it worked well after I
> > replace original handler with a plain servlet.
>
> > Hope the above helps!
>
> > On 7月6日, 上午8時25分, Adrian Petrescu  wrote:
> > > I've also posted about the issue on Stack Overflow here:
> >http://stackoverflow.com/questions/3177092/uploading-to-blobstore-giv...
>
> > > Hopefully getting some more eyeballs on it will help.
>
> > > On Jul 4, 10:47 pm, Adrian Petrescu  wrote:
>
> > > > I'm having the exact same issue too, down to the line numbers in the
> > > > stack trace.
>
> > > > Has anyone figured out what is causing this? I find it hard to believe
> > > > we've all made the exact same identical mistake, all within the last
> > > > month. Is something wrong on Google's end?
>
> > > > Cheers,
> > > > Adrian
>
> > > > On Jun 2, 7:14 pm, Jean Hsu  wrote:
>
> > > > > Hi all,
>
> > > > > I am trying to set up a basic file upload to blobstore,  but I get
> > > > > this OutOfMemoryError:
>
> > > > > WARNING: Error for /_ah/upload/
> > > > > aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
> > > > > java.lang.OutOfMemoryError: Java heap space
> > > > >         at java.util.Arrays.copyOf(Arrays.java:2786)
> > > > >         at
> > java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
> > > > >         at
>
> > javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
> > > > > 316)
> > > > >         at
> > javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
> > > > >         at
> > javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
> > > > >         at
>
> > com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa
> > dBlobServlet.java:
> > > > > 135)
> > > > >         at
> > com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
> > > > > $000(UploadBlobServlet.java:72)
> > > > >         at com.google.appengine.api.blobstore.dev.UploadBlobServlet
> > > > > $1.run(UploadBlobServlet.java:100)
> > > > >         at java.security.AccessController.doPrivileged(Native Method)
> > > > >         at
>
> > com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS
> > ervlet.java:
> > > > > 98)
> > > > >         at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> > > > >         at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> > > > >         at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > > > 511);
>
> > > > > I used the Memory Analyzer on Eclipse and it said that the memory
> > leak
> > > > > suspect is QueuedThreadPool.  I found this information about a memory
> > > > > leak bug:
>
> > > > >http://jira.codehaus.org/browse/JETTY-1188
>
> > > > > How can I figure out what release of jetty is running locally?  It
> > > > > looks like they fixed this in version 6.1.23:
>
> >http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160&vers...
>
> > > > > Has anyone else had this issue?
>
> > > > > Thanks,
> > > > > Jean
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-07-05 Thread Thomas
Hi:

I read the post on Stack Overflow. My opinion is that you had better
use a plain normal HttpServlet#doPost to handle the upload. I also
encountered 500 Internal Server Error, but it worked well after I
replace original handler with a plain servlet.

Hope the above helps!

On 7月6日, 上午8時25分, Adrian Petrescu  wrote:
> I've also posted about the issue on Stack Overflow 
> here:http://stackoverflow.com/questions/3177092/uploading-to-blobstore-giv...
>
> Hopefully getting some more eyeballs on it will help.
>
> On Jul 4, 10:47 pm, Adrian Petrescu  wrote:
>
> > I'm having the exact same issue too, down to the line numbers in the
> > stack trace.
>
> > Has anyone figured out what is causing this? I find it hard to believe
> > we've all made the exact same identical mistake, all within the last
> > month. Is something wrong on Google's end?
>
> > Cheers,
> > Adrian
>
> > On Jun 2, 7:14 pm, Jean Hsu  wrote:
>
> > > Hi all,
>
> > > I am trying to set up a basic file upload to blobstore,  but I get
> > > this OutOfMemoryError:
>
> > > WARNING: Error for /_ah/upload/
> > > aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
> > > java.lang.OutOfMemoryError: Java heap space
> > >         at java.util.Arrays.copyOf(Arrays.java:2786)
> > >         at 
> > > java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
> > >         at
> > > javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
> > > 316)
> > >         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
> > >         at 
> > > javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
> > >         at
> > > com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa
> > >  dBlobServlet.java:
> > > 135)
> > >         at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
> > > $000(UploadBlobServlet.java:72)
> > >         at com.google.appengine.api.blobstore.dev.UploadBlobServlet
> > > $1.run(UploadBlobServlet.java:100)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at
> > > com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS
> > >  ervlet.java:
> > > 98)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> > >         at 
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > 511);
>
> > > I used the Memory Analyzer on Eclipse and it said that the memory leak
> > > suspect is QueuedThreadPool.  I found this information about a memory
> > > leak bug:
>
> > >http://jira.codehaus.org/browse/JETTY-1188
>
> > > How can I figure out what release of jetty is running locally?  It
> > > looks like they fixed this in version 6.1.23:
>
> > >http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160&vers...
>
> > > Has anyone else had this issue?
>
> > > Thanks,
> > > Jean

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Question about Blobstore billing

2010-07-02 Thread Thomas
Hi all:

I have enabled billing for one of my sites. My question is that if
I disable billing, will the already uploaded blobs still be served (by
calling blobstoreServcie.serve(.) )  normally or there will be an
exception?

--
PS: Welcome to visit my above mentioned site ( which I build for my
daughter who is 8 years old and learning English now) at
http://freetalkingbooks.appspot.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-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-15 Thread Thomas
Hi Rahul:

For the official documentation please refer to
http://code.google.com/intl/en/appengine/kb/java.html#Should_I_Run_A_Cron_Job

On 6月15日, 下午11時27分, Rahul  wrote:
> Jake,
>
> Thanks for giving me a heads up about this.
> I have read that post in past but is there any official documentation
> other then group posts which mentions something for this. I know we
> can reduce the app start to 3-4 seconds but even that is something
> which is not acceptable in various scenarios.
>
> Is there anything we can do to bring this issue on the top burner so
> we can use our appengine apps for production purpose other then just
> playing around with the stuff.
>
> Thanks,
> Rahul
>
> On Jun 14, 1:10 pm, Jake  wrote:
>
> > Hey Rahul,
>
> > Seehttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> > for an official discussion of this issue.  The first post talks about
> > "discouraged" workarounds, but doesn't cite the 60-second ping
> > specifically.  This was the result, though, of a string of prior
> > threads that discussed this issue and workaround.  As you can see from
> > the date, this is not a new problem.  Again, I used the 60-second ping
> > for awhile and it really didn't solve the problem - just ensured that
> > the loading requests happened every 60 seconds :)
>
> > As for the framework, good point.  I use Wicket which is pretty
> > powerful.  I've gotten it down to about 3-4 seconds load.  One plugin
> > had a dependency on Spring that I removed.  As discussed 
> > here:http://code.google.com/p/objectify-appengine/wiki/BestPractices#Autom...
> > anything that scans the classpath can be pretty demanding.
>
> > That being said, I'm not currently using my deployed application for
> > demonstrations - I use a development server hosted on our own
> > machines.  My hope is that the restart issue will be resolved someday.
>
> > Jake
>
> > On Jun 11, 11:07 am, Rahul  wrote:
>
> > > Jake,
>
> > > Is there any official comments on this from google which says that it
> > > discourage the pinging every 60 seconds or so.
>
> > > Also if we have some framework which we will always like to have if
> > > doing some production application then what is the way out.
>
> > > Thanks,
> > > Rahul
>
> > > On Jun 11, 10:16 am, Jake  wrote:
>
> > > > Hi Mark,
>
> > > > Yes, you can do better than 4.5 seconds without a framework.  Also,
> > > > there are layers that can be placed over the low level datastore (e.g
> > > > Objectify) that add ease-of-use without noticeable additions to the
> > > > startup time.
>
> > > > The 60 second pinging thing is, indeed, done by some users and is
> > > > officially discouraged by Google.  At one point, I set up a similar
> > > > pinging feature and found that it really didn't work.  Theoretically
> > > > it should, but the pings just caused loading requests every minute or
> > > > so, which simply reduced the likelihood that a user would see the
> > > > loading request; it didn't solve the problem.
>
> > > > Jake
>
> > > > On Jun 11, 7:32 am, Mark  wrote:
>
> > > > > Hi, just joining in, trying to sum up:
>
> > > > > In the best case (if we only use the low level datastore + no
> > > > > frameworks on top) we can only hope that a fresh restart of our app
> > > > > will take 4.5 seconds?
>
> > > > > However if at least one user is hitting the site every 60 seconds from
> > > > > somewhere in the world, then our app should be kept alive and no need
> > > > > for restarts?
>
> > > > > Not that I'm planning on doing it, but what prevents developers from
> > > > > simply pinging the site every 60 seconds to force the app to stay in
> > > > > memory? I ask what prevents it because if I play by the rules, I'm
> > > > > going to get penalized if other developers are 'cheating' and doing
> > > > > the artificial pinging,
>
> > > > > Thanks
>
> > > > > On Jun 9, 5:49 am, Jake  wrote:
>
> > > > > > Hey Tin,
>
> > > > > > Several people were using GAE's built in timing mechanism to ping 
> > > > > > the
> > > > > > server to accomplish the same thing.  Google came out and officially
> > > > > > discouraged this as it tends to throw off any attempts they are
> > > > > > currently making to fix the problem.  I can't tell people what to 
> > > > > > do,
> > > > > > but I opted to stop using this hack in the hopes that they will 
> > > > > > solve
> > > > > > the problem.
>
> > > > > > Besides, you'll notice that this hack doesn't really work over the
> > > > > > long run.  It will essentially restart your server every minute and
> > > > > > won't really prevent the loading request from falling on your users
> > > > > > instead of on your ping.
>
> > > > > > Jake
>
> > > > > > On Jun 8, 1:54 pm, Tin  wrote:
>
> > > > > > > Hi all:
>
> > > > > > > We have found a temporary solution for this issue:
> > > > > > > Try with an AJAX timer kicking the server (doing nothing), maybe 
> > > > > > > one
> > > > > > > request per minute (or less) and GAE will keep our site / users 
> > > > >

[appengine-java] Re: Session object or memcache?

2010-06-12 Thread Thomas
Session is cached in memcache and persisted to datastore. So when
loading request occurs it won't be lost if it is not expired. You can
view session (_ah_SESSION) data with datastore viewer.

On 6月11日, 下午11時09分, Rahul  wrote:
> No doubt if your application is low traffic you will definitely need
> memcache as session will be lost every minute when the jvm restarts
> and you need to reload everything and also session is highly
> discouraged due to various reasons.
>
> Thanks,
> Rahul

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-11 Thread Thomas
Hi:

You can define the dao interfaces and write the implementation of
the interfaces with datastore low level api or some fast startup
framework other than JDO or JPA. If you need to migrate to other
platform which supports standard RDBMS, you implement the dao
interface with JDO, JPA or JDBC.

The entity relationship model design in appengine is very
different from other RDBMS. You can not use more than two inequality
filters or the 'OR' operator in your query. So the design which works
great with appengine is probably not good with RDBMS and vice versa. I
think even the model redesign is necessary when you leave appengine.
Unless you don't choose to use appengine, use JDO(JPA) save you
nothing.

On 6月12日, 上午1時07分, Mark Wyszomierski  wrote:
> Hmm ok I see, so I'm just using JDO without any frameworks on top of that,
> but as mentioned in the slim3 tests, JDO does add overhead (sometimes a
> significant amount). I don't plan to be doing any large queries (the slim3
> example fetches 10,000 objects which I don't plan on doing at any point),
> but what is important to me is that startup time. One to two seconds is
> fine, four seconds starts pushing it, anything above that is pretty bad.
>
> If we start using slim3 though, we lose the flexibility in moving to another
> host (not that I know of any that can compare to app engine) since it'll be
> interacting directly with big table instead of using jdo or jpa is an
> intermediate?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-11 Thread Thomas
Hi Mark:

   The 4.5 seconds is for struts 1.2 in my case. The startup time of
1.3~3.9 seconds is reported by using a more lightweight framework
(slim3). Please refer to 
http://groups.google.com/group/slim3-user/browse_thread/thread/e9d2f7a52f3408

On 6月11日, 下午7時32分, Mark  wrote:
> Hi, just joining in, trying to sum up:
>
> In the best case (if we only use the low level datastore + no
> frameworks on top) we can only hope that a fresh restart of our app
> will take 4.5 seconds?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: App Engine Scalability

2010-06-10 Thread Thomas
Hi:

Please see 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/f4a4bee6af04ba26
for more detail.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-07 Thread Thomas
Hi Jake:

   By default, all css/image files should be treated as static files.
It seems that your css/image files were not served as static files. I
think you should check your static files setting. Please refer to
http://code.google.com/intl/en/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files

   Hope it helps!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Is get-by-key for efficient than a query based on a string property that holds a GUID?

2010-06-05 Thread Thomas
Hi Chris:

The byte array can not be used in query. The only choice for
searchable GUID field is a String.

On 6月6日, 上午11時39分, DutrowLLC  wrote:
> Additionally, what is the best type of Object to pass into the Entity
> as the GUID?  An Ascii85 string? A byte array consisting of the 16
> bytes making up the 128byte GUID?  Something else?
>
> It seems the obvious answer would be the ByteArray[16], but it could
> depend on the implementation.  My primary concern is on search
> efficiency.
>
> Thanks!
>
> Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-05 Thread Thomas
Hi Jake:

I am curious about how do you know there were 2 startup during one
request? Did you submit an issue about the phenomenon?

On 6月6日, 上午2時34分, Jake  wrote:
> Hey Thomas,
>
> I get it all the time - to the point where all of my demonstration
> applications are using the development server hosted on a non-GAE
> machine :)  Anyways, Ikai is (was) aware of the issue from awhile
> back, but I'm not sure it's taking priority.
>
> Jake

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-03 Thread Thomas
On 6月4日, 下午12時02分, Jake  wrote:
> I understand that there can be problems with everyone having a full-
> time reserved JVM.  My problem is simply that the instance restarts
> too frequently.  I mean, honestly, one SINGLE page request results in
> TWO application restarts?  Even if you get it down to 4 seconds,
> that's 8-10 seconds just for the page to load.

   I personally have never seen the two continuous app loading in a
single request before. Maybe you should open an issue to let google
guy's help you.

> I confess, I'm not an expert on the technology involved.  Is it
> technologically difficult to say, if a JVM gets any traffic, hold it
> open for 5 minutes at a minimum.  This can be cheated by the "keep
> alive" pinging that people are doing, but perhaps that can be ignored
> and only external traffic counts?

   I guess google can't tell the 'keep alive' tasks from normal tasks
without reverse engineering the code. Banning 'keep alive' task will
kill the normal tasks also probably.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-03 Thread Thomas
Hi Tin:

> I'm VERY VERY agree with this, the instance restarting is TOO
> frequently, even we just use Servlet + JSP the performance still can't
> be accepted. I don't think this'e a reasonable behavior of a
> production web container.

In your case, the problem is due to JAP. If you want to have quick
startup time, you MUST get rid of JPA/JDO and use some other
lightweight persistence api (Slim3, Objectify, Twig, ...) or use low
level datastore api directly to access the 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-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: I need facebook to connect with my dev server, how i configure jetty?

2010-06-03 Thread Thomas
See my post in the
http://groups.google.com/group/google-appengine-java/browse_thread/thread/dce94c4deedd88e1/d506eebfd526b893
thread.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-03 Thread Thomas
>     I use struts 1.2.x + Spring 2.0 initially. But quickly I realized
> I had to get rid of Spring in order to decrease the startup time. So I
> wrote a TidyDelegationProxy (tidy means TIny DependencY injector) to
> replace Spring's struts proxy. I successfully reduced the startup CPU
> time from 12+ seconds to 6 seconds.

   Correct some mistakes.
   I use struts 1.2.x + Spring 2.0 + JDO initially. But quickly I
realized I had to get rid of Spring and JDO in order to decrease the
startup time. So I
used slim3 and wrote a TidyDelegationProxy to replace Spring's struts
proxy. I successfully reduced the startup CPU time from 12+ seconds to
6 seconds.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-03 Thread Thomas
IMHO, 'Pay to reserve a JVM' is much more reasonable. Although
everybody likes free lunch, but the resources will be wrongly
allocated eventually. For example, the rival company of Google can
legally eat up all its RAM by submitting tremendous amount of huge
size application if there is no recycling. The most valuable feature
of GAE/J which makes it uniquely different from an ordinary VPS is the
scalability and zero administration of the scalable cloud. This unique
feature is worth paying for a fast growing business. My project is in
development phase and I don't enable billing neither. So I choose to
make my app start faster.

I use struts 1.2.x + Spring 2.0 initially. But quickly I realized
I had to get rid of Spring in order to decrease the startup time. So I
wrote a TidyDelegationProxy (tidy means TIny DependencY injector) to
replace Spring's struts proxy. I successfully reduced the startup CPU
time from 12+ seconds to 6 seconds. And I replace the configuration
XML parsing with deserialized the pre-parsed struts config from the
resource. The startup CPU time reduced to 4.3 seconds.

FYI the slim3 framework ( http://sites.google.com/site/slim3appengine/
) has a mini controller which is claimed to be lightweight. I
personally use the datastore related api (which is great) of slim3
only, but you may evaluate if the controller api is suitable for you.

> >> If you don't like this general behavior, please star this issue:
> >>http://code.google.com/p/googleappengine/issues/detail?id=2931
>
> YES  I have stared this issue, I think every body who uses GAE
> should star this issue ^^||
>
> >> I personally don't like this solution as it seems to be paying for
> >> minimum functionality.
>
> You're righit, but if we can pay little $$ for fixing this BIG issue
> we will do it. ><||
>
> Thanks lots again !!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-03 Thread Thomas
Sorry! I made a mistake. The GAE for Business page (
http://code.google.com/intl/en/appengine/business/ ) doesn't mention
anything about loading request. The No#1 approach is void.

On 6月3日, 下午5時08分, Thomas  wrote:
> There are three common approaches.
>
> 1. Use App Engine for Business.
> 2. Wait for 'paid to reserve JVM feature'.
> 3. Use lightweight framework.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Performance issue for GAE auto-restart

2010-06-03 Thread Thomas
There are three common approaches.

1. Use App Engine for Business.
2. Wait for 'paid to reserve JVM feature'.
3. Use lightweight framework.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] access denied (java.lang.RuntimePermission setFactory)

2010-05-23 Thread Thomas Riley
I was working on my App Engine project last night and it seems I must
have broken something (code of a night must be a bad idea!)

I have no idea what I have done, can anyone seen this error before?

HTTP ERROR 500

Problem accessing /rest/v1/sendcopy. Reason:

access denied (java.lang.RuntimePermission setFactory)
Caused by:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission setFactory)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkSetFactory(SecurityManager.java:
1612)
at
java.net.HttpURLConnection.setFollowRedirects(HttpURLConnection.java:
249)
at com.trapp.gae.dash.androidSendCopyV1.doPost(androidSendCopyV1.java:
34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
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
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
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.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
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.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: jspx extension

2010-05-20 Thread Thomas
I guess you have to exclude *.jspx in the static files and resources
file setting.
Please see 
http://code.google.com/intl/en/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files

On 5月20日, 上午12時18分, Michael B  wrote:
> I'm sure I'm making an obvious mistake here, but it seems my jspx
> files don't seem to get compiled while my jsp do even if I fill them
> with jspx-type content. How do I get the GAE to also compile my jspx
> files?
>
> Other then renaming jspx to jsp being a hassle it also seems very
> dirty.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Cross-browser testing with GAE

2010-05-19 Thread Thomas
Hi:

   I am using Eclipse 3.4 plugin for GAE/J. The steps to make
DevServer serving clients from any IP addresses are below:

. Project > Properties > Run/Debug Setting > [Choose the configuartion
of your project] > Edit > Arguments

. Add the '-a 0.0.0.0' (excluding the single quote) argument into
[Program Arguments] and click OK.

. Restarts your app

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: two applications accessing the same datastore

2010-05-18 Thread Thomas
Using version has one major problem. The ssl certificate is for URIs
which is like *.appspot.com . The browser complained that you are
probably visiting a malicious site when you browse a ssl page of a
specified version.

On 5月18日, 下午5時29分, Erdinc Yilmazel  wrote:
> You are not allowed to access the same data from different applications
> (Using different appIds), however you can deploy different versions of your
> application and they will run on separate urls. (Something like
> .latest..appspot.com. So you can create a version named
> admin for that purpose which isn't the default version for that purpose.
>
> Erdinc

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: elegant way of implementing sequence generator

2010-05-14 Thread Thomas
Hi Jaroslav:

GAE is currently single-homed
according to 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/cccb943347b3c6a7/338eede3100f366

On 5月14日, 下午7時41分, Jaroslav Záruba  wrote:
> ...I just want to be sure. I had the impression that two 'my' JVMs
> might not even reside in the same 'data-center', which would make the
> sharing quite a challenge, at least according to my n00b measures. :)
>
> Regards
>   J. Záruba

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Prerelease 1.3.4 SDK ready for download

2010-05-13 Thread Thomas
It has been listed on their Features on Deck ( see item#2 of
http://code.google.com/intl/zh-TW/appengine/docs/roadmap.html )
already.

On 5月14日, 上午9時16分, yjun hu  wrote:
> maybe google app engine shall cancel the 30seconds limit,  most of backend
> process need more than 30seconds
appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Inequality Filters Are Allowed On One Property Only

2010-05-03 Thread Thomas
Hi romesh:

Datastore allows multi-value property. So you can have each (x,y,
list of possible z) in only one row and the filter is as simple as
where z=. The only limitation is that list-of-z can not
exceed 5000 elements.

Thomas

On 5月3日, 下午2時02分, romesh soni  wrote:
> Thomas,
>
> it is possible to pre-determine the solution list for given lower and upper
> bounds x and y. But there can be enormous rows for a given (x,y) pair. And
> there will be enormous rows containing (x,y) pairs. So I can not keep a
> predetermined list.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Inequality Filters Are Allowed On One Property Only

2010-05-02 Thread Thomas
I can't imagine what your data is. Is it possible to pre-solve the
solution list z for every (x, y) pair and store them like (x, y, list
of z). If it is the case, you can use a simple z= filter to
get your single result.

Thomas

On 5月2日, 下午4時57分, romesh soni  wrote:
> Tristan,
>
> sorry for the mistake. I wrote the wrong thing ( I realized this at night
> when I went to bed for sleep)
> It is field1<=1000<=field2. A given value will always be between the lower
> and upper bound  (field1 and field2).
>
> Thanks
> Romesh
>
> On Sun, May 2, 2010 at 11:20 AM, Tristan wrote:
>
>
>
> > did you make an error or are you describing this condition?
>
> > 1000 <= field1 <= field2 <= 1000
>
> > On May 1, 10:26 am, romesh soni  wrote:
> > > OK, let me explain the query which I need to run (I am putting the sql
> > > server syntax for it, thats what I was working so far):
> > > select *  from mytable where field1>=1000 and field2<=1000;
>
> > > Thats what I need to run on on datastore.
>
> > > Field1 and field 2 are have a relation. More specifically,  Field1
> > <=field
> > > 2. My db is such that when I search for any given integer say 1000, then
> > the
> > > db will return only one row for given condition : field1>=1000 and
> > > field2<=1000;
>
> > > Regards,
> > > Romesh..
>
> > > On Sat, May 1, 2010 at 4:42 PM, Tristan 
> > wrote:
> > > > Hey,
>
> > > > So, there's no more 1000 query limitation, that went away (unless it
> > > > was put back in).
>
> > > > I see what you're saying though. Need to know more about what the
> > > > problem is. I assume x and z are the two properties? It seems that x
> > > > and z are correlated (since you guarantee that there is only one
> > > > solution that meets the criteria). This correlation can probably be
> > > > exploited to better solve the problem, but I need some constraints to
> > > > work with. What is the relationship between x and z that guarantees
> > > > you will have only one solution?
>
> > > > Tristan
>
> > > > On May 1, 2:30 am, romesh soni  wrote:
> > > > > Hi Tristan,
> > > > > The solution you provided is the best one among of those which I have
> > > > found
> > > > > so far. But this is not what I was looking for, my database is quite
> > > > large
> > > > > and its will grow continuously to millions of records in time. But
> > there
> > > > > will be only 1 matching record for my filter (x<=y and y>=z) If I try
> > > > your
> > > > > suggested approach,  then I will have to scan all records in
> > loop.(1000
> > > > > limitation)
>
> > > > > On Fri, Apr 30, 2010 at 6:58 PM, Romesh 
> > wrote:
> > > > > > I have been trying to find a workaround for this limitation and
> > spent
> > > > > > 2 days and read almost all blogs, discussion
> > > > > > groups., but can not find a solution to it. Has
> > > > > > any one able to find a way to handle this limitation? (The List
> > > > > > property solution doesn't work.)
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google App Engine for Java" group.
> > > > > To post to this group, send email to
> > > > google-appengine-j...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > > > .
> > > > > For more options, visit this group athttp://
> > > > groups.google.com/group/google-appengine-java?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google App Engine for Java" group.
> > > > To post to this group, send email to
> > > > google-appengine-j...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > You received this mes

[appengine-java] Re: Has anyone got actually got tag files to work?

2010-04-30 Thread Thomas
My tag files worked very well in dev server without any problem. When
uploading to gae/j, I encountered the problem describe in the above
mentioned issue and I could fix it according to the workaround
guidelines provided in that issue.

My environment:
WinXP SP2
Eclipse version 3.4
GAE/J SDK 1.3.1
JDK 5.0

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Manually restart GAE on the cloud

2010-04-27 Thread Thomas
In the Admin Console you can disable your application and re-enable
it. I think it is much like a JVM reboot.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Is it necessary on deployment server to explicitly call HttpSession.setAttribute?

2010-04-19 Thread Thomas
I have submitted the issue#3112.
http://code.google.com/p/googleappengine/issues/detail?id=3112

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Is it necessary on deployment server to explicitly call HttpSession.setAttribute?

2010-04-19 Thread Thomas
Hi Vaclav:

   Thanks for your reply.

   HttpSession is a defined standard interface in JEE. The standard
doesn't ask developers for explicitly calling
HttpSession.setAttribute. The GAE/J provides a servlet container
implementation which utilize datastore and memcache to store session
data. It is supposed that the underlying implementation detail should
be transparent to developers. The bottom line is that Google should
document it clearly. But I didn't see any document about this issue. :
(

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Is it necessary on deployment server to explicitly call HttpSession.setAttribute?

2010-04-17 Thread Thomas
I have a class which has a counter field.

public Class Foo implements Serializable {
   private static final long serialVersionUID = 1L;
   private int counter = 0;
   // getter and setter omitted for simplicity
}

And in my program I put a Foo instance into HttpSession.

HttpSession session = request.getSession(true);
Foo foo = (Foo)session.getAttribute("foo");
if (foo==null) {
foo = new idv.Foo();
session.setAttribute("foo", foo);
}
else
foo.setCounter(foo.getCounter()+1);
// continue processing with foo

If session.setAttribute is executed, the session (and foo) is
serialized correctly and I can get the correct counter value at the
next request. But the counter value never gets increased at subsequent
requests.

If I move the session.setAttribute call to behind the if-else block
to force execution in every request, the counter value increases
correctly.

if (foo==null)
foo = new idv.Foo();
else
foo.setCounter(foo.getCounter()+1);
session.setAttribute("foo", foo);

I didn't see any doc about this. Is it a bug or a feature?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Is there anyway to set The Request Timer less than 30 seconds

2010-04-16 Thread Thomas
I think you can Thread.sleep(5000) after submiting a task which
does the real job and write its start time and final result to
datastore. Your main thread can fetch the start time and result from
datastore after 5 secs.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Cookie expiration: how can I make them expire programmatically?

2010-04-15 Thread Thomas
Not related to the topic. But can anyone tell me why my recent posts
always have the google generated messages attached as signatures? I
didn't setup any personal information and have no idea why these
messages appeared.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Cookie expiration: how can I make them expire programmatically?

2010-04-15 Thread Thomas
On 4月16日, 上午3時36分, Esteban Ignacio Masoero 
wrote:
> - Is there a way I can programatically (or from the admin console would be
> best) make all session cookies expire?

You can remove all entries (each represents a user session) in th
_ah_SESSION kind with Datastore Viewer of Admin console.

> - Would it be possible to make this exception "cacheable" by the app, so we
> can at least show some proper message?

Try to setup error page for java.io.InvalidClassException in
web.xml. I am not sure if it works but it's worthy to try.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Domain Name Setup

2010-04-15 Thread Thomas
You can try traceroute. I guess traffic toward these two different
domains go to different data centers.

On 4月16日, 上午2時32分, fletcher  wrote:
> Thanks for the reply. Those steps are exactly what I did so I guess
> I've got it set up right.
>
> Any ideas on the latency concerns?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: ANN: Firefox add-on for tracking GAE estimated cost

2010-04-08 Thread Thomas
Does the X-AppEngine-Estimated-CPM-US-Dollars header appears only if
the application is using Google Account authentication scheme? I have
login as the administrator (developer of the web app), but have never
seen this response header.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Singleton class become double instance in GAE

2010-04-05 Thread Thomas
Multiple JVMs (high requests/s) and loading request (low requests/
s) are two possible reasons why you see many '' log messages.
But when loading request happens, only one singleton exists at that
moment.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to find an object which uses a Key as its primary key?

2010-04-05 Thread Thomas
Hi Mark:

The KeyFactory.keyToString and KeyFactory.stringToKey should be
what you want. KeyFactory.keyToString converts a Key instance to a
plain String which can be passed to browser and then be sent back to
server later by another user request. The server can convert it to a
Key by calling KeyFactory.stringToKey and use the key in a query.

Thomas

On 4月5日, 下午10時22分, Mark  wrote:
> Hi,
>
> I set up a persistent class like this:
>
>   @PersistenceCapable
>   public class Farm
>   {
>       @PrimaryKey
>       @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>       private Key mKey;
>   }
>
> I might send a representation of this object down to a client browser.
> I imagine it could be in JSON format. How can I include the mKey id so
> that the client can interact with the Farm instance later on? I see
> Key has a method getId() which returns a long. Is this what we can
> send down to the client? I basically want to expose a service like
> this:
>
>   mysite.com/plowfarm?id=abc
>
> so I need a way to get this particular Farm instance out of the data
> store again from some random client, which will only know about
> strings it reads from a JSON object:
>
>   String qs = "SELECT FROM org.myproject.farms.server.data.Farm WHERE
> mKey == " + id;
>
> Is that long id the answer to this?
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: blobstoreService.getUploadedBlobs() returns null from deployed GAE app, but works in dev server

2010-04-03 Thread Thomas
Did you turn the billing on?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Discussion on will-it-play-in-app-engine

2010-03-30 Thread Thomas
Workaround for issue 1381 (Spring transactions throw
GenericSignatureFormatError)
Please see the comment#20 of issue 1381. (
http://code.google.com/p/googleappengine/issues/detail?id=1381 )

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-30 Thread Thomas
Hi kevin:

Yes, my workaround is just a proxy which route every pmf requests
back to the original instance return by
JDOHelper.getPersistenceManagerFactory.

I used jdo transaction manager and aop and it worked on gae host
after applying the workaround. My spring version is 2.0.8 but I think
it could also work on spring 2.5.

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-28 Thread Thomas
Please refer to
http://code.google.com/p/googleappengine/issues/detail?id=1381
comment #20

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Programmatically schedule cron jobs

2010-03-03 Thread Thomas Oldervoll
Is there a way to programmatically schedule new cron jobs, preferably
using the Java API? I would like to offer my users the chance to
schedule actions to happen at a later time, but from reading
http://code.google.com/appengine/docs/java/config/cron.html it sounds
like the only way to add a new cron job is to edit cron.xml. Is there
a way to do this in code?

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Citical Security error in Accounts Java API: request.getUserPrincipal() gets wrong username/email

2010-02-25 Thread Thomas Schnocklake
Yes, i implemented this already. I developped the widget in GAE in Java.
There I used OAuth to authenticate against the gdata-api. Then I stored the
combination of "usern...@gappdomain.xxx" and the OAuth accesskey in the GAE
persistant storage. Everything works fine. So when i log in google apps the
includes Gadget reads the logged in username
(request.getUserPrincipal().getName() )) and searches with this username for
the OAuth key.
But than the problem: sometimes the username
(request.getUserPrincipal().getName() ) is wrong, so i read the data (e.g.
Contacts List) of the wrong user.

So actuelly I don't need a solution for authentication but I need to know
which user is actually really logged in to google apps.

Any ideas?

This should be a quite important topic for all developpers who want to
enhance google apps with gae, isn' t it?

thanks

2010/2/25 Ikai L (Google) 

> Probably OAuth, though I'm not sure how that will work with a gadget. In
> most places gadgets will include a user ID with the makeRequest.
>
> On Tue, Feb 23, 2010 at 12:23 PM, Thomas Schnocklake <
> thomas.schnockl...@googlemail.com> wrote:
>
>> Thank you for your answer.
>>
>> So what would you suppose to use for authentication for a gadget that is
>> places in google apps (e.g. gmail, google sites ) ?
>>
>> thanks
>>
>> thomas
>>
>> 2010/2/18 Ikai L (Google) 
>>
>>> Yes, this seems to make sense. Being logged into Google Apps is
>>> independent of being logged into an App Engine application. They don't use
>>> the same cookie. App Engine's User service allows you to use Google logins,
>>> but not the Google Apps session.
>>>
>>> On Tue, Feb 16, 2010 at 3:29 AM, tsschnoc <
>>> thomas.schnockl...@googlemail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> I use App Engine in my Google Apps domain and restricted the
>>>> authentification of app
>>>> engine to my apps domain. (see
>>>> http://code.google.com/appengine/articles/auth.html
>>>> )
>>>> I developed a widget and use this in multiple accounts of my google
>>>> apps domain.
>>>> When i switch from one account (of my apps domain) to the other, the
>>>> former account is displayed in the widget (Java:
>>>> request.getUserPrincipal().getName() ).
>>>>
>>>> So the gadget placed on my Google Apps Inbox displays data of a user
>>>> different to the user logged in to google apps.
>>>>
>>>> I noticed that the problems goes away when i wait some minutes
>>>> ( session expiration ?? ).
>>>>
>>>> see picture:
>>>>
>>>> http://picasaweb.google.com/lh/photo/QDcR2Lgk2xI2-UQ77BoGXw?feat=directlink
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine for Java" group.
>>>> To post to this group, send email to
>>>> google-appengine-j...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> google-appengine-java+unsubscr...@googlegroups.com
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>>
>>>>
>>>
>>>
>>> --
>>> Ikai Lan
>>> Developer Programs Engineer, Google App Engine
>>> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Citical Security error in Accounts Java API: request.getUserPrincipal() gets wrong username/email

2010-02-23 Thread Thomas Schnocklake
Thank you for your answer.

So what would you suppose to use for authentication for a gadget that is
places in google apps (e.g. gmail, google sites ) ?

thanks

thomas

2010/2/18 Ikai L (Google) 

> Yes, this seems to make sense. Being logged into Google Apps is independent
> of being logged into an App Engine application. They don't use the same
> cookie. App Engine's User service allows you to use Google logins, but not
> the Google Apps session.
>
> On Tue, Feb 16, 2010 at 3:29 AM, tsschnoc <
> thomas.schnockl...@googlemail.com> wrote:
>
>> Hello,
>>
>> I use App Engine in my Google Apps domain and restricted the
>> authentification of app
>> engine to my apps domain. (see
>> http://code.google.com/appengine/articles/auth.html
>> )
>> I developed a widget and use this in multiple accounts of my google
>> apps domain.
>> When i switch from one account (of my apps domain) to the other, the
>> former account is displayed in the widget (Java:
>> request.getUserPrincipal().getName() ).
>>
>> So the gadget placed on my Google Apps Inbox displays data of a user
>> different to the user logged in to google apps.
>>
>> I noticed that the problems goes away when i wait some minutes
>> ( session expiration ?? ).
>>
>> see picture:
>>
>> http://picasaweb.google.com/lh/photo/QDcR2Lgk2xI2-UQ77BoGXw?feat=directlink
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] "appcfg.sh update" suddenly doesn't work

2010-01-23 Thread Thomas Wiradikusuma
Hi all,
I created a new project, tested it in localhost, everything was OK. So
I uploaded it:

Reading application configuration data...
Beginning server interaction for myapp...
0% Creating staging directory
5% Scanning for jsp files.
8% Compiling jsp files.
11% Compiling java files.
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 1 static files.
31% Cloning 56 application files.
40% Uploading 0 files.
90% Deploying new version.
95% Will check again in 1 seconds
98% Will check again in 2 seconds
99% Will check again in 4 seconds
99% Will check again in 8 seconds
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.

Details:
Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile
INFO: Built File: /_default.jsp
Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile
INFO: Built File: /_pane_footer.jsp
Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile
INFO: Built File: /_pane_howitworks.jsp
Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile
INFO: Built File: /index.jsp
Note: /var/folders/CA/CAoAFlp6Ex8Ce58TO7dOuU+++TI/-Tmp-/
appcfg129071456909907182.tmp/WEB-INF/classes/org/apache/jsp/
_005fdefault_jsp.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.


Update completed successfully.
Success.
Cleaning up temporary files...


Man that's fast, considering ~12MB of jars (Spring 3.0, Sitemesh,
JSTL, App Engine). But when I opened it in my browser, the page loaded
(redirection worked from index.jsp -> /spring/index) but the page was
blank. I checked the log, no error. What's going on?

Here's the "web" directory structure (for "appcfg.sh update web"):

WEB-INF/
classes/
META-INF/applicationContext.xml
com/foo/bar/*.class
lib/*.jar
appengine-web.xml
decorators.xml
dispatcher-servlet.xml
web.xml
_default.jsp
_pane_footer.jsp
_pane_howitworks.jsp
news.html
index.jsp


And the appegine-web.xml:


http://appengine.google.com/ns/1.0";>
myapp
1-snapshot















-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Robot copy to clipboard

2009-12-27 Thread Thomas Jungblut
Hey,

I've build a form in a robot reply and there is a button, which should
copy the content of the event's blip to the clipboard.

Now I get this error in my Logs:
java.lang.NoClassDefFoundError: Could not initialize class
com.google.apphosting.runtime.security.shared.stub.java.awt.datatransfer.StringSelection

Isn't it possible to copy to the clipboard of the "button's
submitter"? It seems, that this is restricted...

My robot is port...@appspot.com and the copy code is similar to that
one here:
http://www.javapractices.com/topic/TopicAction.do?Id=82

Thanks for your help guys :-)

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] AccessControlException on OutputStream#write(byte b[], int off, int len)

2009-10-20 Thread Thomas Wiradikusuma

Hi,

The following Groovy snippet throws exception:

byte[] responseData = byteOut.toByteArray()
response.setContentLength(responseData.length)
response.setContentType("application/octet-stream")
response.outputStream.write(responseData, 0, 
responseData.length)
<-- this one

The exception is:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader)

at com.google.appengine.runtime.Request.process-e40a07dff3b6f2fc
(Request.java)
at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.
(ClassLoaderForClassArtifacts.java:22)
at org.codehaus.groovy.runtime.callsite.CallSiteClassLoader.
(CallSiteClassLoader.java:40)
at org.codehaus.groovy.reflection.CachedClass$5$1.run
(CachedClass.java:144)
at org.codehaus.groovy.reflection.CachedClass$5$1.run
(CachedClass.java:143)
at java.security.AccessController.doPrivileged(AccessController.java:
34)
at org.codehaus.groovy.reflection.CachedClass$5.initValue
(CachedClass.java:141)
at org.codehaus.groovy.reflection.CachedClass$5.initValue
(CachedClass.java:140)
at org.codehaus.groovy.util.LazyReference.getLocked
(LazyReference.java:33)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:20)
at org.codehaus.groovy.reflection.CachedClass.getCallSiteLoader
(CachedClass.java:472)
at
org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compilePojoMethod
(CallSiteGenerator.java:222)
at
org.codehaus.groovy.reflection.CachedMethod.createPojoMetaMethodSite
(CachedMethod.java:240)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.createCachedMethodSite
(PojoMetaMethodSite.java:158)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.createPojoMetaMethodSite
(PojoMetaMethodSite.java:147)
at groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:
2978)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite
(CallSiteArray.java:114)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite
(CallSiteArray.java:148)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:117)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:133)

Any idea why it happened and how to fix it?
--~--~-~--~~~---~--~~
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: Simplest web framework + ORM for GAE/J?

2009-09-08 Thread Thomas Wiradikusuma

you mean more to the "web framework" thing? try Grails or Gaelyk.

On Sep 8, 12:02 am, Chris  wrote:
> What's the simplest web framework + ORM combination that works well on
> GAE/J?
--~--~-~--~~~---~--~~
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: Datastore Import and Export

2009-08-29 Thread Thomas M

Hi Jason, this sounds extremely promising. When will it come? best
Thomas

On 19 Aug., 20:35, Jason  wrote:
> This is coming. As far as I know, it will work similarly to the Python
> script, meaning it won't use Google Spreadsheets.
>
> - Jason
>
> On Aug 15, 9:17 am, rbakos  wrote:
>
>
>
> > I've noticed that there is a utility for python for exporting data
> > from thedatastore.  Will there be animport/exportutility for java?
> > Or perhaps a backup/restore utility on the app console?  It would be
> > extremely helpful if you could test production data in development
> > through a backup/restore orimport/exportprocess and saving the data
> > offline would be good in case of some catastrophic data loss in
> > production.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---