[appengine-java] Re: DatastoreService instances

2010-04-02 Thread keyurva
Thanks John and Jeff. Thread-safety is a good enough reason to not
keep a DS instance lying around.

On Apr 1, 8:52 pm, Jeff Schnitzer j...@infohazard.org wrote:
 Appengine devs have said on a number of occasions that we should not
 assume thread-safety of any class not documented as being thread-safe.
  I don't see anything in the javadocs indicating that DatastoreService
 is thread-safe, therefore keeping an appwide instance of DS is
 probably risky - even if it works today.

 I'd suggest opening a fresh DatastoreService very time you need one.

 Jeff

 On Thu, Apr 1, 2010 at 7:07 PM, John Patterson jdpatter...@gmail.com wrote:
  As Ikai pointed out a DatastoreService is really very light weight so it
  really makes very little difference.

  If you are changing the config properties from place to place your only
  options are to cache each service by config or create a new one each time.
   If I were writing code by hand I would choose the simple option of creating
  one as needed with the options you want at the time.

  On 2 Apr 2010, at 08:09, keyurva wrote:

  In my application, I create a DatastoreService instance, maintain a
  reference to it and use it for the life of that instance of the
  application.

  In another discussion I learned that the cost of creating a new
  DatastoreService instance is negligible.

  Given that, is it still advisable for me to maintain a copy of the
  DatastoreService instance or should I create one anew every time I
  need to go to the datastore?

  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.

  --
  You received this message 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: DatastoreService instances

2010-04-02 Thread keyurva
Thanks John and Jeff.

On Apr 1, 8:52 pm, Jeff Schnitzer j...@infohazard.org wrote:
 Appengine devs have said on a number of occasions that we should not
 assume thread-safety of any class not documented as being thread-safe.
  I don't see anything in the javadocs indicating that DatastoreService
 is thread-safe, therefore keeping an appwide instance of DS is
 probably risky - even if it works today.

 I'd suggest opening a fresh DatastoreService very time you need one.

 Jeff

 On Thu, Apr 1, 2010 at 7:07 PM, John Patterson jdpatter...@gmail.com wrote:
  As Ikai pointed out a DatastoreService is really very light weight so it
  really makes very little difference.

  If you are changing the config properties from place to place your only
  options are to cache each service by config or create a new one each time.
   If I were writing code by hand I would choose the simple option of creating
  one as needed with the options you want at the time.

  On 2 Apr 2010, at 08:09, keyurva wrote:

  In my application, I create a DatastoreService instance, maintain a
  reference to it and use it for the life of that instance of the
  application.

  In another discussion I learned that the cost of creating a new
  DatastoreService instance is negligible.

  Given that, is it still advisable for me to maintain a copy of the
  DatastoreService instance or should I create one anew every time I
  need to go to the datastore?

  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.

  --
  You received this message 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] Google Enhancer - persistent final

2010-04-02 Thread Mathieu Joets
Hello,

I've had this problem a few times and it's hard to debug if you don't know
where to look :

When I have a final List in a Datastore object, it won't save or load the
content from the datastore.

Sounds logical ? well, with Eclipse, if you don't write the setter, eclipse
puts final automatically...

So maybe it would be a good idea to put a warning in the enhancer when it
finds a persistent final object ?

Mathieu

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



[appengine-java] Datastore + UI testing

2010-04-02 Thread Adrian B
Is there a way to combine datastore testing with local HTTP requests
so that you simultaneously validate the state of the datastore and the
way the data is displayed to the user?

-- 
You received this message 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] Google Enhancer - persistent final

2010-04-02 Thread Mathieu Joets
Hello,
I've had this problem a few times and it's hard to debug if you don't
know where to look :
When I have a final List in a Datastore object, it won't save or load
the content from the datastore.
Sounds logical ? well, with Eclipse, if you don't write the setter,
eclipse puts final automatically...
So maybe it would be a good idea to put a warning in the enhancer when
it finds a persistent final object ?

Mathieu

P.S. Sorry if you see this message twice, i sent it without the
[appengine-java] and wasn't sure if it would be read

-- 
You received this message 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: Eventually consistent reads and JDO

2010-04-02 Thread lepah
Hi there,

How can I use this with the low level datastore, I've looked around in
the JavaDocs and found ReadPolicy.Consistency but couldn't find
anywhere to set it. It could be just me as it's 1AM. Would love to try
it out.

On Apr 1, 11:39 am, Isdal tomas.is...@gmail.com wrote:
 Thanks Ikai!

 I noticed that the docs are updated now too. This page has a couple
 examples on it as 
 well:http://code.google.com/appengine/docs/java/datastore/usingjdo.html

 // Tomas

 On Mar 30, 3:57 pm, Ikai L (Google) ika...@google.com wrote:



  Yep. The example is documented here:

 http://googleappengine.blogspot.com/2010/03/read-consistency-deadline...

  http://googleappengine.blogspot.com/2010/03/read-consistency-deadline...Query
  q = pm.newQuery(Employee.class);
  q.addExtension(datanucleus.appengine.datastoreReadConsistency,
  EVENTUAL);

  On Fri, Mar 26, 2010 at 5:12 PM, Isdal tomas.is...@gmail.com wrote:
   Hi all,

   Thanks for all new new features in 1.3.2!

   I was just wondering if it is possible to use the
   ReadPolicy.Consistency.EVENTUAL feature and still use the JDO
   interface.

   I am currently getting a PersistenceManager with:
   JDOHelper.getPersistenceManagerFactory(transactions-
   optional);

   Is there a way to tell the PersistenceManager to tell the datastore to
   accept eventually consistent reads? Most of my app can handle stale
   data, and any performance improvement would be great!

   Thanks!

   // Tomas

   --
   You received this message 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.comgoogle-appengine-java%2B
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.



Re: [appengine-java] Re: Eventually consistent reads and JDO

2010-04-02 Thread Matt Farnell
I finally figured it out, its on the Datastore config level.

DatastoreServiceConfig config =
DatastoreServiceConfig.Builder.withReadPolicy(new ReadPolicy(Consistency.
EVENTUAL));

DatastoreService dss = DatastoreServiceFactory.getDatastoreService(config);

I thought it would have been on the Query object as it is in the JDO example
posted in the blog. I was using a singleton as I thought we were only meant
to instantiate one DatastoreService instance and reuse it??


On Fri, Apr 2, 2010 at 1:04 AM, lepah mfarn...@gmail.com wrote:

 Hi there,

 How can I use this with the low level datastore, I've looked around in
 the JavaDocs and found ReadPolicy.Consistency but couldn't find
 anywhere to set it. It could be just me as it's 1AM. Would love to try
 it out.

 On Apr 1, 11:39 am, Isdal tomas.is...@gmail.com wrote:
  Thanks Ikai!
 
  I noticed that the docs are updated now too. This page has a couple
  examples on it as well:
 http://code.google.com/appengine/docs/java/datastore/usingjdo.html
 
  // Tomas
 
  On Mar 30, 3:57 pm, Ikai L (Google) ika...@google.com wrote:
 
 
 
   Yep. The example is documented here:
 
  http://googleappengine.blogspot.com/2010/03/read-consistency-deadline.
 ..
 
   
 http://googleappengine.blogspot.com/2010/03/read-consistency-deadline..
 .Query
   q = pm.newQuery(Employee.class);
   q.addExtension(datanucleus.appengine.datastoreReadConsistency,
   EVENTUAL);
 
   On Fri, Mar 26, 2010 at 5:12 PM, Isdal tomas.is...@gmail.com wrote:
Hi all,
 
Thanks for all new new features in 1.3.2!
 
I was just wondering if it is possible to use the
ReadPolicy.Consistency.EVENTUAL feature and still use the JDO
interface.
 
I am currently getting a PersistenceManager with:
JDOHelper.getPersistenceManagerFactory(transactions-
optional);
 
Is there a way to tell the PersistenceManager to tell the datastore
 to
accept eventually consistent reads? Most of my app can handle stale
data, and any performance improvement would be great!
 
Thanks!
 
// Tomas
 
--
You received this message 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 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.comgoogle-appengine-java%2bunsubscr...@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: Book Recommendation

2010-04-02 Thread Didier Durand
Hello,

definitely, you must read
http://www.amazon.com/Programming-Google-App-Engine-Infrastructure/dp/059652272X/ref=sr_1_1?ie=UTF8s=booksqid=1270201752sr=8-1

tons of infos that you won't find anywhere else in such details
didier

On Apr 2, 4:18 am, iwas9409 t.lomb...@gmail.com wrote:
 I'm lower intermediate programmer that would like to delve into Google
 App Engine for Java using is Data store.

 Can someone recommend a good book or additional places then the
 'getting started' stuff on Google App Engine with Java.

 -Tom

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



Re: [appengine-java] Re: How to exclude requests to /stats when viewing appstats?

2010-04-02 Thread Andrei Cosmin Fifiiţă
Well, the pb is i don't know exactly. I actually need all of them... well
except /stats :P

On 1 April 2010 22:19, Peter Ondruska peter.ondru...@gmail.com wrote:

 Well, then let the filter filter explicitly those url-patterns you
 want to check stats for.

 On 1 dub, 16:20, Ice13ill andrei.fifi...@gmail.com wrote:
  I'm trying to use appstats to view the requests to my app. But i can't
  exclude the requests to /stats/ as stated in the dev guide:
 
  This installs the filter for all URLs, with the url-pattern of /*.
  (This includes the Appstats web-based administration interface
  discussed in the next section, which you may prefer to exclude from
  recording.) You can specify a different pattern to limit Appstats to
  URLs that match the pattern.
 
  I tried creating a filter witch treats request to url-pattern /stats/*
  and placing it before the AppstatsFilter mapping in the web.xml file,
  but it just shows a blank page, not the appstats GUI.
 
  Is there an exclusion tag or regex to use within the url-patter tag ?

 --
 You received this message 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.comgoogle-appengine-java%2bunsubscr...@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: Low-level API and eventual consistency

2010-04-02 Thread George Moschovitis
Should we create a new instance per query?
Or just use two instances (strong/eventual) for the whole app?

-g.

On Apr 2, 2:29 am, Ikai L (Google) ika...@google.com wrote:
 That's correct. The cost of creating an instance is negligible, though. It's
 not dissimilar to creating different MemcacheService instances with
 different write policies.





 On Thu, Apr 1, 2010 at 4:09 PM, keyurva keyu...@gmail.com wrote:
  I use the low-level datastore API. At runtime, I want to use the new
  eventual consistency on occasions and strong consistency at others.

  I was looking at the Query class to set the consistency option but
  noticed that it is only available in DatastoreServiceConfig. Is it
  expected that one needs to use different DatastoreService instances
  for different read policies? Or am I missing something obvious?

  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.comgoogle-appengine-java%2B 
  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.



Re: [appengine-java] Re: java.lang.ClassNotFoundException: com.google.appengine.tools.appstats.AppstatsFilter

2010-04-02 Thread Prashant Gupta
Thanks a lot, it worked.

I guess there was some problem with Google Plugin, it didn't replace the
jars when I updated my sdk version.

-- 
You received this message 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 Plugin not working.

2010-04-02 Thread dennisM
Thanks Keith,

I used Run as Administrator (right mouse click on application) to
start Eclipse and then added the  Appengine for Java plugin. Unless
I'm missing something, Microsoft isn't terribly forthright about the
security changes and the need to manually change to administrator in
some cases..

I did learn something else during this installation. I had assumed
that I had to install JEE to get the web stuff that the appengine
plugin uses. I now see that Eclipse downloads all the other stuff it
needs. I know that Eclipse downloads the dependencies that are needed
for a plugin, but wasn't sure about JEE.

Dennis


On Mar 31, 4:54 pm, Keith Platfoot kplatf...@google.com wrote:
 Dennis,

 Are you running Eclipse with Administrator privileges?  We've had other
 users report they had to do so in order to successfully install the Google
 Plugin for Eclipse.

 Keith

 On Tue, Mar 30, 2010 at 10:28 PM, dennisM meade.den...@gmail.com wrote:
  I can't get Appengine for Java 1.3.2 Eclipse plugin for Galileo to
  install properly on Windows 7. I get a variety of error messages about
  jars already being there,  I'll post more specific info about the
  errors shortly, but thought this might be familiar to others.

  Is there something special I need to do to get the plugin to work on
  Windows 7?

  On Mar 5, 2:33 pm, Ahmad ahmad...@gmail.com wrote:
   I am also unable to install  gae plugin for eclipse 3.5 --
   gelilio , on windows7

  --
  You received this message 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.comgoogle-appengine-java%2bunsubscr...@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: Java Mail Service

2010-04-02 Thread KarthikR
Hi

The java API javadoc at
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/mail/MailService.html
provides send() and sendToAdmins() methods, Can you try using
sendToAdmins() ?

Regards,
KarthikR

On Apr 1, 7:17 am, moissinac jcmoissi...@gmail.com wrote:
 Hello

 I have servlet with a code copied from the documentation for sending
 an email with the mail service
 Each time I call the service, I see the trace in the quota count like
 this:
 Mail
 Mail API Calls  0%      0%      5 of 7000       Okay
 Recipients Emailed      0%      0%      5 of 2000       Okay
 Admins Emailed  0%      0%      0 of 5000       Okay
 ...
 The count for Mail API Calls and Recipients Emailed is incremented
 each time

 My code send an email from the admin of my domain to the admin of my
 admin, but the item Admins Emailed  is never incremented

 The admin of my domain (me) never receive an email by that mean.
 If I send an email with gmail to the same address, it receive the
 email.

 Advice? help?
 Thank you inadvance

-- 
You received this message 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] JAXB Support

2010-04-02 Thread L. Kirven
Brian,

I am doing exactly the same thing.  I followed the blog below and didn't
have any problems.  I hope that this helps.

http://tugdualgrall.blogspot.com/2010/02/create-and-deploy-jax-rs-rest-service.html


On Fri, Apr 2, 2010 at 9:55 AM, Brian hannawaybr...@googlemail.com wrote:

 Hi,
 I've run into an issue with JAXB on GAE. I have set up a simple
 project using Jersey to expose a RESTful web service and am using JAXB
 for marshalling/unmarshalling. The project runs fine in my local
 eclipse environment but when I upload to GAE and send a request to the
 web service I am getting a JAXB exception (see stack trace below). I
 am using the latest version of JAXB and the latest version of GAE SDK.
 According to the white list JAXB should now be supported so I'm not
 sure what's going on. Any help to resolve this issue would be greatly
 appreciated.

 Uncaught exception from servlet
 java.lang.ExceptionInInitializerError
at

 com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:
 79)
at

 com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:
 165)
at com.sun.xml.bind.v2.runtime.reflect.Accessor
 $FieldReflection.optimize(Accessor.java:256)
at

 com.sun.xml.bind.v2.runtime.property.ArrayProperty.init(ArrayProperty.java:
 65)
at

 com.sun.xml.bind.v2.runtime.property.ArrayERProperty.init(ArrayERProperty.java:
 84)
at

 com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.init(ArrayElementProperty.java:
 96)
at

 com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.init(ArrayElementNodeProperty.java:
 58)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:33)
at

 com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:
 124)
at

 com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.init(ClassBeanInfoImpl.java:
 179)
at

 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:
 515)
at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:
 330)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl
 $JAXBContextBuilder.build(JAXBContextImpl.java:1140)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
 154)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
 121)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
 202)
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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:159)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:311)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at

 com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.init(WadlApplicationContextImpl.java:
 66)
at
 com.sun.jersey.server.impl.wadl.WadlFactory.init(WadlFactory.java:
 94)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.initWadl(WebApplicationImpl.java:
 1207)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:
 1106)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:
 912)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:
 589)
at

 com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:
 403)
at com.sun.jersey.spi.container.servlet.ServletContainer
 $InternalWebComponent.initiate(ServletContainer.java:252)
at
 com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:
 550)
at
 com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:
 201)
at

 com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:
 307)
at

 com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:
 470)
at javax.servlet.GenericServlet.init(GenericServlet.java:215)
at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
 440)
at
 org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 263)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
at
 

Re: [appengine-java] Datastore + UI testing

2010-04-02 Thread Ikai Lan
Are you looking to test the servlets or to do a full-stack integration test
that also involves executing Javascript? I'd recommend Selenium:

http://seleniumhq.org/

http://seleniumhq.org/Just note that the more components you test in a
single suite, the more brittle your tests will be. Selenium tests will give
you the most confidence, but they're also the most work to maintain.

On Fri, Apr 2, 2010 at 12:54 AM, Adrian B adrian.bog...@gmail.com wrote:

 Is there a way to combine datastore testing with local HTTP requests
 so that you simultaneously validate the state of the datastore and the
 way the data is displayed to the user?

 --
 You received this message 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.comgoogle-appengine-java%2bunsubscr...@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: Eventually consistent reads and JDO

2010-04-02 Thread Ikai L (Google)
You're probably best off creating new instances of DatastoreService. There
are some good points raised here:

https://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b#

On Fri, Apr 2, 2010 at 1:26 AM, Matt Farnell mfarn...@gmail.com wrote:

 I finally figured it out, its on the Datastore config level.

 DatastoreServiceConfig config =
 DatastoreServiceConfig.Builder.withReadPolicy(new ReadPolicy(Consistency.
 EVENTUAL));

 DatastoreService dss = DatastoreServiceFactory.getDatastoreService(config);

 I thought it would have been on the Query object as it is in the JDO
 example posted in the blog. I was using a singleton as I thought we were
 only meant to instantiate one DatastoreService instance and reuse it??


 On Fri, Apr 2, 2010 at 1:04 AM, lepah mfarn...@gmail.com wrote:

 Hi there,

 How can I use this with the low level datastore, I've looked around in
 the JavaDocs and found ReadPolicy.Consistency but couldn't find
 anywhere to set it. It could be just me as it's 1AM. Would love to try
 it out.

 On Apr 1, 11:39 am, Isdal tomas.is...@gmail.com wrote:
  Thanks Ikai!
 
  I noticed that the docs are updated now too. This page has a couple
  examples on it as well:
 http://code.google.com/appengine/docs/java/datastore/usingjdo.html
 
  // Tomas
 
  On Mar 30, 3:57 pm, Ikai L (Google) ika...@google.com wrote:
 
 
 
   Yep. The example is documented here:
 
  http://googleappengine.blogspot.com/2010/03/read-consistency-deadline.
 ..
 
   
 http://googleappengine.blogspot.com/2010/03/read-consistency-deadline..
 .Query
   q = pm.newQuery(Employee.class);
   q.addExtension(datanucleus.appengine.datastoreReadConsistency,
   EVENTUAL);
 
   On Fri, Mar 26, 2010 at 5:12 PM, Isdal tomas.is...@gmail.com wrote:
Hi all,
 
Thanks for all new new features in 1.3.2!
 
I was just wondering if it is possible to use the
ReadPolicy.Consistency.EVENTUAL feature and still use the JDO
interface.
 
I am currently getting a PersistenceManager with:
JDOHelper.getPersistenceManagerFactory(transactions-
optional);
 
Is there a way to tell the PersistenceManager to tell the datastore
 to
accept eventually consistent reads? Most of my app can handle stale
data, and any performance improvement would be great!
 
Thanks!
 
// Tomas
 
--
You received this message 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 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.comgoogle-appengine-java%2bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@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] Lost record updates after server restart

2010-04-02 Thread Ikai L (Google)
Do you have any code samples you can post?

On Sun, Mar 28, 2010 at 7:26 PM, mozey moze...@gmail.com wrote:

 Hello everyone,

 I have a simple issue, and i'm sure its fix is simple as well. I have
 written a simple app's scaffolding front end. And i notice that when i
 add new records, they get persisted, but when i update records. The
 effect will last until i restart my server. Where could i start
 looking to get this fix?

 --
 You received this message 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.comgoogle-appengine-java%2bunsubscr...@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] Where is the jar file for i.cache.BasicCacheFactory'

2010-04-02 Thread niraj
I keep on getting this error - net.sf.jsr107cache.CacheException:
Could not find class: 'ri.cache.BasicCacheFactory'

Where is the jar file for this.

I have jsr107-cache.1.1.jar on the path and I am running GAEJ 1.3.2

-- 
You received this message 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: Eventually consistent reads and JDO

2010-04-02 Thread Ikai L (Google)
Since it is not explicitly documented as thread safe, you should not make
this assumption. Basically, it's the same as us telling you not to use
undocumented methods because they *can* and *have* changed.

On Fri, Apr 2, 2010 at 11:46 AM, Matt Farnell mfarn...@gmail.com wrote:

 Hi Ikai,

 It says in that forum that it's 'probably' not thread safe, so is it thread
 safe or not? If its not threadsafe then we should never use a singleton
 instance.

 Can you give us a more definitive answer such as it's not threadsafe so
 never cache the instance, or it is threadsafe so therefore it is up to us.
 It would be very helpful.

 thanks,
 Matt

 On Fri, Apr 2, 2010 at 9:54 AM, Ikai L (Google) ika...@google.com wrote:

 You're probably best off creating new instances of DatastoreService. There
 are some good points raised here:


 https://groups.google.com/group/google-appengine-java/browse_thread/thread/e19b792042b2ff9b#

 On Fri, Apr 2, 2010 at 1:26 AM, Matt Farnell mfarn...@gmail.com wrote:

 I finally figured it out, its on the Datastore config level.

 DatastoreServiceConfig config =
 DatastoreServiceConfig.Builder.withReadPolicy(newReadPolicy(Consistency.
 EVENTUAL));

 DatastoreService dss
 = DatastoreServiceFactory.getDatastoreService(config);

 I thought it would have been on the Query object as it is in the JDO
 example posted in the blog. I was using a singleton as I thought we were
 only meant to instantiate one DatastoreService instance and reuse it??


 On Fri, Apr 2, 2010 at 1:04 AM, lepah mfarn...@gmail.com wrote:

 Hi there,

 How can I use this with the low level datastore, I've looked around in
 the JavaDocs and found ReadPolicy.Consistency but couldn't find
 anywhere to set it. It could be just me as it's 1AM. Would love to try
 it out.

 On Apr 1, 11:39 am, Isdal tomas.is...@gmail.com wrote:
  Thanks Ikai!
 
  I noticed that the docs are updated now too. This page has a couple
  examples on it as well:
 http://code.google.com/appengine/docs/java/datastore/usingjdo.html
 
  // Tomas
 
  On Mar 30, 3:57 pm, Ikai L (Google) ika...@google.com wrote:
 
 
 
   Yep. The example is documented here:
 
  
 http://googleappengine.blogspot.com/2010/03/read-consistency-deadline.
 ..
 
   
 http://googleappengine.blogspot.com/2010/03/read-consistency-deadline..
 .Query
   q = pm.newQuery(Employee.class);
   q.addExtension(datanucleus.appengine.datastoreReadConsistency,
   EVENTUAL);
 
   On Fri, Mar 26, 2010 at 5:12 PM, Isdal tomas.is...@gmail.com
 wrote:
Hi all,
 
Thanks for all new new features in 1.3.2!
 
I was just wondering if it is possible to use the
ReadPolicy.Consistency.EVENTUAL feature and still use the JDO
interface.
 
I am currently getting a PersistenceManager with:
JDOHelper.getPersistenceManagerFactory(transactions-
optional);
 
Is there a way to tell the PersistenceManager to tell the
 datastore to
accept eventually consistent reads? Most of my app can handle
 stale
data, and any performance improvement would be great!
 
Thanks!
 
// Tomas
 
--
You received this message 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 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.comgoogle-appengine-java%2bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@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 

Re: [appengine-java] Java Tasks

2010-04-02 Thread Ikai L (Google)
No, but your cron tasks may be loading requests. That is - we are firing up
a version of your application due to low traffic.

On Mon, Mar 29, 2010 at 12:51 PM, kscott kscot...@gmail.com wrote:

 I have a simple Java task that simply checks to see if it needs to
 send an email email sent flag =N.

 It is taking in excess of 6604 milliseconds to execute.  Are tasks
 executed with a much lower priority?

 When I moved my start time to15 minutes later I was a least able to
 get rid of the most of the HTTP 500 errors caused by exceeding the
 simultaneous dynamic request limit.

 --
 You received this message 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.comgoogle-appengine-java%2bunsubscr...@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] _ah_SESSION index on _expires property

2010-04-02 Thread Ikai L (Google)
It's likely that we did this to improve throughput on session creation. Can
you file a feature request? We'll need to figure out how to best make this a
configurable flag for users that want it.

On Wed, Mar 31, 2010 at 12:56 AM, Peter Ondruska
peter.ondru...@gmail.comwrote:

 I am trying to automatically cleanup expired session by deleting
 records from _ah_SESSION. Instead of iterating through all records I
 tried to filter on _expires but it does not work because it is not
 indexed. Manual index creation failed. Is the index missing by design?
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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: Datastore + UI testing

2010-04-02 Thread Adrian B
Thank you for the reply.

I'm not looking into testing actual user interaction (or JavaScript
for that matter). I have some JSP pages that output HTML with minimum
formatting, and that's what I want to test right now. The ideal
solution would be something like:
1. Create and persist a new entity of a particular type
2. Check that the entity is retrieved by a method
3. Check that the entity is visible in the UI (just parse the simple
HTML).

The question is what would be the best setup to manipulate the
datastore and request pages in the same test session?

On Apr 2, 7:53 pm, Ikai Lan i...@google.com wrote:
 Are you looking to test the servlets or to do a full-stack integration test
 that also involves executing Javascript? I'd recommend Selenium:

 http://seleniumhq.org/

 http://seleniumhq.org/Just note that the more components you test in a
 single suite, the more brittle your tests will be. Selenium tests will give
 you the most confidence, but they're also the most work to maintain.





 On Fri, Apr 2, 2010 at 12:54 AM, Adrian B adrian.bog...@gmail.com wrote:
  Is there a way to combine datastore testing with local HTTP requests
  so that you simultaneously validate the state of the datastore and the
  way the data is displayed to the user?

  --
  You received this message 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.comgoogle-appengine-java%2B 
  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.



Re: [appengine-java] Re: Datastore + UI testing

2010-04-02 Thread Ikai L (Google)
In a typical setup, you would use HtmlUnit:

http://htmlunit.sourceforge.net/

http://htmlunit.sourceforge.net/I've heard conflicting reports regarding
whether or not it works in App Engine out of the box. If you give this a
try, can you email the group and let us know if it works as well as any
configuration needed? I've been wanting to investigate this myself but it
hasn't been high on my list.

On Fri, Apr 2, 2010 at 2:51 PM, Adrian B adrian.bog...@gmail.com wrote:

 Thank you for the reply.

 I'm not looking into testing actual user interaction (or JavaScript
 for that matter). I have some JSP pages that output HTML with minimum
 formatting, and that's what I want to test right now. The ideal
 solution would be something like:
 1. Create and persist a new entity of a particular type
 2. Check that the entity is retrieved by a method
 3. Check that the entity is visible in the UI (just parse the simple
 HTML).

 The question is what would be the best setup to manipulate the
 datastore and request pages in the same test session?

 On Apr 2, 7:53 pm, Ikai Lan i...@google.com wrote:
  Are you looking to test the servlets or to do a full-stack integration
 test
  that also involves executing Javascript? I'd recommend Selenium:
 
  http://seleniumhq.org/
 
  http://seleniumhq.org/Just note that the more components you test in a
  single suite, the more brittle your tests will be. Selenium tests will
 give
  you the most confidence, but they're also the most work to maintain.
 
 
 
 
 
  On Fri, Apr 2, 2010 at 12:54 AM, Adrian B adrian.bog...@gmail.com
 wrote:
   Is there a way to combine datastore testing with local HTTP requests
   so that you simultaneously validate the state of the datastore and the
   way the data is displayed to the user?
 
   --
   You received this message 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 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.comgoogle-appengine-java%2bunsubscr...@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: Appstats not working. /stats = 404

2010-04-02 Thread Alexander Orlov
You should be redirected to /appstats/stats. Try to call this URL
manually after you're authenticated as admin user.

- Alex

On Apr 3, 2:10 am, Arny arny...@googlemail.com wrote:
 Hi,

 I'm trying to get Appstats to work with no success.
 Added all the lines specified in the docs to my web.xml

 After signing in at /appstats, I'm getting a redirection to /stats,
 but there I get not found 404 error.
 I'm using appengine 1.3.2.

 Did I miss anything?

 Thanks
 Regards
 Arny

-- 
You received this message 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: Appstats not working. /stats = 404

2010-04-02 Thread Arny
Thanks, that worked!

No idea why it is redirecting to /stats

Regards,
Arny

On Apr 3, 2:16 am, Alexander Orlov alexander.or...@loxal.net wrote:
 You should be redirected to /appstats/stats. Try to call this URL
 manually after you're authenticated as admin user.

 - Alex

 On Apr 3, 2:10 am, Arny arny...@googlemail.com wrote:

  Hi,

  I'm trying to get Appstats to work with no success.
  Added all the lines specified in the docs to my web.xml

  After signing in at /appstats, I'm getting a redirection to /stats,
  but there I get not found 404 error.
  I'm using appengine 1.3.2.

  Did I miss anything?

  Thanks
  Regards
  Arny



-- 
You received this message 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: Appstats not working. /stats = 404

2010-04-02 Thread Alexander Orlov
If you call the page from your Admin Console from the Custom/Appstats
menu in the Appspot Admin Menu it's not a big surprise because there
is a bug in the article (http://googleappengine.blogspot.com/2010/03/
easy-performance-profiling-with.html).

appengine-web.xml shouldn't contain:

admin-console
 page name=Appstats url=/stats /
/admin-console

but

admin-console
 page name=Appstats url=/appstats/stats /
 !-- page name=Appstats url=/appstats/ / should work as well --

/admin-console

- Alex

On Apr 3, 2:41 am, Arny arny...@googlemail.com wrote:
 Thanks, that worked!

 No idea why it is redirecting to /stats

 Regards,
 Arny

 On Apr 3, 2:16 am, Alexander Orlov alexander.or...@loxal.net wrote:



  You should be redirected to /appstats/stats. Try to call this URL
  manually after you're authenticated as admin user.

  - Alex

  On Apr 3, 2:10 am, Arny arny...@googlemail.com wrote:

   Hi,

   I'm trying to get Appstats to work with no success.
   Added all the lines specified in the docs to my web.xml

   After signing in at /appstats, I'm getting a redirection to /stats,
   but there I get not found 404 error.
   I'm using appengine 1.3.2.

   Did I miss anything?

   Thanks
   Regards
   Arny

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



[appengine-java] How-to debug JSP stack dump on GAE production

2010-04-02 Thread James H
This trace below is from production environment.  How do I find the
memberHome_jsp.java so I can verify the problem at line 165?  I found
the .java file used for running locally, but this line# in question
was inappropriate in regard to causing a null issue...so I must be
looking at the wrong .java in the case of production dumps.  Thanks, J

Programming Details - java.lang.NullPointerException
at org.apache.jsp.app2.memberHome_jsp._jspService(memberHome_jsp.java:
165)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
390)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)

-- 
You received this message 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.