[appengine-java] Re: Channel API still not live...

2010-10-25 Thread Heiko Roth
No activation yet. I'm waiting, too. Right now, we pull status every 5 minutes, but that's not the best way. Other APIs like Pushlet don't work on appengine. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, s

[appengine-java] Re: SDK/Eclipse pains on Ubuntu

2010-10-25 Thread Ed Murphy
I use Windows and I have the same problem when I upgrade and sometimes when I create a new workspace. (tried to use Ubuntu, but can't get my Adobe Flex plugin and Google plugin to both play nice). It seems the the plugin update changes the SDK version, but does not copy the new jars; it leaves the

[appengine-java] Re: DeadlineExceededException from URLFetchService

2010-10-25 Thread hector
That's correct, I'm using AppEngine to run a service registry that proxies to other services. I would like to differentiate between services that are unavailable and services that are not responding fast enough. I've also noticed that if the service I'm calling from GAE is down, I get an IOExcept

[appengine-java] uploaded file how to view in browser

2010-10-25 Thread prabu
Hi.. I was uploaded file(pdf) in Blob it's working fine.and how to view uploaded file in browser (Download is working).but image files are view in browser I'm using struts framework. please help me.. Thanks&Regards Prabu -- You received this message because you are subscribed t

[appengine-java] recommendation on using maxmind geoip

2010-10-25 Thread asianCoolz
may i know what is the preferable way of using maxmind geoip? upload the 'binary file' or bulk upload the csv files into bigtable? the prior technique will slow down application startup time? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Jav

[appengine-java] Re: Recurring tasks

2010-10-25 Thread Didier Durand
Hi Vik, Hard to tell without knowing your app and its size, complexity What I would suggest is to read the well done docs and practice a little bit (probably less than 10 hours total) and then you can decide. I personally found the Objectify verbs very close to those of jdo so migrating was more

[appengine-java] How to increase the number of indexes

2010-10-25 Thread GS
Hi, I currently used 185 out of 200 indexes(billed account). Is there a way I can increase max indexes from 200 to a higher value? Thanks in advance George -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group,

Re: [appengine-java] Re: Recurring tasks

2010-10-25 Thread Vik
Hie Ok thanks.. heard this word Objectify for the first time Not sure how much will be the efforts to migrate current jdo implementation to this. any advise ? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Oct 25, 2010 at 8:24 PM, Didier Durand wrote: > H

Re: [appengine-java] Re: Create entity and get ID

2010-10-25 Thread A. Stevko
Can't hurt... I define transactions for all my datastore access paths. Thats the only way I can keep track of which entity is in context. pm .currentTransaction.begin() pm .currentTransaction.commit() I'm also able to rollback() database access and not have the overhead of a commit cleanup. pm .c

[appengine-java] Re: Create entity and get ID

2010-10-25 Thread Cosmin Stefan
Hey, The thing is I don't have a transaction. And, I also am using IdentityType.Datastore, as I need the id to be generated by the datastore. Anyway, this is what I currently have (and doesn't properly work): @PersistenceCapable(detachable="true") @Embeddable public class GMeeting { ...

Re: [appengine-java] DeadlineExceededException from URLFetchService

2010-10-25 Thread Don Schwarz
DeadlineExceededException isn't appropriate, as that exception indicates that your overall request deadline has passed and you need to finish what you are doing and return from the request. java.io.IOException seems correct for this. Are you just trying to distinguish timeouts from other types of

[appengine-java] DeadlineExceededException from URLFetchService

2010-10-25 Thread hector
Would it be possible to throw DeadlineExceededException from the URLFetchService instead of IOException? java.io.IOException: Timeout while fetching: https://... at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java: 108) at c

Re: [appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-25 Thread Ikai Lan (Google)
I was unclear in my last point: real world performance should be above 1 transaction per second, but you should engineer your entity group writes with an expectation of 1 transaction/second for best results. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine

Re: [appengine-java] DatastoreNeedIndexException

2010-10-25 Thread Ikai Lan (Google)
You need to look at your application and the type of queries you are performing. Don't index properties you don't need to search on. Read more about this here: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html -- Ikai Lan Developer Programs Engineer, Google App Engine

[appengine-java] jsf view id's expire too quick

2010-10-25 Thread scalpel4k
Hi, I'm running an application that runs on myfaces 2.0.2. When I run the application on the appserver I constantly get javax.faces.application.ViewExpiredException. MyFaces stores viewIds in the normal servlet session store. Although session timeout is set to 30 minutes, the viewIds seem to be in

[appengine-java] Re: mapreduce & cron

2010-10-25 Thread Benjamin
Hi Jacek, there is an example in mapper project source code: http://code.google.com/p/appengine-mapreduce/source/browse/trunk/java/example/com/google/appengine/demos/mapreduce/TestServlet.java Hope it helps. On Oct 23, 12:03 am, "jacek.ambroziak" wrote: > How to start a MapReduce job as a cron s

[appengine-java] Datastore viewer error + cant delete

2010-10-25 Thread Eran
Hi, Can anyone help : In the app engine management screen, pressing the datastore viewer brings an error screen with no details. So, I started searching for corrupt data , and after writing some code found possible instances in the data store where items with duplicate primary keys seem to be comm

[appengine-java] SDK/Eclipse pains on Ubuntu

2010-10-25 Thread John
This is a two parter - first to express some frustration (well, quite a lot really) and second, to ask for support/help. It feels like every time I update my GAE Eclipse plugin, my dev environment breaks. The reason for the break varies, this time around my classpath is completely broken - starts

[appengine-java] Re: 1.3.8 Console Logging Issue

2010-10-25 Thread vvorski
Same here with python on a Mac. Have heard reports of same with Java on windows. Seems to be a global 1.3.8 problem? V/. On Oct 24, 9:04 pm, jt wrote: > Hello, > > I upgraded my project from 1.3.4 to 1.3.8. After the upgrade, the > console fails to log. If I switch back to 1.3.4, the console log

[appengine-java] OpenID Accounts with same emails and App Engine User class

2010-10-25 Thread trustamli
Hi, For some reason my application handles OpenID accounts with same emails as one user. It means when I try to access datastore entities with User field of new user it also gets entities of all other users with the same email. Is User object same as email? Pythod documentation says: "User instan

[appengine-java] Re: Channel API still not live...

2010-10-25 Thread Robert Lancer
They will notify you if you get picked, they dont activate it for everyone just a few testers. On Oct 25, 10:47 am, stole wrote: > Hello everybody. > > Following Ikai's instructions I signed up for Channel API trusted > tester last Friday (2010/10/22). The API has not yet been enabled for > my a

[appengine-java] Re: 1.3.8 Console Logging Issue

2010-10-25 Thread Rud
I am seeing the same problem but thought is was due to new GWT 2.1RC1 logging capability. See thread at http://groups.google.com/group/google-web-toolkit/browse_frm/thread/c5afa6655edec800# I just tested my app with 1.3.7 and .8. With .7 it works and not with . 8. I am only testing on the deskto

[appengine-java] Re: Disappointment about JPA relationships :(

2010-10-25 Thread Matthieu Bertin
That is very true. The page you show is quite explaining why i got theses exceptions, but i wouldn't have understood anything before i ran into theses exceptions, and not even understanding if this page was JDO or JPA documentation. Anyway, i got it now and i'm back on tracks, but i would have gl

[appengine-java] Re: Recurring tasks

2010-10-25 Thread Didier Durand
Hi Vik, To be fully transparent, I stopped using JDO and switched to Objectify: much more simple, efficient & transparent than JDO (just check how many issues on this forum with jdo). Learning curve is very quick. Wih Objectify, if your entities are not too big in size and well indexed to match y

[appengine-java] Re: Channel API still not live...

2010-10-25 Thread stole
Hello everybody. Following Ikai's instructions I signed up for Channel API trusted tester last Friday (2010/10/22). The API has not yet been enabled for my application. I was wondering if anybody has gotten the API activated and how long it took for it to get activated. Ikai? Daniel? Heiko? Thank

Re: [appengine-java] Re: Recurring tasks

2010-10-25 Thread Vik
Hie thanks a lot!!! So, how about starting a corn job every day say at 00:00 and if time consumption goes more than 30 sec than scheduling tasks to complete leftovers. I have another question here: The data model for this is: BloodDonor_name, blood_group, is_active, active_date so query to

[appengine-java] Re: Recurring tasks

2010-10-25 Thread Didier Durand
Hi Vik, I would also go with cron job in your case. Concerning the 30s limit, it depends on your requirements in computing: a) you can and should probably schedule via api an independent task for each separate donor who needs to be processed after your query (via cron) told you who needs to b

[appengine-java] Re: Testing with JDO

2010-10-25 Thread Didier Durand
Daniel, You're welcome. didier On Oct 25, 12:40 pm, Daniel Blasco wrote: > Thank you Didier. > > This is my BaseTest.java and works perfect now: > > package ...; > > import static org.junit.Assert.assertEquals; > > import java.util.Date; > import java.util.List; > > import javax.jdo.PersistenceMa

[appengine-java] Create any kind of file on GAE/J then upload to Google docs.

2010-10-25 Thread Nurettin Omer Hamzaoglu
Hi, Is it possible to create any kind of file on GAE/J and upload to Google docs? I've asked a similar question about creating PDF and uploading to Google docs but seems nobody tried or successful before. Anyone have any suggestions or sample code? Thanks. -- You received this message because y

[appengine-java] Re: Testing with JDO

2010-10-25 Thread Daniel Blasco
Thank you Didier. This is my BaseTest.java and works perfect now: package ...; import static org.junit.Assert.assertEquals; import java.util.Date; import java.util.List; import javax.jdo.PersistenceManager; import org.junit.After; import org.junit.Before; import org.junit.Test; import com...

Re: [appengine-java] Re: Recurring tasks

2010-10-25 Thread Vik
Hie Hmm, so in my case I always know in advance that I need to activate few blood donors every day which were deactivated yesterday. So, this qualifies for cron jobs. Isn't it ? However, does this 30s limit applies here as well? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogs

Re: [appengine-java] Google App Engine on Netbeans

2010-10-25 Thread Khor Yong Hao
You may refer to http://java.wildstartech.com/Java-Platform-Enterprise-Edition/JavaServer-Faces/sun-javaserver-faces-reference-implementation/configuring-jsf-20-to-run-on-the-google-app-engine-using-netbeans I had successed last time for configuring JSF+Facelets on Google Appengine using Netbean 6

Re: [appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-10-25 Thread Adrian Petrescu
No, we had the enctype; that's what the "uploadForm.setEncoding(FormPanel. ENCODING_MULTIPART);" was about. As several of us have discovered, it's the name we were missing. The requirement to have encoding set is well-documented, the name is not so much. And the point remains that even if it is do

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-10-25 Thread zen
Despite all the documentations and examples you have missed adding the enctype! add this to the form enctype="multipart/form-data" you should have no problems. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group

[appengine-java] Re: File size when downloading files is missing

2010-10-25 Thread rapher
So, i've played a bit and tested some things. Before serving the blobkey i now set the header of the respond this way: res.setHeader("Content-Length", Long.toString(blobInfo.getSize() )); res.setHeader("Content-Size", Long.toString(blobInfo.getSize() )); Setting the header works, the respond say

[appengine-java] Re: Disappointment about JPA relationships :(

2010-10-25 Thread Simon
I agree the documentation isn't fabulous for JPA, in that a vast majority of it focuses on the JDO implementation and you end up having to work out which bits of DataNucleus documentation should be used and is relevant for GAE. However, to give the team a bit of credit the restrictions you are tal

[appengine-java] Re: How can i allow user to download a zip file?

2010-10-25 Thread Vaclav Bartacek
Just call the method addStream( name_of_the_folder ): OutputStream os = zipStreamOutput.addStream( "zipfolder/ subfolder" ); Vaclav On Oct 23, 7:32 pm, Bit Liner wrote: > How can i add a folder to the zipStreamOutput? > I cannot write bytes that represents a folder, is there a way to do > it?