[appengine-java] Re: Channel API reconnect after token timeout
Hey, I am also experiencing this problem. Trying to reconnect from the client side after the token expiries with no luck, I'm using the gwt-gae-channel library on client side. I was just wondering if you have found a solution to this problem? Thanks Joe -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/qwj6druVlUsJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Can't create application - SMS says account already verified
That would be an option if I had more than 1 phone number. All I have is my cell phone number. I had an email account with the wifey which was registered with my cell. I opened up my own account which also has my cell. can I un-register my cell with one of the two accounts or am I just screwed? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/VklhSlRkbU5QNTRK. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Can't create application - SMS says account already verified
Plus I get this error message "*← The phone number has been sent too many messages or has already been used to confirm an account." * * * -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/a3pYYUxSNWdwUzBK. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Can't create application - SMS says account already verified
Ikai, thanks for your reply. I already did a search and I did not find the answer to my problem. On other posts, one of the developer there told the person that they "fixed" it and to try again. I have Verizon in the US and I have received numerous SMS messages before, even a calendar reminder a few minutes ago. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/cEJFazI4SmVVTkFK. 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] Can't create application - SMS says account already verified
I'm trying to create an application but it keeps asking me for my cell phone for SMS verification. When I enter it, it says that it's already been sent too many messages or already verified. What gives? How do I fix 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Way of blocking XMPP DOS attack?
create a timer and only allow a certain amount of messages to be sent within a certain amount of time On Fri, Apr 29, 2011 at 9:20 AM, kushal wrote: > It looks like all chats come from one IP address. Is there some other way > to block this attach? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] NullPointerException with BlobService using Eclipse plugin
Ok thanks Ash. I actually get the URL from the BlobService. Are you saying I should use And, if this is the case, I'm assuming I should only do this for local testing, correct? Should I remove the /upload prefix when I deploy? Thank you very much for your help. Joe -- 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] NullPointerException with BlobService using Eclipse plugin
Hi, I get a NPE when uploading a file to the blob service in my local Eclipse environment. Can anyone help me understand what I need to do to fix this situation? Thanks. I'm using App Engine 1.4.0. My form: Description File [WARN] /_ah/upload/aglub19hcHBfaWRyGwsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxgJDA java.lang.NullPointerException at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java:380) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access$000(UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet$1.run(UploadBlobServlet.java:101) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Thanks in advance for the help. Joe -- 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] Custom RPC Exception in GWT 2.0.4
I am trying to send a custom Exception from the server side to the client via RPC. Here is my current set up: serviceImpl throws ErrorException service: throws ErrorException serviceAsync: throws ErrorException ErrorException extends IllegalArgumentException implements IsSerializable In my onFailure method of my AsyncCallback i get the following error in my dev console when it catches the Exception: com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader::readInt()': JS value of type undefined, expected int any help would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Which framework?
I have tried struts and groovy, i still prefer Spring. You don't have to have a framework for a GWT project, I guess it all comes down to the size and complexity of the project. On Fri, Jan 14, 2011 at 9:56 AM, Didier Durand wrote: > Hi, > > Have a look at this very recent thread on this same topic > > > http://groups.google.com/group/google-appengine-java/browse_thread/thread/ef090c0e6ea4a6d6/f454cf631b9a176e?lnk=gst&q=lighweight+framework#f454cf631b9a176e > > regards > > didier > > On Jan 14, 3:52 pm, joe kolba wrote: > > I would use spring 3. Hibernate and java server faces really aren't > > considered frameworks, Both can be integrated with Spring. With Spring > you > > can use MVC design patterns, Spring Security, JSTL and much more... > > > > On Fri, Jan 14, 2011 at 9:39 AM, ? Ninad ? Kulkarni < > teh.dev...@gmail.com>wrote: > > > > > Hello, I'm a programming student and new to GAE > > > > > I'm using a NetBeans plug-in to develop my application > > > > > Which framework should I use for making simple apps? > > > Spring Web, JavaServer Faces, Hibernate or any other >.< > > > > > Thank you > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine for Java" group. > > > To post to this group, send email to > > > google-appengine-java@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine-java+unsubscr...@googlegroups.com > > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Which framework?
I would use spring 3. Hibernate and java server faces really aren't considered frameworks, Both can be integrated with Spring. With Spring you can use MVC design patterns, Spring Security, JSTL and much more... On Fri, Jan 14, 2011 at 9:39 AM, ? Ninad ? Kulkarni wrote: > Hello, I'm a programming student and new to GAE > > I'm using a NetBeans plug-in to develop my application > > Which framework should I use for making simple apps? > Spring Web, JavaServer Faces, Hibernate or any other >.< > > Thank you > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Google app engine for business needs
Hi, Thank you for the help. Currently our applications are using gwt with smartgwt and google rpc. We connect to external sql databases through a JNDI C3P0 connection pool. Not sure if AppScale will support any of that but I will take a look at it. Basically I just need a way to push code out to our servers after we GWT compile, preferably within myeclipse. On Tue, Jan 11, 2011 at 2:12 PM, Didier Durand wrote: > Hi, > > You may try to instally AppScale (open source version of Ap Engine) if > you wish to replicate exactly App Engine: see > > http://googleappengine.blogspot.com/2010/10/research-project-appscale-at-university.html > as starting point. > > You have to be in a very specific situation to target this replication > of GAE: would a regular servlet server + database not satisfy your > needs ? > > regards > > didier > > > On Jan 10, 8:39 pm, joe kolba wrote: > > Hi, > > I am relatively new to GWT. I am a developer / engineer currently > > working on a GWT 2.0.4 project. I was wondering if there is a way to > > set up a App Engine locally on my own java server so I could compile > > and deploy directly to our development and test servers straight out > > of myeclipse. I would really appreciate any advice and or comments on > > how this can be done. Please email me at joekolb...@gmail.com. > > -- > 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 app engine for business needs
Hi, I am relatively new to GWT. I am a developer / engineer currently working on a GWT 2.0.4 project. I was wondering if there is a way to set up a App Engine locally on my own java server so I could compile and deploy directly to our development and test servers straight out of myeclipse. I would really appreciate any advice and or comments on how this can be done. Please email me at joekolb...@gmail.com. -- 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: estimated number of entries in memcache
Hi any one used memcache here?!!! please i need some help any comment will be greatly appreciated thanks a lot Joe On May 27, 11:14 pm, Joe Fawzy wrote: > Hi all > i know that memcache is documented as an unreliable storage that means > that nothing is guarenteed > BUT i am asking about your experience using it > > i have a service with a public api , i want to monitor usage of this > api by each user, obvious i cannot go to the datastore on every > request to update the usage count, so i have to use memcache to > temporary store the values and periodically(may be every minute) > update the datastore > > so can i store about 1 million entry each about 100 byte for 2 or > three minutes without the system evict them > obviously sometimes i expect to lose some entries, this is something i > can cope with, but does the system support about a million entry even > for a short time(2-3 min) > > it will be great if someone from google give some outlines(even if it > is not official) > BUT also i will appreciate anyone who will write about his own > experience > > thanks > Joe -- 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] estimated number of entries in memcache
Hi all i know that memcache is documented as an unreliable storage that means that nothing is guarenteed BUT i am asking about your experience using it i have a service with a public api , i want to monitor usage of this api by each user, obvious i cannot go to the datastore on every request to update the usage count, so i have to use memcache to temporary store the values and periodically(may be every minute) update the datastore so can i store about 1 million entry each about 100 byte for 2 or three minutes without the system evict them obviously sometimes i expect to lose some entries, this is something i can cope with, but does the system support about a million entry even for a short time(2-3 min) it will be great if someone from google give some outlines(even if it is not official) BUT also i will appreciate anyone who will write about his own experience thanks Joe -- 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: IllegalArgumentException: ETA too far into the future
Hi docs says it is 30 days from new Date() value Joe On May 16, 1:43 am, derkent wrote: > oops the bug was in my code instead of a delay or countdown, I was > giving a time value, so the delay would have been something like 2010 > years. > > I would still be curios to know what max eta is though. > > On May 16, 12:21 am, derkent wrote: > > > > > > > Hi-ya > > > How far ahead can you queue a task? I just wanted to queue a task to > > start once the weekend is over (ie two days), but I get this error. > > > Does anyone know what the limit is? I cant find it anywhere. > > > thanks. > > > kent > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Does the new OpenID and OAuth work only with google accounts?
Hi all Does the new OpenID and OAuth work only with google accounts? cannot i use my own account management or my user object? please clarify Joe -- 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] @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) without @PrimaryKey
Hi all can i use @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)on ordinary field(non key fileld ,i.e. without @PrimaryKey) that's because my domain class in a child in parent-child relationship so its primary key cannot be of type Long , but i still wanna a unique long number generated for me upon entity save so can i use @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)Long uniqueNumber; and it work as it works in conjugation with @PrimaryKey i wanna know if this is a supported feature not a hack, so please JDO experts clarify this thanks in advance Joe -- 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] is the 1000 file limit still apply
Hi is the 1000 file limit still apply? is that number for static files or for all files including class files? how to overcome it? use jar? can i upload my war file? thanks Joe -- 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: when session expires in the data store
Hi Peter thanks for your reply and for the link to the other thread it will be great if u posted the code thanks a lot Joe On May 8, 7:50 pm, Peter Ondruska wrote: > expires field is long and can be used as Date.getTime(). > Seehttp://groups.google.com/group/google-appengine-java/browse_thread/th... > and if you need hint on code for cleaning up expired sessions let me > know. I can post the source. > > On May 8, 3:54 pm, Joe Fawzy wrote: > > > > > > > Hi dear > > > actually the session data cannot be analyzed that easy as it is just a > > blob of the session with all the web framework things > > and the expires field is an int so i do not know how this translate to > > date to delete non expired ones > > > any help > > thanks > > Joe > > > On May 8, 3:30 pm, Piotr Tarsa wrote: > > > > I think you should do some cron job. > > > > I think keeping expired sessions can be an useful feature. You can dump > > > session to your local disk and analyze them. For example you can log some > > > user actions to sessions and then analyze them offline. > > > > 2010/5/8 Joe Fawzy > > > > > Hi > > > > i have thausands of entries in my ah_SESSION data store table, it > > > > dates several days back > > > > it does not expire or delete, i think it is non sense to keep all the > > > > sessions even that expired in the web container in the data store > > > > if it expires , when it expires? and how to trigger that > > > > if it does not expires or auto delete? is it a feature? > > > > How can i delete them? do i have to do it myself? or appengine have a > > > > setting for it? > > > > i know i can do it in code .. but > > > > What is your experience with it? > > > > > Joe > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google App Engine for Java" group. > > > > To post to this group, send email to > > > > google-appengine-j...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine-java+unsubscr...@googlegroups.com > > > unsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google App Engine for Java" group. > > > To post to this group, send email to > > > google-appengine-j...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine-java+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/google-appengine-java?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: when session expires in the data store
Hi dear actually the session data cannot be analyzed that easy as it is just a blob of the session with all the web framework things and the expires field is an int so i do not know how this translate to date to delete non expired ones any help thanks Joe On May 8, 3:30 pm, Piotr Tarsa wrote: > I think you should do some cron job. > > I think keeping expired sessions can be an useful feature. You can dump > session to your local disk and analyze them. For example you can log some > user actions to sessions and then analyze them offline. > > 2010/5/8 Joe Fawzy > > > > > > > Hi > > i have thausands of entries in my ah_SESSION data store table, it > > dates several days back > > it does not expire or delete, i think it is non sense to keep all the > > sessions even that expired in the web container in the data store > > if it expires , when it expires? and how to trigger that > > if it does not expires or auto delete? is it a feature? > > How can i delete them? do i have to do it myself? or appengine have a > > setting for it? > > i know i can do it in code .. but > > What is your experience with it? > > > Joe > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] About memcache specs
Hi all i was wondering how many MB will appengine give an app in memcache capacity? i know that it depends and it cannot be determined i do not need exact figure but a rough approximation , as i am trying to reduce application load time by storing common data in memcache, so i would like to know how big it is in order to determine how much data i will store init ,otherwise some data will be instantly removed another question: it seems that memcache eviction policy is LRU so does a call to contains method count toward the USE of an entry or do i have to call a get in order to keep it from being evicted if i have a running application, which have some load, and have a finite set of entry (a constant number) how much does it take to evict an unused entry? i wanna know about your experience with memcache not just the official statment thanks Joe -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] what options when serialVersionUID change
Hi all using JDO for persistence i have a data store class A which persist its child B as serializable (blob object) what is my options when the serialVersionUID change? do i have to delete all instances of A and recreate them or what? how application versions deal with this? can applying new version help in the port effort ,or they use the same datastore and the same cde so will result in same errors thanks Joe -- 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] when session expires in the data store
Hi i have thausands of entries in my ah_SESSION data store table, it dates several days back it does not expire or delete, i think it is non sense to keep all the sessions even that expired in the web container in the data store if it expires , when it expires? and how to trigger that if it does not expires or auto delete? is it a feature? How can i delete them? do i have to do it myself? or appengine have a setting for it? i know i can do it in code .. but What is your experience with it? Joe -- 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] setting mail sender address to Google apps address
Hi all i deployed my application on appengine, set my domain name to point to it through google apps as described and now google apps also manage my email addresses such as i...@my-domain.com so, is it possible to use this address to send emails using the mail api currently i got illegalArgumentException , unAuthorized sender , so is it possible to add google apps managed email addresses as an authorized snders thanks Joe -- 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: about count query
it is supported ,use it u can find several posts about it in this group joe On Apr 28, 4:47 am, Chau Huynh wrote: > On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy wrote: > > select count (this) from User > Since when app engine support group operation? ;-) > > > > > > On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy wrote: > > Hi all > > i am using JDO and i want to count the number of entities so which is > > more efficient > > using a count quert, eg: > > select count (this) from User > > or key only query > > select id from User > > then get the count using resultList.size(); > > > by the way , i know that the recommended way on appengine is to > > precompute but this cannot be done in my case > > thanks > > Joe > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Which is more efficient? single query or a key only query followed by batch get
Hi all the title says it all... which one is more efficient in: cpu usage time consumption thanks Joe -- 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: Does AppEngine really include JPA Support
Hi dear it seams that u r new to appengine please take enough time to understand the datastore concepts as it is not a RDBMS and yes appengine JPA code is not 100% portable, you have to do some work (both on the domain layer and the dao layer) to port RDBMS jpa code to appengine and the reverse Joe On Apr 13, 9:38 am, Al Sutton wrote: > Fromhttp://code.google.com/appengine/docs/java/datastore/usingjpa.html; > > "The App Engine Java SDK includes an implementation of JPA 1.0 for the > App Engine datastore." > > But from a couple of days work I've already found the following things > which don't comply with the JPA spec; > > - Strings can't be used for @Id values (unless you use a GAE specific > extension). > - Longs can't be used for @Id values for items in a List. > - Maps seem totally broken. Trying the example from 9.1.27 of the JPA > spec (ejb-3_0-fr-spec-persistence.pdf) generates a method about FK > maps being not supported. > > Did I miss something, or does AppEngine actually not contain an > implementation of JPA, but contains a semi-functional work in progress > which only provides some features of JPA? > > Al. -- 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] about count query
Hi all i am using JDO and i want to count the number of entities so which is more efficient using a count quert, eg: select count (this) from User or key only query select id from User then get the count using resultList.size(); by the way , i know that the recommended way on appengine is to precompute but this cannot be done in my case thanks Joe -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] persisting primitive list using JPA
Hi all GAE JPA implementation level is version 1 which does not support list of primitives and i want to port my JDO code to JPA so how can i convert @Persistent private List tags; to its JPA counterpart which work on appengine as a list property not a blob(not using serialization) and if possible to use a valid JPA annotation in that context as using @Basic on a list is not allowed by the specs and my ide (Intellij) complains thanks Joe -- 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] maximum size of a datastore API call response
Hi all in the doc , section "Quotas and Limits" i found "maximum size of a datastore API call response"= 1 MB what does this mean? does it mean that the query result cannot exceed 1 MB , so what about the rest of the result, does the JDO layer take care of this and handle it transparently or what? do i have to calculate anything for my queries or repeat them or page them to cope with this limitation? How exactly this limitation affects my code? another question as of release 1.3.2 the 1000 limitation of query result were gone... so if i want to get the entities from 1500 to 1520 is using the traditional way (in JDO, using the query.range(begin,limit)) uses cursors or do i have to use the cursor api as described in the docs is the default way (without cursors) still get all the results and drop the first 1500 thanks in advance Joe -- 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] Eclipse GAE plugin problem with Datanucleus enrichment
Hello, I am using the Google App Engine Eclipse plugin and get an error when I save a Java class with a get(String) method. The enhancer is throwing a NullPointerException. I have added the transient annotation and don't know what else I can do to avoid this issue. Can anyobody please give me some advice? I am using datanucleus-jpa-1.1.5.jar I also posted this to the datanucleus forum but there doesn't seem to be too much activity there so I was hoping I would get some ideas here as well. http://www.jpox.org/servlet/forum/viewthread_thread,5954#31824 Thank you very much. The referenced code is below: @Entity public class TestEntity implements Serializable { private String dummyProperty; public String getDummyProperty() { return dummyProperty; } public void setDummyProperty(String dummyProperty) { this.dummyProperty = dummyProperty; } @Transient public Object get(String key) { return null; } } And, here is the stack trace: DataNucleus Enhancer (version 1.1.4) : Enhancement of classes Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details Feb 2, 2010 1:45:24 PM org.datanucleus.enhancer.DataNucleusEnhancer main SEVERE: DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details org.datanucleus.exceptions.NucleusUserException: Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details at org.datanucleus.metadata.MetaDataManager.loadClasses (MetaDataManager.java:426) at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput (DataNucleusEnhancer.java:743) at org.datanucleus.enhancer.DataNucleusEnhancer.enhance (DataNucleusEnhancer.java:545) at org.datanucleus.enhancer.DataNucleusEnhancer.main (DataNucleusEnhancer.java:1252) 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 com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java: 57) at com.google.appengine.tools.enhancer.Enhance.(Enhance.java:60) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41) Caused by: java.lang.NullPointerException at org.datanucleus.jpa.metadata.JPAAnnotationReader.processMemberAnnotations (JPAAnnotationReader.java:8 53) at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass (AbstractAnnotation Reader.java:159) at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass (AnnotationManagerImpl .java:136) at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass (MetaDataManager.java:2278) at org.datanucleus.metadata.MetaDataManager.loadClasses (MetaDataManager.java:385) ... 10 more Nested Throwables StackTrace: DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors java.lang.NullPointerException DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details at org.datanucleus.jpa.metadata.JPAAnnotationReader.processMemberAnnotations (JPAAnnotationReader.java:8 53) at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass (AbstractAnnotation Reader.java:159) at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass (AnnotationManagerImpl .java:136) at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass (MetaDataManager.java:2278) at org.datanucleus.metadata.MetaDataManager.loadClasses (MetaDataManager.java:385) at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput (DataNucleusEnhancer.java:743) at org.datanucleus.enhancer.DataNucleusEnhancer.enhance (DataNucleusEnhancer.java:545) at org.datanucleus.enhancer.DataNucleusEnhancer.main (DataNucleusEnhancer.java:1252) 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 com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java: 57) at com.google.appengine.tools.enhancer.Enhance.(Enhance.java:60) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41) -- 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 uns
[appengine-java] java.lang.NoClassDefFoundError: Could not initialize class org.datanucleus.store.appengine.query.DatastoreQuery
Hello, I'm getting the exception in the subject line when I try to do a simple query. Here's the code: PersistenceManager pm = Persistence.getInstance (); String query = "select from " + Registration.class.getName (); Query q = pm.newQuery (query); List list = (List) q.execute (); The newQuery() call generates the stack trace below. I'm using GWT 2.0 and App Engine 1.3. I've also got the following DataNucleus jars: datanucleus-appengine-1.0.4.1.final.jar datanucleus-core-1.1.5.jar datanucleus-jpa-1.1.5.jar Anyone seen this? Or have any suggestions? Thanks, Joe Jan 29, 2010 11:20:03 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1264807203761000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String fr.orange.lgsite.client.AuthService.AuthServer(java.lang.String)' threw an unexpected exception: java.lang.NoClassDefFoundError: Could not initialize class org.datanucleus.store.appengine.query.DatastoreQuery at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost (RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost (AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter (ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:352) 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.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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) Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.datanucleus.store.appengine.query.DatastoreQuery at org.datanucleus.store.appengine.query.JDOQLQuery. (JDOQLQuery.java:66) 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(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_ (Runtime.java:112) at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance (Runtime.java:120) at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension (NonMa
[appengine-java] Blog Implementation on GAE?
Hi all, I'm looking to implement a blog, and WordPress won't run on GAE. Does anyone know of any Java blog implementations on GAE? Thanks, Joe -- 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: Where to report an error?
Thank you Jason. As usual, this was my fault; but thanks for your time. On Oct 20, 4:51 pm, "Jason (Google)" wrote: > Please include your application ID and the full stack trace. If you don't > see a stack trace printed in the browser, check your error logs in your > application's Admin Console. > - Jason > > On Mon, Oct 19, 2009 at 6:43 AM, Joe wrote: > > > I am getting this error since Friday Oct. 16th: > > > Error: Server Error > > The server encountered an error and could not complete your request. > > > If the problem persists, please report your problem and mention this > > error message and the query that caused it. > > > The stack trace tells me very little about the error. Stranger still, > > everything worked, and I made no changes, this error just starting > > happening. I waited over the weekend to see if it would "go away", but > > no dice. --~--~-~--~~~---~--~~ 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] Where to report an error?
I am getting this error since Friday Oct. 16th: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. The stack trace tells me very little about the error. Stranger still, everything worked, and I made no changes, this error just starting happening. I waited over the weekend to see if it would "go away", but no dice. --~--~-~--~~~---~--~~ 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] Error 500 - Loading data to memory during startup
Hi, I am working with my friend to build an app (hoogentia.appspot.com) which requires loading some learned model files to memory. I have a startup servlet that does this (loading model files to memory). Since it needs more mem, I run this app in dev mode with memory setting of -Xms1024m -Xmx2048m. I dont have any issues in development but when i deploy it to app engine and access my application, the startup servlet is invoked and it comes up with an Error 500. I am not getting any useful info from the logs. I am assuming the issue is with jvm settings for app engine in production. I looked at this thread ( http://groups.google.com/group/google-appengine-java/browse_thread/thread/031d8875b6c8f1a7) and modified appcfg.sh to "java -Xmx2000m -cp "$SDK_LIB/appengine-tools-api.jar" \ com.google.appengine.tools.admin.AppCfg $* " After doing an update, I still get the 500 Error. In dev mode, it takes like 80 seconds for the model to get loaded in memory. Any thoughts / help / suggestions greatly appreciated, thanks Joe. --~--~-~--~~~---~--~~ 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: DataNucleus is looking at UI classes
I listed my classes and added the exclude-unlisted-classes and it worked. at.hadoken.wizzywig.model.User true Also, someone e-mailed me with the same problem and found the solution. "HasDragHandle is the problem. I think that you have to put the gwt-dnd.jar into the war/WEB-INF/lib directory. I had the incubator jar in a separate lib directory and run into the same problems as you did." It all makes sense now! GWT doesn't need the classes in WEB-INF/lib, but datanucleus does. Good detective work! On Sep 3, 10:28 am, datanucleus wrote: > > datanucleus says it can't find the Cow class. The class is in WEB-INF/ > > classes. But it looks like datanucleus' classloader is trying to load > > it, not sure why > > Since your persistence.xml doesn't tell it to restrict to specific > classes, so it searches through all packages from the root of the > persistence-unit, and finds it ? > > Put the Cow in a field on its own ? :-) --~--~-~--~~~---~--~~ 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] DataNucleus is looking at UI classes
Using 1.2.2 This is kind of weird... I was developing my application and then all of a sudden I get this error. Everything was working fine, then datanucleus says it can't find the Cow class. The class is in WEB-INF/ classes. But it looks like datanucleus' classloader is trying to load it, not sure why. I included the stacktrace and the class. If you have ideas what I can try, please let me know! Sep 3, 2009 2:12:48 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'data.emf' defined in class path resource [at/ hadoken/wizzywig/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Provider error. Provider: org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider: Class "at.hadoken.wizzywig.client.desktop.Cow" was not found in the CLASSPATH. Please check your specification and your CLASSPATH. org.datanucleus.exceptions.ClassNotResolvedException: Class "at.hadoken.wizzywig.client.desktop.Cow" was not found in the CLASSPATH. Please check your specification and your CLASSPATH. at org.datanucleus.JDOClassLoaderResolver.classForName (JDOClassLoaderResolver.java:250) at org.datanucleus.JDOClassLoaderResolver.classForName (JDOClassLoaderResolver.java:415) at org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit (MetaDataManager.java:767) at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF (EntityManagerFactoryImpl.java:488) at org.datanucleus.jpa.EntityManagerFactoryImpl. (EntityManagerFactoryImpl.java:355) at org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory. (DatastoreEntityManagerFactory.java:63) at org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory (DatastorePersistenceProvider.java:35) at javax.persistence.Persistence.createFactory(Persistence.java:172) at javax.persistence.Persistence.createEntityManagerFactory (Persistence.java:112) at org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativeEntityManagerFactory (LocalEntityManagerFactoryBean.java:91) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet (AbstractEntityManagerFactoryBean.java:291) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory (PersistenceAnnotationBeanPostProcessor.java:507) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory (PersistenceAnnotationBeanPostProcessor.java:473) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor $PersistenceElement.resolveEntityManager (PersistenceAnnotationBeanPostProcessor.java:599) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor $PersistenceElement.getResourceToInject (PersistenceAnnotationBeanPostProcessor.java:570) at org.springframework.beans.factory.annotation.InjectionMetadata $InjectedElement.inject(InjectionMetadata.java:180) at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields (InjectionMetadata.java:105) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessAfterInstantiation (PersistenceAnnotationBeanP