Re: [appengine-java] App Engine SDK 1.3.3 is out!

2010-04-22 Thread Esteban Ignacio Masoero
Excellent! Shouldn't the issue 2782 be marked as fixed?

Thanks,

Esteban

On Thu, Apr 22, 2010 at 2:58 AM, Guillaume Laforge wrote:

> Well done for the release!
>
> By the way:
>
> On Thu, Apr 22, 2010 at 00:37, Ikai L (Google)  wrote:
> > [...]
> > - Added two new system properties com.google.appengine.application.idand
> >   com.google.appengine.application.version
>
> What about a property like com.google.appengine.environment, that
> could have "local" or "production" as values?
> I know there are some other mechanisms to check that, but that would
> be interesting to have that convention available.
>
> --
> Guillaume Laforge
> Groovy Project Manager
> Head of Groovy Development at SpringSource
> http://www.springsource.com/g2one
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-04-22 Thread Esteban Ignacio Masoero
Yes, I've done the same thing. In my case, the numbers about initialization
are these:

3 sec - gae (apparently some internal thing)
2 sec - presentation framework initialization (wicket in my case)
4 sec - 2 sec for pm factory creation + 2 sec for 2/3 queries I make
1 sec - wicket and maybe some other gae stuff

I'm working on reducing my 4 sec part, but it's really dificult, because the
queries are done with a pk, so I think I can't do anything else.

By the way, I voted your issue! Hope Google guys give this matter some
urgent attention, because I think it's really serious problem.

Regards,

Esteban

On Thu, Apr 22, 2010 at 12:34 PM, Jake  wrote:

> I'm also still seeing this issue.  I have an open ticket here:
> http://code.google.com/p/googleappengine/issues/detail?id=2931 but
> it's not getting much attention :)
>
> Anyways, I've seen this as encouragement to make my startup time much
> more efficient, so I guess that's a good thing :)  My remaining issue
> is that there is a delay (2-10 seconds) between the initial request
> and when my servlet filter is initialized.  Unless I'm mistaken, I
> have no control over that.
>
> Jake
>
> On Apr 21, 4:34 pm, Esteban Ignacio Masoero 
> wrote:
> > Hi there:
> >
> > I'm experiencing the same issue. From what we've seen, after 5 minutes of
> > being accessed, our app gets "cycled out". Are there any news about this?
> > Has anyone created an isue about this problem?
> >
> > Thanks,
> >
> > Esteban
> >
> > On Wed, Mar 3, 2010 at 1:24 PM, Robert Lancer  >wrote:
> >
> >
> >
> > > Me too App ID ArachnoDB loading GData and its dependencies, happens
> > > about every 2 minutes on average, I will add in a logger and follow up
> > > but I can tell a load request from a normal request.
> >
> > > On Jan 15, 6:32 pm, Ikai Lan  wrote:
> > > > Hey everybody,
> >
> > > > We've been seeing more and more reports of applications being cycled
> out
> > > > overly aggressively, resulting in some folks implementing
> (discouraged)
> > > > workarounds to keep their application from being cycled out. The
> primary
> > > > symptom of this problem is that your application will see lots of
> > > "loading
> > > > requests" that fire up a new JVM, which, as many of you know can take
> > > > anywhere from a few seconds with naked servlets to as much as twenty
> > > seconds
> > > > when loading something like Spring MVC, JRuby on Rails or Grails.
> >
> > > > In theory, there is enough capacity such that as long as you get some
> > > > traffic every few hours, you should not be getting cycled out, but we
> > > have
> > > > been seeing reports of applications being cycled after only a minute
> or
> > > > less. To help us figure out if these are app specific issues or App
> > > Engine
> > > > issues, can you post the following information if you believe this is
> > > > happening to you?
> >
> > > > - What is your application ID?
> > > > - How do you know it is being cycled out? You'll need to insert some
> code
> > > > that only gets called when the app cold starts.
> > > > - How much time of inactivity does it take before your application is
> > > cycled
> > > > out?
> > > > - What time or days does this seem to happen?
> > > > - What frameworks or libraries are you loading?
> >
> > > > Any other information you can provide would be helpful.
> >
> > > > --
> > > > Ikai Lan
> > > > Developer Programs Engineer, Google App Engine
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-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.co

Re: [appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-04-21 Thread Esteban Ignacio Masoero
Hi there:

I'm experiencing the same issue. From what we've seen, after 5 minutes of
being accessed, our app gets "cycled out". Are there any news about this?
Has anyone created an isue about this problem?

Thanks,

Esteban

On Wed, Mar 3, 2010 at 1:24 PM, Robert Lancer wrote:

> Me too App ID ArachnoDB loading GData and its dependencies, happens
> about every 2 minutes on average, I will add in a logger and follow up
> but I can tell a load request from a normal request.
>
> On Jan 15, 6:32 pm, Ikai Lan  wrote:
> > Hey everybody,
> >
> > We've been seeing more and more reports of applications being cycled out
> > overly aggressively, resulting in some folks implementing (discouraged)
> > workarounds to keep their application from being cycled out. The primary
> > symptom of this problem is that your application will see lots of
> "loading
> > requests" that fire up a new JVM, which, as many of you know can take
> > anywhere from a few seconds with naked servlets to as much as twenty
> seconds
> > when loading something like Spring MVC, JRuby on Rails or Grails.
> >
> > In theory, there is enough capacity such that as long as you get some
> > traffic every few hours, you should not be getting cycled out, but we
> have
> > been seeing reports of applications being cycled after only a minute or
> > less. To help us figure out if these are app specific issues or App
> Engine
> > issues, can you post the following information if you believe this is
> > happening to you?
> >
> > - What is your application ID?
> > - How do you know it is being cycled out? You'll need to insert some code
> > that only gets called when the app cold starts.
> > - How much time of inactivity does it take before your application is
> cycled
> > out?
> > - What time or days does this seem to happen?
> > - What frameworks or libraries are you loading?
> >
> > Any other information you can provide would be helpful.
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



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

2010-04-17 Thread Esteban Ignacio Masoero
I found this issue that targets this problem, please anyone interested star
it: http://code.google.com/p/googleappengine/issues/detail?id=1508

Thanks,

Esteban

On Fri, Apr 16, 2010 at 4:46 PM, Esteban Ignacio Masoero <
emaso...@getsense.com.ar> wrote:

> I tried deleting all the memcache by calling cache.clear(); but it didn't
> work. I also noticed the solution posted here
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a/but
>  apparently only works with expired sessions. What I want to do is make
> all active sessions expire. Is it possible?
>
> Thanks,
>
> Esteban
>
>
> On Fri, Apr 16, 2010 at 3:05 PM, John Patterson wrote:
>
>> Sessions are also stored in memcache so you would also need to clear that.
>>
>> BTW, I catch all exceptions thrown from my cache and simply return null.
>>  After all, the cache is not intended to be a permanent store so your code
>> needs to handle this case anyway.
>>
>> On 16 Apr 2010, at 23:38, Esteban Ignacio Masoero wrote:
>>
>> Thomas, thanks for the response. I tried deleting all entries for
>> _ah_SESSION, but it didn't work. Can anyone from Google clarify whether this
>> should or shouldn't work?
>> I'll try what you said about the web.xml, if it's possible it should be
>> much better.
>>
>> Thanks,
>>
>> Esteban
>>
>> On Thu, Apr 15, 2010 at 9:38 PM, Thomas  wrote:
>>
>>> On 4月16日, 上午3時36分, Esteban Ignacio Masoero 
>>> wrote:
>>> > - Is there a way I can programatically (or from the admin console would
>>> be
>>> > best) make all session cookies expire?
>>>
>>> You can remove all entries (each represents a user session) in th
>>> _ah_SESSION kind with Datastore Viewer of Admin console.
>>>
>>> > - Would it be possible to make this exception "cacheable" by the app,
>>> so we
>>> > can at least show some proper message?
>>>
>>> Try to setup error page for java.io.InvalidClassException in
>>> web.xml. I am not sure if it works but it's worthy to try.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine for Java" group.
>>> To post to this group, send email to
>>> google-appengine-j...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine-java+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>>
>>
>> --
>> 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.



Re: [appengine-java] Re: Clear particular session manually

2010-04-17 Thread Esteban Ignacio Masoero
Seleronm:

Thanks for the suggestion, but sadly I've already tried that solution
without success. I got all the _ah_SESSION entities, deleted them from the
datastore, and also deleted them from the memcache, but it didn't work.

I'm convinced that the admin console should provide a feature to remove
sessions, not only inactive ones but also active ones (which of course is my
case).

Is there some Google developer around? Please, this is keeping us from
deploying new versions because we don't want to have to tell the users "you
need to delete your cookies so the site can work again".

Thanks,

Esteban

On Fri, Apr 16, 2010 at 11:58 PM, seleronm  wrote:

> Hi,
>
> Though it is not a question to me
>
> I think that the following sources might be useful for the acquisition
> of the key used with memcache.
>
> DatastoreService service =
> DatastoreServiceFactory.getDatastoreService();
> Query query = new Query("_ah_SESSION");
> PreparedQuery pq = service.prepare(query);
> List list = pq.asList(FetchOptions.Builder.withOffset(0));
>
> String keyValue = "";
>
> for (Entity e : list) {
>keyValue += e.getKey().toString() + "\n"; //get property(This might
> be useful. )
> }
>
> Hope some of this helps!
>
> Plase try.
> Thanks.
>
> > Hi david:
> >
> > Could you finally remove a complete session manually? Because I'm trying
> to
> > do the same.  What's the key that should be used in the memcache?
> >
> > Thanks,
> >
> > Esteban
> >
> >
> >
> > On Mon, Dec 28, 2009 at 1:32 AM, m seleron  wrote:
> > > Hi,
> >
> > > Supplement is
> > > As another solution,
> > > I think sessionCleanupServlet also useful for examining things.
> >
> > > Thanks.
> >
> > > On 12月28日, 午後12:56, m seleron  wrote:
> > > > Hi,
> >
> > > > In detail though it doesn't examine
> > > > I think that the following content serves as a reference.
> > >
> http://code.google.com/intl/us/appengine/docs/java/config/appconfig.html
> > > > Please look at the chapter of[Enabling Sessions] and [prefix of _ahs]
> >
> > > > I think that key of memcache turns out by the value of getKey of
> > > > [_ah_SESSION] and this link.
> >
> > > > Please Try,
> > > > thanks.
> >
> > > > On 12月24日, 午後3:59, David  wrote:
> >
> > > > > I need to clear a session manually from a servlet which has only
> the
> > > > > id of the session which needs to be cleared (long story short this
> is
> > > > > to overcome some limitation with flash not supporting cookies).
> >
> > > > > I need to delete both the session from datastore and memcache.
> >
> > > > > How can this be done ? (is the name of the entity in _ah_session
> table
> > > > > the id of the session ? )
> > > > > What is the key of the particular session for memcache ? can it be
> > > > > derived from the session id ?
> >
> > > --
> >
> > > 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 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.



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

2010-04-16 Thread Esteban Ignacio Masoero
I tried deleting all the memcache by calling cache.clear(); but it didn't
work. I also noticed the solution posted here
http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a/but
apparently only works with expired sessions. What I want to do is make
all active sessions expire. Is it possible?

Thanks,

Esteban

On Fri, Apr 16, 2010 at 3:05 PM, John Patterson wrote:

> Sessions are also stored in memcache so you would also need to clear that.
>
> BTW, I catch all exceptions thrown from my cache and simply return null.
>  After all, the cache is not intended to be a permanent store so your code
> needs to handle this case anyway.
>
> On 16 Apr 2010, at 23:38, Esteban Ignacio Masoero wrote:
>
> Thomas, thanks for the response. I tried deleting all entries for
> _ah_SESSION, but it didn't work. Can anyone from Google clarify whether this
> should or shouldn't work?
> I'll try what you said about the web.xml, if it's possible it should be
> much better.
>
> Thanks,
>
> Esteban
>
> On Thu, Apr 15, 2010 at 9:38 PM, Thomas  wrote:
>
>> On 4月16日, 上午3時36分, Esteban Ignacio Masoero 
>> wrote:
>> > - Is there a way I can programatically (or from the admin console would
>> be
>> > best) make all session cookies expire?
>>
>> You can remove all entries (each represents a user session) in th
>> _ah_SESSION kind with Datastore Viewer of Admin console.
>>
>> > - Would it be possible to make this exception "cacheable" by the app, so
>> we
>> > can at least show some proper message?
>>
>> Try to setup error page for java.io.InvalidClassException in
>> web.xml. I am not sure if it works but it's worthy to try.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>
> --
> 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.



Re: [appengine-java] Re: Clear particular session manually

2010-04-16 Thread Esteban Ignacio Masoero
Hi david:

Could you finally remove a complete session manually? Because I'm trying to
do the same.  What's the key that should be used in the memcache?

Thanks,

Esteban

On Mon, Dec 28, 2009 at 1:32 AM, m seleron  wrote:

> Hi,
>
> Supplement is
> As another solution,
> I think sessionCleanupServlet also useful for examining things.
>
> Thanks.
>
> On 12月28日, 午後12:56, m seleron  wrote:
> > Hi,
> >
> > In detail though it doesn't examine
> > I think that the following content serves as a reference.
> http://code.google.com/intl/us/appengine/docs/java/config/appconfig.html
> > Please look at the chapter of[Enabling Sessions] and [prefix of _ahs]
> >
> > I think that key of memcache turns out by the value of getKey of
> > [_ah_SESSION] and this link.
> >
> > Please Try,
> > thanks.
> >
> > On 12月24日, 午後3:59, David  wrote:
> >
> > > I need to clear a session manually from a servlet which has only the
> > > id of the session which needs to be cleared (long story short this is
> > > to overcome some limitation with flash not supporting cookies).
> >
> > > I need to delete both the session from datastore and memcache.
> >
> > > How can this be done ? (is the name of the entity in _ah_session table
> > > the id of the session ? )
> > > What is the key of the particular session for memcache ? can it be
> > > derived from the session id ?
> >
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>

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



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

2010-04-16 Thread Esteban Ignacio Masoero
Thomas, thanks for the response. I tried deleting all entries for
_ah_SESSION, but it didn't work. Can anyone from Google clarify whether this
should or shouldn't work?
I'll try what you said about the web.xml, if it's possible it should be much
better.

Thanks,

Esteban

On Thu, Apr 15, 2010 at 9:38 PM, Thomas  wrote:

> On 4月16日, 上午3時36分, Esteban Ignacio Masoero 
> wrote:
> > - Is there a way I can programatically (or from the admin console would
> be
> > best) make all session cookies expire?
>
> You can remove all entries (each represents a user session) in th
> _ah_SESSION kind with Datastore Viewer of Admin console.
>
> > - Would it be possible to make this exception "cacheable" by the app, so
> we
> > can at least show some proper message?
>
> Try to setup error page for java.io.InvalidClassException in
> web.xml. I am not sure if it works but it's worthy to try.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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] Cookie expiration: how can I make them expire programmatically?

2010-04-15 Thread Esteban Ignacio Masoero
Hi there:

When I make a deploy, I have the problem that if I make changes to classes
that where serialized as part of the session (this is natural in a wicket
app, as it is mine),  every user that was already logged from before the
deploy gets this ugly "local class incompatible" error, which to make things
worse is not possible to catch by the app, and the user only sees an empty
white page.
The error makes sense, but I'd like to ask:
- Is there a way I can programatically (or from the admin console would be
best) make all session cookies expire?
- Would it be possible to make this exception "cacheable" by the app, so we
can at least show some proper message?

At the end of this email I'm adding the exception stack trace.

Thanks in advance,

Esteban

-

Caused by: java.io.InvalidClassException: ar.com.blah.BaseLayoutPage;
local class incompatible: stream classdesc serialVersionUID =
3862527510678469715, local class serialVersionUID =
3079699908378169712
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at 
com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:385)

-- 
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] ImagesService misunderstands an uploaded file's size the first time

2010-04-14 Thread Esteban Ignacio Masoero
Hi there:

I'm having the strangest problem.

The first time I use the ImagesService (i.e. after it was recently deployed)
to transform an image, I get an "ApiProxy$RequestTooLargeException: The
request to API call images.Transform() was too large." exception and if I
look at the com.google.appengine.api.images.Image size attribute
(image.getImageData().length), the size has nothing to do with the real size
(for example, it says it's 2942Kb when in fact it's 16Kb, and I'm sure about
this because I logged the size before calling the images service and I got
the smallest one).

The second (or third) time I use the ImagesService, It works well, but it
seems that I need to call it with a different image. Then, when it's working
fine, I can call it with the "problematic image" (the first one) and it also
works fine.

Apparently it has nothing to do with the image itself, because I tried with
different images and it's always the same, the first time it doesn't work.
To make things even worse, my app is also deployed in another
(pre-production) gae environment, and in that environment it works fine!!!

Can anyone from google take a quick look at this? I can send them the app id
if they want to. Has anyone experienced some problem alike?

Thanks,

Esteban

-- 
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] Strange characters showing in incoming emails

2010-04-13 Thread Esteban Ignacio Masoero
Hi:

I think I'm experiencing the same problem. Strangely, I'm sending unicode
(spanish) characters, specially the 'ñ' (spanish N), and I receive them well
in the body part but not in the subject part of the email, where they appear
as a '?'.
I noticed this issue
http://code.google.com/p/googleappengine/issues/detail?id=2288 was created,
but I'm not really sure where it targets my problem.

David, did you finally solve your problem? any ideas about this?

Thanks,

Esteban


On Tue, Dec 1, 2009 at 10:02 AM, david ruescas  wrote:

> Ive done some more testing and it seems the problem is not limited to
> character 0008, but that in general strange unencoded characters
> occasionally show up, apparently without following any pattern. Anyone
> else encountering this issue?
>
> Thank you
>
> David
>
> On 11/30/09, david ruescas  wrote:
> > I get occasional characters that look like this
> >
> > http://www.fileformat.info/info/unicode/char/0008/index.htm
> >
> > when processing incoming emails. I think its the backspace 0008
> > character, at least thats how they show up in the app engine log. Any
> > idea where these characters are coming from?
> >
> > Thankyou,
> >
> > David
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>

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



Re: [appengine-java] Re: Error message after updating AppEngine in my project

2010-04-13 Thread Esteban Ignacio Masoero
Some posted this issue:
http://code.google.com/p/googleappengine/issues/detail?id=3051


On Tue, Mar 30, 2010 at 11:02 PM, Rahul  wrote:

> Ikai,
>
> It doesn't break anything and neither does it stops from deploying but
> it just looks ugly and we might miss the real error if any during the
> deployment.
>
> Thanks,
> Rahul
>
> On Mar 30, 8:43 pm, "Ikai L (Google)"  wrote:
> > Geo, what is the issue? Does it actually break anything? We'll
> investigate
> > on our part, but if it doesn't actually prevent you from writing code
> > there's absolutely no reason to downgrade.
> >
> >
> >
> > On Tue, Mar 30, 2010 at 2:19 PM, Geo  wrote:
> > > Thanks Ikai, for looking into the root cause.  I am confronting this
> > > issue, and I am relatively new to the GAE  Eclipse plugin.  One of the
> > > post before said that they were able to solve the issue by switching
> > > back to 1.3.1, since I got this update using the eclipse software
> > > manager,
> >
> > > how do I switch back now?
> >
> > > Thanks,
> >
> > > Geo
> >
> > > On Mar 30, 12:31 pm, "Ikai L (Google)"  wrote:
> > > > I'll have to try to reproduce this. In the meantime, use svn export:
> >
> > > >http://svnbook.red-bean.com/en/1.0/re10.html
> >
> > > > If it turns out the
> > > .metadata
> > > > directory IS causing problems, we'll investigate what's causing this
> and
> > > > either issue a fix or possibly document a better workaround.
> >
> > > > On Tue, Mar 30, 2010 at 12:09 AM, Spanishgringo <
> freeman...@gmail.com
> > > >wrote:
> >
> > > > > Same problem for me as well. :(  Back to 1.3.1 until someone can
> share
> > > > > a fix...
> >
> > > > > On Mar 30, 12:28 am, julianc 
> wrote:
> > > > > > Similar problem here. Upgraded to 1.3.2 error, switched back to
> > > > > > 1.3.1 ... everything fine again.
> >
> > > > > > Mar 29, 2010 11:24:44 PM
> > > > > > com.google.appengine.tools.info.LocalVersionFactory getVersion
> > > > > > INFO: Could not find API version from
> ../project/war/WEB-INF/lib/.svn
> > > > > > java.util.zip.ZipException: error in opening zip file
> > > > > > at java.util.zip.ZipFile.open(Native Method)
> > > > > > at java.util.zip.ZipFile.(ZipFile.java:114)
> > > > > > at java.util.jar.JarFile.(JarFile.java:133)
> > > > > > at java.util.jar.JarFile.(JarFile.java:97)
> > > > > > at
> >
> > >
> com.google.appengine.tools.util.ApiVersionFinder.findApiVersion(ApiVersionF
> > > > > inder.java:
> > > > > > 37)
> > > > > > at
> >
> > >
> com.google.appengine.tools.info.LocalVersionFactory.getVersion(LocalVersion
> > > > > Factory.java:
> > > > > > 65)
> > > > > > at
> >
> > >
> com.google.appengine.tools.info.UpdateCheck.getLocalVersion(UpdateCheck.jav
> > > > > a:
> > > > > > 112)
> > > > > > at
> >
> > >
> com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.jav
> > > > > a:
> > > > > > 91)
> > > > > > at
> >
> > >
> com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:
> > > > > > 164)
> > > > > > at
> >
> > >
> com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck
> > > > > .java:
> > > > > > 132)
> > > > > > at
> com.google.appengine.tools.development.DevAppServerMain
> > > > > > $StartAction.apply(DevAppServerMain.java:150)
> > > > > > at com.google.appengine.tools.util.Parser
> > > > > > $ParseResult.applyArgs(Parser.java:48)
> > > > > > at
> >
> > >
> com.google.appengine.tools.development.DevAppServerMain.(DevAppServer
> > > > > Main.java:
> > > > > > 113)
> > > > > > at
> >
> > >
> com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMa
> > > > > in.java:
> > > > > > 89)
> > > > > > Mar 29, 2010 11:24:44 PM
> > > com.google.apphosting.utils.jetty.JettyLogger
> > > > > > info
> > > > > > INFO: Logging to JettyLogger(null) via
> > > > > > com.google.apphosting.utils.jetty.JettyLogger
> > > > > > Mar 29, 2010 11:24:44 PM
> > > > > > com.google.apphosting.utils.config.AppEngineWebXmlReader
> > > > > > readAppEngineWebXml
> > > > > > INFO: Successfully processed
> ../project/war/WEB-INF/appengine-web.xml
> > > > > > Mar 29, 2010 11:24:44 PM
> > > > > > com.google.apphosting.utils.config.AbstractConfigXmlReader
> > > > > > readConfigXml
> >
> > > > > > On Mar 29, 7:04 pm, "Ikai L (Google)"  wrote:
> >
> > > > > > > Not sure why this should be happening as the deploy script
> should
> > > be
> > > > > > > ignoring this, but is it possible for you to do an "svn export"
> to
> > > > > another
> > > > > > > directory prior to a deploy?
> >
> > > > > --
> > > > > 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
> 
> >
>

Re: [appengine-java] Re: Handling HardDeadlineExceededError

2010-02-16 Thread Esteban Ignacio Masoero
In case anyone is interested in the feature Don talked about, you can vote
it here: http://code.google.com/p/googleappengine/issues/detail?id=2782 .

Regards,

Esteban

On Tue, Feb 16, 2010 at 5:56 PM, Esteban Masoero
wrote:

>  Thanks for the response Don.
> I would suggest altering the page
> http://code.google.com/intl/en/appengine/docs/java/runtime.html to clarify
> this.
>
> Thanks again,
>
> Esteban
>
> El 16/02/2010 13:08, Don Schwarz escribió:
>
> We don't currently make any guarantees about throwing
> DeadlineExceededException or HardDeadlineExceededError if you're in a tight
> CPU loop.
>
>  We may in the future, but for the moment please only rely on getting
> notifications of deadlines if you're doing one of the following:
> a) periodically making API calls,
> b) periodically doing I/O (e.g. loading data from files), or
> c) sleeping.
>
>   On Mon, Feb 15, 2010 at 10:58 AM, Esteban Masoero <
> emaso...@getsense.com.ar> wrote:
>
>>  yes, I'm sure I'm not catching anything.
>>
>> In fact, I did some tests and find out that most of the time the deadline
>> exception is not thrown when executing some code (untill now the deadline
>> exception only happened once), but It is always thrown when you are doing
>> something like sleep(). If you are executing some code, then most of the
>> time I only get a message of "Error: Server Error" with status code 500 (and
>> strangely the log doesn't say anything this time, but I guess is still the
>> HardDeadlineExceededError).
>> Here's the code:
>>
>> public class SimpleServlet extends HttpServlet {
>>
>> private static final long serialVersionUID = -3775863594932985057L;
>>
>> @Override
>> protected void doGet(HttpServletRequest req, HttpServletResponse resp)
>> throws ServletException, IOException {
>> try {
>> int time = req.getParameter("sleep") != null ?
>> Integer.valueOf(req.getParameter("sleep")) : 40;
>> resp.getWriter().println("Sleeping " + time + " seconds...");
>> Thread.sleep(time * 1000);
>> resp.getWriter().println("Interating infinitly...");
>> int i = 0;
>> boolean b = true;
>> while (b) {
>> i++;
>> }
>> } catch (InterruptedException e) {
>> System.out.println("InterruptedException");
>> resp.getWriter().println("InterruptedException");
>> } catch (DeadlineExceededException e) {
>> System.out.println("DeadlineExceededException");
>> resp.getWriter().println("DeadlineExceededException");
>> } catch (Throwable e) {
>> System.out.println("Catch throwable");
>> resp.getWriter().println("Catch throwable");
>> }
>> }
>>
>> @Override
>> protected void doPost(HttpServletRequest req, HttpServletResponse
>> resp) throws ServletException, IOException {
>> this.doGet(req, resp);
>> }
>> }
>>
>>
>> I guess the deadline handling process ise still a bit immature and we
>> should not rely upon it.
>>
>> Thanks,
>>
>> Esteban
>>
>>
>>
>> El 12/02/2010 18:40, John Patterson escribió:
>>
>> I believe that the stack trace from a HDEE is not accurate.  I found that
>> it seemed to be copied from the first DEE.  Are you sure you are not
>> catching and ignoring this first?
>>
>>  On 12 Feb 2010, at 22:24, Esteban Ignacio Masoero wrote:
>>
>> Hi there:
>>
>> I'm facing the same problem. I tried and I tried and I still can't catch
>> any deadlineException that is supossed to be thrown when I exceed the 30
>> seconds. The only thing I see is a HardDeadlineExceededError, and in my case
>> it ocurrs in the middle of a JDOQuery.deletePersistentAll() method.
>>
>> Anyone has any ideas? All I want to do is make sure that I'm handling that
>> situation in case it happens. Here's the stack:
>>
>> com.google.apphosting.runtime.HardDeadlineExceededError: This request
>> (ccc45fc5ce7541bd) started at 2010/02/12 14:51:12.763 UTC and was still
>> executing at 2010/02/12 14:51:42.551 UTC.
>> at
>> com.google.appengine.runtime.Request.process-ccc45fc5ce7541bd(Request.java)
>> at sun.misc.Unsafe.park(Native Method)
>> at java.util.concurrent.l

Re: [appengine-java] Re: Handling HardDeadlineExceededError

2010-02-12 Thread Esteban Ignacio Masoero
Hi there:

I'm facing the same problem. I tried and I tried and I still can't catch any
deadlineException that is supossed to be thrown when I exceed the 30
seconds. The only thing I see is a HardDeadlineExceededError, and in my case
it ocurrs in the middle of a JDOQuery.deletePersistentAll() method.

Anyone has any ideas? All I want to do is make sure that I'm handling that
situation in case it happens. Here's the stack:

com.google.apphosting.runtime.HardDeadlineExceededError: This request
(ccc45fc5ce7541bd) started at 2010/02/12 14:51:12.763 UTC and was still
executing at 2010/02/12 14:51:42.551 UTC.
at
com.google.appengine.runtime.Request.process-ccc45fc5ce7541bd(Request.java)
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(Unknown
Source)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(Unknown
Source)
at java.util.concurrent.CountDownLatch.await(Unknown Source)
at com.google.net.rpc.util.RpcWaiter.waitForRpcsToFinish(RpcWaiter.java:96)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:48)
at
com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:52)
at
com.google.appengine.api.datastore.DatastoreServiceImpl$3.run(DatastoreServiceImpl.java:225)
at
com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:30)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:211)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:192)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:184)
at
org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.delete(RuntimeExceptionWrappingDatastoreService.java:141)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.delete(DatastorePersistenceHandler.java:196)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.deleteObject(DatastorePersistenceHandler.java:612)
at
org.datanucleus.state.JDOStateManagerImpl.internalDeletePersistent(JDOStateManagerImpl.java:4198)
at
org.datanucleus.state.JDOStateManagerImpl.deletePersistent(JDOStateManagerImpl.java:4166)
at
org.datanucleus.ObjectManagerImpl.deleteObjectInternal(ObjectManagerImpl.java:1470)
at
org.datanucleus.ObjectManagerImpl.deleteObject(ObjectManagerImpl.java:1395)
at
org.datanucleus.ObjectManagerImpl.deleteObjects(ObjectManagerImpl.java:1534)
at
org.datanucleus.store.query.Query.performDeletePersistentAll(Query.java:1881)
at
org.datanucleus.store.query.AbstractJavaQuery.performDeletePersistentAll(AbstractJavaQuery.java:136)
at org.datanucleus.store.query.Query.deletePersistentAll(Query.java:1832)
at org.datanucleus.store.query.Query.deletePersistentAll(Query.java:1780)
at org.datanucleus.store.query.Query.deletePersistentAll(Query.java:1769)
at org.datanucleus.jdo.JDOQuery.deletePersistentAll(JDOQuery.java:159)
at ar.com.SomeCodeOfMine$8.doStuff(Blah.java:175)


Thanks,

Esteban



On Thu, Dec 24, 2009 at 4:24 AM, Lior Harsat  wrote:

> Hi Don,
>
> thanx for your quick reply.
> I am pretty sure I am not catching DeadlineExceededException anywhere
> in the code (but I'll check again...).
> I've seen some posts in the past and some bugs submitted to google
> code that there is an inconsistent behavior with regard to the
> deadline error/exception.
>
> Thanx,Lior
>
>
> On Dec 23, 10:36 pm, Don Schwarz  wrote:
> > You cannot catch HardDeadlineExceededError.  DeadlineExceededException
> > should be thrown first.
> >
> > Perhaps some code you are using is silently catching and ignoring it?
> >
> >
> >
> > On Wed, Dec 23, 2009 at 4:08 AM, Lior Harsat 
> wrote:
> > > Hi,
> >
> > > I am trying to build some mechanism for handling
> > > HardDeadlineExceededError (and other timeouts as well).
> > > I wish to catch this Error and wrap up my work so I can send my own
> > > response instead of the default error (500) message that GAE produces.
> > > Here's the problem. I cant catch this Error for some reason.I've made
> > > sure my catch clause is in the right place (from the error provided
> > > stack trace). I even catch a Throwable to make sure I don't miss the
> > > Error.
> > > Sadly I don't reach the catch clause.
> >
> > > Has anyone had some experience with this?
> > > Do you have some other innovative ideas on how to handle such
> > > timeouts ?
> >
> > > B.T.W
> > > I would have expected that a DeadlineExceededException would be thrown
> > > instead , dont you?
> >
> > > Thanx, Lior
> >
> > > --
> >
> > > 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 t

Re: [appengine-java] Re: case sensitivity

2009-11-17 Thread Esteban Ignacio Masoero
Hi.
I agree with Kris in that this feature is absolutely necessary. However,
maybe this feature will be included in this other more general issue
http://code.google.com/p/googleappengine/issues/detail?id=217 .
Maybe someone from Google can tell us what's the best way to do it, or
whether we can expect it soon by being included in some other issue.

Regards,

Esteban

On Tue, Nov 17, 2009 at 5:19 PM, Rusty Wright wrote:

> Resistance is futile.
>
> Kris wrote:
> > Thanks Rusty, I've already searched there and have seen the
> > suggestions. I have been having a hard time believing that there is no
> > way to do this when using google app engine but am more or less
> > convinced at this point.
> >
> >
> > On Nov 16, 6:06 pm, Rusty Wright  wrote:
> >> http://groups.google.com/group/google-appengine-java/search?group=goo.
> ..
> >>
> >>
> >>
> >> Kris wrote:
> >>> I'm more concerned about the proper way to do this generically. I
> >>> can't realistically store duplicates of every string based field that
> >>> I may want to search for.
> >>> On Nov 16, 11:36 am, Rusty Wright  wrote:
>  The recommended approach is to store the userName in all lower case,
> as an additional field/column, and then do the toLowerCase on the incoming
> parameter user name when you do the query and use that field/column that was
> stored in lower case.
>  Kris wrote:
> > Is there any way to perform a JDO query on google app engine using a
> > case insensitive string comparison? e.g.
> > For example,
> >Query query = pm.newQuery(User.class,
> "userName.toLowerCase() ==
> > user && password == pass");
> >query.declareParameters("String user, String pass");
> >query.setUnique(true);
> >User user = (User) query.execute(userName.toLowerCase(),
> password);
> > Of course GAE does not support the usage of toLowerCase() in the
> > filter string.
> > There's probably a terribly simple way to do this that I'm just not
> > aware of.
> > --
> > 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=.
> >>> --
> >>> 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=.
> >
> > --
> >
> > 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=.
> >
> >
>
> --
>
> 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=.
>
>
>

--

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




[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread Esteban Ignacio Masoero
And you can also look here:
http://code.google.com/intl/en/appengine/docs/java/datastore/queriesandindexes.html#Delete_By_Query

To google guys: By the way, there's a typo in the last link of that
paragraph, which doesn't have an anchor.

On Sat, Nov 7, 2009 at 3:29 PM, Rusty Wright wrote:

>
> Have a look at the Query class; you can use the id/key in the query.
> http://xrl.in/3m1e  http://xrl.in/3m1f
>
>
> Peter Recore wrote:
> > Is there a way to delete an entity without having to fetch it from the
> > datastore first?
> > Ideally, there would be a deleteObjectById analogue to getObjectById
> > on PersistenceManager.
> >
> > The closest I can think of is using Query.deletePersistentAll() and
> > specifying a keys only query, but I can't tell if that is going to
> > fetch the entity before deleting it.
> >
> > -peter
> > >
>
> >
>

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



[appengine-java] Re: I broke something using Eclipse plugin

2009-11-05 Thread Esteban Ignacio Masoero
Hi Romeo:

This problem was reported here
http://code.google.com/p/googleappengine/issues/detail?id=2280 . You can
vote for it so it gets fixed asap (there's also a workaround explained).

Regards,

Esteban


On Thu, Nov 5, 2009 at 9:04 PM, RSN  wrote:

>
> I had the same problem. But, after adding the jars to the build path
> as external jars, it complains about not finding the following:
>
> java.lang.reflect.InvocationTargetException
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>at sun.instrument.InstrumentationImpl.loadClassAndStartAgent
> (InstrumentationImpl.java:323)
>at sun.instrument.InstrumentationImpl.loadClassAndCallPremain
> (InstrumentationImpl.java:338)
> Caused by: java.lang.RuntimeException: Unable to find appengine-
> agentimpl.jar in C:\eclipse-jee-ganymede-SR2-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine-
> java-sdk-1.2.6\lib\impl
>at
>
> com.google.appengine.tools.development.agent.AppEngineDevAgent.findAgentImplLib
> (AppEngineDevAgent.java:97)
>at
> com.google.appengine.tools.development.agent.AppEngineDevAgent.premain
> (AppEngineDevAgent.java:48)
>... 6 more
> Exception in thread "main" FATAL ERROR in native method: processing of
> -javaagent failed
>
> It does not find the appengine-agentimpl.jar. I add this library also
> as an external jar, and it keeps getting the same error.
>
> Any help is greatly appreciated.
>
> As I side note, since I included the other libraries as external jars,
> I get the following type of warning:
> The following classpath entry 'C:\eclipse-jee-ganymede-SR2-
> win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine-
> java-sdk-1.2.6\lib\agent\appengine-agentimpl.jar' will not be
> available on the server's classpath TIE21
>
> so, aren't they supposed to be under Lib? Any suggestions?
>
> ROMEO
>
>
>
>
> On Sep 17, 4:30 am, Clay Lenhart  wrote:
> > That did it!!  Thanks Jason!
> >
> > On Sep 16, 11:24 pm, "Jason (Google)"  wrote:
> >
> > > Try adding the JARs to your build path without copying them to your lib
> > > directory. Just use "Add external JARs" in the Eclipse Build Path
> dialog.
> >
> > > - Jason
> >
>

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



[appengine-java] Re: Maximum data size of image sent to service is not 1Mb, but 512Kb?

2009-11-03 Thread Esteban Ignacio Masoero
Jason:

I've created this issue:
http://code.google.com/p/googleappengine/issues/detail?id=2353, so you can
have all the info you need to test both problems.

Thanks again!

Esteban

On Tue, Nov 3, 2009 at 4:35 PM, Jason (Google)  wrote:

> Hi Esteban. Please file any discrepancies between the development and
> production environments as bugs in the public issue tracker:
>
> http://code.google.com/p/googleappengine/issues/list
>
> Can you attach or link to an image that I can use to reproduce the error?
>
> Thanks,
> - Jason
>
> On Sat, Oct 31, 2009 at 10:41 AM, Esteban Ignacio Masoero <
> emaso...@getsense.com.ar> wrote:
>
>> Hi there:
>>
>> I am using the ImagesService as this page (
>> http://code.google.com/intl/en/appengine/docs/java/images/overview.html )
>> says, using exactly the code posted there, and found out that with images
>> between 512Kb (aprox.) and 1Mb, a strange error occurs. Moreover, the
>> exception thrown does not have the same text description (I asume this in
>> particular has to do with the differences that still exist between
>> development and production environment).
>>
>> Image: .png, 581Kb
>> Development: Caused by: java.lang.IllegalArgumentException: Failed to read
>> image at
>> com.google.appengine.api.images.ImagesServiceImpl.applyTransform(ImagesServiceImpl.java:65)
>> (...)
>> Production: Caused by: java.lang.IllegalArgumentException: Unknown at
>> com.google.appengine.api.images.ImagesServiceImpl.applyTransform(ImagesServiceImpl.java:65)
>> (...)
>>
>> This error is different that the one that occurs when an > 1Mb image is
>> processed, which correctly says "The request to API call images.Transform()
>> was too large.".
>>
>> I tried with an .png/466Kb image, and it worked fine in both environments.
>>
>> I think we have two different issues here, the different error messages in
>> dev/prod environments, and the apparently real restriction size, which seems
>> to be < 512Kb aprox.
>> Has anyone had the same problem? What can google guys say about this?
>>
>> Thanks in advance,
>>
>> Esteban
>>
>> PD = the 581Kb png image was edited with mspaint to reach that size, would
>> that have something to do with it? (I succesfully visualized in firefox
>> browser, so think it's ok, but I mention it just in case)
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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] Maximum data size of image sent to service is not 1Mb, but 512Kb?

2009-10-31 Thread Esteban Ignacio Masoero
Hi there:

I am using the ImagesService as this page (
http://code.google.com/intl/en/appengine/docs/java/images/overview.html )
says, using exactly the code posted there, and found out that with images
between 512Kb (aprox.) and 1Mb, a strange error occurs. Moreover, the
exception thrown does not have the same text description (I asume this in
particular has to do with the differences that still exist between
development and production environment).

Image: .png, 581Kb
Development: Caused by: java.lang.IllegalArgumentException: Failed to read
image at
com.google.appengine.api.images.ImagesServiceImpl.applyTransform(ImagesServiceImpl.java:65)
(...)
Production: Caused by: java.lang.IllegalArgumentException: Unknown at
com.google.appengine.api.images.ImagesServiceImpl.applyTransform(ImagesServiceImpl.java:65)
(...)

This error is different that the one that occurs when an > 1Mb image is
processed, which correctly says "The request to API call images.Transform()
was too large.".

I tried with an .png/466Kb image, and it worked fine in both environments.

I think we have two different issues here, the different error messages in
dev/prod environments, and the apparently real restriction size, which seems
to be < 512Kb aprox.
Has anyone had the same problem? What can google guys say about this?

Thanks in advance,

Esteban

PD = the 581Kb png image was edited with mspaint to reach that size, would
that have something to do with it? (I succesfully visualized in firefox
browser, so think it's ok, but I mention it just in case)

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



[appengine-java] Re: java.lang.AbstractMethodError at com.google.appengine.tools.development.DevAppServerImpl.getUserPermissions() moving from SDK 1.2.5 to 1.2.6

2009-10-19 Thread Esteban Ignacio Masoero
If you're not doing junit tests, you should add the VM parameter that
eclipse asks for when editing "running configurations" and that should do.
If you're also doing junit tests, then you should add appengine-agent.jar to
your classpath. There's an issue created about this:
http://code.google.com/p/googleappengine/issues/detail?id=2280

Regards,

Esteban


On Mon, Oct 19, 2009 at 9:14 PM, David  wrote:

>
> Same, any update on this?
>
> On Oct 14, 8:41 am, Patrizio Munzi  wrote:
> > Hi,
> > I'm getting this error moving from SDK 1.2.5 to
> 1.2.6:--2009-10-14 08:32:11.270::WARN:  EXCEPTION
> > java.lang.AbstractMethodError:
> com.google.appengine.tools.development.DevAppServerImpl.getUserPermissions()Ljava/security/Permissions;
> > at
> com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:122)
> > at java.lang.Thread.setContextClassLoader(Unknown Source)
> > at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:739)
> > at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> > at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:54)
> > at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > at
> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:342)
> > at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> > at org.mortbay.jetty.Server.handle(Server.java:313)
> > at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> > at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> > at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
> > at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> > 2009-10-14 08:32:11.286::WARN:  handle failed
> > java.lang.IllegalStateException: Request in context!
> > at org.mortbay.jetty.Request.recycle(Request.java:163)
> > at org.mortbay.jetty.HttpConnection.reset(HttpConnection.java:470)
> > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:450)
> > at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
> > at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)---
> > Regards
> >
>

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