[appengine-java] Re: polymorphism in relationships is not yet supported?

2010-07-18 Thread Didier Durand
Hi lisandroc,

check out 
http://code.google.com/appengine/docs/java/datastore/relationships.html#Polymorphic_Relationships
for details

didier

On Jul 18, 5:08 am, lisandrodc lisandr...@gmail.com wrote:
 I have  a problem when assign an object using polymorphism.

  Received a child of type model.Empate for a field of type
 model.Resultado.  Unfortunately polymorphism in relationships is not
 yet supported.

 par1=new Partido(23, new Empate(), eq1,eq2, fecha);
 The constructor:
 public Partido(Long numero, Resultado resultado, Equipo equipoLocal,
                         Equipo equipoVisitante, Date fechaPartido) {
                 super();
                 this.numero = numero;
                 this.resultado = resultado;
                 this.setEquiposPartido(new ArrayListEquipo());
                 this.equiposPartido.add(equipoLocal);
                 this.equiposPartido.add(equipoVisitante);
                 this.fechaPartido = fechaPartido;
         }
 The class Empate extends the class Resultado(parent).
 Regards
 Lisandro

-- 
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: DataNucleus Enhancer failed to run

2010-07-18 Thread Arnold
The workaround suggested here might be useful to anyone with this
problem:

http://code.google.com/p/googleappengine/issues/detail?id=1862

On Jul 4, 8:53 pm, Ravi ping2r...@gmail.com wrote:
 Hi,
 I was working happily, changed few lines of java code(didnt touch any
 eclipse setting or installed any thing new or added extar jar in
 classpth) and then started getting follwoing error. Please help spent
 half a day and not able to understand how this error emerged. Googled
 this error an dpeople are saying that if classpth goes long then this
 error comes but i have not changed classpth since few days, just
 writing new java files.

 DataNucleus Enhancer has encountered a problem

 Error
 Sun Jul 04 18:45:14 BST 2010
 Cannot run program C:\Program Files (x86)\Java\jdk1.6.0_17\bin
 \javaw.exe (in directory Y:\projects\New-Eclipse-Workspace
 \TestGwt): CreateProcess error=87, The parameter is incorrect

 eclipse.buildId=
 java.version=1.6.0_20
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 Command-line arguments:  -os win32 -ws win32 -arch x86 -product
 org.eclipse.epp.package.jee.product -clean

 java.io.IOException: Cannot run program C:\Program Files (x86)\Java
 \jdk1.6.0_17\bin\javaw.exe (in directory Y:\projects\New-Eclipse-
 Workspace\TestGwt): CreateProcess error=87, The parameter is
 incorrect
 at java.lang.ProcessBuilder.start(Unknown Source)
 at
 com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnErro 
 r(ProcessUtilities.java:
 195)
 at
 com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspac 
 e(EnhancerJob.java:
 78)
 at
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp 
 aceJob.java:
 38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 Caused by: java.io.IOException: CreateProcess error=87, The parameter
 is incorrect
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.init(Unknown Source)
 at java.lang.ProcessImpl.start(Unknown Source)
 ... 5 more

-- 
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: DataNucleus Enhancer failed to run

2010-07-18 Thread Didier Durand
Hi Ravi,

To fix it once for all, I declared my classes to be enhanced 1 by 1 in
Eclipse under Project  Properties  Google  App Engine  ORM

A bit painful to do initially bu then pb is gone forever !

didier
On Jul 4, 7:53 pm, Ravi ping2r...@gmail.com wrote:
 Hi,
 I was working happily, changed few lines of java code(didnt touch any
 eclipse setting or installed any thing new or added extar jar in
 classpth) and then started getting follwoing error. Please help spent
 half a day and not able to understand how this error emerged. Googled
 this error an dpeople are saying that if classpth goes long then this
 error comes but i have not changed classpth since few days, just
 writing new java files.

 DataNucleus Enhancer has encountered a problem

 Error
 Sun Jul 04 18:45:14 BST 2010
 Cannot run program C:\Program Files (x86)\Java\jdk1.6.0_17\bin
 \javaw.exe (in directory Y:\projects\New-Eclipse-Workspace
 \TestGwt): CreateProcess error=87, The parameter is incorrect

 eclipse.buildId=
 java.version=1.6.0_20
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 Command-line arguments:  -os win32 -ws win32 -arch x86 -product
 org.eclipse.epp.package.jee.product -clean

 java.io.IOException: Cannot run program C:\Program Files (x86)\Java
 \jdk1.6.0_17\bin\javaw.exe (in directory Y:\projects\New-Eclipse-
 Workspace\TestGwt): CreateProcess error=87, The parameter is
 incorrect
 at java.lang.ProcessBuilder.start(Unknown Source)
 at
 com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnError(ProcessUtilities.java:
 195)
 at
 com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspace(EnhancerJob.java:
 78)
 at
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
 38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 Caused by: java.io.IOException: CreateProcess error=87, The parameter
 is incorrect
 at java.lang.ProcessImpl.create(Native Method)
 at java.lang.ProcessImpl.init(Unknown Source)
 at java.lang.ProcessImpl.start(Unknown Source)
 ... 5 more

-- 
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] Re: PDF Files

2010-07-18 Thread Khor Yong Hao
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,

 Check this one
 http://www.pdfjet.com/java/index.html

 They claim to support Google App Engine

 =Dov



 On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote:
  But it says that on Will it play in App Engine
 
  That its incompatible:
 
  iText
  Version(s): ?
  Status: INCOMPATIBLE
 
  * iText relies on several classes not in the JRE class whitelist
  including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
  filed athttp://
 sourceforge.net/tracker/?func=detailatid=365255aid=2810312g
 
  On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote:
 
   Chris,
 
   Did you want to generate a PDF File on the GAE?
   If yes, you can use the iText library for generating the pdfs on the
   app engine. You can have a servlet to download the PDF file you
   generated.
 
   Thanks,
   Shyam Visamsetty
 
   On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote:
 
Helle every body,
I am working on a Google App Engine Project that consists of
 uploading
PDF files and displaying it after.
I use a Blob to store the PDF file
i want to do a process to download this PDF file by giving the a
specifics name.
Is there a way to generaye PDF files with GAE?
i have a process to display the PDF but i want to download it direcly
from an URL.

 --
 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.



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

2010-07-18 Thread Robert Lancer
No, you have to create a new one and transfer everything.

On Jul 18, 12:02 am, aswath satrasala aswath.satras...@gmail.com
wrote:
 Hello,
 Is there any way I can rename my app-id.

 -Aswath

-- 
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: rename a app-id

2010-07-18 Thread jacek.ambroziak
Not really, but you can delete the app
and after it is gone
create a new one with the (available) name you want

On Jul 18, 12:02 am, aswath satrasala aswath.satras...@gmail.com
wrote:
 Hello,
 Is there any way I can rename my app-id.

 -Aswath

-- 
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] Re: rename a app-id

2010-07-18 Thread aswath satrasala
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, but you can delete the app
 and after it is gone
 create a new one with the (available) name you want

 On Jul 18, 12:02 am, aswath satrasala aswath.satras...@gmail.com
 wrote:
  Hello,
  Is there any way I can rename my app-id.
 
  -Aswath

 --
 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] Re: rename a app-id

2010-07-18 Thread aswath satrasala
Any java tools to do this?

On Sun, Jul 18, 2010 at 6:49 PM, Robert Lancer robert.lan...@gmail.comwrote:

 No, you have to create a new one and transfer everything.

 On Jul 18, 12:02 am, aswath satrasala aswath.satras...@gmail.com
 wrote:
  Hello,
  Is there any way I can rename my app-id.
 
  -Aswath

 --
 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] Re: rename a app-id

2010-07-18 Thread John Patterson

Yes you can transfer your data efficiently using the remote datastore:

http://code.google.com/p/remote-datastore/

You basically read in bulk from one datastore then write in bulk to  
the other like this


DatastoreService service =  
DatastoreServiceFactory.getDatastoreService();
RemoteDatastore.divert(http://aversion.latest.first-app-id.appsot.com/remote-datastore 
, first-app-id, aversion);

QueryResultIteratable results = service.prepare(...);
RemoteDatastore.bypass();
service.put(results);

You need to use cursors to keep your place between reads and writes

On 18 Jul 2010, at 20:34, aswath satrasala wrote:


Any java tools to do this?

On Sun, Jul 18, 2010 at 6:49 PM, Robert Lancer robert.lan...@gmail.com 
 wrote:

No, you have to create a new one and transfer everything.

On Jul 18, 12:02 am, aswath satrasala aswath.satras...@gmail.com
wrote:
 Hello,
 Is there any way I can rename my app-id.

 -Aswath

--
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.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] populate datastore with a new kind

2010-07-18 Thread John Patterson



On 18 Jul 2010, at 06:11, emmanuel harel wrote:


Thanks John !
Is it possible to have a svn check out repository address ?
Regards


http://code.google.com/p/remote-datastore/

--
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: Geomodel in Java

2010-07-18 Thread Mahsa
Hi Stephen,


Thanks for your help. The problem has been solved by adding the
libraries into the class path.



On Jul 16, 7:33 pm, Stephen Johnson onepagewo...@gmail.com wrote:
 Hi Mahsa,

 You have these imports:
         import com.beoui.geocell.GeocellManager;
         import com.beoui.geocell.model.BoundingBox;
         import com.beoui.geocell.model.CostFunction;
         import com.beoui.geocell.model.GeocellQuery;
         import com.beoui.geocell.model.Point;

 So, one obvious question since you are getting NoClassDefFoundError:
 com/beoui/geocell/model/Point is: Did you put the appropriate JAR file
 in WEB-INF/lib or if these classes are not in a JAR, did you put them
 in WEB-INF/classes directory?

 Stephen Johnson

 On Jul 13, 1:13 pm, Mahsa mahsa.ghafour...@gmail.com wrote:

  Hello,

  I am developing a simple GIS cloud application using Google App Engine
   Geomodel. In this application, I would like to store latitude and
  longitude of points from user,  later on query them using boundingbox
   proximity queries. I am experiencing problem while trying to access
  the server through a browser. I appreciate it if someone help me with
  this regard.

  I am usingEclipse, and here is what I did:

  1) Created a Web application project enabling only Google App Engine
  (1.3.4)(as Google SDK)

  2) Created a simple jsp file in war folder to get latitude 
  longitude from user

  3) Created two java classes, UseGeocell and ObjectToSave. UseGeocell
  class is similar to the code 
  inhttp://code.google.com/p/javageomodel/source/browse/trunk/geocell/src...
  ObjectToSave is 
  exactlyhttp://code.google.com/p/javageomodel/source/browse/trunk/geocell/src...

  4)In my Servlet I defined an object of type UseGeocell and called
  testHowToSaveGeocellsInDatabase function in order to save latitude 
  longitude that are obtained from the input

  Here is my code:

  My UseGeocell class:

  package edu.pitt.Test8_Geomodel_GAE;

          import java.util.ArrayList;
          import java.util.List;
          import java.util.logging.Level;
          import java.util.logging.Logger;

          import javax.jdo.PersistenceManager;

          import junit.framework.Assert;
          import junit.framework.TestCase;

          import com.beoui.geocell.GeocellManager;
          import com.beoui.geocell.model.BoundingBox;
          import com.beoui.geocell.model.CostFunction;
          import com.beoui.geocell.model.GeocellQuery;
          import com.beoui.geocell.model.Point;

          /**
           * Unit test also used to explain how to use Geocell class.
           *
           * @author Alexandre Gellibert alexandre.gellib...@gmail.com
           *
           */
          public class UseGeocell extends TestCase {

              private final Logger log = Logger.getLogger(com.beoui.utils);
              public ObjectToSave obj;

              /**
               * First step is to save your entities.
               * In database, you don't save only latitude and longitude of
  your point but also geocells around this point.
               */
              public void testHowToSaveGeocellsInDatabase(double lat, double
  lon) {
                  // Incoming data: latitude and longitude (Bordeaux for
  instance)
                  //double lat = 44.838611;
                  //double lon = -0.578333;

                  // Transform it to a point
                  Point p = new Point(lat, lon);

                  // Generates the list of GeoCells
                  ListString cells = GeocellManager.generateGeoCell(p);

                  // Save your instance
                  obj = new ObjectToSave();
                  obj.setLatitude(lat);
                  obj.setLongitude(lon);
                  obj.setGeocells(cells);

                  //objDao.save(obj);

                  // Just checking that cells are not empty
                  Assert.assertTrue(cells.size()  0);

                  // Show in the log what cells are going to be saved
                  log.log(Level.INFO, Geocells to be saved for Point(+lat
  +,+lon+) are: +cells);
              }

              /**
               * Second step, now entities are in database, we can query on
  them.
               * Here is the example of a bounding box query.
               *
               */
              public void testHowToQueryOnABoundingBox(double latSW, double
  lonSW, double latNE, double lonNE) {
                  // Incoming data: latitude and longitude of south-west and
  north-east points (around Bordeaux for instance =) )
                  //double latSW = 44.8;
                  //double lonSW = -0.6;

                 // double latNE = 44.9;
                 // double lonNE = -0.7;

                  // Transform this to a bounding box
                  BoundingBox bb = new BoundingBox(latNE, lonNE, latSW, 
  lonSW);

                  // Calculate the geocells list to be used in the queries
  (optimize list of cells that complete the given 

Re: [appengine-java] Re: PDF Files

2010-07-18 Thread Conor Power
it doesn't sound like you need to generate the PDF using a library if it's
stored as a blob ... can't you just set the content type to be
application/pdf and stream the blog contents?

your servlet just needs the key or some mapping to look up the blob.

otherwise, i wrote a summary of my experiences with PDF generation a while
ago:

http://conorjpower.com/2010/01/11/pdf-generation-in-java/

C


On Sun, Jul 18, 2010 at 5:12 AM, 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,

 Check this one
 http://www.pdfjet.com/java/index.html

 They claim to support Google App Engine

 =Dov



 On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote:
  But it says that on Will it play in App Engine
 
  That its incompatible:
 
  iText
  Version(s): ?
  Status: INCOMPATIBLE
 
  * iText relies on several classes not in the JRE class whitelist
  including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
  filed athttp://
 sourceforge.net/tracker/?func=detailatid=365255aid=2810312g
 
  On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote:
 
   Chris,
 
   Did you want to generate a PDF File on the GAE?
   If yes, you can use the iText library for generating the pdfs on the
   app engine. You can have a servlet to download the PDF file you
   generated.
 
   Thanks,
   Shyam Visamsetty
 
   On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote:
 
Helle every body,
I am working on a Google App Engine Project that consists of
 uploading
PDF files and displaying it after.
I use a Blob to store the PDF file
i want to do a process to download this PDF file by giving the a
specifics name.
Is there a way to generaye PDF files with GAE?
i have a process to display the PDF but i want to download it
 direcly
from an URL.

 --
 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.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] populate datastore with a new kind

2010-07-18 Thread emmanuel harel
Thank you for the address but my tortoise svn is telling me this is not the
address of the trunk
Do i have to use TortoiseHG to check out this project ?


2010/7/18 John Patterson jdpatter...@gmail.com



 On 18 Jul 2010, at 06:11, emmanuel harel wrote:

 Thanks John !
 Is it possible to have a svn check out repository address ?
 Regards


 http://code.google.com/p/remote-datastore/

  --
 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] populate datastore with a new kind

2010-07-18 Thread John Patterson


On 19 Jul 2010, at 01:23, emmanuel harel wrote:

Thank you for the address but my tortoise svn is telling me this is  
not the address of the trunk

Do i have to use TortoiseHG to check out this project ?


Click on the link and all will be revealed

--
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] Active transactions

2010-07-18 Thread lisandrodc
Hi! I have a problem with active transaction.When I try to guard in
the datastore, says:

 La transaccion esta activo todavia. Debe cerrar las transacciones
usando los metodos commit() o rollback().

As closure all the transactions?
The method is:

PersistenceManager pm2 = JDOHelper.getPersistenceManager(fechaAgreg);

Transaction tx = pm2.currentTransaction();

try {
tx.begin();
Partido par1 = null;
ControladorTorneo cT= new ControladorTorneo();
par1 = new Partido(null, new Resultado(),
cT.devolverEquipo( idTorneo,idEqLocal),
cT.devolverEquipo(idTorneo,idEqVisitante), fecha, hora);

fechaAgreg.agregarPartido(par1);
pm2.makePersistent(fechaAgreg);
tx.commit();

} finally {
pm2.close();

if (tx.isActive()) {
tx.rollback();
}
}

}

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-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] task queues and retries

2010-07-18 Thread Philip Tucker
One of my tasks encountered a failure and wasn't retried. I think it's
because the servlet returned a 200 response, but I don't know why it
did since the exception bubbled all the way up to the base servlet. Do
we need to explicitly return a 5xx error code in exception cases for
retries to work?

07-18 02:46PM 06.907 /cleanerq 200 29515ms 9156cpu_ms 5404api_cpu_ms
0kb AppEngine-Google; (+http://code.google.com/appengine)
0.1.0.2 - - [18/Jul/2010:14:46:36 -0700] POST /cleanerq HTTP/1.1 200
0 http://11.latest.wordwisegame.appspot.com/starttasks; AppEngine-
Google; (+http://code.google.com/appengine)
11.latest.wordwisegame.appspot.com ms=29516 cpu_ms=9157
api_cpu_ms=5404 cpm_usd=0.254392 queue_name=cleaner-queue
task_name=5681724147391472665 exit_code=104

...

com.honkentuber.Servlet doIt: Transaction failed to commit
javax.jdo.JDODataStoreException: Transaction failed to commit
at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:
304)
at org.datanucleus.jdo.JDOTransaction.rollback(JDOTransaction.java:
153)
at
org.datanucleus.store.appengine.jdo.DatastoreJDOTransaction.rollback(DatastoreJDOTransaction.java:
71)
at com.honkentuber.Database.rollbackIfNecessary(Database.java:393)
at
com.honkentuber.wordwise.db.WordwiseDatabase.fixUserCreateDateAndGameCountsTxn(WordwiseDatabase.java:
808)
at
com.honkentuber.wordwise.db.WordwiseDatabase.fixNextUsers(WordwiseDatabase.java:
654)
at
com.honkentuber.wordwise.servlet.CleanerQueueServlet.newHtmlResponse(CleanerQueueServlet.java:
168)
at
com.honkentuber.wordwise.servlet.WordwiseBaseServlet.newHtmlResponse(WordwiseBaseServlet.java:
63)
at com.honkentuber.Servlet.dispatchHtml(Servlet.java:105)
at com.honkentuber.Servlet.doIt(Servlet.java:49)
at com.honkentuber.Servlet.doPost(Servlet.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:
92)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
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
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.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
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.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
250)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7115)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:7113)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
at 

[appengine-java] how to add entity using map-reduce?

2010-07-18 Thread ailinykh
Hello, everybody!
I have simple one to many relationship Parent- Child.
I want each parent entity to have one predefined Child entity. To do
it I iterate through all Parent entities (using map-reduce framework)
and add
one Child entity. There problem is- to maintain one to many
relationship I have to set up child_INTEGER_IDX field of Child entity.
I guess it should be number of children which already belong to this
Parent entity. The question is how can I get that number? In map-
reduce framework I know about Parent entity only. Any ideas how to
solve this problem?

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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] C++ in GAE

2010-07-18 Thread otuyama
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 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] app works in IE but not in Firefox and safari!

2010-07-18 Thread karasu kuro
IE version:3.0.28
Firefox version:3.6.6
Safari(Mac) version:5.0
Eclipse Java EE IDE for Web Developers.:Hellios
Java version:1.6.0_21

http://easyalarm97531.appspot.com/
works well in IE but not in Firefox and safari.

In Firefox and Safari shows like
html
  head
...

Answers are 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: How to get the BlobKey from a file which was uploaded

2010-07-18 Thread Jairo Luna
Hi!

Do you speak spanish? I have an idea but I don't know english very
well... I'll try to explain myself but I do not promise anythig lol...

I don't know if it's the best way but when I upload an image, I save
the blobKey.getKeyString() into the User's model. Then I create a new
BlobKey by the keyString that I was saved and I show it...

- Jairo

On 15 jul, 09:19, Alexander Orlov alexander.or...@loxal.net wrote:
 Anyone? I mean how could you assign certain blobs to certain users if
 this isn't possible?

 -Alex

 On Jul 7, 12:51 pm, Alexander Orlov alexander.or...@loxal.net wrote:



  I want to get the BlobKey from a file a user has uploaded to link the
  BlobKey to other information.

  First I retrieve a post URL to upload the blob:

      val blobstoreService = BlobstoreServiceFactory.getBlobstoreService
      return blobstoreService.createUploadUrl(/)

  Than I do a simple doPost() to post the file to the retrieved post
  URL. But doPost is a void method and don't provide any return value.

  Is there a method which provides a return value (the BlobKey) for the
  file that was uploaded?

  -Alex- Ocultar texto de la cita -

 - Mostrar texto de la cita -

-- 
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] JDO creates entities when I don't ask it to

2010-07-18 Thread pbadn
I am having a problem that is confusing me.

I have two entities, A and B.  Both have user-assigned numeric ids and
A refers to an instance of B.  So I have a process like this:

B b = new B();
b.setId(1);

// save b

A a = new A();
a.setId(1);

B b2 = DAL.getBById(1);
a.setB(b2);

// save a

DAL.getBById is a method that returns an instance of B by the id given
to it.  However, when I do this, a second instance of B is created.
So I should have an instance of A and an instance of B that is
referred to by A.  But what I have is an instance of A and two
instances of B.
Is this a common mistake?  I am new to GAE/J and JDO.

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] Re: Dance Dance Robot error / Channel API

2010-07-18 Thread GoSharp Lite
I believe you are using script src='/_ah/channel/jsapi'/script,
which gives $wnd.goog is undefined.

Try script src='http://talkgadget.google.com/talkgadget/channel.js'/
script.

On Jul 16, 9:11 am, Daniel Guermeur superco...@gmail.com wrote:
 Hello there,

 I am building a GWT+ GAE app based on Dance Dance Robot app, the demo
 Google IO demo app showcased at Google IO.

 I am using the Channel API (Java AppEngine 1.3.5) . I am almost there
 but there is one hick up on the GWT client side (Java):

 When running the app I get an error:
 ==
 - Uncaught exception escaped.
 com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is
 undefined.
 ==

 This comes from the ChannelFactory.java on the client side. Here it
 is:

 public class ChannelFactory {
     public static final native Channel createChannel(String
 channelId) /*-{
       return new $wnd.goog.appengine.Channel(channelId);
     }-*/;

 }

 Again this is straight from the Dance Dance Robot demo app.

 I am pretty sure it is a stupid mistake on my part but can't find it.

 Any suggestion would be greatly appreciated.

 Daniel

-- 
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] app works in IE but not in Firefox and safari!

2010-07-18 Thread karasu kuro
app:
http://easyalarm97531.appspot.com
works fine in IE but not in Firefox and Safari.

IE version:6.0.28
Firefox version:3.6.6
Safari(Mac) version:5.0
Eclipse version:Helios
java version:1.6.0_21

-- 
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] An exception thrown while using JavaMail with Google AppEngine

2010-07-18 Thread harini jagannathan
Hi All,

I am trying to write a Java program using JavaMail to send an email between
2 users. I have NOT added mail.jar and activation.jar files to my appengine
project as I read somewhere that this would cause exceptions to be thrown
since the functionality is already available with the appengine .jar files.
But my program is throwing the following exception:-


Exception in thread main
com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package
'mail' or call 'Send()' was not found.
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:95)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:48)
at
com.google.appengine.api.mail.MailServiceImpl.doSend(MailServiceImpl.java:95)
at
com.google.appengine.api.mail.MailServiceImpl.send(MailServiceImpl.java:32)
at
com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.java:247)
at javax.mail.Transport.send(Transport.java:95)
at javax.mail.Transport.send(Transport.java:48)
at weatherForecast.SendEmail.main(SendEmail.java:40)

I read in the following post:
http://forums.smartclient.com/showthread.php?t=8589 that I need to remove
appengine .jar files from my project to make things work. But my web
application also involves rendering a .jsp file populated with some data
which is the welcoming page of my Google App when deployed on google
appengine and the project fails to work once I remove the .jars. It does
help me in getting rid of the exception though. Can anyone please suggest a
way to write an email program and make it work on a google appengine
project?

Thanks!
Harini

-- 
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] JCache

2010-07-18 Thread pdias
Is possible to save object instances using JCache?

I have tried and received the following message:
javax.servlet.ServletException: java.lang.IllegalArgumentException:
can't accept class CLASSNAME as a memcache entity

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] JDO - How to Model a Transferable Relationship?

2010-07-18 Thread max
Hi,

I'm having trouble getting JDO work in a situation of wanting to
transfer child objects from one parent to another.  Let's say that I
would like to model an object called Team and an object called
Player.  A Player can be on only one team at a time, and a Team can
have many Players.  I can get the basics working, however I run into
problems when I want to transfer (trade) an existing Player instance
to an existing Team instance.  Outside of that relationship, the
objects are completely different.

I have the problem that a child cannot be moved because apparently it
isn't in the same entity group.  I have tried to model it as SetKey
in each class like the Favorite Foods example in the documentation,
but that doesn't work.  I don't get errors, but nothing is saved.  The
Sets saved are always empty.  I have tried the same thing with
ArrayListLong, where Long is the Key.getId() of the related
object.

I think I am missing something rather simple, but I can't get it
working.  Do I need other annotations?  Can someone post a simple
example?

thanks!
Max

-- 
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] Entity relationship table

2010-07-18 Thread dmetri333
Im relatively new too GAE and the Datastore, and i had a question on
the best way to setup some entities.

I have created a entity called 'Person' and this person has a list of
friends in the system that are also of type 'Person'.  In SQL i would
have created a simple linker/relationship table with 2 fields
(person_id, friend_id), both referring to the same id from the
'Person' table.

I was wondering what the best practice for doing this with GAE and
bigtable.

demetri

-- 
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] Question about accessing child objects when sharding

2010-07-18 Thread Jacob
I am just learning JDO and GAE, and have gotten myself very stuck on
this.

I have gone from having just

public class Article {
   ...
}

To now also having a parent:

public class ArticleCollection {
private long count
private SetArticle articles;
}

However after doing this, the following code to fetch an article by id
no longer works. How do I uniquely identify an object?
Article article =
(Article)pm.getObjectById(KeyFactory.createKey(Article.class.getName(),
id));

Any help 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] App Engine integration with Google Apps Marketplace

2010-07-18 Thread Daniel Pascariu
Hi,

I'm trying to enable SSO for my App Engine app in order to put it on
the Google Marketplace.
Let's say that I have my GAE app running at www.example.com. When I
publish it to the Google Marketplace, a Google Apps user (say
us...@domain1.com) will be able to click on a link in the Google menu
pointing to my site - something like this:
http://www.example.com/home?from=googledomain=domain1.com

Now, acording to this docu (http://code.google.com/appengine/docs/java/
users/overview.html) I should use the Users API to authenticate the
user.
I assume I have to use  userService.createLoginURL method somehow and
use the domain domain1.com (which is passed as a parameter to my /
home servlet).

I have tried something like this:

SetString attributesRequest = new HashSetString();
attributesRequest.add(openid.mode=checkid_immediate);
attributesRequest.add(openid.ns=http://specs.openid.net/auth/2.0;);
attributesRequest.add(openid.return_to= + thisUrl);
userService.createLoginURL(thisUrl, domain1.com, https://
www.google.com/accounts/o8/id, attributesRequest);

The probem is that the login URL which I get works for google accounts
only (like gmail accounts) - I do not get any Google Apps page where a
user like us...@domain1.com could login :(

Does anybody know how I can get this working ? Or am I on the wrong
track ?

Many thanks for the help !!
Daniel

-- 
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: Dance Dance Robot error / Channel API

2010-07-18 Thread GoSharp Lite
I did not get your error on running below code.

public static final native Channel createChannel(String channelId) /*-
{
return new $wnd.goog.appengine.Channel(channelId);
}-*/;

I have successfully create a channelId string on server side. The
format looks like channel--9iwvs5-testing.

Then I use the channelId string in below code on the client side.
Channel channel = ChannelFactory.createChannel(channelId);

Unluckily below message is shown in the browser.
Invalid token.Error 401

Anyone has solve this token issue?

On Jul 16, 9:11 am, Daniel Guermeur superco...@gmail.com wrote:
 Hello there,

 I am building a GWT+ GAE app based on Dance Dance Robot app, the demo
 Google IO demo app showcased at Google IO.

 I am using the Channel API (Java AppEngine 1.3.5) . I am almost there
 but there is one hick up on the GWT client side (Java):

 When running the app I get an error:
 ==
 - Uncaught exception escaped.
 com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is
 undefined.
 ==

 This comes from the ChannelFactory.java on the client side. Here it
 is:

 public class ChannelFactory {
     public static final native Channel createChannel(String
 channelId) /*-{
       return new $wnd.goog.appengine.Channel(channelId);
     }-*/;

 }

 Again this is straight from the Dance Dance Robot demo app.

 I am pretty sure it is a stupid mistake on my part but can't find it.

 Any suggestion would be greatly appreciated.

 Daniel

-- 
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] About Google App Engine Google API

2010-07-18 Thread Tan Duy
Hi all,
I'm a student in senior year.
Now, I'm researching G.A.E and I try to make an application server
community.
Would you like to give me advice or suggestion for my project.
Hope you understand.

I would appreciate your giving me the opportunity to discuss about
G.A.E.
Thank you so much!

-- 
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] Pushlets HTTP-based publish/subscribe framework?

2010-07-18 Thread Phạm Hưng
http://www.pushlets.com/ HTTP-based publish/subscribe framework

Can I use it?

-- 
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] Question about accessing child objects when sharding

2010-07-18 Thread Jacob
I am just learning JDO and GAE, and have gotten myself very stuck on
this.

I have gone from having just

public class Article {
   ...
}

To now also having:

public class ArticleCollection {



return
(Article)pm.getObjectById(KeyFactory.createKey(Article.class.getName(),
id));

-- 
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] app works in IE but not in Firefox and safari!

2010-07-18 Thread Ikai L (Google)
Can you post code? My guess is you aren't setting content type to text/html.

On Fri, Jul 16, 2010 at 1:01 AM, karasu kuro g975318...@gmail.com wrote:

 IE version:3.0.28
 Firefox version:3.6.6
 Safari(Mac) version:5.0
 Eclipse Java EE IDE for Web Developers.:Hellios
 Java version:1.6.0_21

 http://easyalarm97531.appspot.com/
 works well in IE but not in Firefox and safari.

 In Firefox and Safari shows like
 html
  head
 ...

 Answers are 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.




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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] Entity relationship table

2010-07-18 Thread Ikai L (Google)
The best practice is probably to create list properties with Keys
representing friend IDs. This is a good video to watch:

http://www.youtube.com/watch?v=AgaL6NGpkB8

On Fri, Jul 16, 2010 at 8:03 AM, dmetri333 dmetri...@gmail.com wrote:

 Im relatively new too GAE and the Datastore, and i had a question on
 the best way to setup some entities.

 I have created a entity called 'Person' and this person has a list of
 friends in the system that are also of type 'Person'.  In SQL i would
 have created a simple linker/relationship table with 2 fields
 (person_id, friend_id), both referring to the same id from the
 'Person' table.

 I was wondering what the best practice for doing this with GAE and
 bigtable.

 demetri

 --
 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.




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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] Pushlets HTTP-based publish/subscribe framework?

2010-07-18 Thread Khor Yong Hao
Sorry, you can't, Appengine had set 30 seconds request time limit, it is
impossible to use such kind of server push technology.

On Sat, Jul 17, 2010 at 6:43 AM, Phạm Hưng hungsi...@gmail.com wrote:

 http://www.pushlets.com/ HTTP-based publish/subscribe framework

 Can I use it?

 --
 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] About Google App Engine Google API

2010-07-18 Thread Khor Yong Hao
Is you meant that you want to create another SNS that consisted of all
members of google appengine java group?

On Sat, Jul 17, 2010 at 6:27 PM, Tan Duy tanduy2...@gmail.com wrote:

 Hi all,
 I'm a student in senior year.
 Now, I'm researching G.A.E and I try to make an application server
 community.
 Would you like to give me advice or suggestion for my project.
 Hope you understand.

 I would appreciate your giving me the opportunity to discuss about
 G.A.E.
 Thank you so much!

 --
 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.