Re: [appengine-java] Full Text Search Status?

2012-01-04 Thread Jaroslav Záruba
Any news/updates? :(

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/NcoX-BGLD2MJ.
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] Working with JSON in client/server shared class

2011-03-20 Thread Jaroslav Záruba
Hi

My Java class shared by client (GWT) and server (GAE/J) has field containing 
JSON-markup. Is it possible to parse/update/serialize this data using this 
very class? (I.e. without having to write separate client and server helper 
class.)

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-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] Deleting in batches of keys in a loop

2011-02-16 Thread Jaroslav Záruba
Hello

If I delete 1000 objects in one iteration of a loop do I know for sure that 
in the next iteration I won't fetch their keys again when using the same 
query?

I will use Mapper API so I'm rather curious.

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-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
I'm running JSPs w/o issues now.

Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1
Build id: 20100917-0705

GAE 1.4, GWT 2.1

On Mon, Dec 6, 2010 at 6:46 PM, xenoneo  wrote:

> JSPs still broken with 1.4
>
> Tested with eclipse 3.5 & 3.6
> JDK version 1.6.0_22;
> OS Linux x86_64;
> Google Plugin for 1.4.0.v201010280047
> com.google.gdt.eclipse.suite.e35.feature.feature.group
> Google App Engine Java SDK 1.4.0 1.4.0.v201012021500
> com.google.appengine.eclipse.sdkbundle.e35.feature.1.4.0.feature.group
>
> To reproduce:
> 1. download fresh eclipse 3.5 or 3.6;
> 2. install sdk & plugin as described in
> http://code.google.com/appengine/docs/java/tools/eclipse.html
> 3. create "Web Application Project" disable GWT support (testing JSPs
> only)
> 4. add JSP definition to web.xml
> 5. create "hello world" jsp as defined in web.xml
> 6. run the project and hit the jsp :
>
> INFO: The server is running at http://localhost:/
> Dec 6, 2010 12:35:57 PM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: /test.htm
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 7 in the generated java file
> org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
>
> An error occurred at line: 8 in the generated java file
> org.apache.jasper.runtime.JspSourceDependent cannot be resolved to a
> type
>
>
>
>
> On Dec 6, 8:33 am, Jaroslav Záruba  wrote:
> > Thanks guys, moving AppEngine (and GWT) to the top in "Order and Export"
> > really solved this.
> >
> > Thanks a lot :)
> >
> >
> >
> >
> >
> >
> >
> > On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen  wrote:
> > > I had the same problem and fixed it by:
> >
> > > 1) Selecting project Root -> Goto File->Properties
> > > 2) Select Java Build Path
> > > 3) Select Order and Export
> > > 4) Move App Engine SDK 1.4.0 to the #1 position and GWT SDK 2.1.0 to
> the #2
> > > position
> >
> > > On Sun, Dec 5, 2010 at 7:28 AM, Sudhir  wrote:
> >
> > >> Same issue here... does anyone have a fix that doesn't involve re-
> > >> installing eclipse and recreating the entire project step by step?
> >
> > >> Sudhir
> >
> > >> On Dec 4, 4:37 pm, GoSharp Lite  wrote:
> > >> > I solve my jsp compilation issue by using below steps.
> >
> > >> > 1) Download and install "eclipse-java-helios-SR1-win32.zip".
> > >> > 2) Install plugins from "http://dl.google.com/eclipse/plugin/3.6";.
> > >> > 3) Download and install "java_ee_sdk-6u1-jdk-windows.exe".
> > >> > 4) Create a new and empty app using same project name and package as
> > >> > my old app.
> > >> > 5) Carefully copy all files in src and war from my old app into the
> > >> > new app.
> > >> > 6) Import all external libs from my old app into the new app.
> > >> > 7) Set Properties-Google-App Engine-ORM to server files which need
> > >> > enhancement.
> > >> > 8) Debug and no more "Unable to compile class for JSP".
> >
> > >> > On Dec 4, 11:47 am, Jerome  wrote:
> >
> > >> > > Sorry, no solution but a very similar issue with Eclipse Helios SR
> 1:
> >
> > >> > > org.apache.jasper.JasperException: Unable to compile class for
> JSP:
> >
> > >> > > An error occurred at line: 9 in the generated java file
> > >> > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
> >
> > >> > > An error occurred at line: 10 in the generated java file
> > >> > > org.apache.jasper.runtime.JspSourceDependent cannot be resolved to
> a
> > >> > > type
> >
> > >> > > An error occurred at line: 12 in the generated java file
> > >> > > JspFactory cannot be resolved to a type
> >
> > >> > > An error occurred at line: 12 in the generated java file
> > >> > > JspFactory cannot be resolved
> >
> > >> > > An error occurred at line: 23 in the generated java file
> > >> > > javax.el.ExpressionFactory cannot be resolved to a type
> >
> > >> > > An error occurred at line: 24 in the generated java file
> > >> > > org.apache.AnnotationProcessor cannot be resolved to a type
> >
> > >> > > An error occurred at line: 

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
Forget it, I don't think it is actually possible to get JSP transformed into
*.java without the imports, it'd probably yell at you upon saving the JSP.

Have you tried re-syncing the JARs?
I believe it can be done either by unchecking the "is GAE" option in the GAE
settings of your project, and checking it back again... or by deleting some
of those JARs in your /WEB-INF/lib - Eclipse (the plugin) should offer you
the re-syncing in the Problems window as a Quick Fix.

On Mon, Dec 6, 2010 at 7:07 PM, mscwd01  wrote:

> I'm not sure I understand. It worked fine before I downloaded the new
> 1.4 SDK.
>
> On Dec 6, 5:54 pm, Jaroslav Záruba  wrote:
> > Could it be it is only a missing import declaration in the *.java result
> of
> > your *.JSP?
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Dec 6, 2010 at 6:46 PM, mscwd01  wrote:
> > > Ah yes found it in the App Engine SDK, repackaged-appengine-
> > > jasper-6.0.29.jar is there. The question now, is why isn't it working?
> >
> > > On Dec 6, 5:33 pm, Jaroslav Záruba  wrote:
> > > > This JAR is where Eclipse reads the HttpJspBase type from. It is
> included
> > > in
> > > > the AppEngine SDK Library.
> >
> > > > Project -> Properties -> Java Build Path -> Libraries
> >
> > > > On Mon, Dec 6, 2010 at 6:28 PM, mscwd01  wrote:
> > > > > Where should it be? I cannot see it listed in my libraries.
> >
> > > > > On Dec 6, 5:03 pm, Jaroslav Záruba 
> wrote:
> > > > > > seems like repackaged-appengine-jasper-6.0.29.jar is not where it
> is
> > > > > > supposed to be...?
> >
> > > > > > On Mon, Dec 6, 2010 at 5:58 PM, mscwd01 
> wrote:
> > > > > > > No hints in the problems window that are of any help. The error
> I
> > > get
> > > > > > > is:
> >
> > > > > > > WARNING: /features
> > > > > > > org.apache.jasper.JasperException: Unable to compile class for
> JSP:
> > > > > > > An error occurred at line: 11 in the generated java file
> > > > > > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a
> type
> >
> > > > > > > And the first part of the stacktrace is:
> >
> > > > > > > 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)
> >
> > > > > > > Thanks
> >
> > > > > > > On Dec 6, 4:52 pm, Jaroslav Záruba 
> > > wrote:
> > > > > > > > What does the error message say?
> > > > > > > > No hints in the Problems window?
> >
> > > > > > > > On Mon, Dec 6, 2010 at 5:42 PM, mscwd01 
> > > wrote:
> > > > > > > > > This still doesn't solve the issue for me, mapping a
> servlet
> > > url
> > > > > > > > > pattern to a jsp file always fails...
> >
> > > > > > > > > On Dec 6, 1:33 pm, Jaroslav Záruba <
> jaroslav.zar...@gmail.com>
> > > > > wrote:
> > > > > > > > > > Thanks guys, moving AppEngine (and GWT) to the top in
> "Order
> > > and
> > > > > > > Export"
> > > > > > > > > > really solved this.
> >
> > > > > > > > > > Thanks a lot :)
> >
> > > > > > > > > > On Sun, Dec 5, 2010 at 4:40 PM

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
Could it be it is only a missing import declaration in the *.java result of
your *.JSP?

On Mon, Dec 6, 2010 at 6:46 PM, mscwd01  wrote:

> Ah yes found it in the App Engine SDK, repackaged-appengine-
> jasper-6.0.29.jar is there. The question now, is why isn't it working?
>
> On Dec 6, 5:33 pm, Jaroslav Záruba  wrote:
> > This JAR is where Eclipse reads the HttpJspBase type from. It is included
> in
> > the AppEngine SDK Library.
> >
> > Project -> Properties -> Java Build Path -> Libraries
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Dec 6, 2010 at 6:28 PM, mscwd01  wrote:
> > > Where should it be? I cannot see it listed in my libraries.
> >
> > > On Dec 6, 5:03 pm, Jaroslav Záruba  wrote:
> > > > seems like repackaged-appengine-jasper-6.0.29.jar is not where it is
> > > > supposed to be...?
> >
> > > > On Mon, Dec 6, 2010 at 5:58 PM, mscwd01  wrote:
> > > > > No hints in the problems window that are of any help. The error I
> get
> > > > > is:
> >
> > > > > WARNING: /features
> > > > > org.apache.jasper.JasperException: Unable to compile class for JSP:
> > > > > An error occurred at line: 11 in the generated java file
> > > > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
> >
> > > > > And the first part of the stacktrace is:
> >
> > > > > 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)
> >
> > > > > Thanks
> >
> > > > > On Dec 6, 4:52 pm, Jaroslav Záruba 
> wrote:
> > > > > > What does the error message say?
> > > > > > No hints in the Problems window?
> >
> > > > > > On Mon, Dec 6, 2010 at 5:42 PM, mscwd01 
> wrote:
> > > > > > > This still doesn't solve the issue for me, mapping a servlet
> url
> > > > > > > pattern to a jsp file always fails...
> >
> > > > > > > On Dec 6, 1:33 pm, Jaroslav Záruba 
> > > wrote:
> > > > > > > > Thanks guys, moving AppEngine (and GWT) to the top in "Order
> and
> > > > > Export"
> > > > > > > > really solved this.
> >
> > > > > > > > Thanks a lot :)
> >
> > > > > > > > On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen <
> mfrie...@gmail.com
> >
> > > > > wrote:
> > > > > > > > > I had the same problem and fixed it by:
> >
> > > > > > > > > 1) Selecting project Root -> Goto File->Properties
> > > > > > > > > 2) Select Java Build Path
> > > > > > > > > 3) Select Order and Export
> > > > > > > > > 4) Move App Engine SDK 1.4.0 to the #1 position and GWT SDK
> > > 2.1.0
> > > > > to
> > > > > > > the #2
> > > > > > > > > position
> >
> > > > > > > > > On Sun, Dec 5, 2010 at 7:28 AM, Sudhir  >
> > > wrote:
> >
> > > > > > > > >> Same issue here... does anyone have a fix that doesn't
> involve
> > > re-
> > > > > > > > >> installing eclipse and recreating the entire project step
> by
> > > step?
> >
> > > > > > > > >> Sudhir
> >
> > > > > > > > >> On Dec 4, 4:37 pm, GoSharp Lite 
> > > wrote:
> > > > > > > > >> > I solve my jsp compilation issue by using below

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
This JAR is where Eclipse reads the HttpJspBase type from. It is included in
the AppEngine SDK Library.

Project -> Properties -> Java Build Path -> Libraries

On Mon, Dec 6, 2010 at 6:28 PM, mscwd01  wrote:

> Where should it be? I cannot see it listed in my libraries.
>
> On Dec 6, 5:03 pm, Jaroslav Záruba  wrote:
> > seems like repackaged-appengine-jasper-6.0.29.jar is not where it is
> > supposed to be...?
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Dec 6, 2010 at 5:58 PM, mscwd01  wrote:
> > > No hints in the problems window that are of any help. The error I get
> > > is:
> >
> > > WARNING: /features
> > > org.apache.jasper.JasperException: Unable to compile class for JSP:
> > > An error occurred at line: 11 in the generated java file
> > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
> >
> > > And the first part of the stacktrace is:
> >
> > > 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)
> >
> > > Thanks
> >
> > > On Dec 6, 4:52 pm, Jaroslav Záruba  wrote:
> > > > What does the error message say?
> > > > No hints in the Problems window?
> >
> > > > On Mon, Dec 6, 2010 at 5:42 PM, mscwd01  wrote:
> > > > > This still doesn't solve the issue for me, mapping a servlet url
> > > > > pattern to a jsp file always fails...
> >
> > > > > On Dec 6, 1:33 pm, Jaroslav Záruba 
> wrote:
> > > > > > Thanks guys, moving AppEngine (and GWT) to the top in "Order and
> > > Export"
> > > > > > really solved this.
> >
> > > > > > Thanks a lot :)
> >
> > > > > > On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen  >
> > > wrote:
> > > > > > > I had the same problem and fixed it by:
> >
> > > > > > > 1) Selecting project Root -> Goto File->Properties
> > > > > > > 2) Select Java Build Path
> > > > > > > 3) Select Order and Export
> > > > > > > 4) Move App Engine SDK 1.4.0 to the #1 position and GWT SDK
> 2.1.0
> > > to
> > > > > the #2
> > > > > > > position
> >
> > > > > > > On Sun, Dec 5, 2010 at 7:28 AM, Sudhir 
> wrote:
> >
> > > > > > >> Same issue here... does anyone have a fix that doesn't involve
> re-
> > > > > > >> installing eclipse and recreating the entire project step by
> step?
> >
> > > > > > >> Sudhir
> >
> > > > > > >> On Dec 4, 4:37 pm, GoSharp Lite 
> wrote:
> > > > > > >> > I solve my jsp compilation issue by using below steps.
> >
> > > > > > >> > 1) Download and install "eclipse-java-helios-SR1-win32.zip".
> > > > > > >> > 2) Install plugins from "
> > >http://dl.google.com/eclipse/plugin/3.6";.
> > > > > > >> > 3) Download and install "java_ee_sdk-6u1-jdk-windows.exe".
> > > > > > >> > 4) Create a new and empty app using same project name and
> > > package as
> > > > > > >> > my old app.
> > > > > > >> > 5) Carefully copy all files in src and war from my old app
> into
> > > the
> > > > > > >> > new app.
> > > > > > >> > 6) Import all external libs from my old app into the new
> app.
> > > > > > >> > 7) Set Properties-Google-App Engine-ORM to server files
> which
> > > need
> > > > > > >> > enhancement.
> > > > > > >> > 8) Debug and no more "Unable to com

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
seems like repackaged-appengine-jasper-6.0.29.jar is not where it is
supposed to be...?

On Mon, Dec 6, 2010 at 5:58 PM, mscwd01  wrote:

> No hints in the problems window that are of any help. The error I get
> is:
>
> WARNING: /features
> org.apache.jasper.JasperException: Unable to compile class for JSP:
> An error occurred at line: 11 in the generated java file
> org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
>
> And the first part of the stacktrace is:
>
> Stacktrace:
>at
>
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.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)
>
> Thanks
>
> On Dec 6, 4:52 pm, Jaroslav Záruba  wrote:
> > What does the error message say?
> > No hints in the Problems window?
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Dec 6, 2010 at 5:42 PM, mscwd01  wrote:
> > > This still doesn't solve the issue for me, mapping a servlet url
> > > pattern to a jsp file always fails...
> >
> > > On Dec 6, 1:33 pm, Jaroslav Záruba  wrote:
> > > > Thanks guys, moving AppEngine (and GWT) to the top in "Order and
> Export"
> > > > really solved this.
> >
> > > > Thanks a lot :)
> >
> > > > On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen 
> wrote:
> > > > > I had the same problem and fixed it by:
> >
> > > > > 1) Selecting project Root -> Goto File->Properties
> > > > > 2) Select Java Build Path
> > > > > 3) Select Order and Export
> > > > > 4) Move App Engine SDK 1.4.0 to the #1 position and GWT SDK 2.1.0
> to
> > > the #2
> > > > > position
> >
> > > > > On Sun, Dec 5, 2010 at 7:28 AM, Sudhir  wrote:
> >
> > > > >> Same issue here... does anyone have a fix that doesn't involve re-
> > > > >> installing eclipse and recreating the entire project step by step?
> >
> > > > >> Sudhir
> >
> > > > >> On Dec 4, 4:37 pm, GoSharp Lite  wrote:
> > > > >> > I solve my jsp compilation issue by using below steps.
> >
> > > > >> > 1) Download and install "eclipse-java-helios-SR1-win32.zip".
> > > > >> > 2) Install plugins from "
> http://dl.google.com/eclipse/plugin/3.6";.
> > > > >> > 3) Download and install "java_ee_sdk-6u1-jdk-windows.exe".
> > > > >> > 4) Create a new and empty app using same project name and
> package as
> > > > >> > my old app.
> > > > >> > 5) Carefully copy all files in src and war from my old app into
> the
> > > > >> > new app.
> > > > >> > 6) Import all external libs from my old app into the new app.
> > > > >> > 7) Set Properties-Google-App Engine-ORM to server files which
> need
> > > > >> > enhancement.
> > > > >> > 8) Debug and no more "Unable to compile class for JSP".
> >
> > > > >> > On Dec 4, 11:47 am, Jerome  wrote:
> >
> > > > >> > > Sorry, no solution but a very similar issue with Eclipse
> Helios SR
> > > 1:
> >
> > > > >> > > org.apache.jasper.JasperException: Unable to compile class for
> > > JSP:
> >
> > > > >> > > An error occurred at line: 9 in the generated java file
> > > > >> > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a
> type
> >
> > > > >> > > An error occurred at line: 10 in the generated java file
> > > > >> > > org.apache.jasper.runtime.JspSourceDependent cannot be
> resolved to
> > > a
> > > > >> > > type
> >
> > > > >> > > An error occurred at line: 12 in the generated java file
> > > > >> > > JspFactory cannot be resolved to a type
> >
> > > > >> > > An error occurred at line: 12

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
What does the error message say?
No hints in the Problems window?

On Mon, Dec 6, 2010 at 5:42 PM, mscwd01  wrote:

> This still doesn't solve the issue for me, mapping a servlet url
> pattern to a jsp file always fails...
>
> On Dec 6, 1:33 pm, Jaroslav Záruba  wrote:
> > Thanks guys, moving AppEngine (and GWT) to the top in "Order and Export"
> > really solved this.
> >
> > Thanks a lot :)
> >
> >
> >
> >
> >
> >
> >
> > On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen  wrote:
> > > I had the same problem and fixed it by:
> >
> > > 1) Selecting project Root -> Goto File->Properties
> > > 2) Select Java Build Path
> > > 3) Select Order and Export
> > > 4) Move App Engine SDK 1.4.0 to the #1 position and GWT SDK 2.1.0 to
> the #2
> > > position
> >
> > > On Sun, Dec 5, 2010 at 7:28 AM, Sudhir  wrote:
> >
> > >> Same issue here... does anyone have a fix that doesn't involve re-
> > >> installing eclipse and recreating the entire project step by step?
> >
> > >> Sudhir
> >
> > >> On Dec 4, 4:37 pm, GoSharp Lite  wrote:
> > >> > I solve my jsp compilation issue by using below steps.
> >
> > >> > 1) Download and install "eclipse-java-helios-SR1-win32.zip".
> > >> > 2) Install plugins from "http://dl.google.com/eclipse/plugin/3.6";.
> > >> > 3) Download and install "java_ee_sdk-6u1-jdk-windows.exe".
> > >> > 4) Create a new and empty app using same project name and package as
> > >> > my old app.
> > >> > 5) Carefully copy all files in src and war from my old app into the
> > >> > new app.
> > >> > 6) Import all external libs from my old app into the new app.
> > >> > 7) Set Properties-Google-App Engine-ORM to server files which need
> > >> > enhancement.
> > >> > 8) Debug and no more "Unable to compile class for JSP".
> >
> > >> > On Dec 4, 11:47 am, Jerome  wrote:
> >
> > >> > > Sorry, no solution but a very similar issue with Eclipse Helios SR
> 1:
> >
> > >> > > org.apache.jasper.JasperException: Unable to compile class for
> JSP:
> >
> > >> > > An error occurred at line: 9 in the generated java file
> > >> > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
> >
> > >> > > An error occurred at line: 10 in the generated java file
> > >> > > org.apache.jasper.runtime.JspSourceDependent cannot be resolved to
> a
> > >> > > type
> >
> > >> > > An error occurred at line: 12 in the generated java file
> > >> > > JspFactory cannot be resolved to a type
> >
> > >> > > An error occurred at line: 12 in the generated java file
> > >> > > JspFactory cannot be resolved
> >
> > >> > > An error occurred at line: 23 in the generated java file
> > >> > > javax.el.ExpressionFactory cannot be resolved to a type
> >
> > >> > > An error occurred at line: 24 in the generated java file
> > >> > > org.apache.AnnotationProcessor cannot be resolved to a type
> >
> > >> > > An error occurred at line: 31 in the generated java file
> > >> > > _el_expressionfactory cannot be resolved
> >
> > >> > > An error occurred at line: 31 in the generated java file
> > >> > > _jspxFactory cannot be resolved
> >
> > >> > > An error occurred at line: 31 in the generated java file
> > >> > > The method getServletConfig() is undefined for the type plans_jsp
> >
> > >> > > An error occurred at line: 32 in the generated java file
> > >> > > _jsp_annotationprocessor cannot be resolved
> >
> > >> > > An error occurred at line: 32 in the generated java file
> > >> > > org.apache.AnnotationProcessor cannot be resolved to a type
> >
> > >> > > An error occurred at line: 32 in the generated java file
> > >> > > The method getServletConfig() is undefined for the type plans_jsp
> >
> > >> > > An error occurred at line: 32 in the generated java file
> > >> > > org.apache.AnnotationProcessor cannot be resolved to a type
> >
> > >> > > An error occurred at line: 38 in the generated java file
> > >> > > Htt

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
Thanks guys, moving AppEngine (and GWT) to the top in "Order and Export"
really solved this.

Thanks a lot :)

On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen  wrote:

> I had the same problem and fixed it by:
>
> 1) Selecting project Root -> Goto File->Properties
> 2) Select Java Build Path
> 3) Select Order and Export
> 4) Move App Engine SDK 1.4.0 to the #1 position and GWT SDK 2.1.0 to the #2
> position
>
> On Sun, Dec 5, 2010 at 7:28 AM, Sudhir  wrote:
>
>> Same issue here... does anyone have a fix that doesn't involve re-
>> installing eclipse and recreating the entire project step by step?
>>
>> Sudhir
>>
>> On Dec 4, 4:37 pm, GoSharp Lite  wrote:
>> > I solve my jsp compilation issue by using below steps.
>> >
>> > 1) Download and install "eclipse-java-helios-SR1-win32.zip".
>> > 2) Install plugins from "http://dl.google.com/eclipse/plugin/3.6";.
>> > 3) Download and install "java_ee_sdk-6u1-jdk-windows.exe".
>> > 4) Create a new and empty app using same project name and package as
>> > my old app.
>> > 5) Carefully copy all files in src and war from my old app into the
>> > new app.
>> > 6) Import all external libs from my old app into the new app.
>> > 7) Set Properties-Google-App Engine-ORM to server files which need
>> > enhancement.
>> > 8) Debug and no more "Unable to compile class for JSP".
>> >
>> > On Dec 4, 11:47 am, Jerome  wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > Sorry, no solution but a very similar issue with Eclipse Helios SR 1:
>> >
>> > > org.apache.jasper.JasperException: Unable to compile class for JSP:
>> >
>> > > An error occurred at line: 9 in the generated java file
>> > > org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type
>> >
>> > > An error occurred at line: 10 in the generated java file
>> > > org.apache.jasper.runtime.JspSourceDependent cannot be resolved to a
>> > > type
>> >
>> > > An error occurred at line: 12 in the generated java file
>> > > JspFactory cannot be resolved to a type
>> >
>> > > An error occurred at line: 12 in the generated java file
>> > > JspFactory cannot be resolved
>> >
>> > > An error occurred at line: 23 in the generated java file
>> > > javax.el.ExpressionFactory cannot be resolved to a type
>> >
>> > > An error occurred at line: 24 in the generated java file
>> > > org.apache.AnnotationProcessor cannot be resolved to a type
>> >
>> > > An error occurred at line: 31 in the generated java file
>> > > _el_expressionfactory cannot be resolved
>> >
>> > > An error occurred at line: 31 in the generated java file
>> > > _jspxFactory cannot be resolved
>> >
>> > > An error occurred at line: 31 in the generated java file
>> > > The method getServletConfig() is undefined for the type plans_jsp
>> >
>> > > An error occurred at line: 32 in the generated java file
>> > > _jsp_annotationprocessor cannot be resolved
>> >
>> > > An error occurred at line: 32 in the generated java file
>> > > org.apache.AnnotationProcessor cannot be resolved to a type
>> >
>> > > An error occurred at line: 32 in the generated java file
>> > > The method getServletConfig() is undefined for the type plans_jsp
>> >
>> > > An error occurred at line: 32 in the generated java file
>> > > org.apache.AnnotationProcessor cannot be resolved to a type
>> >
>> > > An error occurred at line: 38 in the generated java file
>> > > HttpServletRequest cannot be resolved to a type
>> >
>> > > An error occurred at line: 38 in the generated java file
>> > > HttpServletResponse cannot be resolved to a type
>> >
>> > > An error occurred at line: 39 in the generated java file
>> > > ServletException cannot be resolved to a type
>> >
>> > > An error occurred at line: 41 in the generated java file
>> > > PageContext cannot be resolved to a type
>> >
>> > > An error occurred at line: 42 in the generated java file
>> > > HttpSession cannot be resolved to a type
>> >
>> > > An error occurred at line: 43 in the generated java file
>> > > ServletContext cannot be resolved to a type
>> >
>> > > An error occurred at line: 44 in the generated java file
>> > > ServletConfig cannot be resolved to a type
>> >
>> > > An error occurred at line: 45 in the generated java file
>> > > JspWriter cannot be resolved to a type
>> >
>> > > An error occurred at line: 47 in the generated java file
>> > > JspWriter cannot be resolved to a type
>> >
>> > > An error occurred at line: 48 in the generated java file
>> > > PageContext cannot be resolved to a type
>> >
>> > > An error occurred at line: 53 in the generated java file
>> > > _jspxFactory cannot be resolved
>> >
>> > > An error occurred at line: 1,315 in the generated java file
>> > > SkipPageException cannot be resolved to a type
>> >
>> > > An error occurred at line: 1,322 in the generated java file
>> > > _jspxFactory cannot be resolved
>> >
>> > > Stacktrace:
>> > > at
>> > >
>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandl
>> er.java:
>> > > 92)
>> > > at
>> > >
>> org.apache.jasper.compiler.ErrorD

[appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Jaroslav Záruba
Same error, syncing the JARs has not helped. :(
It appears to me there's still hiding one incompatible (Jasper?)
library somewhere.

I guess I just have bad luck. Every time I upgrade GAE/GWT Eclipse
plugin or SDK I end up doing clean install of Eclipse. :(

On Dec 5, 7:36 pm, Rajeev Dayal  wrote:
> Hi,
>
> If you navigate to Project Properties -> Google -> Web Application, do you
> have the option "Launch and deploy from this directory" checked? If so, when
> you switched SDKs on your project, the Google Plugin for Eclipse should have
> copied over the new libraries from the SDK over to your war/WEB-INF/lib
> directory.
>
> Have you manually copied/modified/removed any of the App Engine-related
> libraries in the war/WEB-INF/lib folder? If so, then the Google Plugin for
> Eclipse will not overwrite those changes on an SDK switch. What will happen
> is that when switching SDKs, a warning will appear in the problems view,
> indicating that there is a mismatch between the SDK jars and those in your
> war/WEB-INF/lib folder. By selecting the warning and hitting CTRL-1, you'll
> be given the option to synchronize the jars in the new SDK with the jars in
> war/WEB-INF/lib.
>
> Rajeev
>
>
>
>
>
>
>
> On Fri, Dec 3, 2010 at 9:30 PM, GoSharp Lite  wrote:
> > I have just upgraded Eclipse Galileo with AppEngine version 1.4.0.
> > There seems to be a mismatch of Tomcat versions between pre-
> > compilation and execution.
>
> > Does anyone have a solution with jsp compilation issue?
>
> > Local server shows below logs with SDK 1.4.0 -
> > HTTP ERROR 500
>
> > Problem accessing /. Reason:
> > Unable to compile class for JSP:
>
> > An error occurred at line: -1 in the generated java file
> >    [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
> > \jsp\org\apache\jsp\GoChildWeb_jsp.java:8:
> > org.apache.jsp.GoChildWeb_jsp is not abstract and does not override
> > abstract method getDependants() in
> > org.apache.jasper.runtime.JspSourceDependent
> >    [javac] public final class GoChildWeb_jsp extends
> > org.apache.jasper.runtime.HttpJspBase
> >    [javac]              ^
>
> > An error occurred at line: -1 in the generated java file
> >    [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
> > \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in
> > org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in
> > org.apache.jasper.runtime.JspSourceDependent; attempting to use
> > incompatible return type
> >    [javac] found   : java.lang.Object
> >    [javac] required: java.util.List
> >    [javac]   public Object getDependants() {
> >    [javac]                 ^
>
> > An error occurred at line: -1 in the generated java file
> >    [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh
> > \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol
> >    [javac] symbol  : method
> > getJspApplicationContext(javax.servlet.ServletContext)
> >    [javac] location: class javax.servlet.jsp.JspFactory
> >    [javac]     _el_expressionfactory =
>
> > _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext( 
> > )).getExpressionFactory();
> >    [javac]                                         ^
> >    [javac] 3 errors
>
> > On Dec 4, 6:30 am, Alex Humesky  wrote:
> > > GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the
> > > delay.
>
> > > On Dec 3, 11:02 am, Don Schwarz  wrote:
>
> > > > My apologies.  We plan to have it up before the end of the day today.
>
> > > > On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton 
> > wrote:
> > > > > When will the Eclipse plugin update site be updated?
>
> > > > > The plugin is now version 1.4, but the SDK is still version 1.3.8.
>
> > > > > On Dec 3, 2:59 am, "Ikai Lan (Google)" 
> > > > > 
>
> > > > > wrote:
> > > > >> Dance dance robot is a bit older and the API may have changed
> > slightly (not
> > > > >> sure, I have not done a visual check), but it's a good example of
> > how to use
> > > > >> JSNI with the Channel API:
>
> > > > >>http://code.google.com/p/dance-dance-robot/
>
> > > > >> --
> > > > >> 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 2, 2010 at 3:50 PM, emerix  wrote:
> > > > >> > Great release! Are there some libraries/docs for GWT and the
> > Channel
> > > > >> > API ?
>
> > > > >> > On Dec 2, 10:17 pm, "Ikai Lan (Google)" 
> > > > >> > 
> > >
>
> > > > >> > wrote:
> > > > >> > > They're still rolling out:
>
> > > > >> > >http://code.google.com/appengine/docs/java/channel/
>
> > > > >> > > If you see an error, wait a bit and refresh.
>
> > > > >> > > --
> > > > >> > > Ikai Lan
> > > > >> > > Developer Programs Engineer, Google App Engine
> > > > >> > > Blogger:http://googleappengine.blogspot.com
> > > > >> > > Reddit:http://www.reddit.com/r/appengine
> > > > >> > > Twitter

[appengine-java] Re: app engine and db server elsewhere...

2010-07-03 Thread Jaroslav Záruba
No.

On Jul 3, 9:47 pm, emigrant  wrote:
> hi all,
> can i put my java app in google app engine and have conneciton to mysql
> database server outside?
>
> thanks a lot/

-- 
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] Saving my own JSPs to blobs - URLFetch Timeout

2010-07-03 Thread Jaroslav Záruba
Hi

I'd like to serve blobs created of JSPs. So the idea was to use
TaskQueue+URLFetch on partcilar JSP whenever the blob should get updated.
But only very rarely I succeed, usually I end with connection timeout. (Even
when the timeout is raised to 10s.)
When I call the JSP directly it loads way before 10s, even when I'm just
waking the JVM.

What are the things one should look after here? Or what are possible
pitfalls?

Could the (task) request invoking another (fetch) request on the same
machine be the problem?

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: regarding the keys in the datastore

2010-07-03 Thread Jaroslav Záruba
My guess is that this is to prevent collisions (or reduce the chances)
when two or more JVMs / datastore servers are auto-assigning the keys.

On Jul 3, 9:58 pm, Deepika M  wrote:
> Hi,
>
> I have a question about the keys in the datastore.
>
> The keys are in sorted order when I view in the local datastore. For
> example, when I initially store say 10 entities and the keys range from 8000
> to 8009, then next time when I store 10 entities, the keys range from
> 8010-8019. That is the next key starts in the ascending order.
>
> But when I store in the app engine, the keys are not in order and random
> keys are assigned. For example , the first key will be 3001 and the next key
> will be 8343. So, the next time when I store the entities, some of them are
> assigned keys between 3001 and 8343. Can anyone please explain why? Is there
> a possible way to have the keys in sorted order in the app engine datastore?
>
> Thanks,
> Deepika

-- 
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] GAE + Server-side Speed Traces?

2010-07-03 Thread Jaroslav Záruba
http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#ServerSideSpeedTraces
"With Speed Tracer 1.0 M1, you can now view sever-side timing data for
apps running on Google App Engine..."

I have upgraded, re-deployed to GAE, but I can't see no "Speed Trace"
above "Summary" in the "Network (resources)" section. Am I missing
something please?

How can I make sure the version I have is 1.0 M1?

After looking at the screenshot on URL above I even tried
http://gwt-bikeshed.appspot.com/Expenses.html - same result, no Speed
Traces. :(

-- 
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: TaskQueue: How reliable is ETA?

2010-07-03 Thread Jaroslav Záruba
Oh lord, seems like i'm ready to bed...

etaMillis(long etaMillis)
  Sets the approximate absolute time to execute.
vs.
countdownMillis(long countdownMillis)
  Set the number of milliseconds delay before execution of the
task.

Nevermind.

On Jul 3, 11:28 am, Jaroslav Záruba  wrote:
> Hi
>
> I knew that ETA does not guarantee exact time for a task to be run, but I
> was under impression that a task won't be run sooner than ETA. But now I'm
> adding task with etaMillis(31) and it is run right away, on a production
> server.
> Could anyone enlighten me, please?
>
> 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] TaskQueue: How reliable is ETA?

2010-07-03 Thread Jaroslav Záruba
Hi

I knew that ETA does not guarantee exact time for a task to be run, but I
was under impression that a task won't be run sooner than ETA. But now I'm
adding task with etaMillis(31) and it is run right away, on a production
server.
Could anyone enlighten me, please?

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-06-21 Thread Jaroslav Záruba
Resolved, kinda... I was redirecting with federatedIdentity="http://
myopenid.com/", letting user fill-in his username on the MyOpenId.com
website. (Just like it works with Google's end-point.) When I redirect
client with complete federatedIdentity like "http://jaroslav.xn--zruba-
xqa.myopenid.com/" all goes smooth.

Now I'm only dying of curiosity whether I was 'doing it wrong'? :P

On Jun 22, 1:14 am, Jaroslav Záruba  wrote:
> I'm trying to enable OpenID authentication for my app. With Google as
> IDP it works fine. With MyOpenId.com I get the 500 Error page after I
> approve authentication on their 
> site.http://app-id.appspot.com/_ah/openid_verify?...tonsofparameters...
>
> I never knew I should take care about /_ah/openid_verify, should I?
>
> On Jun 10, 12:54 pm, Rajkumar Radhakrishnan 
> wrote:
>
>
>
> > Thanks for enquiring, Ikai.
>
> > Was held up implementing some features - including integrating OpenId
> > support - that I missed reading the groups' emails for a few days.
>
> > Regarding snags.. except when I try to login with a Google Account created
> > using a Google Apps email-id, everything works fine.
>
> > *Details  :*
> > When users login using normal Google Accounts and normal Google Apps user
> > accounts, by providing the domain name, there are no issues.
>
> > But, when one has a Google Apps user account with email id
> > u...@myappsdomain.com and had created a Google Account providing this
> > email-id. Then, logging in with this Google Account (instead of Google Apps
> > account) an Internal Server Error occurs..
>
> > Error: Server Error
> > The server encountered an error and could not complete your request.
>
> > If the problem persists, please report your problem and mention this error
> > message and the query that caused it.
>
> > The URL flow at is as given below :
>
> > The initial URL is something 
> > like..http://MY.DOMAIN.COM/_ah/login_redir?claimid=gmail.com&continue=http:...
>
> > ..which gets HTTP 302 to a URL of the 
> > form:https://www.google.com/accounts/o8/ud?source=gmail.com
> > &openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
> > &openid.mode=checkid_setup
> > &openid.claimed_id=http%3A%2F%2Fspecs.openid.net
> > %2Fauth%2F2.0%2Fidentifier_select
> > &openid.identity=http%3A%2F%2Fspecs.openid.net
> > %2Fauth%2F2.0%2Fidentifier_select
> > &openid.assoc_handle=...
> > &openid.return_to=http%3A%2F%2FMY.DOMAIN.COM
> > %2F_ah%2Fopenid_verify%3Fcontinue%3Dhttp%253A%252F%252FMY.DOMAIN.COM
> > %252F%26gx.rp_st%3D...
> > &openid.realm=http%3A%2F%2FMY.DOMAIN.COM
> > &openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0
> > &openid.ax.mode=fetch_request
> > &openid.ax.type.attr0=http%3A%2F%2Faxschema.org%2Fcontact%2Femail
> > &openid.ax.type.attr1=http%3A%2F%2Fschema.openid.net%2Fcontact%2Femail
> > &openid.ax.required=attr0%2Cattr1%2Cauto2
> > &openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1
> > &openid.sreg.required=email
> > &openid.ns.ui=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fui%2F1.0
> > &openid.ax.type.auto2=http%3A%2F%2Fwww.google.com
> > %2Faccounts%2Fapi%2Ffederated-login%2Fid
>
> > ..which then gets 302 to the URL of the form 
> > :http://MY.DOMAIN.COM/_ah/openid_verify?
> > continue=http%3A%2F%2FMY.DOMAIN.COM%2F
> > &gx.rp_st=...
> > &openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
> > &openid.mode=id_res
> > &openid.op_endpoint=https%3A%2F%2Fwww.google.com
> > %2Faccounts%2Fo8%2Fud%3Fsource%3Dgmail.com
> > &openid.response_nonce=2010-06-10..
> > &openid.return_to=http%3A%2F%2FMY.DOMAIN.COM
> > %2F_ah%2Fopenid_verify%3Fcontinue%3Dhttp%253A%252F%252FMY.DOMAIN.COM
> > %252F%26gx.rp_st%...
> > &openid.assoc_handle=...
> > &openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_n 
> > once%2Cassoc_handle
> > &openid.sig=..
> > &openid.identity=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3D..
> > &openid.claimed_id=https%3A%2F%2Fwww.google.com
> > %2Faccounts%2Fo8%2Fid%3Fid%3D..
>
> > There are no errors when viewed from the App Engine admin console.
>
> > I use GAE Python (also making a CC to the python groups) and the default
> > API. That is, users.create_login_url(redirect_to) for Google Account login
> > and users.create_login_url(redirect_to, None, apps_openid_url) when Apps
> > domain is provided.
>
> > From the URL flow, I see that the default domain is taken to be gm

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

2010-06-21 Thread Jaroslav Záruba
I'm trying to enable OpenID authentication for my app. With Google as
IDP it works fine. With MyOpenId.com I get the 500 Error page after I
approve authentication on their site.
http://app-id.appspot.com/_ah/openid_verify?...tonsofparameters...

I never knew I should take care about /_ah/openid_verify, should I?

On Jun 10, 12:54 pm, Rajkumar Radhakrishnan 
wrote:
> Thanks for enquiring, Ikai.
>
> Was held up implementing some features - including integrating OpenId
> support - that I missed reading the groups' emails for a few days.
>
> Regarding snags.. except when I try to login with a Google Account created
> using a Google Apps email-id, everything works fine.
>
> *Details  :*
> When users login using normal Google Accounts and normal Google Apps user
> accounts, by providing the domain name, there are no issues.
>
> But, when one has a Google Apps user account with email id
> u...@myappsdomain.com and had created a Google Account providing this
> email-id. Then, logging in with this Google Account (instead of Google Apps
> account) an Internal Server Error occurs..
>
> Error: Server Error
> The server encountered an error and could not complete your request.
>
> If the problem persists, please report your problem and mention this error
> message and the query that caused it.
>
> The URL flow at is as given below :
>
> The initial URL is something 
> like..http://MY.DOMAIN.COM/_ah/login_redir?claimid=gmail.com&continue=http:...
>
> ..which gets HTTP 302 to a URL of the 
> form:https://www.google.com/accounts/o8/ud?source=gmail.com
> &openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
> &openid.mode=checkid_setup
> &openid.claimed_id=http%3A%2F%2Fspecs.openid.net
> %2Fauth%2F2.0%2Fidentifier_select
> &openid.identity=http%3A%2F%2Fspecs.openid.net
> %2Fauth%2F2.0%2Fidentifier_select
> &openid.assoc_handle=...
> &openid.return_to=http%3A%2F%2FMY.DOMAIN.COM
> %2F_ah%2Fopenid_verify%3Fcontinue%3Dhttp%253A%252F%252FMY.DOMAIN.COM
> %252F%26gx.rp_st%3D...
> &openid.realm=http%3A%2F%2FMY.DOMAIN.COM
> &openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0
> &openid.ax.mode=fetch_request
> &openid.ax.type.attr0=http%3A%2F%2Faxschema.org%2Fcontact%2Femail
> &openid.ax.type.attr1=http%3A%2F%2Fschema.openid.net%2Fcontact%2Femail
> &openid.ax.required=attr0%2Cattr1%2Cauto2
> &openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1
> &openid.sreg.required=email
> &openid.ns.ui=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fui%2F1.0
> &openid.ax.type.auto2=http%3A%2F%2Fwww.google.com
> %2Faccounts%2Fapi%2Ffederated-login%2Fid
>
> ..which then gets 302 to the URL of the form 
> :http://MY.DOMAIN.COM/_ah/openid_verify?
> continue=http%3A%2F%2FMY.DOMAIN.COM%2F
> &gx.rp_st=...
> &openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
> &openid.mode=id_res
> &openid.op_endpoint=https%3A%2F%2Fwww.google.com
> %2Faccounts%2Fo8%2Fud%3Fsource%3Dgmail.com
> &openid.response_nonce=2010-06-10..
> &openid.return_to=http%3A%2F%2FMY.DOMAIN.COM
> %2F_ah%2Fopenid_verify%3Fcontinue%3Dhttp%253A%252F%252FMY.DOMAIN.COM
> %252F%26gx.rp_st%...
> &openid.assoc_handle=...
> &openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_n 
> once%2Cassoc_handle
> &openid.sig=..
> &openid.identity=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3D..
> &openid.claimed_id=https%3A%2F%2Fwww.google.com
> %2Faccounts%2Fo8%2Fid%3Fid%3D..
>
> There are no errors when viewed from the App Engine admin console.
>
> I use GAE Python (also making a CC to the python groups) and the default
> API. That is, users.create_login_url(redirect_to) for Google Account login
> and users.create_login_url(redirect_to, None, apps_openid_url) when Apps
> domain is provided.
>
> From the URL flow, I see that the default domain is taken to be gmail.com,
> when not providing the domain. May the issue is because of this. I guess
> there will issues for users having Google Accounts with "@googlemail.com"
> domain too. Is there is a better way to in which I should use the API to
> avoid this issue, or should I file an issue ?
>
> I also remember getting the error message mentioned in this issue 
> :http://code.google.com/p/googleappengine/issues/detail?id=3270
>
> But, not able to reproduce it now.
>
> Thanks & Regards,
> R.Rajkumar
>
> On Mon, May 17, 2010 at 11:02 PM, Ikai L (Google)  wrote:
>
>
>
> > Thanks! Did you run into any snags doing it?
>
> > On Fri, May 14, 2010 at 4:17 AM, Rajkumar Radhakrishnan <
> > r.rajku...@gmail.com> wrote:
>
> >> Lots of love to you folks, for OpenID !!
> >> I was almost tempted to go in for temporary libraries.. until the feature
> >> arrives.
>
> >> And the way, you made it switchable via admin console (instead of having
> >> to redeploy) is good too.
>
> >> Thank you very much.
>
> >> Regards,
> >> R.Rajkumar
>
> >> On Fri, May 14, 2010 at 6:46 AM, yjun hu  wrote:
>
> >>> maybe google app engine shall cancel the 30seconds limit,  most of
> >>> backend process need more than 30seconds
>
> >>> On Fri, May 14, 2010 

[appengine-java] datastore Category type/class... vs. String

2010-06-12 Thread Jaroslav Záruba
This is probably a silly question... few of them

How does Category differ from good old String? Does it take less space
in the datastore or is it stored as String?

And if one had only tens of tags, would it be any good to tag entities
rather using numbers and translate them afterwards? (Would it be
faster when querying? Would it take less space?)

Simple RTFM with link would do, the docs isn't exactly revealing:
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Category.html#hashCode()

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] 500 when web.xml contains certain kind of coments

2010-06-06 Thread Jaroslav Záruba
Hello

GAE seems to have troubles parsing web.xml with what I believe are
perfectly valid XML-comments:
--

intense-debate-account-id

site1accId



--
My attempts to deploy the app ended up with some generic 500. When I
removed those all went well.

Am I doing something wrong or is this a (super-minor) bug?

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: Persisting object with generic supertype

2010-05-26 Thread Jaroslav Záruba
So I'm trying again now...
After setting the (hopefully) proper strategy I get different
exception from the Enhancer:
--
27.5.2010 2:51:42 org.datanucleus.enhancer.DataNucleusEnhancer main
SEVERE: DataNucleus Enhancer completed with an error. Please review
the enhancer log for full details. Some classes may have been enhanced
but some caused errors
Errors were encountered when loading the specified MetaData files and
classes. See the nested exceptions for details
org.datanucleus.exceptions.NucleusUserException: Errors were
encountered when loading the specified MetaData files and classes. See
the nested exceptions for details
...
...
Caused by: java.lang.IllegalStateException: Unknown type: I
--

And this is what the header of my abstract class looks like:
--
@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class EntityIndex
extends HasKey
...
--

Can you see what am I doing wrong this time, please?


I have been able to find only one thread where this error-message
occurs: 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/b022faa2210603e
...but I wasn't able to take anything from that conversation. :(

On May 18, 1:47 pm, Didier Durand  wrote:
> Hi,
>
> Did you correctly parametrize the storage strategy for inheritance at
> the root level of your hierarchy tree:
> checkhttp://www.datanucleus.org/products/accessplatform/jdo/orm/inheritanc...
> andhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html...
>
> I remember having such a problem before defining correct storage
> strategy.
>
> Let us know if it helps
>
> didier
>
> On May 18, 12:42 pm, Jaroslav Záruba 
> wrote:
>
>
>
>
>
> > Hello
>
> > Following is what I get after adding new field to my class:
> > --
> > org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The
> > class "net.jzaruba.appengine1.Article" is not persistable. This means that
> > it either hasnt been enhanced, or that the enhanced version of the file is
> > not in the CLASSPATH (or is hidden by an unenhanced version), or the
> > Meta-Data/annotations for the class are not found.
> > --
>
> > Until now the Article got persisted without any issues.
> > The newly added field has generic type as its supertype.
> > Is there anything suspicious in my code?
>
> > Article:
>
> > @PersistenceCapable(detachable="true")
> > public class Article
> >         extends HasKey
> > {
> >         // ...
>
> >         @Persistent(defaultFetchGroup = "true")
> >         @Extension(vendorName = "datanucleus", key = "gae.unindexed", 
> > value="true")
> >         private ArticleCategoryIndex tagIndex = null;
> >         // has getter and setter below (gets assigned and populated only 
> > when
> > non-empty)
>
> >         // getters, setters, ...
>
> > }
>
> > ArticleCategoryIndex:
>
> > @PersistenceCapable
> > public class ArticleCategoryIndex
> >         extends EntityIndex
> > {
> >         ArticleCategoryIndex(Article article)
> >         {
> >                 super(article);
> >         }
>
> > }
>
> > EntityIndex:
>
> > @PersistenceCapable
> > public abstract class EntityIndex
> > {
> >         @PrimaryKey
> >         @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> >         private Key key;
>
> >         @Persistent
> >         @Extension(vendorName="datanucleus", key="gae.parent-pk", 
> > value="true")
> >         private Key parentKey;
>
> >         @Persistent
> >         private List items = new LinkedList();
>
> >         public EntityIndex(E entity)
> >         {
> >                 setParentKey(entity.getKey());
> >         }
>
> >         // getters, setters, ...
>
> > }
>
> > Could anyone tell me what I am doing wrong here, please?
>
> > 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 
> > 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.
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Eclipse plugin & Subclipse issue

2010-05-25 Thread Jaroslav Záruba
Once I had to install Subclipse again after installing GWT, on
Windows. No issues since then.

On May 25, 1:42 am, a701440  wrote:
> I am running Eclipse 3.5 on Ubuntu 10.04 64 bit. I had subclipse
> subversion integration installed and working fine. I then installed
> the google app engine plugin using the 3.5 update site.
> After the restart all subclipse plugin items are gone from the
> Eclipse. There is no SVN Explorer, Subversion perspective, etc. There
> Is clearly some kind of conflict.
> Any ideas if these two can live together on Linux ?
> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Impossible to re-arrange items in a collection?

2010-05-25 Thread Jaroslav Záruba
Would someone from Google please confirm that Datastore does not
support changing the order of items stored in LinkedList or
LinkedHashSet? (I.e. not adding/removing single item, just changing
their arbitrary order.)
According to what I have been able to find out (by testing and asking
on Stackoverflow.com) it seems so, but I would like to know for sure
so I can stop trying, and start working on different solution instead.
(Also I'd like to attribute the answer I got on SO.)

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] How to change order of items in a collection property?

2010-05-24 Thread Jaroslav Záruba
Hello

Could anyone please point me to a document that mentions what is the
proper way of changing order of items in a collection? I ran out of
ideas.

When I assign the newly created collection everything seems OK, but
after committing the transaction the collection is just gone. (With or
without makePersistent on the parent object and/or makePersistentAll
on the new collection.)
When I clear() the original collection and addAll() from the
rearranged one the items become deleted (as mentioned before, due the
clear() call) ... which make it impossible to modify the items further
in the very transaction.

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: How to re-order items in a collection? Items becoming 'deleted'.

2010-05-24 Thread Jaroslav Záruba
So I'm gonna answer my own question again. :)

Persistence manager understands
--
subEvents.clear();
--
as 'delete the content of this list'.

So I will just have to figure out another way of assigning the newly
arranged items. (I chose this one when LinkedList did not pass as
persistable for some reason.)

On May 24, 3:58 am, Jaroslav Záruba  wrote:
> I should have mentioned that the collection-property is not in default
> fetch group, if it makes any difference...?
>
> --
> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Persisting object with generic supertype

2010-05-23 Thread Jaroslav Záruba
Thank you for the reply.

I'm seeing "InheritanceStrategy.SUBCLASS_TABLE" for the very first
time, therefore most likely I didn't set up the storage strategy
properly.
I will get back to this approach soon, so I will definitely let you
know whether it helped or not.

Thanks again, regards
  J. Záruba

On May 18, 1:47 pm, Didier Durand  wrote:
> Hi,
>
> Did you correctly parametrize the storage strategy for inheritance at
> the root level of your hierarchy tree:
> checkhttp://www.datanucleus.org/products/accessplatform/jdo/orm/inheritanc...
> andhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html...
>
> I remember having such a problem before defining correct storage
> strategy.
>
> Let us know if it helps
>
> didier
>
> On May 18, 12:42 pm,JaroslavZáruba
> wrote:
>
>
>
>
>
> > Hello
>
> > Following is what I get after adding new field to my class:
> > --
> > org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The
> > class "net.jzaruba.appengine1.Article" is not persistable. This means that
> > it either hasnt been enhanced, or that the enhanced version of the file is
> > not in the CLASSPATH (or is hidden by an unenhanced version), or the
> > Meta-Data/annotations for the class are not found.
> > --
>
> > Until now the Article got persisted without any issues.
> > The newly added field has generic type as its supertype.
> > Is there anything suspicious in my code?
>
> > Article:
>
> > @PersistenceCapable(detachable="true")
> > public class Article
> >         extends HasKey
> > {
> >         // ...
>
> >         @Persistent(defaultFetchGroup = "true")
> >         @Extension(vendorName = "datanucleus", key = "gae.unindexed", 
> > value="true")
> >         private ArticleCategoryIndex tagIndex = null;
> >         // has getter and setter below (gets assigned and populated only 
> > when
> > non-empty)
>
> >         // getters, setters, ...
>
> > }
>
> > ArticleCategoryIndex:
>
> > @PersistenceCapable
> > public class ArticleCategoryIndex
> >         extends EntityIndex
> > {
> >         ArticleCategoryIndex(Article article)
> >         {
> >                 super(article);
> >         }
>
> > }
>
> > EntityIndex:
>
> > @PersistenceCapable
> > public abstract class EntityIndex
> > {
> >         @PrimaryKey
> >         @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> >         private Key key;
>
> >         @Persistent
> >         @Extension(vendorName="datanucleus", key="gae.parent-pk", 
> > value="true")
> >         private Key parentKey;
>
> >         @Persistent
> >         private List items = new LinkedList();
>
> >         public EntityIndex(E entity)
> >         {
> >                 setParentKey(entity.getKey());
> >         }
>
> >         // getters, setters, ...
>
> > }
>
> > Could anyone tell me what I am doing wrong here, please?
>
> > 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 
> > 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.
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Would Blob properties slow down my queries?

2010-05-23 Thread Jaroslav Záruba
I intended to put bytes of article.jsp output as a property on Article
class, so my concern was whether it could slow the query down should I
fetch tens or hundreds of Article.class entities. I have already
changed my mind here though.
But I guess I will run into similar situation one day again, thanks
for the reply.

Regards
  J. Záruba

On May 11, 1:07 am, "Ikai L (Google)"  wrote:
> Entities are fetched whole, so if you have a large Blob property and you are
> fetching it all the time, it would take longer than fetching an entity
> without a Blob property. Unless you're frequently (every request) retrieving
> a large Blob, this shouldn't be *that* expensive. Small blobs shouldn't take
> that much longer. Your mileage may vary, so you'll have to do some
> benchmarking to see.
>
> What are you thinking of doing?
>
> On Sun, May 9, 2010 at 1:22 PM, Jaroslav Záruba
> wrote:
>
>
>
>
>
> > Will a query be any faster/slower depending on whether the entities
> > being queried/returned have any Blob properties?
> > (Or is there no difference until I actually call a getter for such
> > property?)
>
> > 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 > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Relations, Google App Engine
> Twitter:http://twitter.com/ikai
> Delicious:http://delicious.com/ikailan
>
> 
> Google App Engine links:
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine
>
> --
> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to re-order items in a collection? Items becoming 'deleted'.

2010-05-23 Thread Jaroslav Záruba
I should have mentioned that the collection-property is not in default
fetch group, if it makes any difference...?

-- 
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] How to re-order items in a collection? Items becoming 'deleted'.

2010-05-23 Thread Jaroslav Záruba
Hello

I want to change order of objects in a collection, and then to change
some fields of those items. Unfortunately the items somehow become
'deleted'.

This is what I do...
--
if(someCondition)
{
  // events in the original order (mainEvent is not instance of the
Event sub/class BTW)
  List subEvents = mainEvent.getSubEvents();

  // re-order the events {
  Map eventMap = new HashMap();
  for(Event event : subEvents)
eventMap.put(event.getKey(), event);

  List eventsOrdered = new LinkedList();
  JSONArray keysOrdered = new
JSONArray(request.getParameter("order"));
  Key eventKey;
  for(int i = 0; i < keysOrdered.length(); i++)
  {
eventKey = KeyFactory.stringToKey(keysOrdered.getString(i));
eventsOrdered.add(eventMap.put(eventKey, eventMap.get(eventKey)));
  }
  // }

  // put re-ordered items back in their place {
  subEvents.clear();
  subEvents.addAll(eventsOrdered);
  // }

  persistenceManager.makePersistent(mainEvent);

  /*
   * here ends the block in which mainEvent exists,
   * the list of its items exists in parent scope in itemsOrdered
variable
   */
  itemsOrdered = subEvents;
}
else
  itemsOrdered = getItemsUsingAlternateApproach();
--

Now when I try to set a field on any of the items I get "Cannot write
fields to a deleted object".

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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] Persisting object with generic supertype

2010-05-18 Thread Jaroslav Záruba
Hello

Following is what I get after adding new field to my class:
--
org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The
class "net.jzaruba.appengine1.Article" is not persistable. This means that
it either hasnt been enhanced, or that the enhanced version of the file is
not in the CLASSPATH (or is hidden by an unenhanced version), or the
Meta-Data/annotations for the class are not found.
--

Until now the Article got persisted without any issues.
The newly added field has generic type as its supertype.
Is there anything suspicious in my code?

Article:

@PersistenceCapable(detachable="true")
public class Article
extends HasKey
{
// ...

@Persistent(defaultFetchGroup = "true")
@Extension(vendorName = "datanucleus", key = "gae.unindexed", 
value="true")
private ArticleCategoryIndex tagIndex = null;
// has getter and setter below (gets assigned and populated only when
non-empty)

// getters, setters, ...
}


ArticleCategoryIndex:

@PersistenceCapable
public class ArticleCategoryIndex
extends EntityIndex
{
ArticleCategoryIndex(Article article)
{
super(article);
}
}


EntityIndex:

@PersistenceCapable
public abstract class EntityIndex
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
@Extension(vendorName="datanucleus", key="gae.parent-pk", value="true")
private Key parentKey;

@Persistent
private List items = new LinkedList();

public EntityIndex(E entity)
{
setParentKey(entity.getKey());
}

// getters, setters, ...
}


Could anyone tell me what I am doing wrong here, please?

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] Mailservice - creating a conversation

2010-05-15 Thread Jaroslav Záruba
Hello

I'd like to send several mail messages so that they create a
conversation in the recipient's mailbox. I assume this is accomplished
by 'Message-ID', 'In-Reply-To' and maybe also 'References' headers.
Unfortunately:
"For security purposes, the Mail service does not allow arbitrary
headers on outgoing email messages. Some headers are overridden by the
Mail service, such as the message send date. Other headers added to
the outgoing message are stripped."
http://code.google.com/appengine/docs/java/mail/usingjavamail.html#Messages_and_Headers

Is there a chance GAE would white-list some headers and add their
respective methods to Mailservice API?

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: elegant way of implementing sequence generator

2010-05-14 Thread Jaroslav Záruba
Does it mean Memcached === the Memcache we use within AppEngine?
I'm particularly interested in whether AppEngine Memcache is shared
among all the JVMs that have been started for my application. Based on
this I assume yes:
"High performance scalable web applications often use _a distributed_
in-memory data cache in front of or in place of robust persistent
storage for some tasks. App Engine includes a memory cache service for
this purpose."
...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

> http://code.google.com/p/memcached/wiki/FAQ
>
> 
>
> On Sat, Apr 3, 2010 at 12:59 AM, aswath satrasala <
>
>
>
>
>
> aswath.satras...@gmail.com> wrote:
> > Hello Ikai,
> > I am interested in Sequences, sequence starting from a initial value and
> > increments.
> > Can you little bit elaborate here on what is the risk with volatile here
> > when using memcache.
>
> > Regards
> > -Aswath
>
> > On Sat, Mar 6, 2010 at 1:05 AM, Ikai L (Google)  wrote:
>
> >> Have you looked into Memcache's INCR?
>
> >>http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
> >> ,
> >> long)
>
> >> This'll do it atomically, but you run the risk of it being volatile,
> >> so you'll have to account for that in your client code.
>
> >> On Tue, Mar 2, 2010 at 11:40 PM, legendlink  wrote:
> >> > hi, i wanted to have a sequence generator that increments by x value
> >> > everytime it generates a value. if i would create the sequence
> >> > generator by using the datastore, it is likely that data contention
> >> > would occurr if there is high access times.
>
> >> > i have looked into the sample code of max ross in the google code
> >> > repository (SequenceExamplesJDO.java) and  think this is limited to
> >> > increment by 1 only and not increment by x value.
>
> >> > if sharding technique is used, my concern is that i might not get the
> >> > right sequence.
>
> >> > what is the best/elegant way of doing sequence generator that
> >> > increments x value?
>
> >> > --
> >> > 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.
>
> >> --
> >> 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 >>  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 > 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 
> Enginehttp://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.



[appengine-java] Would Blob properties slow down my queries?

2010-05-09 Thread Jaroslav Záruba
Will a query be any faster/slower depending on whether the entities
being queried/returned have any Blob properties?
(Or is there no difference until I actually call a getter for such
property?)

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: The website has a programming error.

2010-05-09 Thread Jaroslav Záruba
I would try to minimize the JSP-code to the point where it can be
shown to other people to inspect it. :) And is this a message that is
shown in your browser or is it what is in your Logs?

On May 8, 3:25 pm, Jitu Surve  wrote:
> I have written simple web application using GAE that contains .jsp
> file.  In my local developement environment .jsp fine works fine, but
> when I deploy it on cloud, and try to access it I get the error:
>
> "The website cannot display the page
>    Most likely causes:
> •The website is under maintenance.
> •The website has a programming error. "
>
> Any suggestions?
>
> Thanks,
> Jitu
>
> --
> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: "App Engine datastore does not support operator - ."

2010-05-08 Thread Jaroslav Záruba
i think i'm gonna reply to myself :)

On May 6, 11:05 pm, Jaroslav Záruba  wrote:
> Why does the example query above use "parent-pk" instead of "customerKey"?
> Is it a mistake or should the query/operator actually work somehow?

still don't have a clue

> And why does the customerKey need to be defined with the @Extension
> annotation?

because then the Datastore takes care of that key automatically, and
it actually won't allow me to set both (which makes sense of course)

> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Deleted blob is... not deleted [Blobservice, Datastore]

2010-05-08 Thread Jaroslav Záruba
ah, it's gone now... quite a delay but i'm fine with that :)

On May 8, 9:01 am, Jaroslav Záruba  wrote:
> Hello
>
> I have deleted a blob but somehow it is still 
> available:http://gae.mma.cz/image/images/JirkaRus.cz.png
>
> (Blob viewer shows I have 0 blobs in my datastore.)
>
> I have searched for some posts about this but people usually can not
> delete from console (+1).
>
> Maybe there is something wrong with the way I deleted my blobs...?
> --
> List blobsToDelete = new LinkedList();
>
> Iterator iterator = new BlobInfoFactory().queryBlobInfos();
> while(iterator.hasNext())
>   blobsToDelete.add(iterator.next());
>
> BlobstoreService blobstoreService =
> BlobstoreServiceFactory.getBlobstoreService();
> for(BlobInfo blobInfo : blobsToDelete)
>   blobstoreService.delete(blobInfo.getBlobKey());
>
> response.getOutputStream().print("deleted");
> session.invalidate();
> --
>
> I intended caching images as much as possible but this kinda exceeds
> my expectations. :P
>
> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Deleted blob is... not deleted [Blobservice, Datastore]

2010-05-08 Thread Jaroslav Záruba
Hello

I have deleted a blob but somehow it is still available:
http://gae.mma.cz/image/images/JirkaRus.cz.png

(Blob viewer shows I have 0 blobs in my datastore.)

I have searched for some posts about this but people usually can not
delete from console (+1).

Maybe there is something wrong with the way I deleted my blobs...?
--
List blobsToDelete = new LinkedList();

Iterator iterator = new BlobInfoFactory().queryBlobInfos();
while(iterator.hasNext())
  blobsToDelete.add(iterator.next());

BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
for(BlobInfo blobInfo : blobsToDelete)
  blobstoreService.delete(blobInfo.getBlobKey());

response.getOutputStream().print("deleted");
session.invalidate();
--

I intended caching images as much as possible but this kinda exceeds
my expectations. :P

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] "App Engine datastore does not support operator - ."

2010-05-06 Thread Jaroslav Záruba
Hello

"App Engine datastore does not support operator  - ."
...this is what I get when trying to mimic the following query example
from Uses
For 
Transactions
.

   query = pm.newQuery("select from Account " +
"where *parent-pk* == keyParam " +
"parameters Key keyParam");


I'm trying to obtain entity parent using  its key which I keep in a property
of that child entity. (Assuming it is not possible to obtain parent key out
of child key.)

@Persistent
@Extension(vendorName="datanucleus", key="gae.*parent-pk*", value="true")
private Key customerKey;


Why does the example query above use "parent-pk" instead of "customerKey"?
Is it a mistake or should the query/operator actually work somehow? And why
does the customerKey need to be defined with the @Extension annotation?

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] How to return entities A) with known parentKey B) with no parent?

2010-05-05 Thread Jaroslav Záruba
Hello

I have a structure defined solely by the keys (i.e. no field for
parentKey reference), and I can't figure out how to read A) _direct_
descendant of known parentKey or B) root entities only. I have found
posts asking about this but no answer... Either the responses were
suggesting to add the parentKey reference (and using it in a filter)
or those posts remained without a response at all.

Also, if "Entities Without a Filtered Property Are Never Returned by a
Query", what's the propery way of reading all root entites of given
kind?

-- 
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: How to make BlobServlet send non-empty response?

2010-05-05 Thread Jaroslav Záruba
I have already got it working...
In my "wrapping" servlet I simply copy the POST-data into a stream of the
uploadURL; this creates blobs and calls then "successUrl" where I store the
BlobInfo. Wrapping servlet then sends single character to client.

As for your suggestion, like I said, I'm using a Flash component SWFUpload,
not a form.

There are two issues with current Flash, at least on Windows:
1) It can not send multiple files in single POST/multi-part request.
Therefore the component needs to cycle and make multiple requests.
(Document/page remains loaded though.)
2) When the uploading request does return empty response (even when the
upload was successful) the component goes nuts.
Therefore I need the receiving target to send at least "." in response body.

Regards
  J. Záruba

On Wed, May 5, 2010 at 8:02 AM, bimbo jones  wrote:

> The way we do it(don't know if it is the best) is to use the blobstore api
> to get the url to put in the form action.
>
> on the 1st servlet you get the blobinfo and what not, then you redirect to
> another servlet that can write to the form complete handler.
> I'll share some code later today.
>
>
> 2010/5/4 Jaroslav Záruba 
>
>> Or do you mean I should read the post data, send them to uploadUrl
>> using another request I create, and then write response to the
>> original one...?
>> That might probably work... :P
>>
>> On May 4, 6:43 pm, Jaroslav Záruba  wrote:
>> > Can you be more specific please?
>> > (After redirecting request you can't write to its response.)
>> >
>> > Regards
>> >   J. Záruba
>> >
>> > On May 4, 10:01 am, bimbo jones  wrote:
>> >
>> >
>> >
>> >
>> >
>> > > hi,
>> >
>> > > You can redirect the upload servlet to another servlet that responds.
>> >
>> > > 2010/5/3 Jaroslav Záruba 
>> >
>> > > > I'm trying to use SWFUpload for uploading images in my application
>> but
>> > > > either this particular component or Flash does not like empty
>> > > > responses.
>> > > > Is it possible somehow to get any content in the response-body from
>> > > > uploadUrl?
>> >
>> > > > 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> 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 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
>> .
>> > 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
>> .
>> 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: How to make BlobServlet send non-empty response?

2010-05-04 Thread Jaroslav Záruba
Or do you mean I should read the post data, send them to uploadUrl
using another request I create, and then write response to the
original one...?
That might probably work... :P

On May 4, 6:43 pm, Jaroslav Záruba  wrote:
> Can you be more specific please?
> (After redirecting request you can't write to its response.)
>
> Regards
>   J. Záruba
>
> On May 4, 10:01 am, bimbo jones  wrote:
>
>
>
>
>
> > hi,
>
> > You can redirect the upload servlet to another servlet that responds.
>
> > 2010/5/3 Jaroslav Záruba 
>
> > > I'm trying to use SWFUpload for uploading images in my application but
> > > either this particular component or Flash does not like empty
> > > responses.
> > > Is it possible somehow to get any content in the response-body from
> > > uploadUrl?
>
> > > 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 > >  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 
> > 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.
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to make BlobServlet send non-empty response?

2010-05-04 Thread Jaroslav Záruba
Can you be more specific please?
(After redirecting request you can't write to its response.)

Regards
  J. Záruba

On May 4, 10:01 am, bimbo jones  wrote:
> hi,
>
> You can redirect the upload servlet to another servlet that responds.
>
> 2010/5/3 Jaroslav Záruba 
>
>
>
>
>
> > I'm trying to use SWFUpload for uploading images in my application but
> > either this particular component or Flash does not like empty
> > responses.
> > Is it possible somehow to get any content in the response-body from
> > uploadUrl?
>
> > 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 > 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] How to make BlobServlet send non-empty response?

2010-05-03 Thread Jaroslav Záruba
I'm trying to use SWFUpload for uploading images in my application but
either this particular component or Flash does not like empty
responses.
Is it possible somehow to get any content in the response-body from
uploadUrl?

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: Skipping files when deploying?

2010-05-02 Thread Jaroslav Záruba
Just to make things clear... Of course I read this piece of
documentation, and if you are referring to static-files/exclude, my
assumption has been that this just excludes matching files from being
treated as static.
Now when you posted this URL just to be sure, I actually tested it,
and those files are still uploaded.

But maybe I'm still missing something...?

On May 2, 8:36 pm, Jaroslav Záruba  wrote:
> Can you be more specific? I mean where does it say how to mark files
> "do not upload this"?
> Thank you.
>
> On May 2, 6:41 pm, Peter Ondruska  wrote:
>
>
>
>
>
> > code.google.com/appengine/docs/java/config/appconfig.html
>
> > On May 2, 5:38 pm, Jaroslav Záruba  wrote:
>
> > > When deploying a Python app files can be filtered-out from the
> > > deployment process (i.e. not uploaded to GAE), as described 
> > > here:http://code.google.com/appengine/docs/python/config/appconfig.html#Sk...
>
> > > Is this possible also with Java app?
>
> > > 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 
> > > 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.
> > 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.
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Skipping files when deploying?

2010-05-02 Thread Jaroslav Záruba
Can you be more specific? I mean where does it say how to mark files
"do not upload this"?
Thank you.

On May 2, 6:41 pm, Peter Ondruska  wrote:
> code.google.com/appengine/docs/java/config/appconfig.html
>
> On May 2, 5:38 pm, Jaroslav Záruba  wrote:
>
> > When deploying a Python app files can be filtered-out from the
> > deployment process (i.e. not uploaded to GAE), as described 
> > here:http://code.google.com/appengine/docs/python/config/appconfig.html#Sk...
>
> > Is this possible also with Java app?
>
> > 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 
> > 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.
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Skipping files when deploying?

2010-05-02 Thread Jaroslav Záruba
When deploying a Python app files can be filtered-out from the
deployment process (i.e. not uploaded to GAE), as described here:
http://code.google.com/appengine/docs/python/config/appconfig.html#Skipping_Files

Is this possible also with Java app?

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] New members approvals pending

2010-04-28 Thread Jaroslav Záruba
I've been asked to "bump" for %subj%...

quote:
Can you do me a favor?
I have send numerous mails to the list yet and none shows up.
According to the mailinglist description, new members need to be
approved by the list admin, but he didn't approve them for ~3-4 Days
now. I've even used the contact mailinglist admin function on the
website - still no reaction. Maybe one of the other listmembers also
has the rights to approve members, but doesn't get the notifications.
So could you ask in the list, if someone would be so nice to approve
me (I guess there will be more new members stuck in the queue)?
Patrick Cornelißen 
/quote

Best 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] What happens when I don't close persistenceManagers?

2010-04-28 Thread Jaroslav Záruba
What are possible consequences of having method like this?

--
public Article getArticle(Key key)
{
return
pManagerFactory.getPersistenceManager().getObjectById(Article.class,
key);
}
--

Is it generally wrong? I.e. will I run out of available pManagers?
And if it is OK, for how long can I call setters on non-detached
object to have those changes propagated to data-store?

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.



Re: [appengine-java] Re: Writing to a local file in development environment

2010-04-28 Thread Jaroslav Záruba
On Wed, Apr 28, 2010 at 11:16 AM, Ian Marshall wrote:

> Out of interest, what text file manipulation do you need to you when
> debugging using the GAE/J development server?
>

It is not related to debugging Java, rather to my own JS; so I don't feel it
deserves your attention.

But when you asked... :)
When debugging I'm linking the sources individually, one  element
per JS-file. Then I want to be able to join them into single (static)
JS-file which is how the code is served usually.
Since when I realized I can not create the static resource within my app*
this particular issue has turned into 'playing with Java on GAE'.
Keeping the 'big JS' in memory and sending it via servlet does make much
sense to me. I will create the static file using Apache and only this
JS-compilation will be deployed to GAE-server.

*) Unless I'm still missing something.

Regards
  J. Záruba


>
> With the answer to this question, perhaps we can work out a useful
> work-around for you!
>
> --
> 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: Writing to a local file in development environment

2010-04-27 Thread Jaroslav Záruba
On Apr 27, 7:39 pm, Patrick Cornelißen 
wrote:
> You could also start a dedicated tomcat

yes, the workaround here is easy... but so far i'm looking for a
solution, also i "must!!!11" know why this is not working, i guess
you know that feeling :P

thank you anyways Patrick
best regards J. Záruba

>
> --
> Bye,
>  Patrick Cornelißen
>  http://www.openprojectguide.org
>  http://www.pcornelissen.dehttp://code.google.com/p/gloudy/
>
> --
> 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 
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Writing to a local file in development environment

2010-04-27 Thread Jaroslav Záruba
Due debugging purposes, and only in development environment, I need to
manipulate with a text-file. Obviously I ran into following message...
> access denied (java.io.FilePermission F:\workspace\AppEngine1\war\js\main.js 
> delete)

I thought adding the permission to java.policy would cure this, so I
modified all three I have on my system*, adding following line to the
'default' grant-block
> permission java.io.FilePermission "F:\\workspace\\AppEngine1\\war\\js\\*", 
> "read,write,delete";
(I hope the syntax is OK.)

But that did not help. :(

Which is the proper policy-file to modify? (Does the development
server honor them at all?)
Or could/should I pass my own by adding "-
Djava.security.policy=mypolicy" switch to run/debug settings in
Eclipse?

*) I believe the proper one is the one belonging to JRE that is
checked under Window -> Preferences -> Java -> Installed JREs. I just
wanted to be sure...

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.