[appengine-java] showing up 7 instances
Hello, I have 7 instances showing up for normal traffic. Why? I have seen 5 instances max, but today, I am seeing 7 instances. What makes the creation of new instance. -Aswath http://www.AccountingGuru.in -- 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: showing up 7 instances
Hi, If the aggregated trafic coming from your users hasn't increased, another possible cause is that you run asynchronous tasks scheduled via queues where you allowed for a high parallellism in your parameters: in that case gae will start more instances to execute this activities (that it sees anyway as regular servlets) This way, on my projects, I could have up to 12 - 15 instances without heavy trafic from my user base. regards didier On Jan 17, 9:17 am, aswath satrasala aswath.satras...@gmail.com wrote: Hello, I have 7 instances showing up for normal traffic. Why? I have seen 5 instances max, but today, I am seeing 7 instances. What makes the creation of new instance. -Aswathhttp://www.AccountingGuru.in -- 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] Uploading XML documents
Hi, I want to store xml documents to Google app engine datastore for that I tried following code. first.jsp body form action=/second.jsp method=post enctype=multipart/ form-data input type=text name=foo input type=file name=myFile input type=submit value=Submit /form /body Second.jsp body %!BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); % % byte[] a=byte(request.getAttribute(myFile)); MapString, BlobKey blobs = blobstoreService.getUploadedBlobs(request); BlobKey blobKey = blobs.get(myFile); if (blobKey == null) { response.sendRedirect(/); } else { response.sendRedirect(/third.jsp?blob-key= + blobKey.getKeyString()); }% /body In second.jsp i m getting the below error 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. Please help me into this, Thnks 4 ur help in advance Regards -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Uploading XML documents
Hi, I have created example given in following link http://code.google.com/appengine/docs/java/blobstore/overview.html but i m getting the error: Caused by: java.lang.IllegalStateException: Must be called from a blob upload callback request. I want to upload xml documents in google app engine data store. please help me to solve this thnks in advance regards -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Boost Extensibility and Simplify Maintainability of Web Applications: Proposals for Google Web Toolkit Plug-in Architectures
Hello everyone I wrote a short article proposes a plug-in management architecture for GWT/AppEngine applications, see http://honeycrm.googlecode.com/files/BoostExtensibilityAndSimplifyMaintainabilityOfWebApplicationsProposalsForGoogleWebToolkitPlugInArchitectures.pdf. Now, I would like to invite the community to discuss my proposal. Thanks in advance to everyone for reading and discussing the proposal. Abstract: The extensibility of Google Web Toolkit (GWT) applications running on the Google App Engine platform is currently limited due to the absence of a plug-in infrastructure. Even though for desktop, server, and web applications, plug-ins have been existing for decades, they are not prevalent in GWT today. In this article, I outline the development environment restrictions that make it a challenge to provide dynamic plug-in loading support. I assume that the introduction of a plug-in architecture would dramatically enhance the extensibility and the maintainability of GWT applications. Therefore, this article proposes approaches for statically and dynamically loaded plug-ins for GWT applications. Kind regards Ingo -- 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: Dissociate app from Google Apps domain?
Maybe you can do something like that: *Use openID APIs to log in your user (you can serve all Google Apps domains with a single app. This is no more tied to a single domain). See http://code.google.com/appengine/docs/java/users/overview.html#Authentication_Options and http://code.google.com/appengine/articles/openid.html for a guide. *Keep the old version of the app for your existing customer, tied to their domain. All it requires is a double deploy (maybe with some minor tweaks to keep the openID stuff out of the old customer's version) for your application. If you want to migrate your old customer's data to the new app, you can also see if new tools for massive data migration (see announcement of high replication datastore) can do the job you need. Some time ago userIDs were stable across login options (google apps domain / openID) so it should not be hard to migrate everything. Regards Lorenzo On Jan 14, 11:02 am, Alexander Bertram a...@bedatadriven.com wrote: Hi there, I'm seeking some divine intervention from the Google AppEngine team to help grow one of our apps. The first version was developed for a single client and linked to their Google Apps domain. Now as we seek to market to other clients, it does not seem possible to unlink the app from the original Apps domain. The only solution seems to be to create another app and migrate the data. This is possible, but will require quite a bit of time because: 1) The app contains a large number of blobs linked to datastore entities, which would have to be downloaded and reuploaded, and all the keys migrated 2) Many of the entities are large ( 200-500k ) and seem to choke up the python data migration tools that I've tried. We've already replaced the UserService API with the Step2 consumer so the big problem now is associating the app with another Google Apps domain so we can change from coolapp.theclient.com to coolapp.com Migrating the data is possible, but if someone at google could throw a switch somewhere, (or if there's another solution), we'd prefer to spend the week developing the app rather than migrating data!! Best, Alex -- 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: Cross Browser Issue - Internet Explorer Blank
Cannot find it on gwt group... Anyway, if it's blank on IE only it's usually because you have a coment before your doctype declaration. IE goes crazy if it finds anything different from blank spaces before it...switches to quirks mode so any panel for standards mode does not show at all. Regards Lorenzo On Jan 15, 5:19 pm, Segeboy segun.sob...@gmail.com wrote: duh ... thnx On Jan 14, 7:03 pm, Didier Durand durand.did...@gmail.com wrote: Hi, as it based on gwt (saw it in viewing page source code) and as it probably is a javascript issue, you've better chance if you ask in the GWT forum (and provide a bit more details on how its written) regards didier On Jan 14, 1:31 pm, Segeboy segun.sob...@gmail.com wrote: My app located @ demo.schoolgrep.appspot.com is showing up as a blank page on internet explorer (tried version 6 and 8) but loads up fine on safari/chrome/firefox. Any ideas as to what the issue might be? 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-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: Boost Extensibility and Simplify Maintainability of Web Applications: Proposals for Google Web Toolkit Plug-in Architectures
Hello everyone after discussing the topic with a college, I realized I have to explain the context of my proposal. There is no application independent mechanism in GWT to dynamically load extensions. Consequently, GWT applications either do not support it or implement plug-in loading on their own. I am convinced this has to be changed, mainly because of two obervations: The dramatically increasing popularity of both (1) AppStores, e.g. Apple App Store, Android Market, and (2) browser/web applications. To support AppStore concepts in web applications, the GWT/AppEngine community would profit from having an application independent framework for the management of application extensions, i.e. plug-ins, apps, or add-ons. Kind regards Ingo 2011/1/17 Ingo Jaeckel ingo.jaec...@googlemail.com: Hello everyone I wrote a short article proposes a plug-in management architecture for GWT/AppEngine applications, see http://honeycrm.googlecode.com/files/BoostExtensibilityAndSimplifyMaintainabilityOfWebApplicationsProposalsForGoogleWebToolkitPlugInArchitectures.pdf. Now, I would like to invite the community to discuss my proposal. Thanks in advance to everyone for reading and discussing the proposal. Abstract: The extensibility of Google Web Toolkit (GWT) applications running on the Google App Engine platform is currently limited due to the absence of a plug-in infrastructure. Even though for desktop, server, and web applications, plug-ins have been existing for decades, they are not prevalent in GWT today. In this article, I outline the development environment restrictions that make it a challenge to provide dynamic plug-in loading support. I assume that the introduction of a plug-in architecture would dramatically enhance the extensibility and the maintainability of GWT applications. Therefore, this article proposes approaches for statically and dynamically loaded plug-ins for GWT applications. Kind regards Ingo -- 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: Cross Browser Issue - Internet Explorer Blank
To get some tracks to explore: - http://www.devcomments.com/Please-help-GWT-application-will-not-load-in-IE-at263052.htm - http://stackoverflow.com/questions/1300704/gwt-application-does-not-appear-in-ie7 - http://stackoverflow.com/questions/4649025/gwt-internet-explorer-problem That may give you ideas Try some and let us know where you stand: with so few infos provided, helping you is quite difficult regards didier On Jan 17, 3:50 pm, l.denardo lorenzo.dena...@gmail.com wrote: Cannot find it on gwt group... Anyway, if it's blank on IE only it's usually because you have a coment before your doctype declaration. IE goes crazy if it finds anything different from blank spaces before it...switches to quirks mode so any panel for standards mode does not show at all. Regards Lorenzo On Jan 15, 5:19 pm, Segeboy segun.sob...@gmail.com wrote: duh ... thnx On Jan 14, 7:03 pm, Didier Durand durand.did...@gmail.com wrote: Hi, as it based on gwt (saw it in viewing page source code) and as it probably is a javascript issue, you've better chance if you ask in the GWT forum (and provide a bit more details on how its written) regards didier On Jan 14, 1:31 pm, Segeboy segun.sob...@gmail.com wrote: My app located @ demo.schoolgrep.appspot.com is showing up as a blank page on internet explorer (tried version 6 and 8) but loads up fine on safari/chrome/firefox. Any ideas as to what the issue might be? 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-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: a basic tutorial on using the new 1.3.8 datastore delete with a Java app
Hi, thank you for your post, it has been extremely useful for me. But now I'm facing a problem: I've been able to deploy a Python version to my app, and also to see the Datastore Admin link, but when I trty to click on it, an error is shown, and checking on the log I can see the following Warning: 1. /_ah/datastore_admin/?app_id=xxx 500 0ms 0cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729),gzip(gfe) 151.21.125.227 - - [17/Jan/2011:10:20:00 -0800] GET /_ah/datastore_admin/?app_id=xxx HTTP/1.1 500 0 - Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729),gzip(gfe) 99.latest.xxx.appspot.com ms=1 cpu_ms=0 api_cpu_ms=0 2. W01-17 10:20AM 00.511 Authentication for the Google Apps domain thotpot.com can only be performed when requests are served from a subdomain of that domain or it has been approved through the Google Apps Control Panel. See http://code.google.com/appengine/articles/auth.html Any hint??? Thank you very much!! Bye cghersi -- 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: Updating 1.3.5 project to 1.4
Awesome. I've replaced those lib jars and corrected the buildpath. Many thanks Didier! On Jan 17, 5:28 am, Didier Durand durand.did...@gmail.com wrote: Hi, More is needed: you have to change the old gae jars in the /lib of your war directory by the equivalent new ones that you find in the directories of the plugin. Then, you have to fix the buildpath of your project to adapt to the jars that changed names because of new versions, etc. Then, you should be all set - Google people: maybe an addition (Upgrading your SDK) to the docs of the dev kit would be useful. regards didier On Jan 16, 7:02 pm, coltsith conla...@gmail.com wrote: Hi there, So I downloaded SDK v1.4 and put the folder into eclipse plugins com.google.appengine.eclipse.sdkbundle.1.3.5_1.3.5.v201006301254. Then I went into my Eclipse menu preferences Google/App Engine and added the 1.4 SDK directory. Then I checked use SDK 1.4 instead of 1.3.5. Is that all I need to do to make sure my old project is now using the new SDK? 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-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] How can I paginate backwards using a JDO query cursor?
Does anyone fancy exercising their little grey cells on this fine Monday? I have an entity with relevant fields declared as: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) public class Thing implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String sEncodedKey; @Persistent @Extension(vendorName=datanucleus, key=gae.pk-id, value=true) private Long loID; @Persistent private Date dtCreated; } I want to display pages of my persistent entity to the user, which each page having, say, 20 items displayed. I want to use the class JDOCursorHelper (and stick with JDO if possible). The GAE/J documentation shows me how I can paginate forwards: · Query the first 21 entities and store in an ArrayListThing. · If 21 are returned, set a there are more entities flag and discard the 21st entity from the list, otherwise reset the flag. · Show the 20 entities. · Store the cursor as a web-safe string. · If the user hits Next (enabled if the flag is set) then: · retrieve the cursor from the web-safe string. · get the next 21 entities · etc. The fun starts if I want to allow the user to paginate the previous pages. One method that I can think of stores the web-safe string of each cursor in a list kept in the user's session object. As Next is hit, the cursor just generated can be pushed onto the list. To traverse backwards, I pop (delete) the latest cursor string from the session's list and then use the previous one (now the latest) to produce the previous page's items. Can anyone think of a smarter way to paginate backwards without storing a list of web-safe cursor strings in a user's session? (I could generate an additional persistent field which holds the concatenated string values [dtCreated to milliseconds using Calendar] + | + sEncodedKey but the GAE/J article for this says that this way is no longer recommended.) Regards, Ian -- 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] can't retreive one-to-may objetcs, JPA
I cannot retreive the Listsubjects from book. The save and update of a book when a subject changes its fine, the problem is when retreiving books, It doeesnt retreive their subjects. I need help. Here;s the code. @Entity @Table(name = book) public class Book implements Serializable, IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private String bookName; private String comment; @OneToMany(mappedBy=book,cascade = CascadeType.ALL) private ListSubject subjects; //setters and getters -- @Entity @Table(name = subject) public class Subject implements Serializable, IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private String name; private int visible; @Basic private Text content; @Basic @ManyToOne private Book book; // setters and getters public ListBook getBooks() throws GeneralException, BookNotFoundException, NullParameterException { entityManager = EMF.get().createEntityManager(); ListBook list; try { String sql = SELECT b FROM Book b; list = entityManager.createQuery(sql).getResultList(); //this list is retreived with the books but without their subjects } catch (Exception e) { throw new GeneralException(Exception in method getBookes: + e.getMessage()); } finally { if (entityManager.isOpen()) { entityManager.close(); } } if (list == null || list.isEmpty()) { throw new BookNotFoundException(Book not found in method getBookes); } return list; } Please, I need some help. Cheers. -- Kido. -- 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: order by clause- JPA queries
i appear to have a similar issue, my order-by queries work when i run them locally in eclipse but when i upload my app to appengine the order by fails javax.persistence.Query q = em.createQuery(select * from POOrder order by orderdate); -- 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] can't retreive one-to-may objetcs, JPA
I don't do JPA, but If it's like JDO and you have lazy loading then don't you need to access the subjects field before you close your entity manager to get the subjects loaded? Just a thought. On Mon, Jan 17, 2011 at 3:51 PM, kidowell crui...@gmail.com wrote: I cannot retreive the Listsubjects from book. The save and update of a book when a subject changes its fine, the problem is when retreiving books, It doeesnt retreive their subjects. I need help. Here;s the code. @Entity @Table(name = book) public class Book implements Serializable, IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private String bookName; private String comment; @OneToMany(mappedBy=book,cascade = CascadeType.ALL) private ListSubject subjects; //setters and getters -- @Entity @Table(name = subject) public class Subject implements Serializable, IsSerializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private String name; private int visible; @Basic private Text content; @Basic @ManyToOne private Book book; // setters and getters public ListBook getBooks() throws GeneralException, BookNotFoundException, NullParameterException { entityManager = EMF.get().createEntityManager(); ListBook list; try { String sql = SELECT b FROM Book b; list = entityManager.createQuery(sql).getResultList(); //this list is retreived with the books but without their subjects } catch (Exception e) { throw new GeneralException(Exception in method getBookes: + e.getMessage()); } finally { if (entityManager.isOpen()) { entityManager.close(); } } if (list == null || list.isEmpty()) { throw new BookNotFoundException(Book not found in method getBookes); } return list; } Please, I need some help. Cheers. -- Kido. -- 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.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-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: Who said that the grails app-engine plugin works?
What is the current status on this issue. Can Grails/GWT app be hosted on GAE? 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.
[appengine-java] Re: RESTfull Grails application doesn't run in GAE
Did you solve this? 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-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: A MapReduce job isn't going anywhere
Update: In fact there is some interesting info in the log: 0.1.0.2 - - [17/Jan/2011:20:16:38 -0800] POST .../mapperCallback HTTP/1.1 403 234 .../command/start_job AppEngine-Google; (+http:// code.google.com/appengine) appspot.com ms=6 cpu_ms=23 api_cpu_ms=0 cpm_usd=0.000728 queue_name=default task_name=worker- attempt-1295324073192-0001-m-03-1--0 0.1.0.2 - - [17/Jan/2011:20:16:40 -0800] POST .../controllerCallback HTTP/1.1 403 234 .../command/start_job AppEngine-Google; (+http:// code.google.com/appengine) appspot.com ms=8 cpu_ms=23 api_cpu_ms=0 cpm_usd=0.000723 queue_name=default task_name=controller- job-1295324073192-0001--0 It seems like I'm getting 403 errors. Any clues why? Can it be related to the AppEngine 1.4 upgrade? Kind regards, Borys Burnayev actioncomplete.com GTD for Android and Web On Jan 17, 11:41 am, burnayev burna...@gmail.com wrote: I've got a few MapReduce jobs based on the AppEngine implementation that used to run just fine. Today I figured that one of the jobs is not good anymore. Namely it sort of hangs every time I run it. The MapReduce Overview console shows 0 / 0 shards all the time and there's no chart in the details screen. The status is running and the console is indifferent about my clicking the Abort button. The number of retries for the job in the default task queue keep increasing though. The log, through INFO level, is silent about the MapReduce jobs. Over the past few hours I cleaned up the jobs manually and restarted with the same result. I'm on AppEngine for Java. Any ideas on what's going on? Kind regards, Borys Burnayev actioncomplete.com GTD for Android and Web -- 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] gvfs
Hi, explain GVFS with example .how to implement in application. -- 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] Filtering more than 3 parameters in JDOQL
There's another function executeWithMap on the query object that you can use. On Sat, Jan 15, 2011 at 9:44 PM, Stephen Johnson onepagewo...@gmail.comwrote: There's another function executeWithArray on the query object that you can use. Sent from my iPhone On Jan 15, 2011, at 5:08 AM, Vik vik@gmail.com wrote: Hie I am not able to pass more than 3 parameters using below code. So, how to pass more than 3 parameters? Query query = pm.newQuery(BloodDonor.class); query.setFilter( state == :stateName district == :distName + city == :cityName bloodGroup == :blood); @SuppressWarnings(unchecked) ListBloodDonor donors = (ListBloodDonor) query.execute(state.toLowerCase(), district.toLowerCase(), city.toLowerCase(), bloodGroup.toLowerCase()); Thankx and Regards Vik Founder http://www.sakshum.comwww.sakshum.com http://www.sakshum.blogspot.comwww.sakshum.blogspot.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-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.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-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] 500 Internal Server Error while uploading index definitions
try it another version On Sat, Jan 15, 2011 at 12:33 PM, JongPil Jung fnwo...@gmail.com wrote: Hi.. When I try to deploy my app to GAE, following error occurred. Uploading index definitions. java.io.IOException: Error posting to URL: https://appengine.google.com/api/datastore/index/add?app_id=alguntest3version=1; 500 Internal Server Error And, Datastore Indexes status is remain Building in admin console. Anyone help? Best Regard. 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-java@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-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 add data to the datastore
ypu have to use like follows: @Persistent @GeneratedValue(strategy = GenerationType.IDENTITY) @Persistent private Long id; @Persistent private String title; @Persistent private String author; @Persistent private int copyrightYear; @Persistent private Date authorBirthdate; On Thu, Jan 13, 2011 at 2:48 PM, g123k animatri...@gmail.com wrote: Hello, I am trying to add Entites to the datastore, but nothing appears. Where I am wrong ? I have the Book Entity : package fr.polytech.unice.ehitchhicker; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Book { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String title; private String author; private int copyrightYear; private Date authorBirthdate; public Long getId() { return id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public int getCopyrightYear() { return copyrightYear; } public void setCopyrightYear(int copyrightYear) { this.copyrightYear = copyrightYear; } public Date getAuthorBirthdate() { return authorBirthdate; } public void setAuthorBirthdate(Date authorBirthdate) { this.authorBirthdate = authorBirthdate; } } And this servlet : package fr.polytech.unice.ehitchhicker; import java.io.IOException; import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import javax.servlet.http.*; import com.google.appengine.api.datastore.DatastoreService; import com.google.appengine.api.datastore.DatastoreServiceFactory; import com.google.appengine.api.datastore.Entity; import com.google.appengine.api.datastore.EntityNotFoundException; @SuppressWarnings(serial) public class Connection extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Entity book = new Entity(Book); book.setProperty(title, The Grapes of ); book.setProperty(author, John Steinbeck); book.setProperty(copyrightYear, 1939); Date authorBirthdate = new GregorianCalendar(1902, Calendar.FEBRUARY, 27).getTime(); book.setProperty(authorBirthdate, authorBirthdate); ds.put(book); Query q = new Query(Book); q.addSort(title); PreparedQuery pq = ds.prepare(q); for (Entity result : pq.asIterable()) { String title = (String) result.getProperty(title); resp.getWriter().write(title + \n); } } } The Query returns nothing. Can you show me where is the problem ? -- 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.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-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 in Blobstore
Hi, i am trying to use blobstore service on my localhost but i got error message like this : HTTP ERROR 503 Problem accessing /_ah/upload/ahBsZWtsZWthbnJlbnRhcHBzchsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YDww. Reason: java.lang.IllegalStateException: Must call one of set*BlobStorage() first. Caused by: javax.servlet.UnavailableException: java.lang.IllegalStateException: Must call one of set*BlobStorage() first. at org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:415) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:458) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) 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) Powered by Jetty:// could you give me an advice what i should do to solve this problem, anyone ? thanks in advance, Vis' -- 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: Error in Blobstore
Hi, You have to start the local blobstore if you want it to work (I do it in the @Before method of my Junit tests) It should be documented in http://code.google.com/appengine/docs/java/tools/localunittesting.html as it is for other local services but currently isn't - Google team: please, document it as you did for other services. The code that I personally use for that purpose is (in addition to others as defined in link above): LocalBlobstoreServiceTestConfig bsConfig = new LocalBlobstoreServiceTestConfig(); localServerHelper = new LocalServiceTestHelper(bsConfig); localServerHelper.setup(); regards didier On Jan 18, 7:59 am, Viskaya Purbowo H visk...@gmail.com wrote: Hi, i am trying to use blobstore service on my localhost but i got error message like this : HTTP ERROR 503 Problem accessing /_ah/upload/ahBsZWtsZWthbnJlbnRhcHBzchsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YDww. Reason: java.lang.IllegalStateException: Must call one of set*BlobStorage() first. Caused by: javax.servlet.UnavailableException: java.lang.IllegalStateException: Must call one of set*BlobStorage() first. at org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:415) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:458) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) 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) Powered by Jetty:// could you give me an advice what i should do to solve this problem, anyone ? thanks in advance, Vis' -- 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.