[appengine-java] Re: Serialized field is ignored in JDO

2010-02-26 Thread Arnold
Thanks Max, that solves it.

The datastore viewer in development console kind of misled me to think
the field is not persisted at all. I have noticed that after adding
records with the serialized field set, the serialized field column is
not shown in the datastore viewer. But, as soon as I add one record
with the serialized field == null, the column is shown in the
datastore viewer.

Could this be a bug or there is something more that I am missing?


On Feb 26, 12:28 pm, Max  wrote:
> how about defaultFetchGroup = "true" ?
>
> On Feb 25, 9:18 pm, Arnold  wrote:
>
>
>
> > Two classes are defined:
> > --
> > @PersistenceCapable(identityType=IdentityType.DATASTORE,
> > detachable="true")
> > public class TestSerialized {
>
> >         @Persistent
> >         private String nonSerialized;
> >         @PrimaryKey() 
> > @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
> >         private Key primaryKey;
>
> >         @Persistent @Serialized
> >         private SerializedObj serializedObj;
>
> > }
>
> > public class SerializedObj implements Serializable{
> >         /**
> >          *
> >          */
> >         private static final long serialVersionUID = 6258869487732411716L;
> >         private String value;
>
> >         public SerializedObj() {
> >         }
> >         public SerializedObj(String value) {
> >                 this.value = value;
> >         }
>
> > }
>
> > --
>
> > When a TestSerialized  is persisted like below, the nonSerialized
> > field works fine but the serializedObj field is not saved to the
> > datastore, and looking into the development console, the field/column
> > is not even created:
>
> >                 PersistenceManager pm = PMF.get().getPersistenceManager();
> >                 try{
> >                         pm.currentTransaction().begin();
> >                         TestSerialized draft = new TestSerialized();
> >                         draft.setSerializedObj(new SerializedObj("dd"));
> >                         pm.makePersistent(draft);
> >                         pm.currentTransaction().commit();
> >                 }finally{
> >                         if(pm.currentTransaction().isActive()){
> >                                 pm.currentTransaction().rollback();
> >                         }
> >                         pm.close();
> >                 }
>
> > @Persistent(serialized="true") didn't help either.
>
> > Am I missing something?
>
> > I am using SDK 1.3.1 .
>
> > Thanks.

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



[appengine-java] run strophe on rhino ontop of GAE

2010-02-26 Thread asianCoolz
have anyone success in running strophe on rhino ontop of GAE and use
strophe to connect to external BOSH? Will that be possible?

-- 
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] Configure the password for the account of Google App Engine in Eclipse

2010-02-26 Thread m seleron
Hi,

I think that the input of the password is necessary for deploy with
plugin of eclipse.

Though it might be a little difficult
I think that I can decrease the input frequency of the password if
deply that uses [appcfg] .

Please Try
thanks.


> Hello, How can I, to avoid tedious re-enter password when deploying in
> an Eclipse application, configure the password for the account "google
> app engine> once and for all.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-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] Text type and the Development console viewer

2010-02-26 Thread John Howe
I don't see the Text fields of persisted objects when listing the entities
from the Development Console. E.g., using JDO, I have Text field "foo", as
declared below:

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =
"true")
public class LocationData implements Serializable {
...
@Persistent(defaultFetchGroup = "true")
  Text foo;
...

Should I expect the viewer to display the contents of "foo", or should I
assume that the viewer simply does not list it since it may be (and actually
is) quite long (>500 char)?

-- 
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] Running an HTTPS development server

2010-02-26 Thread Ikai L (Google)
For this to work, Google Checkout will need to reach your development
server. If your computer is on the open internet with no firewall and ports
open (BAD! BAD!), you can set up an HTTPS proxy to your development server
with something that can be an HTTPS proxy such as Apache (
http://www.askapache.com/htaccess/reverse-proxy-apache.html) or Nginx (
http://kovyrin.net/2006/04/17/typical-nginx-configurations/). Likely,
though, you are behind a NAT of some kind (home router, work firewall). In
addition to setting up an HTTPS proxy, you'll want to set up a reverse SSH
tunnel with an external VPS provider (just get a cheap one):
http://articles.techrepublic.com.com/5100-10878_11-5779944.html?tag=nl.e011

You'll be able to use the HTTP interface on the sandbox, though.

On Fri, Feb 26, 2010 at 10:19 AM, Paul Clarke  wrote:

> I'm developing a GAE app to integrate with Google Checkout. Google
> Checkout Notification API needs an SSL enabled server address to make
> notification requests. Is there any way I can run the GAE SDK
> (Eclipse) development server with SSL and the HTTPS protocol so that I
> can allow Checkout to make calls into my development environment?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



[appengine-java] Restlet and XStream on App Engine

2010-02-26 Thread alexh
Has anyone had any success returning domain classes with JDO or JPA
annotations using Restlet and XStream to handle the XML serialization?
I have been unsuccessful and am getting the dreaded
AccessControlException. Before I resort to data transfer object I
thought I would check if anyone has attempted this.

Alex

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



[appengine-java] Re: Passing parameters in a Task

2010-02-26 Thread David Chandler
Also see Deferred.defer() for a fully typesafe way to pass params:

http://turbomanage.wordpress.com/2009/11/20/deferred-defer-is-a-thing-of-beauty/

There's a thread on this forum, too.

/dmc

On Feb 25, 5:52 pm, oceandrive  wrote:
> Perfect , thanks.

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



[appengine-java] Configure the password for the account of Google App Engine in Eclipse

2010-02-26 Thread thierry Le conniat
Hello, How can I, to avoid tedious re-enter password when deploying in
an Eclipse application, configure the password for the account "google
app engine> once and for all.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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] Running an HTTPS development server

2010-02-26 Thread Paul Clarke
I'm developing a GAE app to integrate with Google Checkout. Google
Checkout Notification API needs an SSL enabled server address to make
notification requests. Is there any way I can run the GAE SDK
(Eclipse) development server with SSL and the HTTPS protocol so that I
can allow Checkout to make calls into my development environment?

-- 
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: EQUAL operator on string properties

2010-02-26 Thread Andriy Andrunevchyn
I have the same problem
How have You solved it?

On 24 Лют, 00:36, keyurva  wrote:
> This is where embarrassment becomes me. This issue was a false alarm.
> A case of corrupt data.
>
> Sorry for the trouble.
>
> == Keyur
>
> On Feb 23, 1:37 pm, keyurva  wrote:
>
>
>
> > This has to be the first query that works but somehow for me a simple
> > EQUAL operator on a string propertydoesnotyield results. I'm using
> > the low level datastore api. Now it could be that this is only a local
> > datastore issue and once deployed on app engine itdoeswork. But I'd
> > like someone to confirm this for me.
>
> > To give an example for my issue - a query such as: SEX = "MALE"does
> >notworkbut SEX >= "MALE" AND SEX < "MALEa"does. (This first one of
> > course translates to a query with one EQUAL filter while the second
> > one translates to a query with 2 filters - GREATER_THAN_OR_EQUAL and
> > LESS_THAN).
>
> > Thanks,
> > Keyur

-- 
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] Development Server on Windows 7 continues to run after CTRL-C

2010-02-26 Thread brianl
Running the development server on Windows 7 64-bit.  After CTRL-C of
the development server still seeing the Java process running in the
task manager.  Have to kill the process from the task manager before
relaunching the development server.  Using JDK1.6 32-bit.

-- 
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] Help needed : "found more than 100 URLMap entries in application configuration"

2010-02-26 Thread mably
I'm hitting the "Found more than 100 URLMap entries in application
configuration" limit.

What is strange is that I have only 82  definitions in my
web.xml (many servlets).

Is it possible to have it increased by someone at Google?  My app ID
is webwinewatch.

Any help will be greatly appreciated as I can't deploy my app anymore.

Thanx in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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: JDO model issue

2010-02-26 Thread atomi
Has anyone figured out a convention for this? Rusty I like your idea
of populating the Race in the Result entity but re-attaching the
object later would cause problems (would you have to set Race to null
before persisting again?). I too find it odd to have entity object
performing queries but if that is the best way then I guess I'll have
to just do it.
Hopefully someone at Google could comment on this.


On Feb 8, 12:17 pm, Rusty Wright  wrote:
> I agree with Jake; relationships are tricky.  Likewise with his pointing out 
> that having race be in two Results will be a problem; that won't fly.
>
> Another way would be to have a List in Race, and add your Results to 
> that.  But you're still going to have parenting problems when you have the 
> same runner in different races; that's where I'd store the Runner's Key in 
> the Result.
>
> Having the Result query the datastore seems odd to me; I was thinking of 
> doing that but it seems to me that these persistent objects ought to be 
> fairly simple data transfer objects and shouldn't be doing that.  The DAO 
> does the datastore interactions.  If you were doing the fully layered way, 
> with domain objects (that is, these data transfer objects), DAOs, and a 
> service layer, I could see the service layer calling the DAOs, and then it 
> calls the setters on the domain objects to fill in the missing stuff, like 
> the Race in the Result here.  But that seems "dirty" to me; shouldn't the ORM 
> be doing this for us?
>
>
>
>
>
> Jake wrote:
> > Hey,
>
> > Relationships in GAE are a bit picky.  It is my understanding that you
> > can only persist children by way of persisting their parents.  So, in
> > your case, both Race and Runner are children of Result and you would
> > only persist the two result objects - the dependent children would be
> > persisted automatically.  I'm willing to bet, though, that a single
> > race object cannot be the child of two different parent objects,
> > though I'm not certain.  The details are all here:
> >http://code.google.com/appengine/docs/java/datastore/relationships.html
>
> > For the most part, I've found that parent/child relationships are only
> > useful when the two are highly related - usually when I'm extending a
> > class to provide more data.  (e.g. Race -> RaceDetails).
>
> > The "easy" way to get around this is to store the objects in unowned
> > relationships, referencing other objects by IDs as described in
> >http://code.google.com/appengine/docs/java/datastore/relationships.ht
> > Then, with some fancy getters/setters that automatically query the
> > Datastore, you end up with the same result.  See my example below.
>
> > If anyone has any other advice, though, please contribute.  I haven't
> > found a great way to handle this and I'm trying to avoid using GAE
> > specific libraries to help.
>
> > Jake
>
> > public class Race {
>
> >    private Key id;
> >    ...
> > }
>
> > public class Result {
>
> >    private Key id;
> >    private Key raceId;
>
> >    public Race getRace() {
> >        //query datastore with getObjectById(Race.class, raceId);
> >    }
> > }
>
> > On Feb 6, 7:15 pm, Rodolphe  wrote:
> >> Hello,
>
> >> I am very new to appengine, and I am trying a very basic model exemple: A
> >> Race class is linked to a Runner class through a Result class
>
> >> When I am running the folloging code (the full code is attached):
> >>         Race race = new Race("Paris", new Date(), 10);
>
> >>         Runner runner1 = new Runner("Smith");
> >>         Runner runner2 = new Runner("John");
>
> >>         Result result1 = new Result(race, runner1, 1);
> >>         Result result2 = new Result(race, runner2, 2);
>
> >>         PersistenceManager pm = PMF.get().getPersistenceManager();
> >>         try {
> >>             race = pm.makePersistent(race);
>
> >>             runner1 = pm.makePersistent(runner1);
> >>             runner2 = pm.makePersistent(runner2);
>
> >>             pm.makePersistent(result1);
> >>             pm.makePersistent(result2);
> >>         } finally {
> >>             pm.close();
> >>         }
>
> >> I get the following error:
> >> Detected attempt to establish Result(4) as the parent of Runner(2) but the
> >> entity identified by Runner(2) has already been persisted without a parent.
> >> A parent cannot be established or changed once an object has been 
> >> persisted.
> >> org.datanucleus.store.appengine.FatalNucleusUserException: Detected attempt
> >> to establish Result(4) as the parent of Runner(2) but the entity identified
> >> by Runner(2) has already been persisted without a parent.  A parent cannot
> >> be established or changed once an object has been persisted.
> >>     at
> >> org.datanucleus.store.appengine.DatastoreRelationFieldManager.checkForParen
> >>  tSwitch(DatastoreRelationFieldManager.java:204)
> >>     at
> >> org.datanucleus.store.appengine.DatastoreRelationFieldManager$1.setObjectVi
> >>  aMapping(DatastoreRelationFieldManager.java:125)
> >>     at
> >> 

[appengine-java] Re: Possible to cause instance recycling?

2010-02-26 Thread Jake
Hey Ikai,

Nope, not deliberately trying to force a cycle.  I'm just trying to
figure out if it's my fault for the continued aggressive recycling.
Some people complain about losing the instance after an hour, but I'm
losing it after 5 seconds.

I'm certainly aware that a new deployment causes an instance restart -
I should hope so!  That's not what is happening here.

You suggest being able to crash the instance - is there something I
might be doing to cause that in the cloud?  Again, I'm not seeing any
exceptions or errors in my log file and all works fine in local-mode
and on a different version in Tomcat.

I'm certainly willing to share any/all source code to help debug this
problem.  We're experimenting with GAE, but we'll need something that
stays up under load for demonstrations in Q2.

Thanks!

Jake

On Feb 26, 1:41 pm, "Ikai L (Google)"  wrote:
> Are you trying to force it to cycle? A deploy will do that, but there's a
> limit to the number of deploys you can do a day. Beyond that, the only way
> to unintentionally cause it to cycle would be to crash the instance, I
> suppose. It doesn't sound like that is what is happening here.
>
>
>
> On Thu, Feb 25, 2010 at 2:11 PM, Jake  wrote:
> > Hey all,
>
> > I know that instance recycling times are not ideal - that's not my
> > problem here.  I'm wondering if it is possible to unintentionally
> > cause GAE to drop your instance and restart it?
>
> > I'm using the Wicket framework.  Everything works locally, but when I
> > deployed today, I experienced 5 instance restarts in the span of three
> > minutes - each restart is 15-20 seconds.
>
> > I'm not seeing any exceptions in the logs.  My quotas, load, etc are
> > all fine (practically non-existent).  Application behavior is perfect
> > - just with delays.
>
> > The only strenuous thing I'm doing is loading/processing a 350K XML
> > document into a Java object when the instance starts.
>
> > AppID:  http://jacob-brookover.appspot.com
>
> > Look at the Library and Start Reading the first two pages of Call of
> > the Wild.
>
> > This project is a port of an existing project that has gone through
> > pretty rigorous testing, usage.
>
> > Thanks!
>
> > Jake
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> 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] Re: GAE Guestbook example differing behavior between Chrome and Firefox

2010-02-26 Thread Mike
> Have you ruled out cache issues?

Thanks.

It appears that it was a caching problem (on the browser I guess).
The expected behavior is delivered to each browser now.

Thanks for the tips, apologies for not sorting it out myself.

Cheers
Mike Sheridan

-- 
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] Multiple contains() in a query

2010-02-26 Thread Ikai L (Google)
Yes, it is possible, but you need to be aware of limitations. I suggest
understanding querying on List properties before starting:
http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes

Be
very careful of exploding indexes.

On Mon, Feb 22, 2010 at 3:41 PM, ka2  wrote:

> I was wondering if is there any way that
> this would be possible to implement. I have a search criteria
> that the user would fill out, most of the fields are multi-select, and
> none is required, so I need to generate the query dynamically (at
> least that would be a way to handle it in SQL, or store procs..) .Can
> I use several contains() in a query? have any sample? can I use
> executeWithMap to supply the lists for the several contains()? Can I
> mix the lists with other kind of parameters in the map? Again a link
> to a sample would be great.
>
> If not possible, the only other solution I can think off would be to
> choose one of the fields in the criteria, hopefully the most
> restrictive, get the results into memcache, and execute the rest of
> the conditions sequentially, adding the results to the memcache by
> using  incrementAll(), and at the end check the counters for each
> entity in the memcache, and get only the results where the hitCount is
> equal to the number of queries. Would do the queries to get only IDs,
> they say are faster, and at the end would get all the entities with
> the resulting id set.  Is there a better solution?, again preindexing
> the records with all possible combinations doesn't seem to be a good
> idea in this case.
>
> thanks
> Karel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Valid characters in Entity names

2010-02-26 Thread Ikai L (Google)
You should be aware of case sensitivity issues at all times. From what I
remember, international characters will work as entity names, but I would
stay away from them since there are known issues with the datastore viewer.
As entity kinds map to class names and fields map to class fields, it's
generally a good idea to stick to characters that are commonly used in Java
methods and Class names.

On Mon, Feb 22, 2010 at 2:09 PM, DutrowLLC  wrote:

> What are the valid characters in entity names?  Also, they are case
> sensitive, correct?
>
> Thanks!
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



[appengine-java] Re: App Engine and Spring slow start up

2010-02-26 Thread luijar
Nope, I am still seeing it. It's quite frustrating. I even tried to
reduce Spring init time by removing schema validation from the
application context init. But, that does not seem to work. I am using
Spring annotations and component scanning to autowire my beans, I
wonder if using plain XML configuration will make autowiring faster.


On Feb 23, 9:14 pm, charming30  wrote:
> Has the above mentioned "offline precompilatio" in 1.3.1 been able to
> solve your issue, I plan to use Spring on Java for my Business App
> which is complex and could be based on SOA. Kindly let me know if your
> issue was resolved or reduced by using the above fix.
>
> On Feb 20, 12:05 am, luijar  wrote:
>
> > I believe my development environment was on 1.3.0. That might be
> > something to look at, although it seems that probably it's a very
> > small overhead, do you have any metrics that would give some evidence
> > as to how much overhead is "offline precompilation" adding?
>
> > Thanks
>
> > On Feb 18, 2:04 pm, Don Schwarz  wrote:
>
> > > Have you deployed your application with the 1.3.1 SDK?  That release 
> > > turned
> > > on "offline precompilation" by default, which is an optimization that may
> > > help.
>
> > > On Thu, Feb 18, 2010 at 7:59 AM, Alex  wrote:
> > > > Hi,
>
> > > > It appeared that long init problem is well known for Grails users:
> > > >http://jira.codehaus.org/browse/GRAILSPLUGINS-1736
>
> > > > I wasted couple of weeks to create app I cannot run. Hope that
> > > > SpringSource and Google can solve the issue.
>
> > > > On Feb 17, 7:41 pm, Stephan Hartmann  wrote:
> > > > > The problem is that the initialization of your app takes longer than 
> > > > > 30
> > > > > seconds.
> > > > > Pinging your app doesn't help when the app is restarted due to
> > > > redeployment
> > > > > or maintenance, or when high traffic demands a second instance.
>
> > > > > You should try to reduce your startup time.
>
> > > > > regards,
> > > > > Stephan
>
> > > > > 2010/2/17 luijar 
>
> > > > > > Great, all of our projects areSpringenabled lol. But I guess it's
> > > > > > good that we are not the only ones seeing this, hopefully it gets a
> > > > > > little more visibility. We have a cron job (1 min) that tries to 
> > > > > > keep
> > > > > > our application alive by hitting a URL, but it does not do a very 
> > > > > > good
> > > > > > job. It's frustrating and we don't even have access to the 500 page 
> > > > > > to
> > > > > > tell the user to retry or go somewhere else.
>
> > > > > > On Feb 17, 11:21 am, oth  wrote:
> > > > > > > Yes we have seen this problem a lot. Per our tests, an application
> > > > > > > becomes idle after a minute of non activity. So, the unfortunate
> > > > > > > reality is that you need to keep your app alive by simulating
> > > > activity
> > > > > > > on it. Or go the nonSpringroute.
>
> > > > > > > Thanks
>
> > > > > > > On Feb 16, 4:14 pm, luijar  wrote:
>
> > > > > > > > Hello Google App Engine forum,
>
> > > > > > > >   We have been seeing ever since we deployed our applications
> > > > > > > > (currently 3 of them) that when our application instances become
> > > > idle
> > > > > > > > (they have not been hit for x amount of seconds) subsequent
> > > > requests
> > > > > > > > return with a 500 response. Logs show a hard deadline exceeded
> > > > error
>
> > > > > > > > com.google.apphosting.runtime.HardDeadlineExceededError: This
> > > > request
> > > > > > > > (32306ebe63b71ab0) started at 2010/02/12 20:39:11.984 UTC and 
> > > > > > > > was
> > > > > > > > still executing at 2010/02/12 20:39:41.225 UTC.
> > > > > > > >         at
>
> > > > com.google.appengine.runtime.Request.process-32306ebe63b71ab0(Request.java)
>
> > > > > > > > And the first line of the log message has the following :
>
> > > > > > > > 02-12 12:39PM 14.088
>
> > > > > > > > javax.servlet.ServletContext log: InitializingSpringroot
> > > > > > > > WebApplicationContext
>
> > > > > > > > Question:
> > > > > > > > Has anyone else seen this behavior? How long does it take for an
> > > > > > > > application instance to become idle?
>
> > > > > > > > Thanks
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Google App Engine forJava" 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 forJava" group.
> > > > To post to this group, send email to
> > > > google-appengine-j...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-appengi

[appengine-java] createLoginURL() and Sing-up behavior when running locally under Eclipse debugger?

2010-02-26 Thread Mike
Hi,

In following along with the example/tutorial from:
http://code.google.com/appengine/docs/java/gettingstarted/usingusers.html

The page states that calls to:
com.google.appengine.api.users.UserService.createLoginURL()

with an email/username that does not have a google account (even when
running under Eclipse) will redirect to what appears to be a Google
Accounts sign-up page.

However, I am unable to trigger that behavior, no matter what text I
provide to that control.

Any suggestions?  Is this a bug or a misprint (or even, a
misunderstanding on my part)?

Cheers
Mike Sheridan

-- 
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] RESTful web services on Google App Engine

2010-02-26 Thread Ikai L (Google)
Yes it is, though you'll want to read our terms of service to make sure you
are not in violation of quota dodging:
http://code.google.com/appengine/terms.html

Otherwise, you'll want to read
our documentation about making HTTP requests:
http://code.google.com/appengine/docs/java/urlfetch/

On Thu, Feb 25, 2010 at 9:08 AM, kirthiga  wrote:

> Is it possible for me to create three RESTful web services in
> NetBeans, bundle them up, host on the cloud, and make communication
> between them?
> If so, Tell me how? This is for a project work
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Possible to cause instance recycling?

2010-02-26 Thread Ikai L (Google)
Are you trying to force it to cycle? A deploy will do that, but there's a
limit to the number of deploys you can do a day. Beyond that, the only way
to unintentionally cause it to cycle would be to crash the instance, I
suppose. It doesn't sound like that is what is happening here.

On Thu, Feb 25, 2010 at 2:11 PM, Jake  wrote:

> Hey all,
>
> I know that instance recycling times are not ideal - that's not my
> problem here.  I'm wondering if it is possible to unintentionally
> cause GAE to drop your instance and restart it?
>
> I'm using the Wicket framework.  Everything works locally, but when I
> deployed today, I experienced 5 instance restarts in the span of three
> minutes - each restart is 15-20 seconds.
>
> I'm not seeing any exceptions in the logs.  My quotas, load, etc are
> all fine (practically non-existent).  Application behavior is perfect
> - just with delays.
>
> The only strenuous thing I'm doing is loading/processing a 350K XML
> document into a Java object when the instance starts.
>
> AppID:  http://jacob-brookover.appspot.com
>
> Look at the Library and Start Reading the first two pages of Call of
> the Wild.
>
> This project is a port of an existing project that has gone through
> pretty rigorous testing, usage.
>
> Thanks!
>
> Jake
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Re: GAE Guestbook example differing behavior between Chrome and Firefox

2010-02-26 Thread Ikai L (Google)
Have you ruled out cache issues? The next step I would take to troubleshoot
would be to either curl/wget/telnet that URL to see which response is the
one that the server is returning. App Engine's starter project doesn't
differentiate between User Agents.

On Fri, Feb 26, 2010 at 10:37 AM, Mike  wrote:

> On Feb 26, 12:13 pm, "Ikai L (Google)"  wrote:
> > Are you using GWT? Try disabling that. This could be related to that,
> though I'm not sure off the top of my head.
>
> I had made that mistake the first time, but for this example, I made
> sure that I did not select GWT when I created the project.
>
> > You might also want to check on the GWT groups if you intend on moving
> forward with it as your front end.
> >
> > http://groups.google.com/group/Google-Web-Toolkit
>
> Thanks.  I haven't made that determination yet.  Still learning what's
> available and what each library/toolkit/etc provides.
>
> I just took a peek at the GWT homepage, and I will probably move to
> that at some point.  But, want to learn from the ground up, and go
> through these steps as well.
>
> Cheers
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



[appengine-java] Re: GAE Guestbook example differing behavior between Chrome and Firefox

2010-02-26 Thread Mike
On Feb 26, 12:13 pm, "Ikai L (Google)"  wrote:
> Are you using GWT? Try disabling that. This could be related to that, though 
> I'm not sure off the top of my head.

I had made that mistake the first time, but for this example, I made
sure that I did not select GWT when I created the project.

> You might also want to check on the GWT groups if you intend on moving 
> forward with it as your front end.
>
> http://groups.google.com/group/Google-Web-Toolkit

Thanks.  I haven't made that determination yet.  Still learning what's
available and what each library/toolkit/etc provides.

I just took a peek at the GWT homepage, and I will probably move to
that at some point.  But, want to learn from the ground up, and go
through these steps as well.

Cheers
Mike

-- 
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] 30 sec task processing limit

2010-02-26 Thread Ikai L (Google)
How are you planning on transcoding video in App Engine? I think this is
your bigger problem, as the classes you need are likely not whitelisted.

On Fri, Feb 26, 2010 at 3:08 AM, Khan  wrote:

> Hi,
>
> I am planning to use taskqueue for video transcoding, add tasks to
> queue and transcode them. However, I read in the documentation that 30
> sec is a hard limit for task execution as it happening via http, this
> limit doesn't work for video processing etc.
>
> So, what do you suggest is the right approach to maintain a queue and
> process video using google app engine?
>
> Thanks
> -Khan,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] GAE Guestbook example differing behavior between Chrome and Firefox

2010-02-26 Thread Ikai L (Google)
Are you using GWT? Try disabling that. This could be related to that, though
I'm not sure off the top of my head. You might also want to check on the GWT
groups if you intend on moving forward with it as your front end.

http://groups.google.com/group/Google-Web-Toolkit

On Fri, Feb 26, 2010 at 7:50 AM, Mike  wrote:

> Hello all,
>
> Gave the Guestbook example a shot, and found that I get different
> behavior when accessing it (locally, debug web server from Eclipse) --
> is this expected?
>
> If I point Chrome to http://localhost:/guestbook -- I get Hello
> world! (great).  Same happens in Firefox.
>
> However, if I point Chrome to  http://localhost:, then I get
> (rendered):
>
> Web Application Starter Project
>
> Please enter your name:
>
> But Firefox will render what I believe was expected, and is this:
>
> Hello App Engine!
> Available Servlets:
> Guestbook
>
> So, I checked out the source that was delivered to each browser, and
> it was indeed different.
>
> Firefox is getting this delivered:
>
> 
> 
> 
> 
> 
> 
> 
>
> 
>  
>
>Hello App Engine
>  
>
>  
>Hello App Engine!
>
>
>  
>Available Servlets: td>
>  
>  
>Guestbook
>
>  
>
>  
> 
>
>
> Whereas Chrome is getting this delivered:
>
> 
> 
> 
> 
> 
> 
>
> 
>  
>
>
>
>
>
>
>
>
>
>
>Web Application Starter Project
>
>
>
>
>
>
> src="guestbook/guestbook.nocache.js">
>  
>
>  
>  
>  
>  
>  
>  
>
>
> style="position:absolute;width:0;height:0;border:0">
>
>
>
>  
>Your web browser must have JavaScript enabled
>in order for this application to display correctly.
>  
>
>
>Web Application Starter Project
>
>
>  
>Please enter your
> name:
>  
>  
>
>
>  
>  
> td>
>  
>
>  
> 
>
> 
>
> Would appreciate a helpful nudge in the right direction (still getting
> up to speed a bit here)...
>
> Cheers
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



[appengine-java] Re: URLFetchService example

2010-02-26 Thread Cornelius
Check out http://code.google.com/appengine/docs/java/urlfetch/overview.html
: "App Engine implements this interface using the URL Fetch service;
your application does not make socket connections directly."

import java.net.MalformedURLException;
import java.net.URL;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

// ...
try {
URL url = new URL("http://www.example.com/atom.xml";);
BufferedReader reader = new BufferedReader(new
InputStreamReader(url.openStream()));
String line;

while ((line = reader.readLine()) != null) {
// ...
}
reader.close();

} catch (MalformedURLException e) {
// ...
} catch (IOException e) {
// ...
}

On Feb 25, 4:04 am, kghate  wrote:
> I am trying to get a simple URLFetchService example to work, here is
> the code.
>
> URL url = new URL("http://www.google.com";);
> URLFetchService urlFetchService =
> URLFetchServiceFactory.getURLFetchService();
> HTTPRequest httpRequest = new HTTPRequest(url,HTTPMethod.GET);
> HTTPResponse resp = urlFetchService.fetch(httpRequest);
> System.out.println(resp.toString());
>
> Getting a nullpointer in the "fetch" method
>
> java.lang.NullPointerException
>         at
> com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:
> 31)
>
> What am I missing? Please help..

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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: URLFetchService example

2010-02-26 Thread Timofey Koolin
URL url = new URL("http://www.ya.ru";);
InputStream strm = url.openStream();
InputStreamReader r = new InputStreamReader(strm);
char[] charr = new char[1024];
int len = r.read(charr);
String s = new String(charr, 0, len);


On 25 фев, 12:04, kghate  wrote:
> I am trying to get a simple URLFetchService example to work, here is
> the code.
>
> URL url = new URL("http://www.google.com";);
> URLFetchService urlFetchService =
> URLFetchServiceFactory.getURLFetchService();
> HTTPRequest httpRequest = new HTTPRequest(url,HTTPMethod.GET);
> HTTPResponse resp = urlFetchService.fetch(httpRequest);
> System.out.println(resp.toString());
>
> Getting a nullpointer in the "fetch" method
>
> java.lang.NullPointerException
>         at
> com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService 
> Impl.java:
> 31)
>
> What am I missing? Please help..

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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 Guestbook example differing behavior between Chrome and Firefox

2010-02-26 Thread Mike
Hello all,

Gave the Guestbook example a shot, and found that I get different
behavior when accessing it (locally, debug web server from Eclipse) --
is this expected?

If I point Chrome to http://localhost:/guestbook -- I get Hello
world! (great).  Same happens in Firefox.

However, if I point Chrome to  http://localhost:, then I get
(rendered):

Web Application Starter Project

Please enter your name:

But Firefox will render what I believe was expected, and is this:

Hello App Engine!
Available Servlets:
Guestbook

So, I checked out the source that was delivered to each browser, and
it was indeed different.

Firefox is getting this delivered:










  

Hello App Engine
  

  
Hello App Engine!


  
Available Servlets:
  
  
Guestbook

  

  



Whereas Chrome is getting this delivered:









  










Web Application Starter Project







  

  
  
  
  
  
  






  
Your web browser must have JavaScript enabled
in order for this application to display correctly.
  


Web Application Starter Project


  
Please enter your
name:
  
  


  
  

  

  




Would appreciate a helpful nudge in the right direction (still getting
up to speed a bit here)...

Cheers
Mike

-- 
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: news on remote_api for java ?

2010-02-26 Thread AGS Rest
Any updates on the remote_api for Java ?

On Feb 24, 4:37 pm, "Ikai L (Google)"  wrote:
> You should be able to connect this:
>
> 
> 
>   
>   
>     remoteapi
>     
> com.google.apphosting.utils.remoteapi.RemoteApiServlet
>   
>   
>     remoteapi
>     /remote_api
>   
>   
>     
>       remoteapi
>       /remote_api
>     
>     
>       admin
>     
>   
> 
>
> I'll dig for some sample code for the Java bulkloader. We're working
> on official docs.
>
>
>
> On Tue, Feb 9, 2010 at 1:22 AM, emerix  wrote:
> > Hi,
> > Does anybody have some news on the remote_api for java ? It would be
> > great to be able to use our JDO/JPA objects to interact with the
> > datastore without having to upload a version to appengine !
>
> > Thanx :)
> > emerix
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> 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] Defining composite indexes

2010-02-26 Thread AGS Rest
I use the low level App Engine data store API, as it gives me the
flexibility of having defining schemas on the fly, as Entities on the
app engine don't really need a schema.

Normally, if i needed to define a composite index that is based on an
Entity's property and its ancestor; i can do so by defining an index
in datastore-indexes.xml (by configuration). However, as the name of
the property in this case is / can be determined only during the
creation of the Entity itself, how can i mark properties of the Entity
on which i need the composite index to be created?

Is there a hook in the Datastore API that i can take advantage of ?
Any insight would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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] 30 sec task processing limit

2010-02-26 Thread Khan
Hi,

I am planning to use taskqueue for video transcoding, add tasks to
queue and transcode them. However, I read in the documentation that 30
sec is a hard limit for task execution as it happening via http, this
limit doesn't work for video processing etc.

So, what do you suggest is the right approach to maintain a queue and
process video using google app engine?

Thanks
-Khan,

-- 
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: way to interactively query datastore?

2010-02-26 Thread John Patterson
Very cool!  Does it allow '.' in property names?  Unfortunately the  
Datastore Viewer doesn't .


On 26 Feb 2010, at 22:30, vbart wrote:


Last night we released a new version including improved GQL dynamic
parser.
Operators != and IN are supported now and also several bugs were
fixed.
More info at http://audao.spoledge.com/doc-gae-features.html#gqlparser

Vaclav


On Feb 24, 11:00 pm, David Lam  wrote:
On Wed, Feb 24, 2010 at 1:37 AM, vbart  
 wrote:

I can offer only listing solution, based on our free GQL dynamic
parser -http://audao.spoledge.com/download.jsp
The full JSP you can find here:


http://vaclavb.blogspot.com/2010/02/google-app-engine-data-viewer-gql 
...


The GQL parser (class GqlDynamic) converts GQL queries into low- 
level

datastore API calls, so the basic code of fetching entities can be:



 import com.google.appengine.api.datastore.DatastoreServiceFactory;
 import com.google.appengine.api.datastore.Entity;
 import com.spoledge.audao.parser.gql.GqlDynamic;
 import java.util.List;
 ...
 GqlDynamic gqld = new GqlDynamic();


gqld 
.setDatastoreService 
( DatastoreServiceFactory.getDatastoreService());



 String gql = "SELECT * FROM MyEntity WHERE prop1='test' ORDER BY
prop2 LIMIT 10";
 List result =
gqld.prepareQuery( gql ).asList( gqld.getFetchOptions());



Then you just need to render the result in a JSP page.


The GQL parser currently does not support operators '!=' and 'IN',  
but
we are going to launch a new version in a few days which will  
support

all GQL features.



Vaclav


hmm thanks for the tip!  i actually was unaware the way to do  
something like
this was to build a google datastore.Query to represent the GQL  
statement...


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




--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-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: way to interactively query datastore?

2010-02-26 Thread vbart
Last night we released a new version including improved GQL dynamic
parser.
Operators != and IN are supported now and also several bugs were
fixed.
More info at http://audao.spoledge.com/doc-gae-features.html#gqlparser

Vaclav


On Feb 24, 11:00 pm, David Lam  wrote:
> On Wed, Feb 24, 2010 at 1:37 AM, vbart  wrote:
> > I can offer only listing solution, based on our free GQL dynamic
> > parser -http://audao.spoledge.com/download.jsp
> > The full JSP you can find here:
>
> >http://vaclavb.blogspot.com/2010/02/google-app-engine-data-viewer-gql...
>
> > The GQL parser (class GqlDynamic) converts GQL queries into low-level
> > datastore API calls, so the basic code of fetching entities can be:
>
> >  import com.google.appengine.api.datastore.DatastoreServiceFactory;
> >  import com.google.appengine.api.datastore.Entity;
> >  import com.spoledge.audao.parser.gql.GqlDynamic;
> >  import java.util.List;
> >  ...
> >  GqlDynamic gqld = new GqlDynamic();
>
> > gqld.setDatastoreService( DatastoreServiceFactory.getDatastoreService());
>
> >  String gql = "SELECT * FROM MyEntity WHERE prop1='test' ORDER BY
> > prop2 LIMIT 10";
> >  List result =
> > gqld.prepareQuery( gql ).asList( gqld.getFetchOptions());
>
> > Then you just need to render the result in a JSP page.
>
> > The GQL parser currently does not support operators '!=' and 'IN', but
> > we are going to launch a new version in a few days which will support
> > all GQL features.
>
> > Vaclav
>
> hmm thanks for the tip!  i actually was unaware the way to do something like
> this was to build a google datastore.Query to represent the GQL statement...

-- 
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] logging not working this

2010-02-26 Thread oceandrive
GAE logging is not working this morning? Anyone has the same issue.
The last log for me was at 02-26 06:00AM 03.975.

Thanks

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



[appengine-java] Re: Cron is not working

2010-02-26 Thread seleronm
Thanks for the info
Sorry for being late to reply

I think that [httpstatus 302] has been generated.
I think that uri for the cron work is secured admin.

Please Confirm .
thanks.


>Thanks for your reply,
>
> [admin console]-[Logs]-[Requests only] output is.
>
>0.1.0.1 - - [25/Feb/2010:00:11:19 -0800] "GET /emailing HTTP/1.1" 302 100 - -
>
>
> Hi.
>
> What is output to [admin console]-[Logs]-[Requests only]?
>
> please Confirm.
> thanks.
>
> 2010/2/25 Sowji 
>
> >  Hi to all,
>
> >  Crons in google app engine is not working for me.
>
> >  could you please help me.
>
> > cron.xml
> > -
>
> >  > xml version=*"1.0"* encoding=*"UTF-8"*?>
>
> > 
>
> > 
>
> > /*emailing*
>
> > repeated every one hour
>
> > every 1 hours
>
> > 
>
> > 
>
> > *
>
> > my application have the servlet for url emailing
>
> > My admin console show status as follows
>
> >   Cron Job Schedule/Last Run/Last Status (All times are UTC)  /emailing
>
> > repeated every one hour every 1 hours (UTC)
> >    2010-02-25 07:11:16 on time Too many continues
>
> > Please anybody tell me what was my mistake.
>
> > Thanks,
>
> > Lakshmi.
>
> > *
>
> > --
> > 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: Compare keys with JDO ?

2010-02-26 Thread seleronm
Hi.
This might be useful.
Follow this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/2acea43161d8ac5/

Please try.
thanks.

> Hy...
> I'm using a JDO Query to retrieve some objects of type Contact witch
> contains:
> Key key;
> Key parentKey;
> String name;
> ...
>
> parentKey is the key of the User that owns that Contacts.
>
> Si if want to retrieve all contacts that belong to a certain user i'd
> have to make a query that returns all Contact objects with parentKey
> == user.key
>
> But i have a problem comparing the keys
> if I pass them (the keys...) as String, it will retrieve all contacts.
> If i pass them as Key, it will retrieve nothing.
> So what is the problem ? I can't use JDO to make a Query that uses a
> key equality constraint ?
> Is it mandatory to use datastore Query? or at least can I compose the
> string query my self ? How ?

-- 
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: Date Range Query

2010-02-26 Thread Steve Pritchard
Thanks for the help.  Looks like I had better do it inside my code for
now.
Steve

On Feb 26, 2:35 am, John Patterson  wrote:
> Be careful of the start-end date query trick - it does not work.  
> There was a bug in the SDK that made it appear to work.
>
> "an entity will only match the query if it has an individual value for  
> that property that matches all of the inequality filters"
>
> http://code.google.com/appengine/docs/python/datastore/queriesandinde...
>
> You can store any Collection (but not array) and it will become a  
> multi valued property.  All collection types are returned as an  
> ArrayList - even sets etc.
>
> JD
>
> On 26 Feb 2010, at 13:38, Max wrote:
>
> > ListProperty is simply a collection.
>
> > You can simply persist a list of GAE primitive type into datastore
>
> > On Feb 25, 9:07 pm, Steve Pritchard  wrote:
> >> This post is very helpful found 
> >> athttp://appengine-cookbook.appspot.com/recipe/how-to-query-by-date-range
>
> >> Often, you need to store, and retrieve, data that needs to match an
> >> "effective date period", containing a "start date" and "end date".
>
> >> ...
>
> >> You can handle your query if you add another field in your Kind, a
> >> ListProperty containing both the start date and end date. For  
> >> example,
> >> add a ListProperty named "date_list", and populate it like this:
> >> date_list = [start_date, end_date].
>
> >> My Question.
>
> >> In Java, what constitutes a ListProperty.  I assume ArrayList.  I am
> >> hoping that an int[] also counts because this has much less overhead
> >> to store.
>
> >> Does anybody know or know where the rules for ListProperty might be
> >> found.
>
> >> Thanks.
>
> > --
> > You received this message because you are subscribed to the Google  
> > Groups "Google App Engine for Java" group.
> > To post to this group, send email to google-appengine-java@googlegroups.com
> > .
> > To unsubscribe from this group, send email to 
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group 
> > 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] serialization doubt...

2010-02-26 Thread Prashant Gupta
Hi,

I know some cases where serialization is required, one is MemCache. Let, I
cache some object in Memcache and later do some changes in class, the cached
object will fail to typecast to its (updated) class type. Now suppose I have
set serialVersionUID in my serialized class, will it still fail to typcast?
what if I add or remove some fields to/from my class?

I am planning to put revision history (like google docs revision history)
feature in my app. I want to keep the latest vision as an Entity and putting
older visions in a different table as blob. I have some doubts similar to
above one. Assuming serialVersionUID is set and object won't throw cast
error if serialVersionUID is set, if my assumption is correct then what will
happen if later add/update some fields to my class? will it cast
successfully and load value for matching fields?

Thanks.

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



[appengine-java] Re: Serialized field is ignored in JDO

2010-02-26 Thread Max
how about defaultFetchGroup = "true" ?

On Feb 25, 9:18 pm, Arnold  wrote:
> Two classes are defined:
> --
> @PersistenceCapable(identityType=IdentityType.DATASTORE,
> detachable="true")
> public class TestSerialized {
>
>         @Persistent
>         private String nonSerialized;
>         @PrimaryKey() @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
>         private Key primaryKey;
>
>         @Persistent @Serialized
>         private SerializedObj serializedObj;
>
> }
>
> public class SerializedObj implements Serializable{
>         /**
>          *
>          */
>         private static final long serialVersionUID = 6258869487732411716L;
>         private String value;
>
>         public SerializedObj() {
>         }
>         public SerializedObj(String value) {
>                 this.value = value;
>         }
>
> }
>
> --
>
> When a TestSerialized  is persisted like below, the nonSerialized
> field works fine but the serializedObj field is not saved to the
> datastore, and looking into the development console, the field/column
> is not even created:
>
>                 PersistenceManager pm = PMF.get().getPersistenceManager();
>                 try{
>                         pm.currentTransaction().begin();
>                         TestSerialized draft = new TestSerialized();
>                         draft.setSerializedObj(new SerializedObj("dd"));
>                         pm.makePersistent(draft);
>                         pm.currentTransaction().commit();
>                 }finally{
>                         if(pm.currentTransaction().isActive()){
>                                 pm.currentTransaction().rollback();
>                         }
>                         pm.close();
>                 }
>
> @Persistent(serialized="true") didn't help either.
>
> Am I missing something?
>
> I am using SDK 1.3.1 .
>
> Thanks.

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