[appengine-java] is there any proper way to create shortcut(s) for the current window object in gwt
just for like CTRL+1 or CTRL+2 .. how do i assigns shortcuts ? something like this i did but it aint executing , also am i doing it right ? mayday mayday ! public class quotation implements KeyboardListener { public static Widget getSomeWidget() { return new Widget; } @Override public void onKeyDown(Widget sender, char keyCode, int modifiers) { // TODO Auto-generated method stub } @Override public void onKeyPress(Widget sender, char keyCode, int modifiers) { if(KeyboardListener.KEY_CTRL == keyCode) { } } @Override public void onKeyUp(Widget sender, char keyCode, int modifiers) { // TODO Auto-generated method stub } } -- 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] Problem with Persistent class
Hi ! I have a problem when persist a class. The exception is: Object with id is handled by another ObjectManager org.datanucleus.exceptions.NucleusUserException: Objeto con id es manejado por otro ObjectManager at org.datanucleus.ObjectManagerImpl.findStateManager(ObjectManagerImpl.java: 756) at org.datanucleus.store.mapped.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java: 372) at org.datanucleus.store.mapped.scostore.FKListStore.validateElementForWriting(FKListStore.java: 609) I'm not understand because (empty id...). Thepersitent class is @PersistenceCapable(identityType = IdentityType.APPLICATION,detachable=true) public class RegFechaUsuario extends Fecha { @Persistent private int puntos; @Persistent private Long idUsuarioFecha; @Persistent private Long idFechaOriginal; And @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Fecha { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String nombre; @Persistent private Date fechaIni; @Persistent private Date fechaFin; @Persistent(defaultFetchGroup = true) ListPartido partidos; private Long id2; Regards! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] GAE and Log4j - A little solution to make things easier.
Hey, I've written a Log4j appender which passes on log4j severity levels to GAE's JUL framework so you can view your log4j events (or the events your chosen framework provides) if you need to. http://androidisland.blogspot.com/2010/10/gae-and-log4j-getting-them-to-work-bit.html This is a quick implementation of this Appender for me and so far it works, but I'd love to hear some feedback about what it doesn't do (or doesn't do properly) as I've not used it in anger. Regards, Eurig Jones -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GAE and Log4j - A little solution to make things easier.
That's wonderful. Thank you. On Oct 3, 2010 6:14 PM, Eurig Jones eurigjo...@gmail.com wrote: Hey, I've written a Log4j appender which passes on log4j severity levels to GAE's JUL framework so you can view your log4j events (or the events your chosen framework provides) if you need to. http://androidisland.blogspot.com/2010/10/gae-and-log4j-getting-them-to-work-bit.html This is a quick implementation of this Appender for me and so far it works, but I'd love to hear some feedback about what it doesn't do (or doesn't do properly) as I've not used it in anger. Regards, Eurig Jones -- 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.
Re: [appengine-java] is there any proper way to create shortcut(s) for the current window object in gwt
google-appengine-java google-appengine-java@googlegroups.com is probably the wrong group to ask this question. http://groups.google.com/group/google-web-toolkit is a better community for GWT questions. Also - did your Widget has focus when you used the keyboard? On Sun, Oct 3, 2010 at 2:30 AM, wingdings dush...@gmail.com wrote: just for like CTRL+1 or CTRL+2 .. how do i assigns shortcuts ? something like this i did but it aint executing , also am i doing it right ? mayday mayday ! public class quotation implements KeyboardListener { public static Widget getSomeWidget() { return new Widget; } @Override public void onKeyDown(Widget sender, char keyCode, int modifiers) { // TODO Auto-generated method stub } @Override public void onKeyPress(Widget sender, char keyCode, int modifiers) { if(KeyboardListener.KEY_CTRL == keyCode) { } } @Override public void onKeyUp(Widget sender, char keyCode, int modifiers) { // TODO Auto-generated method stub } } -- 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.
Re: [appengine-java] Re: Wicket/JPA application works locally but fails when deployed on GAE
Hey! don't use wicket + GAE!!! you will have lot of serialization problems and your project will FAIL! you will lose time and money! bug: http://code.google.com/p/googleappengine/issues/detail?id=2500 Bye! NM On Wed, Sep 29, 2010 at 12:24 PM, Eurig Jones eurigjo...@gmail.com wrote: You're probably using the same Wicket setup as I am - Sessions are stored in the datastore. The Jetty local development set-up clearly doesn't emulate the real thing exactly by the looks of it. But by using LoadableDetachableModel the list is populated once per request and detached when the component tree is sent to the db. Everything needs to be serializable for that to happen. What's probably happening is that your local Jetty server doesn't bother looking at appengine-web.xml at all therefore not picking up sessions-enabledtrue/sessions-enabled required for wicket to work in production. Regards, Eurig Jones On Sep 26, 11:56 pm, Meetu Maltiar meetu.malt...@gmail.com wrote: This looks like a fine approach as detachable models will make it cheaper to Serialize I guess. Were you able to find the reason why it gave error before andworksnow? I am curious to know what happens when you create a new collection of myListObject and not use LoadableDetachableModel. On Sep 26, 10:46 pm, Eurig Jones eurigjo...@gmail.com wrote: I had the same issue withWicket / JPAcombination. My particular problem was that I was using a ListView by passing a List directly into the constructor: ListViewPost listView = new ListViewPost(id, myListObject) { ... } My solution was to instead use a LoadableDetachableModel for the ListView. On Aug 20, 7:01 am, Meetu Maltiar meetu.malt...@gmail.com wrote: TheapplicationhasWicket/JPA/Spring. Itworkslocallyon dev_appserver. After I deploy it on GAE itfailswith the following track trace. I am failing to understand what might be the cause of the error. java.lang.RuntimeException: java.io.NotSerializableException: org.datanucleus.store.appengine.query.DatastoreQuery$2 at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager .java: 387) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(S essionManager.java: 364) at com.google.apphosting.runtime.jetty.SessionManager $AppEngineSession.save(SessionManager.java:164) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF ilter.java: 41) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) 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.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH andlerMap.java: 238) 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.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequ estParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques t(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 251) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:6784) -- 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. -- Nicolás Meléndez Java Software Developer Cell: +54 9 1157535454 1) Google App
Re: [appengine-java] Problem with Persistent class
Same exception happened to me once. I was by error managing 2 pm instances, and trying to get an object with pm1 and to update it with pm2. Envoyé de mon iPad Le 3 oct. 2010 à 16:43, lisandrodc lisandr...@gmail.com a écrit : Hi ! I have a problem when persist a class. The exception is: Object with id is handled by another ObjectManager org.datanucleus.exceptions.NucleusUserException: Objeto con id es manejado por otro ObjectManager at org.datanucleus.ObjectManagerImpl.findStateManager(ObjectManagerImpl.java: 756) at org.datanucleus.store.mapped.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java: 372) at org.datanucleus.store.mapped.scostore.FKListStore.validateElementForWriting(FKListStore.java: 609) I'm not understand because (empty id...). Thepersitent class is @PersistenceCapable(identityType = IdentityType.APPLICATION,detachable=true) public class RegFechaUsuario extends Fecha { @Persistent private int puntos; @Persistent private Long idUsuarioFecha; @Persistent private Long idFechaOriginal; And @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Fecha { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String nombre; @Persistent private Date fechaIni; @Persistent private Date fechaFin; @Persistent(defaultFetchGroup = true) ListPartido partidos; private Long id2; Regards! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] appcfg doesn't update my static file
I try to update my application with appcfg command. The trouble is that appcfg doesn't update a static file so that my application uses an older version. I don't know if it the reason of the problem, I updated my application from a first directory, and now I try again from another directory. But the appengine-web.xml references the same application id. My static file is loaded only when init the main Servlet of my app. But I think that the new version of my app is in a different context so that the file is loaded again. -- 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] Batch put for JDO objects
So is there another way I can perform a batch update since makePersistentAll doesn't do it? When I tried to do the batch update with the low-level API, the DatastoreService put() call didn't save the objects. It seemed to write blank copies of the objects with all the fields set to null. The second write was JDO correctly saving the objects with the modified data. So there was something wrong with how I was saving them with the DatastoreService. What's the proper way to write a modified JDO object with the low-level API? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Google App Engine MUD
My friend and I are looking to rewrite an old BBS MUD. The game is a few thousand rooms and purely text based with commands issued by individual players and the game responding and updating players stats based on the results of their commands. I do not have a programming background, and I'm wondering about the best way to approach writing it for GAE. Attempting to translate the game to objects, I have the following layout: World object holds all of the zone objects, zone objects hold rooms, room objects hold players, player objects hold inventory objects, spellbook objects, and attributes. Then write appropriate methods for manipulating the objects appropriately and returning the results. I have a few questions though: 1. Is this a technically correct way of approaching the problem? If not, what would be better? (keep in mind, I am not a professional programmer by any means. I can find my way if I have something already written to make changes, but I've never written anything from scratch before). Would I populate all these objects, then write world to the db and retrieve it for each player action? I have no idea how servlets work to store state, or really how they work in general really. Basically, how would I be storing and retrieving stored player statistics which are constantly changing many times a second as players play the game. 2. A key issue is the ability to push updates to players in real time, and track individuals who are connected. For example, I would like the ability to be able to call something like room[someroomnum].sendtoall(Some message here); to push a message to all players in that room, or player[someplayernum].send(some message here); to send replies to players directly. I understand this is a complex issue with the stateless http protocol, but I have read some about the upcoming channel API which sounds like it may offer this ability but I don't know enough to be certain. Overall I'm looking to avoid devoting countless hours to this project if it is going to be beyond my abilities to complete successfully. Thanks very much for your time and consideration, MLS -- 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] Looking for a JPA/Entity-Group Tutorial
I'm having problems understanding how to get entities to play nice together. So, I'd like to find a good tutorial on how to work with entity groups using JPA. My specific issue, right now, is being unable to add a new entity to a collection that is held by a parent entity. When I attempt to add a new entity to the collection of children, I always get an error indicating that the entity group is incorrect. I just haven't been able to find any information about how to make this work. Thanks for any tips/links. Dave -- 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] Problems with plugin for eclipse 3.6
Hi there, I found this problem while installing gwt kit on eclipse 3.6: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine.eclipse.sdkbundle.1.3.7_1.3.7.v201008311427.jar. Read timed out Unable to read repository at http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.sdkbundle.2.0.4_2.0.4.v201006301309.jar. Read timed out I am using this update site: http://dl.google.com/eclipse/plugin/3.6 Any help? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] User API with GWT - Login and Logout will always cause module to reload
I have an anchor on the client side, with the login url generated by User API. Clinking this anchor will open up a login prompt generated by User API verry similar to google login page. After filling up login and password and press OK. My page will be reloaded. The problem is that when it reload all the GWT client stuff will be reloaded. I would like to save some information and don't want this to happen. For instant if someone is typing a forum post and click submit only to discover that login already timeout. Relogin using User API login page only to discover that the text typed is lost because of onModuleLoad reload everything. :0 I am really looking forward to how to user User API without reloading the module. Regards Haris -- 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: Problems with plugin for eclipse 3.6
Which OS are you using? Windows 7? On Oct 2, 3:14 pm, srtanoelia la.patrulla.ve...@gmail.com wrote: Hi there, I found this problem while installing gwt kit on eclipse 3.6: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository athttp://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine. Read timed out Unable to read repository athttp://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips Read timed out I am using this update site:http://dl.google.com/eclipse/plugin/3.6 Any help? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.