[appengine-java] BlobstoreService fetchData - 2 small fetches or 1 large fetch?

2010-04-26 Thread keyurva
I have an interesting problem with my blob store fetches - I need to fetch 2 chunks of data 5 bytes each that are 1000 bytes apart. >From the perspective of the BlobstoreService, is it more efficient for me to make 2 fetchData calls of 5 bytes each or 1 fetchData call of 1010 bytes? Thanks, Keyur

Re: [appengine-java] Freemarker: Run local: OK. Run on cloud: Error

2010-04-26 Thread Sudhir Ramanandi
First of all, Currently normal release of freemarker will not run on GAE as it has dependency on javax.swing package If you solve the problem you just mentioned, sooner or later you will get other problems See this http://solveme.wordpress.com/2009/12/25/freemarker-sucks-it-has-dependency-on-javax

[appengine-java] Re: Geocoding API quickly throwing OVER_QUERY_LIMIT error

2010-04-26 Thread Sekhar
Anyone? I'm still getting this error, and it's kind of critical for me. Hope one of you can help. On Apr 23, 6:04 pm, Sekhar wrote: > The geocoding API is throwing OVER_QUERY_LIMIT error after just one or > two queries for me. The problem is intermittent (was failing > consistently and then worke

Re: [appengine-java] Single Sign on between applications

2010-04-26 Thread nearmars
You may be able to accomplish this by using sub-domains. For example: my-sso-app.appspot.com blog.my-sso-app.appspot.com forum.my-sso-app.appspot.com I'm not 100% sure but I believe you can share data, and authentication between apps in the same domain. Sent via BlackBerry from T-Mobile -Or

[appengine-java] Freemarker: Run local: OK. Run on cloud: Error

2010-04-26 Thread Phuong Nguyen
Hi guys: I'm having spring-mvc + apache tiles + freemarker in my Gae Application. Everything works fine in my local machine after several nightmare of trying to figuring out the appropriate version of apache tiles to use. I can recall that I had it successfully run on the cloud few months ago (whe

[appengine-java] Efficient One to Many Relationship

2010-04-26 Thread Pk
Hi, I have a parent ListContainer entity with key and name properties. and I have a child ListItem entity with key, name and parentkey properties. The parentkey simply refers to the key in ListContainer. I am building a site where I list the names in listcontainer, and when the user chooses a name,

[appengine-java] How to deal with large collections of objects?

2010-04-26 Thread Mark
Hi, I'm confused as to how to deal with a large number of objects and transactions. I will use a Farm and Cows to illustrate my confusion: Option1: Create an owned relationship: class Farm { Cows mCows; int mNumCows; } class Cows { List mCowList; } class Cow

[appengine-java] Re: Trouble with basic logging

2010-04-26 Thread kldaniels
Thanks for your help. That was easy. On Apr 26, 2:56 pm, Toby Reyelts wrote: > You have the default setting for all loggers set to WARNING, and you're > logging at INFO so your message is not logged. You could either log at a > higher level or lower the logging level in your config file. > > > >

Re: [appengine-java] Re: gql fetch performance

2010-04-26 Thread Ikai L (Google)
Are you doing this locally or after deployment? Check out this tool: http://code.google.com/appengine/docs/java/tools/appstats.html You'll be able to use this to identify bottlenecks. It's possible you're fetched each entity individu

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Max Ross (Google)
Your JDO config is not related to LocalServiceTestHelper or LocalDatastoreServiceTestConfig. If you create your PersistenceManager in the typical way after you create a LocalServiceTestHelper with a LocalDatastoreServiceTestConfig and then call helper.setUp() you should be all set. Max 2010/4/26

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Marcos Vinícius Soares
I just wanted an instance of PersistenceManager to use in unit tests and I was able to setup it up. I'm not sure how to get it through LocalDatastoreServiceTestConfig. Anyway, it is working now as per the code I sent earlier. Thanks > On Mon, Apr 26, 2010 at 1:33 PM, Max Ross (Google) < maxr+appe

[appengine-java] Re: synchronous task queue support

2010-04-26 Thread Tristan
Yeah, I do this all the time the way MrSpandex (seriously? lol) does it. On Apr 26, 5:12 pm, MrSpandex wrote: > How about having task 1 queue task 2 and task 2 queuing task 3? > > On Apr 26, 5:53 pm, king wrote: > > > > > > > Hi all, I encounter a queueing related challenge and need you guys' >

[appengine-java] Re: synchronous task queue support

2010-04-26 Thread MrSpandex
How about having task 1 queue task 2 and task 2 queuing task 3? On Apr 26, 5:53 pm, king wrote: > Hi all, I encounter a queueing related challenge and need you guys' > help badly: > > The use case is that I have 3 tasks that I want to insert into the > queue. Each task takes about 20 seconds to c

[appengine-java] Re: synchronous task queue support

2010-04-26 Thread king
sorry for the typo, the last queue.add statement should be: queue.add(DatastoreServiceFactory.getDatastoreService().getCurrentTransacti on(), TaskOptions().url("/task3.jsp")); Your help is greatly appreciated :) On Apr 26, 2:53 pm, king wrote: > Hi all, I encounter a queueing related challenge

[appengine-java] Re: Trouble with basic logging

2010-04-26 Thread MrSpandex
While we're on the issue, I noticed that the admin panel lists DEBUG as the lowest level of logging. What does this map to in java.util.logging where there is no debug (fine, finer, finest)? On Apr 26, 5:56 pm, Toby Reyelts wrote: > You have the default setting for all loggers set to WARNING, and

Re: [appengine-java] Trouble with basic logging

2010-04-26 Thread Toby Reyelts
You have the default setting for all loggers set to WARNING, and you're logging at INFO so your message is not logged. You could either log at a higher level or lower the logging level in your config file. On Mon, Apr 26, 2010 at 5:11 PM, kldaniels wrote: > I am struggling to get the most basic

[appengine-java] synchronous task queue support

2010-04-26 Thread king
Hi all, I encounter a queueing related challenge and need you guys' help badly: The use case is that I have 3 tasks that I want to insert into the queue. Each task takes about 20 seconds to complete. The challenge is that task # 3 depends on task # 2, and task # 2 depends on task # 1. The questio

[appengine-java] Trouble with basic logging

2010-04-26 Thread kldaniels
I am struggling to get the most basic logging working. I've even started with the default app generated by Eclipse, adding only one simple log command to the existing code in the GreetingServiceImpl class. I have not changed the WEB-INF/classes/logging.properties or the appengine-web.xml file. (

[appengine-java] Re: gql fetch performance

2010-04-26 Thread mandar khadilk
BTW, the duration of the query fluctuates a lot. 2 sec to 15 secs. On Apr 26, 10:05 am, mandar khadilk wrote: > We have been testing gql based datastore performance for a while now. > I am very disappointed so for what performance we are getting from our > simple un-ordered fetch/get. > > Here is

[appengine-java] gql fetch performance

2010-04-26 Thread mandar khadilk
We have been testing gql based datastore performance for a while now. I am very disappointed so for what performance we are getting from our simple un-ordered fetch/get. Here is what we are doing- 1. Make a "kind" based query with no filter and ordering. We fetch all the entity (not just keys) as

[appengine-java] Lazy Load of Parent

2010-04-26 Thread MrSpandex
Hi All, I'm using JDO to access the datastore. I understand children of my entity will be lazy loaded - another query will be fired when I try to access them, but the documentation is not so clear on parent entities. When I fetch a child, will its parent be loaded eagerly? What about its parent?

[appengine-java] Re: Database cursor for "back" cursor?

2010-04-26 Thread Alfred Fuller
This isn't a bad solution, but it has several problems: - It doesn't scale - Cache could have holes. I guess then you could grab a query and scroll though the first 20 pages to fill out the cache. You could actually start at the highest cursor before the requested page and page forward to fill ou

[appengine-java] Re: Database cursor for "back" cursor?

2010-04-26 Thread Alfred Fuller
For most queries the process goes something like this: Index Scan -> Fetch Entity -> Send to user For any query with a sort order or inequality filter on any property other than __key__ we are still actually fetching the entity in the datastore, so the only savings is the serialization and transm

[appengine-java] Inheritance hierarchy and getExtent

2010-04-26 Thread SiM
Hello All, I have a base class X, from which i have derived Y and Z. i have the Inheritance strategy defined as SUBCLASS_TABLE. Is there anyway i can use JDO API method getExtent and get the list of base class (X) instances ? I found that getExtent(X.class,* true*) does not retri

[appengine-java] Uploading blobs and authentication

2010-04-26 Thread keyurva
Currently to upload blobs, the blob store service creates a unique one- time URL that a user can post blobs to. My requirement is that I only want authenticated / authorized users to post blobs in my application. I can achieve this currently if the page that includes the multipart form to upload bl

[appengine-java] GAE Blog: Making your app searchable using self merge-joins

2010-04-26 Thread Peter Ondruska
http://googleappengine.blogspot.com/2010/04/making-your-app-searchable-using-self.html -- 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

Re: [appengine-java] Re: App Engine and Spring slow start up

2010-04-26 Thread Baz
> > I do not understand why there is not at least a way to keep the apps > running. I would even pay for that. On deck is the ability to pay for and have reserved a warmed instance: http://code.google.com/appengine/docs/roadmap.html (3rd bullet) Baz -- You received this message because you are

Re: [appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-04-26 Thread Rajeev Dayal
Sorry about the trouble that this has caused :(. We'll get a fix out there soon. On Mon, Apr 26, 2010 at 3:12 PM, Dannemano wrote: > I have tested your workaround in the reported defect and it works > fine. > > To summarize in this thread as well: > Open the eclipse build path and move the Web Ap

[appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-04-26 Thread Dannemano
I have tested your workaround in the reported defect and it works fine. To summarize in this thread as well: Open the eclipse build path and move the Web App library to the bottom in the order and export tab. Thanks for the assistance, I have been struggling with this issue for some time now! Re

Re: [appengine-java] Re: NullPointerException on URLFetchService

2010-04-26 Thread Ikai L (Google)
Can you file a bug in our issues tracker? We should try to throw a more useful exception or throw the same error locally in the development server: http://code.google.com/p/googleappengine/issues/list On Mon, Apr 26, 2010 at 11:00 AM, hector wrote: > I figured out the problem. Setting a null v

Re: [appengine-java] Can't decide: JDO, Twig-Persist or Objectify?

2010-04-26 Thread Ikai L (Google)
Twig, Objectify and Slim3 are all open source, so the "one developer" problem is mitigated by the fact that you can fix your own bugs/add your own features. It's no worse than most open source projects. On Mon, Apr 26, 2010 at 9:26 AM, Guillermo Schwarz < guillermo.schw...@gmail.com> wrote: > Hi,

Re: [appengine-java] Facing problem with using EL and tag

2010-04-26 Thread Ikai L (Google)
What error do you see? Can you describe expected output versus actual? Likely it's related to the JSP version you've specified. Can you post the top of the JSP file? On Sun, Apr 25, 2010 at 1:22 PM, devashish wrote: > Following code snippet is not working for me after uploading, whereas > its wo

Re: [appengine-java] Single Sign on between applications

2010-04-26 Thread Ikai L (Google)
Not natively. You may want to look into doing something with OpenID, which may make the process a bit less bothersome, but won't remove the need to login completely. On Sat, Apr 24, 2010 at 11:51 AM, terran wrote: > Was trying to look around for an answer and couldn't find it, but if I > owned s

[appengine-java] Re: changing datamodel later

2010-04-26 Thread Timofey Koolin
if you want search by value of new property you must resave each object with new schema. On 26 апр, 17:10, Matthias Koch wrote: > Hi, > I'm new to appengine. > and have the first problem hopefully someone can help me. > > I have just a simple Entiy class like this: > > @Entity > public class Gues

[appengine-java] Re: changing datamodel later

2010-04-26 Thread Timofey Koolin
You can use Long instead of long and long getProperrty{ return val != null ? val.longValue : 0; } On 26 апр, 17:10, Matthias Koch wrote: > Hi, > I'm new to appengine. > and have the first problem hopefully someone can help me. > > I have just a simple Entiy class like this: > > @Entity > public

[appengine-java] Re: NullPointerException on URLFetchService

2010-04-26 Thread hector
I figured out the problem. Setting a null value in a request header will cause this exception. Not sure if this should be the expected behavior, since its hard to tell where the null pointer is coming from. On Apr 23, 5:29 pm, hector wrote: > I'm sometimes getting a NullPointerException when us

[appengine-java] Re: App Engine and Spring slow start up

2010-04-26 Thread tazdevil78
I was thinking filter, but I landed on this instead. Write an HttpServlet implementation that wraps DispatcherServlet. This wrapper will have an instance variable that holds a reference to a DispatcherServlet. If the variable is empty then the wrapper goes and pulls an instance of DispatcherServlet

Re: [appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-04-26 Thread Rajeev Dayal
Filed as http://code.google.com/p/googleappengine/issues/detail?id=3154 On Mon, Apr 26, 2010 at 12:49 PM, Rajeev Dayal wrote: > Okay, I think I've been able to repro what you guys are seeing. This is > what I did: > > 1) Create a "Dynamic Web Project" > 2) Enable App Engine for the project, and

Re: [appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-04-26 Thread Rajeev Dayal
Okay, I think I've been able to repro what you guys are seeing. This is what I did: 1) Create a "Dynamic Web Project" 2) Enable App Engine for the project, and set the WAR folder to the WebContent directory You'll get the "Invalid SDK" problem marker. Also, switching SDKs no longer works properly

Re: [appengine-java] Re: ApiProxyLocalImpl class not public

2010-04-26 Thread Max Ross (Google)
What aspect of the local datastore are you trying to configure that isn't covered by LocalDatastoreServiceTestConfig()? I don't think you should have to configure the ApiProxyLocal or the LocalServerEnvironment directly. On Sun, Apr 25, 2010 at 3:40 PM, mvsoares wrote: > Indeed, ApiProxyLocalImp

Re: [appengine-java] Can't decide: JDO, Twig-Persist or Objectify?

2010-04-26 Thread Guillermo Schwarz
Hi, Why is Twig "only one developer"? Cheers, Guillermo. On Sat, Apr 24, 2010 at 3:04 PM, jbdhl wrote: > > > * Twig > Pros: simple, low startup latency > Cons: only one developer (major drawback), GAE-only > > -- Saludos cordiales, Guillermo Schwarz Sun Certified Enterprise Archi

[appengine-java] Re: Run App Engine on a production intranet

2010-04-26 Thread Argum Software
On Apr 16, 10:13 am, Peter Ondruska wrote: > You you really need something like that you may try using Gears or > design another application (e.g. servlet/J2EE container) which will > mirror/sync data from GAE. Either way you will do a lot of extra > coding but I miss the point.. GAE offers all yo

[appengine-java] CPU usage issue post deployment.

2010-04-26 Thread WeShine Tech
Hello, I have very recently deployed my application on Google App Engine. I have also enabeled billing of a large amount. However my application failed at the cliets site today. It was working fine on all the clients before then it suddenly stoped working on some of them. We also observed t

[appengine-java] Number of Rows and performance

2010-04-26 Thread Pk
I am storing a big list of order information in datastore. I have an order entity which has certain properties related to the order. I have a property called IsProcessed on the order entity. Once I process the order, I make it as true. I do not have entity groups, transactions etc., (not necessary

[appengine-java] Deploy Connection Refused

2010-04-26 Thread Paul
I have been using the Google App plugin with Eclipse 3.5 to make my first app, and I have no problems running it as a Web Application on my local machine. However, when I try to deploy the app, I get an error with the message "Unable to update app: Connection refused: connect." The exception stack

[appengine-java] changing datamodel later

2010-04-26 Thread Matthias Koch
Hi, I'm new to appengine. and have the first problem hopefully someone can help me. I have just a simple Entiy class like this: @Entity public class GuestbookEntry { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Keykey; private String username; private String mess

[appengine-java] Re: Can't decide: JDO, Twig-Persist or Objectify?

2010-04-26 Thread Andreas Borglin
Hi. The Objectify/Twig/SimpleDS authors participated in an "interview" at http://borglin.net/gwt-project/?page_id=604 Might help you further in making a decision. On Apr 24, 9:04 pm, jbdhl wrote: > Hi > > I really can't decide which datastore abstraction to use for my app. > Any help deciding, w

Re: [appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-04-26 Thread Rajeev Dayal
Moritz, Can you tell me exactly how you're creating these projects? What wizard are you using? Can you zip up a broken project and send it to me? Rajeev On Mon, Apr 19, 2010 at 1:18 PM, Moritz wrote: > No. > > Miguel asked for an example project for reproduction, but in each and > every proje

Re: [appengine-java] Discussion on will-it-play-in-app-engine

2010-04-26 Thread Joel Weight
I had the same problem with JSF 2 so I wrote this blog entry which details a fix. Unfortunately it means recompiling jsf. http://digitaljoel.wordpress.com/2009/12/21/jsf-2-0-2-and-google-app-engine/ Joel On Wed, Mar

[appengine-java] apparent appstats bug

2010-04-26 Thread Dick Johnson
I have been seeing a weird but repeatable appstats problem. I think it's an appstats bug. I will try to describe the problem without sounding like I'm on drugs. I noticed that a (non-gwt) servlet would hang— still show that it was loading, not display a full response— when and only when I had app

Re: [appengine-java] String datatype

2010-04-26 Thread m seleron
Hi. I guess this covers the question. http://code.google.com/p/googleappengine/issues/detail?id=2519 thanks. > http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html > short text string is 500 characters or 500 bytes? > > For example Russian characters encoded by two byte

Re: [appengine-java] Re: Can't decide: JDO, Twig-Persist or Objectify?

2010-04-26 Thread Christian Goudreau
I didn't try, but I'm sure that if you set a Key field that doesn't exist in the datastore, it will be stored with the key you wanted. If I recall, store only auto assign a key when the key field is null or doesn't exist. @Key private long id; Christian On Mon, Apr 26, 2010 at 7:59 AM, David Sow

[appengine-java] Re: Can't decide: JDO, Twig-Persist or Objectify?

2010-04-26 Thread David Sowerby
Hi Christian That's interesting ... I just felt that I wanted to manage the references (keys) myself, so I could have more control over when and how those references are instantiated - Twig seems to do that for you (great in many ways), but I have some situations with my application where I think

[appengine-java] Re: App Engine and Spring slow start up

2010-04-26 Thread Toby
... humm, it sounds like an idea. But I am not sure it works. I learned that even the use of JDO is slowing down the start up. So I imagine if there was a way to optimize that with the datastore they would have done it? How would you want to put this in place? With a filter? On Apr 25, 5:38 am, ta

Re: RE : [appengine-java] Re: Handling concurrent modification

2010-04-26 Thread Romain Pelisse
Ok, that make more sense to me know, but in this case, why don't you go with full memory for the data gaming ? You can't use Guice for instance to quickly create and retrieved singletons (for instance an hashMap containing your data). After a game is finish you store datastore and clear the instanc

Re: [appengine-java] What is the package for Cache & CacheManager

2010-04-26 Thread yjun hu
encache.jar On Sat, Apr 24, 2010 at 1:07 PM, Phuong Nguyen wrote: > From the document, it said that the interfaces & classes (Cache, > CacheManager) should be in package net.sf.jsr107. > However, I couldn't find these interfaces and classes in the GAE 1.3.2 > SDK, but rather, I found them in jav

Re: [appengine-java] Discussion on will-it-play-in-app-engine

2010-04-26 Thread nicolas melendez
JDOM expends a lot of cpu time parsing XML. so be careful or tour wallet will suffer :S NM On Sun, Apr 25, 2010 at 5:13 PM, linhares wrote: > JDOM 1.1 seems to be compatible if you put "xerces.jar" together with > the jdom.jar. > > -- > You received this message because you are subscribed to the