Re: [appengine-java] Domain Name Setup
http://hapeblog.appspot.com/blog.shtml?id=12002 you just need to forward fakedomain.com to www.fakedomain.com On Thu, Apr 15, 2010 at 4:21 AM, fletcher fle...@fletchowns.net wrote: Hello - I want to use http://fakedomain.com instead of http://fakeapp.appspot.com. I went through the domain setup in the app engine dashboard and added www.fakedomain.com. I also added the www CNAME record to point to ghs.google.com in my registrars (GoDaddy) administrator panel. Now I can access my app through www.fakedomain.com. I tried to do the same for *.fakedomain.com but apparently GoDaddy doesn't allow wildcards for CNAME records? Anyways, not really Google's problem, I just have http://fakedomain.com forwarded to http://www.fakedomain.com. First question: Is that how I am supposed to set it up? Second question: My app should GET and POST to www.fakedomain.com, correct? Is there a lot of latency introduced because of this? I'm not sure if this is a good test, but a ping www.fakedomain.com takes 150ms and a ping to fakedomain.appspot.com takes 10ms. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to create query with 4 arguments?
I want to create JDO query with 4 arguments, but in Eclipse I got error, that only 3 arguments are allowed. ListUser results = (ListUser) q.execute(companyKey, true, true, false); Why not look at the JDO API ? It's a standard after all. http://db.apache.org/jdo/api23/apidocs/index.html executeWithArray(), executeWithMap() all allow as many input parameters as you want. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Object hierarchy and GAE datastore
I turned the relationship around and it managed to work, but I still liked your idea of embedding the user class better since there will be no user without a person object. You could use @Embedded with JDO (assuming Google have implemented it), and then if you use it against an RDBMS in the future it will also be persisted that way. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Problems upgrading sdk from 1.3.0 to 1.3.2
I believe that GAE does not guarantee that the format of local development datastore local_db.bin files remains unchanged between SDK versions. So updating to a newer version of the SDK has the risk that data stored in a local copy of the development datastore is lost. I remember that there have been previous posts about this issue which should confirm more authoritatively what I mention above. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Owned one-to-one relationships: cannot attach a new child to a parent which has already been saved
Here, I've created a project that hosting the problem http://code.google.com/p/testjdo/source/browse/#svn/trunk/TestJDO -Appengine sdk 1.3.2 -JUnit 3 So, I made two unit tests to test: Owned one-to-one relationships Owned one-to-many relationships -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Detecting non existing entity
Hie I have a Entity class Country. The very first time when i am running my app this is not created in datastore. So my code: try{ String query = select from + BloodDonorCountryList.class.getName() + where countryName == \ + country.toLowerCase() + \; log.info(Query is: + query); ListBloodDonorCountryList countryList = (ListBloodDonorCountryList) pm.newQuery(query).execute(); log.info(returning: :); if(countryList.isEmpty()) return null; return countryList; }catch(Exception e){ log.severe(Method: addBloodDonorCountry); log.severe(e.getClass().getName() + + e.getMessage()); throw new CommandExecuteException(Problem while querying country list.); } throws exception saying: EVERE: javax.jdo.JDOUserException Persistent class Class vik.sakshum.Country does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output. has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class. So how to avoid this exception? Or in other words how to detect if this is the case. Thankx and Regards Vik Founder www.sakshum.com www.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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Run App Engine on a production intranet
Hi, I know this is not the point on Google App Engine, but I´ve come across this problem. We have a running app online that satisfies many customers, but one of them (there´s always one) would like to run it somehow offline... Does anyone have used the developement server to run a production application. Is there a list of limits on that server? Maybe the datastore has a limit or you can only have one concurrent connection, maybe some session limits... I would like to have all those facts to discourage them. Thanks in advance!! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Deployment Descriptor Filters: typo in example
Hello, It looks like a typo in http://code.google.com/appengine/docs/java/config/webxml.html#Filters Code: filterConfig.doFilter(request, response); Also sample LogFilterImpl does not implement all methods defined in javax. servlet.Filter Can you please take a look and update. Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Google Plugin for Eclipse - working from behind the proxy
I am trying to install the plug-in from behind a proxy and I have no clue of what/where the proxy is, it's addess and username/password to bypass it. So I had to install the plug ins from zip file as per the FAQ. The only problem is that none of the JEE plug in has been install so this Select Help Install New Software... Select the Galileo update site in the Work with dropdown. If it's not there, you can enter the URL directly: http://download.eclipse.org/releases/galileo Install Galileo Web, XML, and Java EE Development Eclipse Web Developer Tools. part of the FAQ couldnt be achieve as the I cannot http://download.eclipse.org/releases/galileo repository from behind the proxy, automatically. My question, is there a way, I can install all the repository from behind the proxy, where do I find them and where do which folders do I drop them into and what are all the repositories that I require to have the Eclipse fully functional. Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Operation commit failed on resource
Answering my question, The problem appeared because I was updating two instances of class Job simultaneously (I had two tasks in the same queue with bucket size 1). @Entity public class Job { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; Class Job is a child class of class Schedule: @Entity public class Schedule { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(nullable=false) private String name; @Basic private ListJob jobs; Seems I can't update such an entities simultaneously, because they have the same parent Schedule, i.e. job1.getKey().getParent().getId() == job2.getKey().getParent().getId() So the workaround was just wait some time so that other transaction commited: private void internalUpdateJob(Job job) { try { jobDAO.update(job); } catch (RollbackException e) { // This may happen if another job from the same schedule // updating at the same time simultaneously logger.debug(Retrying update for job: {}, job.getKey()); // Give another job a chance to commit, and commit current job after some delay internalUpdateJobAfterDelay(job); } } private void internalUpdateJobAfterDelay(Job job) { try { logger.debug(Waiting for another job to commit); Thread.sleep(1000); try { // Transaction will be reopened inside DAO if required jobDAO.update(job); logger.debug(Update after delay succeeded); } catch (RollbackException e2) { logger.error(Update after delay failed, e2); } } catch (InterruptedException e2) { logger.error(Interrupted, e2); } } and updated DAO: public void update(Job job) { if (!em.getTransaction().isActive()){ // see Application#internalUpdateJob(Job) logger.debug(Transaction is not active. Begin new one...); // XXX Rewrite this to handle transactions more gracefully em.getTransaction().begin(); } em.merge(job); } On Mar 24, 1:24 pm, dmitrygusev dmitry.gu...@gmail.com wrote: Hi, In my application I have an exception (see stacktrace below) which occurs in the same place but not every time (90% it works without any problems). What could be the reason of this? Here's what I'm doing (this code gets invoked smultaniously using Task Queue API on rate 6/m bucket size 5) with different job key parameter: // This is where everything starts from public void onActivate() { String jobKey = request.getParameter(key); logger.debug(Running job: + stringToKey(jobKey).toString()); try { Job job = jobDAO.find(stringToKey(jobKey)); if (job != null) { application.runJob(job);} } catch (Exception e) { // Prevent to run job once again on failure logger.warn(Error running job, e); } } ... public void runJob(Job job) { try { // ... doing some work here jobDAO.update(job); jobResultDAO.persistResult(jobResult);} catch (Exception e) { logger.error(Error executing job + job.getKey(), e); } } I'm using Tynamo JPA to manage transactions and here's how I configured transaction advisor: @Match(*DAO) public static void adviseTransactions(JPATransactionAdvisor advisor, MethodAdviceReceiver receiver) { advisor.addTransactionCommitAdvice(receiver); } Here's my DAO: public interface JobDAO { @CommitAfter public abstract ListJob getJobsByCronString(String cronString); @CommitAfter public abstract void delete(Long scheduleId, Long jobId); @CommitAfter public abstract void update(Job job); @CommitAfter public abstract Job find(Long scheduleId, Long jobId); @CommitAfter public abstract Job find(Key stringToKey); } public class JobDAOImpl implements JobDAO { @Inject public EntityManager em; public ListJob getJobsByCronString(String cronString) { Query q = em.createQuery(SELECT j FROM Job j WHERE j.cronString = :cronString); q.setParameter(cronString, cronString); return q.getResultList(); } public void update(Job job) { em.merge(job); } public void delete(Long scheduleId, Long id) { Job job = find(scheduleId, id); if (job != null) { em.remove(job); } } @Override public Job find(Long scheduleId, Long id) { Query q = em.createQuery(SELECT j FROM Job j WHERE j.key = :key). setParameter(key, createKey(Schedule.class.getSimpleName(),
Re: [appengine-java] Google Plugin for Eclipse - working from behind the proxy
Hi Raj, Have you considered starting out with the JEE version of Eclipse, and then installing the plugin via the zip mechanism? The JEE version of Eclipse should contain all of the components that you need. Rajeev On Thu, Apr 15, 2010 at 2:23 AM, Raj rajkumar@gmail.com wrote: I am trying to install the plug-in from behind a proxy and I have no clue of what/where the proxy is, it's addess and username/password to bypass it. So I had to install the plug ins from zip file as per the FAQ. The only problem is that none of the JEE plug in has been install so this Select Help Install New Software... Select the Galileo update site in the Work with dropdown. If it's not there, you can enter the URL directly: http://download.eclipse.org/releases/galileo Install Galileo Web, XML, and Java EE Development Eclipse Web Developer Tools. part of the FAQ couldnt be achieve as the I cannot http://download.eclipse.org/releases/galileo repository from behind the proxy, automatically. My question, is there a way, I can install all the repository from behind the proxy, where do I find them and where do which folders do I drop them into and what are all the repositories that I require to have the Eclipse fully functional. Any help is much appreciated. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Does Thread.sleep count towards CPU time?
In general, no. Can you provide more information? Are you looking at the Quota API output or the actual times reported in the Admin Console request logs? How long are you sleeping for, and how much CPU time are you being charged for while you are sleeping? On Thu, Apr 15, 2010 at 10:40 AM, Thorsten goo...@schleinzer.com wrote: Hello, it seems - although it would be strange - that the time my Servlet spends with Thread.sleep is added to the used CPU time. Can anybody confirm that? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Does Thread.sleep count towards CPU time?
Dear Don, I'm refering to my dashboard quota display. I did not (yet) check it via the API. But this high CPU time usage just began when I deployed a new version of my application where the only change was this new sleep... Per request I'm sleeping about up to three seconds. Thanks for your quick reply and your help! Regards Thorsten On 15 Apr., 18:16, Don Schwarz schwa...@google.com wrote: In general, no. Can you provide more information? Are you looking at the Quota API output or the actual times reported in the Admin Console request logs? How long are you sleeping for, and how much CPU time are you being charged for while you are sleeping? On Thu, Apr 15, 2010 at 10:40 AM, Thorsten goo...@schleinzer.com wrote: Hello, it seems - although it would be strange - that the time my Servlet spends with Thread.sleep is added to the used CPU time. Can anybody confirm that? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Detecting non existing entity
hie any one on this plz? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Apr 15, 2010 at 4:26 PM, Vik vik@gmail.com wrote: Hie I have a Entity class Country. The very first time when i am running my app this is not created in datastore. So my code: try{ String query = select from + BloodDonorCountryList.class.getName() + where countryName == \ + country.toLowerCase() + \; log.info(Query is: + query); ListBloodDonorCountryList countryList = (ListBloodDonorCountryList) pm.newQuery(query).execute(); log.info(returning: :); if(countryList.isEmpty()) return null; return countryList; }catch(Exception e){ log.severe(Method: addBloodDonorCountry); log.severe(e.getClass().getName() + + e.getMessage()); throw new CommandExecuteException(Problem while querying country list.); } throws exception saying: EVERE: javax.jdo.JDOUserException Persistent class Class vik.sakshum.Country does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output. has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class. So how to avoid this exception? Or in other words how to detect if this is the case. Thankx and Regards Vik Founder www.sakshum.com www.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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to exclude the optional jars for deployment?
Hello, Thanks for the help. This is quite a long, detailed post, but hopefully it will help generate some documentation. I started by making an exact copy of an existing Maven/GAE project that I've been working on. The pom.xml file for that project has a few build commands that run embedded ANT scripts that call the executables in the SDK direcotry that either run the instance locally or deploy it. Everything is done within Eclipse. So, I've taken that copy, Right Clicked in Eclipse, Google-App Engine Settings... I check Use Google App Engine and try to set the Application ID, but it claims that the appengine-web.xml is missing. It is currently there under src/main/webapp/WEB-INF where the standard Maven would place it. Without the ability at this point to designate where to find the file, I'm stuck unless I choose to create a new project according to the GPE FAQ. So, I create a new Dynamic Web Project per the FAQ. I'm not really sure what to set for Runtime or Configuration, either because I'm an eclipse newb or I'm not entirely certain how this will run in the end. I set that project up, copy over all of my code/resources and the pom.xml and enable Maven Dependency Management. At this point, it looks like a clean maven package and I pull out all of my ANT scripts from the pom.xml (since I shouldn't need them now). I'm using Eclipse for Java EE. Continuing with the FAQ, it talks about enabling GWT, which I do not want to do. Elsewhere, it was suggested that I look at the FAQ for users who are not using Eclipse for Java EE. So, I set the This project has a WAR directory (and, at this point realize I could probably have done that on my original application without starting from scratch and copying over the files). I am able to enable Google App Engine for this project, but I get a few build path errors. For example, I accidentally selected a missing SDK at first. Selecting the correct path for the SDK in the Google Screen didn't seem to remove the previous bad path, so I'm doing that manually. It also complained about the existing GAE files in my pom.xml, but did so in a roundabout way. I tried doing a Maven Package per the FAQ, but it claimed javax.persistence did not exist. I see geronimo_jpa on the google supplied list of resources in my build path, but it's not working? Anyways, put it back in my pom.xml and it packaged into the /target/ directory. (At some point, I also removed all folders from ORM enhancement since I use Objectify). Finally, I ran as a WebApplication. On the bright side, I'm getting completely different problems now :) I'm getting files not found: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java: 113) at org.mortbay.xml.XmlParser.init(XmlParser.java:69) WARNING: Nested in javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found: java.lang.ClassNotFoundException: org/apache/xerces/jaxp/ SAXParserFactoryImpl at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) I'm not an expert on XML parsing - it's a small miracle I got it working in the first place under my old deployment methods. Here are my dependencies: net.sf.saxon - saxon - 9.1.0.8 net.sf.saxon - saxon-dom - 9.1.0.8 xml-resolver - 1.2 xml-apis - 1.3.03 Do I know the difference between Xerces and Saxon? Nope. Do I care what I use? Nope. Do I know if that was even a valid question? Nope. I used Saxon merely because I was getting some errors with Xerces back in the day, so I presumed GAE was somehow incompatible. I see this bug report: http://code.google.com/p/googleappengine/issues/detail?id=1367 However, I don't really understand it and/or what I need to do :) Regardless, it was working fine *without* GPE, so I presume my issue is a GPE bug, not an AppEngine bug. What did I do differently this time? I believe it has something to do with Maven Packaging options (WAR vs JAR), and failing to refresh the target folder in Eclipse. I don't think that was the actual folder I was selecting the first time I ran the Web Application when I tried this last. So, documentation there could be helpful. I think I was diving deep into the WTP temp folder when I couldn't figure it out. So, it looks now as if my dependencies are somehow failing with GPE, instead of the entire thing failing. I'm going to leave the entire post there so you can see my process (and perhaps update some FAQs to help make it simpler. Thanks for any help in advance! Jake Jake On Apr 14, 10:57 am, Rajeev Dayal rda...@google.com wrote: Hey Jake, I just took a look at the thread that you mentioned. Could you describe the problems that you were running into (on the original thread)? I can try and help you out. Rajeev On Tue, Apr 13, 2010 at 10:21 AM, John Patterson
[appengine-java] Re: Domain Name Setup
Thanks for the reply. Those steps are exactly what I did so I guess I've got it set up right. Any ideas on the latency concerns? On Apr 14, 11:22 pm, yjun hu itswa...@gmail.com wrote: http://hapeblog.appspot.com/blog.shtml?id=12002 you just need to forward fakedomain.com towww.fakedomain.com On Thu, Apr 15, 2010 at 4:21 AM, fletcher fle...@fletchowns.net wrote: Hello - I want to usehttp://fakedomain.cominstead ofhttp://fakeapp.appspot.com. I went through the domain setup in the app engine dashboard and added www.fakedomain.com. I also added the www CNAME record to point to ghs.google.com in my registrars (GoDaddy) administrator panel. Now I can access my app throughwww.fakedomain.com. I tried to do the same for *.fakedomain.com but apparently GoDaddy doesn't allow wildcards for CNAME records? Anyways, not really Google's problem, I just have http://fakedomain.comforwarded tohttp://www.fakedomain.com. First question: Is that how I am supposed to set it up? Second question: My app should GET and POST towww.fakedomain.com, correct? Is there a lot of latency introduced because of this? I'm not sure if this is a good test, but a pingwww.fakedomain.com takes 150ms and a ping to fakedomain.appspot.com takes 10ms. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Cookie expiration: how can I make them expire programmatically?
Hi there: When I make a deploy, I have the problem that if I make changes to classes that where serialized as part of the session (this is natural in a wicket app, as it is mine), every user that was already logged from before the deploy gets this ugly local class incompatible error, which to make things worse is not possible to catch by the app, and the user only sees an empty white page. The error makes sense, but I'd like to ask: - Is there a way I can programatically (or from the admin console would be best) make all session cookies expire? - Would it be possible to make this exception cacheable by the app, so we can at least show some proper message? At the end of this email I'm adding the exception stack trace. Thanks in advance, Esteban - Caused by: java.io.InvalidClassException: ar.com.blah.BaseLayoutPage; local class incompatible: stream classdesc serialVersionUID = 3862527510678469715, local class serialVersionUID = 3079699908378169712 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.util.HashMap.readObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:385) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Cookie expiration: how can I make them expire programmatically?
On 4月16日, 上午3時36分, Esteban Ignacio Masoero emaso...@getsense.com.ar wrote: - Is there a way I can programatically (or from the admin console would be best) make all session cookies expire? You can remove all entries (each represents a user session) in th _ah_SESSION kind with Datastore Viewer of Admin console. - Would it be possible to make this exception cacheable by the app, so we can at least show some proper message? Try to setup error page for java.io.InvalidClassException in web.xml. I am not sure if it works but it's worthy to try. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Is the any limitation on entity group size?
One more question. How to make massive update? If it takes more then 30 sec engine probably will cancel it. What are possible ways to do it? Thank you, Andrey On Apr 12, 4:18 pm, Ikai L (Google) ika...@google.com wrote: No, it should be fine UNLESS you want to load all these child objects in a single request. As a rule of thumb, load as little data as possible. You may need to denormalize (the datastore isn't relational anyway) for additional read performance. For a better answer, you may want to describe what it is you are trying to do. On Mon, Apr 12, 2010 at 6:57 AM, ailinykh ailin...@gmail.com wrote: Hello, everybody! I have objects with owned one to many relationship. Child table is supposed to grow, each parent eventually will have thousands or even more child objects. May it cause any performance issues? Is there any best practice to handle this situation? Thank you, Andrey -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Run App Engine on a production intranet
The DevAppServer is definitely not designed to be used in this way. The biggest problem that you will probably run into is that the local datastore implementation is designed to store all data in memory. There are most likely security issues with the DevAppServer (which is the reason that it is only accessible from the local machine without an explicit -a option), which may or may not be a problem depending on their application and the scope of their intranet. On Thu, Apr 15, 2010 at 6:59 AM, Harry Monroe pablo.sole...@gmail.comwrote: Hi, I know this is not the point on Google App Engine, but I´ve come across this problem. We have a running app online that satisfies many customers, but one of them (there´s always one) would like to run it somehow offline... Does anyone have used the developement server to run a production application. Is there a list of limits on that server? Maybe the datastore has a limit or you can only have one concurrent connection, maybe some session limits... I would like to have all those facts to discourage them. Thanks in advance!! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.