[appengine-java] Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-19 Thread Marcus Brody
Good day, I would like to ask about following. How is java.util.Date synchronized in case there is more than 1 instance of my web application. Example: WebAppInstance01 : I create somewhere new Date() at the same time WebAppInstance02: I create somewhere new Date() Is there some time shift ?

[appengine-java] is there any solution/idea how blacklist IP in realtime ?

2010-07-19 Thread Marcus Brody
Hello, I was looking for some solution which would allow me realtime blacklist IPs. I didnt find any. Realtime I mean without manually getting IP and change dos.xml and upload it. A man can upload dos.xml to bann certain IPs. Can this be done somehow (anyhow) programmatically, even using home

[appengine-java] Re: App Engine integration with Google Apps Marketplace

2010-07-19 Thread l.denardo
The link to generate login URL is different for apps accounts String appsLoginUrl = userService.getOpenIdLoginUrl(redirectTo, loginDomain, https://www.google.com/accounts/o8/site-xrds?hd=; + loginDomain, attributesRequest); loginDomain is

[appengine-java] Re: Active transactions

2010-07-19 Thread Marcus Brody
Hi lisandrodc, please carefully read all documents http://code.google.com/appengine/docs/java/datastore/ and http://www.datanucleus.org/products/accessplatform_1_1/guides/jdo/daolayer_design.html Also many people cannot read spanish, if you would write in english you may get more answers. I

[appengine-java] Re: Active transactions

2010-07-19 Thread Marcus Brody
try follow this pattern for transactions public void doSomthingWithEntity(T entity) { PersistenceManager pm = getPersistenceManager(); Transaction transaction = pm.currentTransaction(); try { transaction.begin(); //

[appengine-java] Re: rename a app-id

2010-07-19 Thread Marcus Brody
create new app with your desired ID and forward all request :P On Jul 18, 3:34 pm, aswath satrasala aswath.satras...@gmail.com wrote: I do not want to delete the app.  I have user data. -Aswath On Sun, Jul 18, 2010 at 6:57 PM, jacek.ambroziak jacek.ambroz...@gmail.comwrote: Not really,

Re: [appengine-java] JCache

2010-07-19 Thread Hariharan Anantharaman
As long as the objects are serializable, I believe we can store them in jcache. ~hari On Jul 19, 2010 9:15 AM, pdias paulojorged...@gmail.com wrote: Is possible to save object instances using JCache? I have tried and received the following message: javax.servlet.ServletException:

[appengine-java] error when persist more than 1 object

2010-07-19 Thread senderj
I am trying to learn GAE by writing simple java programs. This is the coding I use to try JPA: EntityManager em = null; try { em = EMF.get().createEntityManager(); int i = 6; Trade5min t5 = new Trade5min(); t5.setStkCode(i); t5.settDate(2010-07-15); t5.setTradeRec(this is

Re: [appengine-java] JDO creates entities when I don't ask it to

2010-07-19 Thread Hariharan Anantharaman
Where do u commit the transaction? I hope it is not after saving of A. Could you confirm if B and A are persisted and committed seperately and independent of each other. Thanks Hari On Jul 19, 2010 9:15 AM, pbadn doug...@poweredbyalt.net wrote: I am having a problem that is confusing me. I

[appengine-java] Re: About Google App Engine Google API

2010-07-19 Thread Tan Duy
Hi there, Now, I think that I should create an application on GAE. It will list some libraries on Google Map. We can search, look for books and make friends with book-lovers at somewhere near you. I'll try to use Google Web Toolkit in my project and some another Google APIs. This project will

[appengine-java] Re: Unable to execute query for a large number of entities

2010-07-19 Thread Simon
I believe (and this may be wrong) that the index data is only created when the object is inserted/updated. Therefore, any existing data will be not covered by the new index and won't be retrieved with any queries which are based upon the index. Updating them or reuploading them should solve the

[appengine-java] Re: JCache

2010-07-19 Thread pdias
Yes it needs to be “serializable”. Thanks for your answer. pdias On 19 Jul, 09:30, Hariharan Anantharaman hariharan.ananthara...@gmail.com wrote: As long as the objects are serializable, I believe we can store them in jcache. ~hari On Jul 19, 2010 9:15 AM, pdias paulojorged...@gmail.com

[appengine-java] Share session between 3rd party domain (google apps) and appspot.com?

2010-07-19 Thread Just
Hi, is it possible to share the session between a google apps domain and appspot.com? I wanted to use the ssl of appspot.com for secure login and the redirect back to regular domain. Regards -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] Must only return a redirect from a Blobstore upload callback??? What does it mean?

2010-07-19 Thread salvatore
Hi all! I have two jsp, -one whith a form for upload a file -one for managing upload But, stil the upload goes fine , I recive this warning 19-lug-2010 12.11.15 com.google.appengine.api.blobstore.dev.UploadBlobServlet$3$2 write GRAVE: Must only return a redirect from a Blobstore upload

Re: [appengine-java] task queues and retries

2010-07-19 Thread Fabrizio Accatino
AFAIK if you don't catch exceptions, you'll get HTTP 500 error. Can you post your code? Are you sure that you do not try/catch the exception? fabrizio On Mon, Jul 19, 2010 at 12:38 AM, Philip Tucker ptuc...@gmail.com wrote: One of my tasks encountered a failure and wasn't retried. I think

Re: [appengine-java] C++ in GAE

2010-07-19 Thread Gal Dolber
No... 2010/7/18 otuyama otuy...@gmail.com Hello, Is it possible to compile C++ code in JVM bytecode? I would like to run legacy code in Google App Engine for Java. Of course, C++ and Java libs will be incompatible, but it could be fixed with wrapper libs. Thanks. Julio -- You received

[appengine-java] How to close an object before second transaction?

2010-07-19 Thread coltsith
Here's the psudo-code for one of my methods: 1. Get PersistenceManager (pm) 2. pm.fetchObject1 3. pm.beginTransaction 4. pm.modifyObject1 5. pm.commit 6. pm.fetchObject2 7. pm.beginTransaction 8. pm.modifyObject2 9. pm.commit however I get this error can't operate on multiple entity

[appengine-java] Length of member variable names contributes to storage space used?

2010-07-19 Thread Mark
Hi, I read in a post that the length of member variable names contributes to the amount of storage space your app uses, example: class Farm { private String mFarmersFavoriteCropToPlant; } would take more space to store than: class Farm { private String m; }

Re: [appengine-java] Re: is there any solution/idea how blacklist IP in realtime ?

2010-07-19 Thread John Patterson
I believe some people maintain their own request count by ip address using memcache and restrict access using a filter. On 19 Jul 2010, at 20:09, Marcus Brody wrote: I am missing something ? So you guys are sitting in web console and watch how many requests came from given IP address ? This

[appengine-java] Re: PDF Files

2010-07-19 Thread chrischelmi
yes exatky On Jul 18, 1:12 pm, Khor Yong Hao fyh...@gmail.com wrote: Your Problem is not using iText to generate PDF content and download it, but is able to allow user upload their own PDF and providing download, right? On Thu, Jul 15, 2010 at 3:25 PM, dovm dovm...@gmail.com wrote: Hi,

[appengine-java] Re: PDF Files

2010-07-19 Thread chrischelmi
You are right conor, i set the content to application/pdf and i cand display it. but my problem is that in some browsers and OS(Mac) ,the pdf is not displyed, the download starts automatically with a default name, i want to have control on the name given to the file before it is downloaded On

[appengine-java] Re: App Engine integration with Google Apps Marketplace

2010-07-19 Thread l.denardo
I don't know if there are any differences, since I never tried the other way. I'll try to investigate in the next days, but I think this could be helpful for things such as https redirect and similar issues. Maybe a word from GAE team will help (anyway, some blog posts about OpenID have been

[appengine-java] Re: Entity relationship table

2010-07-19 Thread Nacho Coloma
My 2 cents: if all your users are of type Person and it's a root entity, you can also save some space by storing Key ids instead of Key instances (you save the redundant type name etc). On Jul 19, 5:53 am, Ikai L (Google) ika...@google.com wrote: The best practice is probably to create list

[appengine-java] Re: java.net.InetAddress and logback 0.9.21

2010-07-19 Thread Juan Hernandez
I'm running into the same issue (I'm using logback 0.9.21). I tried to configure Logback manually using the JoranConfigurator. Well, I started extending the JoranConfigurator trying to avoid the call to the method ContextUtil.addHostNameAsProperty() in the ConfigurationAction class that is the

[appengine-java] local_db does not exist; cannot store persistent data

2010-07-19 Thread Erencie
I use Google app Engine plugin for Eclipse and managed to make the guestbook demo run successfuly. When I create my own app by following the code pattern of guestbook, sth weird happens: Jul 19, 2010 6:08:46 AM com.google.appengine.api.datastore.dev.LocalDatastoreService load INFO: The backing

[appengine-java] Re: Roo + GWT + Security on AppEngine

2010-07-19 Thread ondrej
2) i had some issues with static files, spring security doesnt protect static html files. I do have similar problem. Spring security works pretty fine for me, but I cannot understand why I can't limit access to HTML host page. The current situation is that my application starts and I have to

[appengine-java] Updated Eclipse Plugin ?

2010-07-19 Thread Navaneeth Krishnan
I tried out the latest version of the eclipse plugin for GAE http://code.google.com/appengine/docs/java/gettingstarted/installing.html to realize that the bundled app engine version is 1.3.3. If there any plan to upgrade it to the latest SDK (1.3.5) ? When can we expect a new release ? Also,

[appengine-java] Re: Geomodel in Java

2010-07-19 Thread Mahsa
Now, I am trying to use the proximity search in Geomodel. However, I am facing a problem, which I am not sure what it is, but I think it is related to either my PersistentManager or baseQuery. I ran the query, however, while my database is not empty, I got null results. public class

Re: [appengine-java] local_db does not exist; cannot store persistent data

2010-07-19 Thread Ronmell Fuentes
Hello Erencie. have you tried to save persistence objects in data store? and have you tried to retrieve all data saved in your data store? does it show any error? are you using something like JUnit or something besides the code shown in google tutorials? Rgds. R 2010/7/19 Erencie

[appengine-java] Re: is there any solution/idea how blacklist IP in realtime ?

2010-07-19 Thread Marcus Brody
Yes, I already have such solution, but It still does eat some resources (minimal if written correctly) But thank for answer John, only think I am afraid I wake up and my dayly budged will be eaten by some kind of dos attack done while I was sleeping, I still think since you can upload dos.xml

[appengine-java] next gen queries

2010-07-19 Thread pac
In Alfred Fuller's presentation (http://www.youtube.com/watch? v=ofhEyDBpngMfeature=channel), he mentioned that limit of 5000 list items and need for number of composite indexes for list (i.e. 2 value search from list, 3 value search from list etc) will be removed. As per video, I think he

[appengine-java] App Engine Java servlet clearing my Content-type Header for form POST from python

2010-07-19 Thread Jean Hsu
Hi, I'm running a servlet on Google App Engine. When I try to post multi- part form data to the url from a python script, locally it works, but when I deploy to app engine, it complains that the content-type header is null. When I print out the content type header to my logs, it is indeed

[appengine-java] Persistence manager for all system

2010-07-19 Thread lisandrodc
Hi! I have a doubt of since administering a Persistence manager for an application(for example web). When close the persistence manager? When commit the transaction? The pattern singleton the example? Because if I continue the help of google, the pattern, close a persitence manager, for example:

[appengine-java] PMF.get().getPersistenceManager() freezes after restart

2010-07-19 Thread bradr
We are seeing some strange behavior... after we stop/restart the dev server it freezes when trying to get an instance of the PersistenceManager. Steps to repeat: 1) We execute a query similar to the AppEngine example:

Re: [appengine-java] Updated Eclipse Plugin ?

2010-07-19 Thread Hariharan Anantharaman
From your eclipse itself(having an older version of gae), you can update to latest version by using software updates option in elclipse. Thanks Hari On Jul 19, 2010 9:39 PM, Navaneeth Krishnan navaneeth.cont...@gmail.com wrote: I tried out the latest version of the eclipse plugin for GAE

[appengine-java] Re: Dance Dance Robot error / Channel API

2010-07-19 Thread Daniel Guermeur
Thanks for the tip about channel.js. This is what I needed. Now I get an error when pushing a message to a client. I get this: com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. Caused by: com.google.apphosting.api.ApiProxy$ApplicationException:

[appengine-java] Re: Dance Dance Robot error / Channel API

2010-07-19 Thread GoSharp Lite
I have the same error using dev server. If you deploy your app to production server, below error log shows channel service is not enable. exception: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException: The channel service is not enabled. It seems we have to patiently wait:) On Jul

[appengine-java] strange datastore status

2010-07-19 Thread cse.zh...@gmail.com
Dear all, Today I encountered a strange situation. I have used app engine SDK 1.3.5. And I have two applications on https://appengine.google.com/ assume they are *myapp* and *myapp-sandbox*. *myapp* and *myapp-sandbox* have the same code. I tried to execute a same section of code towards these 2

[appengine-java] Re: strange datastore status

2010-07-19 Thread cse.zh...@gmail.com
Dear all, I've already found the reason. It is related to my careless. There is a tiny difference between the two apps which caused the problem. And I didn't notice it. Sorry for the inconvenience. On 7月20日, 上午11时24分, cse.zh...@gmail.com cse.zh...@gmail.com wrote: Dear all, Today I encountered

[appengine-java] Re: JDO - How to Model a Transferable Relationship?

2010-07-19 Thread Didier Durand
Hi, I think that you have to go for an unowned 1-to-many relationship to achieve what you want else your child is stuck with its 1st parent. See for samples:http://code.google.com/appengine/docs/java/datastore/ relationships.html#Unowned_Relationships didier On Jul 17, 10:44 pm, max

[appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-19 Thread Didier Durand
Hi Mark, I would say yes: the datastore viewer shows the data with couples (name,value), name being the origianal attribute name in the java class. Moreover the doc says Each persistent field of the class represents a property of the entity, with the name of the property equal to the name of the

[appengine-java] Geomodel Java: Proximity Search

2010-07-19 Thread Mahsa
I am trying to use the proximity search of Geomodel. However, I am facing a problem, which I am not sure what it is, but I think it is related to either my PersistentManager or baseQuery. I ran the query, however, while my database is not empty, I got null results. Here are my codes: public

[appengine-java] Tag clouds on GAE for Java - how to store and how to aggregate

2010-07-19 Thread planetjones
Hi, I'm looking to store entities using GAE Java which have 1-many tags. I would like to display a tag cloud, so will need to know how many times each tag occurs (can't use aggregate functions and group by on GAE to do this like I would in SQL). And when I click a tag I would like to retrieve all

[appengine-java] Re: dynamically resizing a textarea

2010-07-19 Thread Brandon A
This is on the client side of the application. However I've finally found a solution to the problem... It's pretty simple and most experienced developers would probably know about it... But yeah, even though not all HTML attributes are accessible directly from the GWT TextArea class, I'm pretty