[appengine-java] Re: Do JPA objects show up in the admin colsole ?

2009-12-30 Thread newbie100
Thanks. I spotted the error. I did not do a close() on the EntityManager (or perhaps a flush would also work). On Dec 30, 12:42 am, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: On Wed, Dec 30, 2009 at 12:51 AM, newbie100 shahed...@gmail.com wrote: Hi, I have just written my

[appengine-java] getting wrong presence status for XMPP users

2009-12-30 Thread Ankur
Hi, I have a very simple application where i sent a chat message to my application and check if user is available.But i am always getting as false. here is my code. XMPPService xmpp = XMPPServiceFactory.getXMPPService(); Message message = xmpp.parseMessage(req); JID

[appengine-java] Springframework - problem with session forms in GAE for Java 1.3.0

2009-12-30 Thread Konrad
Hi, I am developing small application for GAE using Springframework (3.0 RC1). I am using controller with session form attribute. It was working perfectly before 1.3.0 SDK release. Now I'm getting errors that form was not found on session. I verified that form implements Serializable. I have

[appengine-java] Re: Springframework - problem with session forms in GAE for Java 1.3.0

2009-12-30 Thread Konrad
BTW: This error ocures only on hosted mode, in local running app everything is fine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from

[appengine-java] Re: How to speed up JSP compile time?

2009-12-30 Thread Simon Vogensen
Hi Im having the same problems.. every time I change a .jsp file it takes up to 3 min to recompile it.. My project is very small, there's almost no data in the datastore. The jsp file is also very small. I should say that im running appengine through devmode on a mac with snow leopard. I have

[appengine-java] JPA Uses Annotations Only

2009-12-30 Thread vvernon
Is JPA only supported with annotations, or can the DataNucleus mapping XML also be used? I only see explicit documentation references to the annotations. If mapping XML is supported for JPA, how do you set it up? I did see a brief reference to support for .jdo files, which are XML, but not for

[appengine-java] Servlet filter not being called?

2009-12-30 Thread gemma
Hello! I'm new to App Engine and am jumping straight in and learning via writing an app, as you do. I figured that a good thing to do was to create a servlet filter that checks the user's login status, forwarding to the login page if they haven't got a login, or allowing the request through if

Re: [appengine-java] Domain setup using Google Apps

2009-12-30 Thread Daniel Louis
Yeah, it is possible... 2009/12/23 Marcel Overdijk marceloverd...@gmail.com I own the footdex.com Google Apps domain. I've bought this some time ago to host a GAE application on it. I now finally added the domain using in GAE admin console, but all I can do is attach it to a subdomain of

[appengine-java] Incoming mail handler runs slow

2009-12-30 Thread Derek Battams
I've written an incoming mail handler and it works, that is, it does what I want it to do, but it runs slow, very slow. However, I'm not sure why it's so slow because I'm using the QuotaService to time how long the doPost() method of my email handler servlet is running and it's returning 0.00 CPU

Re: [appengine-java] Servlet filter not being called?

2009-12-30 Thread Don Schwarz
From http://code.google.com/appengine/docs/java/gettingstarted/staticfiles.html: Any request for a URL whose path matches a static file serves the file directly to the browser—even if the path also matches a servlet or filter mapping. You can configure which files App Engine treats as static

[appengine-java] Re: JPA Uses Annotations Only

2009-12-30 Thread datanucleus
DataNucleus supports all types of input ... JPA annotations, JPA XML, JDO annotations, JDO XML ... all for use with JPA persistence API (with or without GAE/J). You won't find that flexibility in any other persistence solution ... -- You received this message because you are subscribed to the

[appengine-java] Re: Does DataNucleus support add(int arg0, E arg1) for JDO-backed lists?

2009-12-30 Thread datanucleus
DataNucleus itself supports all java.util.List methods. What GAE/J supports is unknown to me. Your stack trace seems to relate to a pm.close() not to any add operation. Obviously the log would tell you what is happening. -- You received this message because you are subscribed to the Google

[appengine-java] updated attribute in feed is not working right

2009-12-30 Thread Tb
It's supposed to be a DateTime representation of the last time the feed was updated but I seem to get the current date every time I request the feed: Query myQuery = new Query(feedUrl); myQuery.setUpdatedMin(new DateTime(lastStartTime)); // I store the updated

Re: [appengine-java] Servlet filter not being called?

2009-12-30 Thread Ikai L (Google)
If you only require simple authentication, you can get by without even using a filter and just using auth constraints in the deployment descriptor: http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication On Wed, Dec 30, 2009 at 10:18 AM, Don Schwarz

Re: [appengine-java] setting a lower deadline

2009-12-30 Thread Ikai L (Google)
Sounds like a pretty useful feature, actually. As far as I know, there's no way of doing this. Did you have any ideas how this would be implemented outside App Engine? Maybe we can cook something up. I'd go ahead and file this as a feature request:

[appengine-java] Re: How to speed up JSP compile time?

2009-12-30 Thread Simon Vogensen
Hi again The funny thing is that on my machine (a macbook pro 2.66 ghz dual core) all jsp files takes about 1:45 minutes to compile.. even the ones with no logic.. Cheers Simon On Dec 30, 2:50 pm, Simon Vogensen vogen...@gmail.com wrote: Hi Im having the same problems.. every time I change a

Re: [appengine-java] Testing mail service in development mode

2009-12-30 Thread Ikai L (Google)
Outbound emails are logged to the logger: http://code.google.com/appengine/docs/java/mail/overview.html#Development_Server http://code.google.com/appengine/docs/java/mail/overview.html#Development_ServerIs your logger configured? There's a sample verbose logging.properties that ships with the

Re: [appengine-java] Using UserService credentials with a SpreadsheetService

2009-12-30 Thread Ikai L (Google)
The methods available to the users service are documented here: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/package-summary.html The Users Service doesn't provide an AuthSub token: http://code.google.com/apis/gdata/javadoc/ That's not great, I know. You

Re: [appengine-java] problem running my app

2009-12-30 Thread Ikai L (Google)
Vik, did you have any luck solving this issue? On Tue, Dec 29, 2009 at 5:50 AM, Vik vik@gmail.com wrote: Hie By mistake i deleted my eclipse folder. So i freshly got a copy and installed google plugin for eclipse and opened my project. Now when i run it fails giving following exception

Re: [appengine-java] Re: JDO Query for properties with null values

2009-12-30 Thread Ikai L (Google)
I'm not sure what will happen when you pass this: (Key) null As the query parameter. Instead, what happens if you query on parentKey == null? On Tue, Dec 29, 2009 at 11:47 AM, dantuluri pdantul...@gmail.com wrote: Hi, I have the following code: query = pm.newQuery(File.class);

[appengine-java] Re: Servlet filter not being called?

2009-12-30 Thread gemma
Thank you so much guys - very much appreciated! Thanks! Gemma On Dec 30, 7:06 pm, Ikai L (Google) ika...@google.com wrote: If you only require simple authentication, you can get by without even using a filter and just using auth constraints in the deployment

[appengine-java] Re: Springframework - problem with session forms in GAE for Java 1.3.0

2009-12-30 Thread Konrad
Ok, I will answer my self ... in case someone will hit same issue ... Do not check only your form. Seams that if there is any other attribute added to session which is not extending Serializable, whole session fails to serialize, but you will get only warning on this in log, and you will get such

[appengine-java] JDO/JPA Snippets That Work - More compact @PersistenceCapable declarations

2009-12-30 Thread Max Ross (Google)
http://gae-java-persistence.blogspot.com/2009/12/more-compact-persistencecapable.html -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from

[appengine-java] Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??

2009-12-30 Thread Juri
Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work. Locally when developing within the hosted mode browser in Eclipse it works just fine, but when I deploy it to AppEngine I get the

[appengine-java] How to query objects with criterias defined in child entities

2009-12-30 Thread reini77
Hi, I'm trying to implement the following scenario and I can't get my head round how to implement it. Assume we get a list of user profiles where each profile can have a set of skills. Each skill is defined by a name (or reference to an entity with more information) and an experience level. Now

[appengine-java] Re: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??

2009-12-30 Thread Marcel Overdijk
Are those Spring classes creating threads? This is not allowed on GAE. On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com wrote: Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work.

[appengine-java] Re: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??

2009-12-30 Thread Juri
Indeed, the TimerTask class implements Runnable...damn. Didn't know that threads aren't allowed. Thx On Dec 30, 11:31 pm, Marcel Overdijk marceloverd...@gmail.com wrote: Are those Spring classes creating threads? This is not allowed on GAE. On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com

[appengine-java] Re: Testing mail service in development mode

2009-12-30 Thread Marcel Overdijk
I'm using log4j as follows: log4j.rootLogger=INFO, A1 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %-5p %c - %m%n log4j.category.DataNucleus.JDO=WARN

[appengine-java] Re: Domain setup using Google Apps

2009-12-30 Thread Marcel Overdijk
It's was related to Google Sites within Google Apps. I had www configured there some time ago. After deleting it everything works fine. On 30 dec, 10:30, Daniel Louis jair...@gmail.com wrote: Yeah, it is possible... 2009/12/23 Marcel Overdijk marceloverd...@gmail.com I own the

[appengine-java] Simple one to many problem!!!

2009-12-30 Thread markm208
I am thoroughly confused… I am trying to set up a simple one to many relationship using JPA, I think that this should work but instead I get the error Primary key for object of type Member is null. Any help would be greatly appreciated. @Entity(name = Member) public class Member { @Id

Re: [appengine-java] Simple one to many problem!!!

2009-12-30 Thread Max Ross (Google)
I'd recommend basing your code on the example here to get something working: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html Then you can start tweaking. Max On Wed, Dec 30, 2009 at 3:02 PM, markm208 markm...@gmail.com wrote: I am thoroughly

[appengine-java] Re: JPA Uses Annotations Only

2009-12-30 Thread vvernon
Great, how do you set up the XML files when it's used on App Engine? On Dec 30, 11:31 am, datanucleus andy_jeffer...@yahoo.com wrote: DataNucleus supports all types of input ... JPA annotations, JPA XML, JDO annotations, JDO XML ... all for use with JPA persistence API (with or without GAE/J).

[appengine-java] Request Too Large

2009-12-30 Thread Max
I am doing bulk upload using my custom code. It uploaded most data but few blocks are not uploaded. I use makePersistentAll and my code guarantees that it does not upload more then 500 objects at once. I get following error com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request

[appengine-java] Creating an app with Fusion tables an Visualization

2009-12-30 Thread Chris
Hi App Engine community I am wanting to get some advice on an app I am looking to create. Basically the app is going to show analytics (google visualizations) to an authenticated user. These are the components that I am looking to employ. -send structured data from an external source into a

[appengine-java] example cache with jpa

2009-12-30 Thread asianCoolz
any example on using level1/2 caching with jpa @Cacheable? any guide on this? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this

Re: [appengine-java] problem running my app

2009-12-30 Thread Vik
yeah search on the group earlier posts your will find the solution. you need to change in your run configurations in the jvm arguments... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Dec 31, 2009 at 1:29 AM, Ikai L (Google) ika...@google.com wrote: Vik,

[appengine-java] Strange exception in my app

2009-12-30 Thread Vik
* Hie runnning in local with eclipse plugin. At the line pm = PMF.get().getPersistenceManager(); I am getting exception: javax/jdo/PersistenceManager I do not see anything else in the log. Last time some 1-2 days back when I ran the app all was working fine. Not sure what even changed. Please

Re: [appengine-java] Simple one to many problem!!!

2009-12-30 Thread Max Ross (Google)
The difference between your code and the code in the blog post is that you're calling em.persist() on the child object but the blog post is calling em.persist() on the parent object. If you want to take advantage of implicit entity group assignment it's important to manage children via their

[appengine-java] Sub-object add and retrieve with filter

2009-12-30 Thread java
Hello I have two classes . public class Category extends BaseObject implements ICategory { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private

[appengine-java] Re: WARNING: No file found for:

2009-12-30 Thread m seleron
Hi, If you do not use GWT Please confirm it accesses by / and index.html is displayed If you can display index.html I think the link to default servlet to be displayed. When PojectName is [App2] servlet-mapping made with default seems to be made from the name of [app2]. (at least that was my

[appengine-java] strange question about Ehcache

2009-12-30 Thread yjun hu
my project works with spring+ struts2+Encache, and it works fine on my local machine, but when i deploy to GAE, it got one error when run Ehcache It seems that project can not * initialize class net.sf.ehcache.Element* my Ehcache version is the latest version 1.7.1 and my app id is rabidstudio,

Re: [appengine-java] Re: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??

2009-12-30 Thread yjun hu
I try schedule with spring on GAE, and it does not work too. GAE has some function like cron jobs with 'cron.xml', you can try it http://code.google.com/appengine/docs/java/config/cron.html On Thu, Dec 31, 2009 at 6:34 AM, Juri juri.strumpfloh...@gmail.com wrote: Indeed, the TimerTask class