[appengine-java] Re: Model to Optimize Queries

2009-08-24 Thread Sam Walker
Also, I get this error: *Can only filter by properties of a sub-object if
the sub-object is embedded.* when I tried to access article while setting a
fitler: query.setFilter(reviewer == reviewerParam   article.status =
articleStatusParam);

What am I missing?

On Sat, Aug 22, 2009 at 6:02 PM, Sam Walker am.sam.wal...@gmail.com wrote:

 In the second model, how will I find all Articles being reviewed by A and
 B?

 The only way I can think of is adding another derived field in Article:

 Article {
   HashSetReview reviews;
   HashSetReviewer reviewers; // keys of Reviewers to help the query find
 all articles reviewed by A and B
   HashSetString tags;
   int status; // derived from all Reviews' statuses.
 }

 Review {
   Article article;
   Reviewer reviewer;
   int status;
 }

 Now I should be able to do reviewers.contains(A.key) and
 reviewers.contains(B.key). Is that the best way?


 On Sat, Aug 22, 2009 at 2:02 PM, Sam Walker am.sam.wal...@gmail.comwrote:

 Oh sweet, I didn't know that.

 That's awesome! Thanks for the quick reply.


 On Sat, Aug 22, 2009 at 1:51 PM, datanucleus andy_jeffer...@yahoo.comwrote:


  I dont think I can do sth like (I can't access article.tags,
 article.status
  as far as I know, correct?):

 Of course you can. JDO spec defines JDOQL, using Java syntax.

  query.setFilter(reviewer == reviewerParam  status == statusParam 
  article.tags == tagParam  article.status = articleStatusParam);

 What is tagParam ? an element of the hashSet?
 You can't do Collection == element in Java so you can't in JDOQL.
 You could do article.tags.contains(tagParam)
 




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



[appengine-java] I don't understand Relationships managed by JDO and Datanucleus in GAE

2009-08-24 Thread MArtin Schumacher

Hi there,

I am trying to handle some really simple Relationships with JDO and
Datanucleus.

I read one thread about a similar Problem. But the developer in that
thread handles the keys by himself. He generates the keys with a
KeyFactory and stores just Keys instead of the dependent Object. Do I
have to code my own Persistence-Layer for GAE, which handles
Associations? That cannot be the way to do that.

My model looks like that:

User - MobilePhone - Model  Series

The MobilePhone has an owner and a creator, each identified by an
User. The MobilePhone has a Model attached which has a Series
attached.

An User can be owner and creator of many MobilePhones; a MobilePhone
needs a creator, but not necessarily an owner.
A Model can be attached to many MobilePhones, a MobilePhone needs a
Model (not null).
A Series can be attached to many Models, a Model needs a Series (not
null).

My classes look like (shorted):

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Series implements IsSerializable {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key key;

  @Persistent
  private String term;

(..)
}

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Model implements IsSerializable {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key key;
  @Persistent
  private String name;
  @Persistent
  private Series series;

(..)
}

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MobilePhone implements IsSerializable {
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key key;
  @Persistent
  private String description;
  @Persistent(dependent = false)
  private User owner;
  @Persistent(dependent = false)
  private User creator;
  @Persistent(dependent = false)
  private Model model;

(..)
}

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key key;

  @Persistent
  private String firstname;
  @Persistent
  private String familyname;

(..)
}

In my test I create two Users (creator and owner).

  @Before
  public void setup() throws Exception {
this.pm = EMF.get().getPersistenceManager();
this.owner = new User();
this.owner.setFamilyname(h);
this.owner.setFirstname(b);
this.owner = this.pm.makePersistent(this.owner);

this.creator = new User();
this.creator.setFamilyname(h);
this.creator.setFirstname(b);
this.creator = this.pm.makePersistent(this.creator);

this.assertTable(2, User.class);
  }


  @Test
  public void createHandy() throws Exception {
Series ht = new Series();
ht.setTerm(I);

Model hm = new Model();
hm.setName(name);
hm.setSeries(ht);

MobilePhone h = new MobilePhone();
h.setCreator(this.creator);
h.setDescription(b);
h.setModel(hm);
h.setOwner(this.owner);

this.pm.makePersistent(h);
this.assertTable(1, HandyTypeSeries.class);
this.assertTable(1, HandyModel.class);
this.assertTable(1, Handy.class);
  }


This works fine. But when I try to persist a MobilePhone with the
attached Users, I get the following Exception.

javax.jdo.JDOFatalUserException: Detected attempt to establish Handy
(3) as the parent of User(1) but the entity identified by User(1) has
already been persisted without a parent.  A parent cannot be
established or changed once an object has been persisted.
at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException
(NucleusJDOHelper.java:406)
at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent
(JDOPersistenceManager.java:673)
at org.datanucleus.jdo.JDOPersistenceManager.makePersistent
(JDOPersistenceManager.java:693)
at
de.keineantwort.MobilePhonerater.gwt.server.MobilePhone.MobilePhonePersistenceTest.createMobilePhone
(MobilePhonePersistenceTest.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody
(TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected
(TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected
(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod
(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run
(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod
(TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run

[appengine-java] Re: Maven

2009-08-24 Thread Marcel Overdijk

Thanks Alexei,

I just don't understand why Google has not pushed it to
http://code.google.com/p/google-maven-repository
Should be part of there release plan!

On Aug 24, 5:56 am, Alexei Vidmich ale...@vidmich.com wrote:
 I managed to setup maven descriptor so that I can build and enhance
 classes.
 I execute mvn clean package when I want to build it and it works
 just fine.

 I add the following pieces to my pom.xml file at the appropriate
 locations:
     properties
         appengine.version1.2.2/appengine.version
         appengine.sdk.dir[path-to-appengine-SDK]/appengine.sdk.dir
     /properties

             plugin
                 groupIdorg.apache.maven.plugins/groupId
                 artifactIdmaven-antrun-plugin/artifactId
                 version1.3/version
                 executions
                     execution
                         phaseprocess-classes/phase
                         goals
                             goalrun/goal
                         /goals
                         configuration
                             tasks
                                 property file=maven-
 build.properties/
                                 property
 name=appengine.tools.classpath
                                           location=$
 {appengine.sdk.dir}/lib/appengine-tools-api.jar/

                                 path id=build.classpath
                                     fileset dir=$
 {maven.repo.local}
                                       include name=junit/junit/4.5/
 junit-4.5.jar/
                                       include name=javax/servlet/
 servlet-api/2.5/servlet-api-2.5.jar/
                                       include name=org/
 springframework/org.springframework.core/3.0.0.M3/
 org.springframework.core-3.0.0.M3.jar/
                                       include name=org/apache/
 commons/com.springsource.org.apache.commons.logging/1.1.1/
 com.springsource.org.apache.commons.logging-1.1.1.jar/
                                       include name=org/
 springframework/org.springframework.beans/3.0.0.M3/
 org.springframework.beans-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.context/3.0.0.M3/
 org.springframework.context-3.0.0.M3.jar/
                                       include name=org/aopalliance/
 com.springsource.org.aopalliance/1.0.0/
 com.springsource.org.aopalliance-1.0.0.jar/
                                       include name=org/
 springframework/org.springframework.asm/3.0.0.M3/
 org.springframework.asm-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.aop/3.0.0.M3/
 org.springframework.aop-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.expression/3.0.0.M3/
 org.springframework.expression-3.0.0.M3.jar/
                                       include name=org/antlr/
 com.springsource.org.antlr/3.0.1/com.springsource.org.antlr-3.0.1.jar/

                                       include name=org/
 springframework/org.springframework.transaction/3.0.0.M3/
 org.springframework.transaction-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.web.servlet/3.0.0.M3/
 org.springframework.web.servlet-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.web/3.0.0.M3/
 org.springframework.web-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.oxm/3.0.0.M3/
 org.springframework.oxm-3.0.0.M3.jar/
                                       include name=org/
 springframework/org.springframework.test/3.0.0.M3/
 org.springframework.test-3.0.0.M3.jar/
                                       include name=com/google/
 appengine/appengine-api-1.0-sdk/1.2.2/appengine-api-1.0-sdk-1.2.2.jar/

                                       include name=com/google/
 appengine/appengine-api-1.0-stubs/1.2.2/appengine-api-1.0-
 stubs-1.2.2.jar/
                                       include name=com/google/
 appengine/appengine-api-1.0-runtime/1.2.2/appengine-api-1.0-
 runtime-1.2.2.jar/
                                       include name=com/google/
 appengine/appengine-tools-sdk/1.2.2/appengine-tools-sdk-1.2.2.jar/
                                       include name=com/google/
 appengine/orm/datanucleus-appengine/1.0.2/datanucleus-
 appengine-1.0.2.jar/
                                       include name=org/datanucleus/
 datanucleus-core/1.1.4/datanucleus-core-1.1.4.jar/
                                       include name=javax/transaction/
 transaction-api/1.1/transaction-api-1.1.jar/
                                       include name=org/apache/
 geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-
 jta_1.1_spec-1.1.1.jar/
                                       include name=javax/jdo/jdo2-
 api/2.3-ea/jdo2-api-2.3-ea.jar/
                           

[appengine-java] Re: htmlunit

2009-08-24 Thread Nuno Morgadinho

Any similar tools that one could use with GAE?

On Fri, Aug 21, 2009 at 11:04 AM, Marc Guillemotmguille...@yahoo.fr wrote:

 currently not :-(

 As far as I know, there are 3 main issues:

 (1) URLStreamHandler not on white list
 http://code.google.com/p/googleappengine/issues/detail?id=1384 (feel
 free to star it)
 (2) HttpWebConnection not supported as it uses sockets
 (3) implemenation of JavaScript setTimeout, setInterval, and asynch XHR
 uses threads, what is not supported by GAE

 (1) is problematic. On one side I believe that URLStreamHandler could be
 white listed without problem (not the registration of protocols, just
 the usage of own handler). On the other side, HtmlUnit might migrate
 from URL to URI for internal usage and therefore this problem would
 disappear

 (2) quite easy: write own WebConnection that use AppEngine UrlFetcher
 instead

 (3) more difficult. Everything would need to run in the same thread. I
 think that it is possible to achieve it preserving the execution order
 but without any guarantee on the time where js code is executed.

 Cheers,
 Marc.
 --
 Web: http://www.efficient-webtesting.com
 Blog: http://mguillem.wordpress.com

 ssprauer wrote:
 Is there a way to make htmlunit run within GAE?
 



 


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



[appengine-java] Re: I don't understand Relationships managed by JDO and Datanucleus in GAE

2009-08-24 Thread leszek

http://code.google.com/appengine/docs/java/datastore/relationships.html#Dependent_Children_and_Cascading_Deletes

-
Dependent Children and Cascading Deletes

The App Engine implementation of JDO makes all owned relationships
dependent. If a parent object is deleted, all child objects are also
deleted. Breaking an owned relationship by assigning a new value to
the dependent field on the parent also deletes the old child.

As with creating and updating objects, if you need every delete in a
cascading delete to occur in a single atomic action, you must perform
the delete in a transaction.
--
So your:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MobilePhone implements IsSerializable {

  @Persistent(dependent = false)
  private User creator;
.

is regarded as 'MobilePhone' being the owner of the 'User' what is you
don't expected.

If you want to keep 'non-owned' relationship between 'MobilePhone' and
'User' than the best way is simply keep the key of the User in
MobilePhone and  to handle is manually.


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MobilePhone implements IsSerializable {

  @Persistent
  private Key creator;
.


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



[appengine-java] Can't persist objects -- impossible method is called

2009-08-24 Thread Abe Parvand

All I'm doing is persisting an entity in the datastore. No biggie. And
now I get this super weird error. What is the deal here?

I have no idea how to fix this, especially when the stack trace says
that some code is calling some code which should be impossible. Has
anyone run into this problem and / or know how to fix?

The culprit code:

Message message = new Message();
message.setActionPlan(actionPlan.getKey());
message.setBody(new Text(body));
message.setCoach(actionPlan.getActionPlanScript());
message.setCoachName(actionPlanScript.getName());
message.setMedium(Notifications.Medium.ANDROID);
message.setSubject(subject);
message.setUser(user.getId());

messageManager.saveMessage(message);



Here's the stack trace:

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.todoroo.client.ActionPlanScriptUploadService.uploadActionPlanScript
(java.lang.Long,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)'
threw an unexpected exception:
org.mozilla.javascript.WrappedException: Wrapped
javax.persistence.PersistenceException: Somehow
org.datanucleus.sco.UnsetOwners.storeStringField() was called, which
should have been impossible (SimpleShort#5)
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
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:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:237)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4823)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4821)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:820)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:775)
at com.google.net.rpc.impl.Server.processRequest(Server.java:348)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:436)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived

[appengine-java] Cannot access field of a parent (using defaultFetchGroup)

2009-08-24 Thread Smrky

Hi,
I'm trying to use default fetch groups to obtain fields at once (not
on demand) in my entity:

public class Survey {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String idSurvey;
@Persistent
private String name;
@Persistent
private Date dateFrom;
@Persistent
private Date dateUntil;
@Persistent
private String author;
@Persistent(mappedBy = survey, defaultFetchGroup = true)
private ListResponse responseList;
}

public class Response {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String idResponse;
@Persistent(defaultFetchGroup = true)
private Survey survey;
//list of all Answers in this Response
@Persistent(mappedBy=response, defaultFetchGroup = true)
private ListAnswer answerList;
}

I'm getting the entities with a method in a DAO class, so I need to
open and close the PM:

public Object getObjectByID(Class objectClass, String objectID) {
PersistenceManager pm = PMFactory.get().getPersistenceManager
();
Object o = null;
try {
o = pm.getObjectById(objectClass, objectID);
pm.retrieve(o);
} catch (JDOException jdoe) {
jdoe.printStackTrace();
} finally {
//pm.close();
}
return o;
}

When I fetch a Survey I can access the responseList and all fields in
Responses in the list. But when I fetch a Response, although I can see
the Survey (I'm using debugger in NetBeans to watch the variables),
every field of the Survey (except surveyID) is null, even if it has
been set before. So basically I can access child's fields after
obtaining the parent, but not via versa.

if I change the code in DAO to :

o = pm.getObjectById(Response.class, responseID);
pm.retrieve(o.getSurvey());

it works. Also, I could make it with not closing the PM - when the
fields are accessed they are being refreshed. What is happening? Thank
you!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Error 500

2009-08-24 Thread HC

Can U explain with picture step by step ? Sorry i have try ur
instruction

 By right clicking either on the error in the Problems tab or
by right clicking on the project in the package explorer, find Build
path.  I don't know if the next step was necessary, but under Java
Build Path, I included a new folder and mapped a new folder to my jdk
[version]/bin folder.  Then under Libraries if you click on JRE System
Library and then select Edit on the right, you will then be presented
with the option of using an Alternate JRE, which is where I was able
to select jdk[version]. 

i try adding JDK
http://i61.photobucket.com/albums/h79/hc_reborn/hah.jpg


but still the white cross in the red box didn't went away @.@

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



[appengine-java] Probleme with Relationships managed by JDO

2009-08-24 Thread midomarocain

hello,
I have three objects User, Type and Announce

i'm storing the User and his Type  (relation one to one)

i want to store a new Announce and in the same time affect the
persisted User to the new announce
 but i have an exception  like

 javax.jdo.JDOFatalUserException: Detected attempt to establish
Announce
(3) as the parent of User(1) but the entity identified by User(1) has
already been persisted without a parent.  A parent cannot be
established or changed once an object has been persisted.




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



[appengine-java] Re: Anyone successfully redirected naked domain to their www domain with NetworkSolutions?

2009-08-24 Thread Jim McCabe

After a lot of research, and some awful tech support from Network
Solutions, I decided to move to another domain registrar.  I picked
NameCheap.com - the name itself does not inspire confidence but I
found a lot of good reviews, and the services are good.

One nice thing about them is that you can migrate to their DNS for
free, ahead of time.  This turned out to be the solution to my
problem, because I will use their DNS for the next year until my time
runs out with Network Solutions, and then formally move over domains
to them at that point.

Their DNS console is excellent although you have to know a little more
about what you are doing.  I set up a 301 redirect for the naked
domain (@) to the www subdomain needed by Google, and it works
fantastically well.

- Jim
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread randal

On Aug 24, 4:44 am, objectuser kevin.k.le...@gmail.com wrote:
 Do you get it when you're trying to walk the graph on an object?  If
 you add that property to the defaultFetchGroup does it fix it?

I'm not sure I got that. What I do with the test, I call on a DAO
object that uses JdoTemplate to accomplish its task. Then, I invoke a
JdoTemplate from within my test case built around the same
PersistenceManagerFactory to help me check on the side effects of the
data access method I'm testing--asserting states, etc.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Overriding default GWT blue theme

2009-08-24 Thread Zhi Le Zou
Hi,
As you know, the default theme is blue, i.e. the borders or tabs are all in
blue. So is there a quick way to change the blue color into another color
such as green? I mean changing everything into green wherever currently
shown in blue.

Thanks a lot.

-- 
Best Regards
Robin (邹志乐)

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



[appengine-java] Re: JDO request IN

2009-08-24 Thread datanucleus

An IN clause ? you mean you pass in a parameter (inputParam) that is
a Collection and then say something like this ?
inputParam.contains(someFieldOfMyClass)

That's Java, so is JDOQL.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] JDO request IN

2009-08-24 Thread midomarocain

Hi,
there is any way to do an IN clause in a JDO request

thanks for your help
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Google Internet Authority Issuer and appspot.com

2009-08-24 Thread Jeff

With the Google App Engine, one must use https://domain.appspot.com
for SSL. With Google, the issuer is the Google Internet Authority. I
accept this, however when one uses VeriSign as the issuer, they're
allowed to display a VeriSign Secured logo. This logo can also be
clicked to to trigger a confirmation or verification event. Basically,
it makes the users feel a bit more secure about submitting personal
information and that there actually is an SSL connection.

Is it possible that the Google App Engine already has a feature like
this? If not, would it be possible for them to develop one?

Thank you,

Jeff
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Overriding default GWT blue theme

2009-08-24 Thread Toby Reyelts
[bcc google-appengine-j...@googlegroups.com]
[+google-web-tool...@googlegroups.com]

Hey Robin,

You'll probably get a quicker answer for this on the GWT users group.

2009/8/24 Zhi Le Zou zouzh...@gmail.com

 Hi,
 As you know, the default theme is blue, i.e. the borders or tabs are all in
 blue. So is there a quick way to change the blue color into another color
 such as green? I mean changing everything into green wherever currently
 shown in blue.

 Thanks a lot.

 --
 Best Regards
 Robin (邹志乐)

 


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



[appengine-java] Re: Error 500

2009-08-24 Thread Rajeev Dayal
Hi,
You can't add a JDK by adding the JDK's bin path to your classpath. What you
need to do is go into the Java Build Path dialog, and select the JRE System
Library entry. Then, click Edit. A dialog will pop up, giving you the
option to select an alternate JRE. However, you probably have not registered
the JDK you downloaded with Eclipse, so you'll have to click on the
Installed JREs button. You'll be presented with another dialog where
you'll be able to add your JDK, then when you go back to the previous
dialog, you can choose the JDK that you just installed.

Let me know if you run into any trouble.


Rajeev

On Mon, Aug 24, 2009 at 7:58 AM, HC strong.luck...@gmail.com wrote:


 Can U explain with picture step by step ? Sorry i have try ur
 instruction

  By right clicking either on the error in the Problems tab or
 by right clicking on the project in the package explorer, find Build
 path.  I don't know if the next step was necessary, but under Java
 Build Path, I included a new folder and mapped a new folder to my jdk
 [version]/bin folder.  Then under Libraries if you click on JRE System
 Library and then select Edit on the right, you will then be presented
 with the option of using an Alternate JRE, which is where I was able
 to select jdk[version]. 

 i try adding JDK
 http://i61.photobucket.com/albums/h79/hc_reborn/hah.jpg


 but still the white cross in the red box didn't went away @.@

 THX.
 


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



[appengine-java] Re: Updating to Eclipse Galileo issues/problems

2009-08-24 Thread Rajeev Dayal
The fact that it did not complain at the outset is odd. Just to be clear,
you restarted Eclipse, and the error showed up right away, or did you do
anything else?
Do you have the Build Automatically option checked?

On Sat, Aug 22, 2009 at 7:33 AM, jack jack.terran...@gmail.com wrote:


 Thanks for post... it solved the same issue I was having.

 Originally I had gwtext.jar as an external jar, but eclipse did not
 complain at the outset.  When I restarted the workspace, it complained
 as above.

 On Aug 17, 11:08 am, Rajeev Dayal rda...@google.com wrote:
  Hi Pion,
  I'm glad that everything seems to be working now. Just to be clear, your
  Java build path should have a Classpath Container called App Engine
 SDK.
  None of the entries within that container should point to the libraries
 in
  your war/WEB-INF/lib folder.
 
  Whenever the SDK jars are not in sync with the jars in your
 war/WEB-INF/lib
  folder, you should see a warning message. If you select that message and
 hit
  CTRL-1, that will give you the option to fix the problem by syncing up
 the
  jars - i.e. copying them to your war/WEB-INF/lib folder.
 
  Thanks,
  Rajeev
 
  On Wed, Aug 12, 2009 at 7:49 PM, Pion onlee2...@gmail.com wrote:
 
   I am using Eclipse. My Java Build Path points the external jars to a
   folder (not war/WEB-INF/lib. Per your question below, I did the
   following:
 
   1. Copy the external jar files manually to the war\WEB-INF\lib
   2. Set my Java Build Path Libraries to point to the jar files
   located in war\WEB-INF\lib.
 
   The above steps have solved the problem. The errors go away now!
 
   Thanks all for your help!
 
   On Aug 12, 6:50 am, Miguel Méndez mmen...@google.com wrote:
Now that the file is in war/WEB-INF/lib, does the classpath entry
 point
   to
the one in war/WEB-INF/lib or does it point to the original location?
Also, is there not warning on project with a quick fix?
 
On Tue, Aug 11, 2009 at 5:25 PM, Pion onlee2...@gmail.com wrote:
 
 I have just copied (manually) the file to war/WEB-INF/lib. But the
 error message is still there.
 
 On Aug 10, 7:02 am, Jason Parekh jasonpar...@gmail.com wrote:
  Oh, that could be your problem.  If you don't copy the JAR into
  war/WEB-INF/lib, it may not get bundled in your war file and
 hence
   will
 be
  unavailable to the app server.
  jason
 
  On Sat, Aug 8, 2009 at 12:38 PM, Pion onlee2...@gmail.com
 wrote:
 
   No, I did not manually copy
 commons-fileupload-1.2.1-javadoc.jar to
   the war/WEB-INF/lib directory . I just added the commons-
   fileupload-1.2.1-javadoc.jar using Project Properties - Java
   Build
   Path - Libraries - Add External JARS.
   Then, I got the classpath entry error.
 
   On Aug 8, 9:16 am, Jason Parekh jasonpar...@gmail.com wrote:
Hmm, are you placing that JAR in war/WEB-INF/lib?
jason
 
On Sat, Aug 8, 2009 at 11:48 AM, Pion onlee2...@gmail.com
   wrote:
 
   Per your suggestion below, I created a default new
 project
   (GreetingService sample) using Galileo. It ran fine
 without
   any
   error
   and the Galileo Markers tab does not show any error.
 
 I just added external jar
 commons-fileupload-1.2.1-javadoc.jar
   to
 this
 GreetingService sample. It does produce the error 2.
 Google
   Web
 App
 Problem -- The following classpath entry
 'D:\download\commons-
 fileupload-1.2.1\lib\commons-fileupload-1.2.1-javadoc.jar'
 will
   not
 be
 available on the server's classpath .
 
 On Aug 8, 8:20 am, Pion onlee2...@gmail.com wrote:
  One more thing ... I did clean the project. The errors
 still
   show
 up.
 
  On Aug 8, 8:17 am, Pion onlee2...@gmail.com wrote:
 
   Thanks for looking into this problem.
 
   Yes, the Galileo  Project Properties - Java Build
 Path -
   Libraries
   shows the JRE, App Engine SDK 1.2.2, GWT SDK 1.7.0 and
 some
   my
   external jars (for example,
 commons-fileupload-1.2.1-javadoc.jar).
 
   I did the following this morning:
 
   1. Installed Galileo (
  http://www.eclipse.org/downloads/download.php?
 
   file=/technology/epp/downloads/release/galileo/R/eclipse-jee-galileo-
   win32.zip) from scratch.
   2. Followed Google Plugin for Eclipse 3.5 (Galileo)
 Installation
   Instructions

 http://code.google.com/eclipse/docs/install-eclipse-3.5.html
   3. Imported my previous project/app created by Eclipse
 3.4
   (Ganymede)
   -http://dl.google.com/eclipse/plugin/3.4.
 
   Per your suggestion below, I created a default new
 project
   (GreetingService sample) using Galileo. It ran fine
 without
   any
   error
   and the Galileo Markers tab does not show any error.
 
   I notice a few differences between Eclipse Galileo and
 Ganymede:
 

[appengine-java] Re: Error creating JDO PersistanceManagerFactory with transactions-optional

2009-08-24 Thread Rajeev Dayal
Filed as http://code.google.com/p/googleappengine/issues/detail?id=2019

On Thu, Aug 20, 2009 at 10:15 PM, Geoff Denning gdenn...@gmail.com wrote:


 They are hidden at the OS level, which seems to hide them in Eclipse
 as well.

 On Aug 19, 9:08 am, Miguel Méndez mmen...@google.com wrote:
  Are these directories hidden at the OS level or at the eclipse level
 (like a
  derived folder)?
 
 
 
 
 
  On Wed, Aug 19, 2009 at 11:52 AM, Rajeev Dayal rda...@google.com
 wrote:
   Glad that everything is working for you. The deployment process does
 indeed
   grab everything under the war directory, including those that are
 hidden.
   However, I think it's a reasonable option to ignore hidden directories
   during an application upload. I've added Miguel and Don to this thread
 so
   they can weigh in on this.
 
   On Wed, Aug 19, 2009 at 2:27 AM, Geoff Denning gdenn...@gmail.com
 wrote:
 
   Hi Rajeev,
 
   I finally just figured out what was causing my app to fail, thanks to
   your help.  I looked at the stack trace more closely, and noticed this
   near the end:
 
   Caused by: org.datanucleus.exceptions.NucleusException: Plugin
   (Bundle) org.datanucleus is already registered. Ensure you dont have
   multiple JAR versions of the same plugin in the classpath. The URL
   file:/base/data/home/apps/taskpathapp/1-2.335721585450873497/WEB-INF/
   lib/_sgbak/datanucleus-core-1.1.0.jar.
   22581.1.2009-07-13.20-12-57.3906 is already registered, and you are
   trying to register an identical plugin located at URL
 file:/base/data/
   home/apps/taskpathapp/1-2.335721585450873497/WEB-INF/lib/datanucleus-
   core-1.1.4-gae.jar.
 
   The reason for this is that I am using SourceGear Vault for source
   code control, which creates a hidden directory called _sgbak in the
   working directory whenever a file is overwritten.  Apparently one of
   those files was an old version of the datanucleus-core jar, and
   Eclipse (or perhaps the GWT plugin) seems to include hidden
   directories when compiling and/or uploading to Google App Engine.
   After deleting these directories (and instructing Vault to put them in
   a separate folder) everything is working perfectly.  Thanks a million
   for your help.
 
   On Aug 14, 8:39 am, Rajeev Dayal rda...@google.com wrote:
Hi Geoff,
Your classpaths look correct. The only thing somewhat suspect is
 that
   you
have xercesImpl.jar in your war/WEB-INF/lib folder, and
 gwt-gears.jar
contains a set of Xerces classes itself. However, if you had this
   working
before you upgraded the App Engine SDK, there is no reason as to why
 it
would break now.
 
Can you verify that the timestamp on gwt-servlet.jar matches that of
 the
gwt-servlet.jar distributed with GWT 1.7.0?
 
Also, do you mind pasting the exact stack trace? You mentioned that
 it
   is
the same as the one that Clint posted. However, you mentioned a
NoClassDefFound error, and that wasn't listed in Clint's stack
 trace.
 
Thanks,
Rajeev
 
  --
  Miguel
 


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



[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread Wagner Aioffi
Hi,

I got the same exception using the persistence manager (jpa) outside a
spring transaction.
Is it your case?

W.


2009/8/24 randal rdgo...@gmail.com


 On Aug 24, 4:44 am, objectuser kevin.k.le...@gmail.com wrote:
  Do you get it when you're trying to walk the graph on an object?  If
  you add that property to the defaultFetchGroup does it fix it?

 I'm not sure I got that. What I do with the test, I call on a DAO
 object that uses JdoTemplate to accomplish its task. Then, I invoke a
 JdoTemplate from within my test case built around the same
 PersistenceManagerFactory to help me check on the side effects of the
 data access method I'm testing--asserting states, etc.
 


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



[appengine-java] Re: Logging Levels....

2009-08-24 Thread Cliff Hill
I'm getting the impression I'm missing something ridiculously simple here.
The logging levels I see access to (which show up in the log interface in
the GAE dashboard) are:

java.util.logger.Level.INFO -- Info
java.util.logger.Level.WARNING -- Warning
java.util.logger.Level.SEVERE -- Error

But there also seems to be something for:

Debug = 
Critical = 

Of particular interest to me is the Debug level, as I'd love to be able to
use it if possible when I'm wanting debugging output on an app engine file,
however I'm kinda stuck here. I've looked, and it appears these are levels
in the Log4J system for apache, but if there is a way to have those other
additional levels without using Log4J, I'd like to know.

On Sat, Aug 22, 2009 at 1:12 PM, Xlorep DarkHelm ch...@darkhelm.org wrote:


 I'm in search of a way to get the non-standard (that is, not java
 logging) levels which are apparently used in GAE/J. Like fatal, and
 debug (specifically, I'd like to use the debug level). I'm having a
 heck of a time doing this... do I need to make my own Level class
 derived from the java base one, and make my own debug and fatal levels?
 



-- 
I'm not responcabel fer my computer's spleling errnors - Xlorep DarkHelm
Website: http://darkhelm.org

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



[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread objectuser

+1 to Wagner for a better way of determining the issue. :)

On Aug 24, 12:25 pm, Wagner Aioffi wagner.aio...@gmail.com wrote:
 Hi,

 I got the same exception using the persistence manager (jpa) outside a
 spring transaction.
 Is it your case?

 W.

 2009/8/24 randal rdgo...@gmail.com



  On Aug 24, 4:44 am, objectuser kevin.k.le...@gmail.com wrote:
   Do you get it when you're trying to walk the graph on an object?  If
   you add that property to the defaultFetchGroup does it fix it?

  I'm not sure I got that. What I do with the test, I call on a DAO
  object that uses JdoTemplate to accomplish its task. Then, I invoke a
  JdoTemplate from within my test case built around the same
  PersistenceManagerFactory to help me check on the side effects of the
  data access method I'm testing--asserting states, etc.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread randal

On Aug 25, 1:44 am, objectuser kevin.k.le...@gmail.com wrote:
 +1 to Wagner for a better way of determining the issue. :)

Yeah, that pretty much says it. If I'm not mistaken, JdoTemplate takes
the persistence manager from the OpenPersistenceManagerInViewFilter,
or any existing transaction. I'll check on this.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Logging Levels....

2009-08-24 Thread Toby Reyelts
The mappings for java.util.logging levels to GAE log levels are:
level = SEVERE - Error
level = WARNING - Warn
level = INFO - Info
else Debug

We reserve the Critical level for errors such as escaping ServletExceptions
(e.g. errors that would cause 500s).

So, for example, if you want to log at GAE's Debug level, you should be able
to use Level.FINE, FINER, or FINEST (or even CONFIG).


On Mon, Aug 24, 2009 at 1:12 PM, Cliff Hill ch...@darkhelm.org wrote:

 I'm getting the impression I'm missing something ridiculously simple here.
 The logging levels I see access to (which show up in the log interface in
 the GAE dashboard) are:

 java.util.logger.Level.INFO -- Info
 java.util.logger.Level.WARNING -- Warning
 java.util.logger.Level.SEVERE -- Error

 But there also seems to be something for:

 Debug = 
 Critical = 

 Of particular interest to me is the Debug level, as I'd love to be able to
 use it if possible when I'm wanting debugging output on an app engine file,
 however I'm kinda stuck here. I've looked, and it appears these are levels
 in the Log4J system for apache, but if there is a way to have those other
 additional levels without using Log4J, I'd like to know.

 On Sat, Aug 22, 2009 at 1:12 PM, Xlorep DarkHelm ch...@darkhelm.orgwrote:


 I'm in search of a way to get the non-standard (that is, not java
 logging) levels which are apparently used in GAE/J. Like fatal, and
 debug (specifically, I'd like to use the debug level). I'm having a
 heck of a time doing this... do I need to make my own Level class
 derived from the java base one, and make my own debug and fatal levels?




 --
 I'm not responcabel fer my computer's spleling errnors - Xlorep DarkHelm
 Website: http://darkhelm.org



 


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



[appengine-java] Re: Problems accessing guestbook after deployment

2009-08-24 Thread HC

I have same problem here. in localhost this guest book it's working.
but when i uploading , and i try to open this link, it's show nothing.
what i missing something? i using eclipse and i has install google
plugin.

-
Creating staging directory
Scanning for jsp files.
Compiling jsp files.
Compiling java files.
Scanning files on local disk.
Initiating update.
Cloning 2 static files.
Cloning 28 application files.
Uploading 0 files.
Deploying new version.
Will check again in 1 seconds
Will check again in 2 seconds
Closing update: new version is ready to start serving.
Uploading index definitions.
Deployment completed successfully

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



[appengine-java] Re: Object manager has been closed (GAE with Spring)

2009-08-24 Thread objectuser

For a general solution (that will work it tests and outside of
tests ... and you might want to verify that the
OpenPersistenceManagerInViewFilter will work on the GAE host), you'll
likely need to look into fetch groups.

On Aug 24, 12:50 pm, randal rdgo...@gmail.com wrote:
 On Aug 25, 1:44 am, objectuser kevin.k.le...@gmail.com wrote:

  +1 to Wagner for a better way of determining the issue. :)

 Yeah, that pretty much says it. If I'm not mistaken, JdoTemplate takes
 the persistence manager from the OpenPersistenceManagerInViewFilter,
 or any existing transaction. I'll check on this.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Logging Levels....

2009-08-24 Thread Philippe Marschall



On Aug 24, 8:08 pm, Toby Reyelts to...@google.com wrote:
 The mappings for java.util.logging levels to GAE log levels are:
     level = SEVERE - Error
     level = WARNING - Warn
     level = INFO - Info
     else Debug

 We reserve the Critical level for errors such as escaping ServletExceptions
 (e.g. errors that would cause 500s).

 So, for example, if you want to log at GAE's Debug level, you should be able
 to use Level.FINE, FINER, or FINEST (or even CONFIG).

Wow, this just shows how bad the jul API is. There are these level
that you can't explain unless you put them all into a bag and give
them a different level which doesn't exist.

Cheers
Philippe
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Using @EmbeddedID and @Embedded with JPA ...

2009-08-24 Thread Larry Cable

Has anyone managed to get @EmbeddedId with JPA to work in GAE/
DataNucleus???

@Entity
public class MyEntity {
//...
@EmbeddedId public MyId id;
}

// ...

@Embeddable
public class MyId {
//...

public String id;
}

I'm getting an unsupported primary key type exception at runtime
during em.flush()

any thoughts? examples of working code?

I am pretty sure it's pilot error ... but the documentation for this
is pretty thin on the ground ...

will try and isolate an actual working example and post that here
also ...

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



[appengine-java] Re: Overriding default GWT blue theme

2009-08-24 Thread Zhi Le Zou
Oh, Toby, thanks :-)

2009/8/24 Toby Reyelts to...@google.com

 [bcc google-appengine-j...@googlegroups.com]
 [+google-web-tool...@googlegroups.com]

 Hey Robin,

 You'll probably get a quicker answer for this on the GWT users group.

 2009/8/24 Zhi Le Zou zouzh...@gmail.com

 Hi,
 As you know, the default theme is blue, i.e. the borders or tabs are all
 in blue. So is there a quick way to change the blue color into another color
 such as green? I mean changing everything into green wherever currently
 shown in blue.

 Thanks a lot.

 --
 Best Regards
 Robin (邹志乐)




 



-- 
Best Regards
Robin (邹志乐)

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



[appengine-java] Re: Launching a GWT app without the hosted mode browser

2009-08-24 Thread Cafesolo

Thank you!

That works for me.

For future reference for anyone reading this thread, this is what I
did:
- Go to Run - Run Configurations...
- Create a new Java Application run configuration
- Use com.google.appengine.tools.KickStart as the Main class
- Go to the Arguments tab
- Enter com.google.appengine.tools.development.DevAppServerMain
war (without quotes) under Program arguments
- In case you are using a different directory layout, replace war
with the right path to your war directory (relative to the project
root)

Miguel, I'd like to add a feature request for this. Where can I do it?

Regards,
-- Cafesolo

On Aug 24, 11:01 am, Miguel Méndez mmen...@google.com wrote:
 There is not automated support for that currently; you can however add an
 enhancement request for this if you like.
 What you can do, is to create your own Java Launch Configuration instead of
 using the Web Application one.  The new launch configuration should be able
 to run just run DevAppServer directly.

 2009/8/22 Cafesolo cafes...@gmail.com







  Thanks Miguel.

  I opened my project's properties, went to Google - Web Toolkit,
  unchecked Use Google Web Toolkit and closed the window. Then I ran
  my application and it didn't open any of the usual GWT windows. I'm
  able to browse my app running in localhost:8080 without problems.

  One more question: Is it possible to create two launch configurations,
  one with GWT support enabled and another for running my application
  with GWT support disabled instead of editing the project properties
  each time?

  Regards,
  -- Cafesolo

  On Aug 21, 10:32 am, Miguel Méndez mmen...@google.com wrote:
   If you are using App Engine and GWT, you could:

  - Do a GWT compile, if your test path includes GWT code,
  - Disable GWT on the project
  - Launch your web application again

   Those changes will alter the launch to only use the devappserver without
  any
   of the GWT stuff.

   If you are not using App Engine you could create a new java launch
   configuration that launches a simple servlet container like Jetty
  pointing
   at your war directory.

   2009/8/20 Cafesolo cafes...@gmail.com

Miguel,

I'm still experiencing a long startup time. Is there any way to
disable the hosted mode window?

Regards,
-- Cafesolo

On Aug 20, 12:08 pm, Miguel Méndez mmen...@google.com wrote:
 2009/8/20 Cafesolo cafes...@gmail.com

  Miguel,

  I went to the launch configuration's GWT tab and cleared the URL
  field. Now when I launch my application the hosted browser doesn't
  show anymore, but the Google Web Toolkit Hosted Mode window still
  appears (this is the window with the Hosted Mode, Restart
  Server,
  Collapse All, etc. buttons.)
  I also tried removing my GWT module from the Available Modules
  list
  in the launch configuration's GWT tab, but had the same effect.
  Any ideas?

 The hosted mode window will always start, but having no modules or
browser's
 active should not have a significant impact.  Are you still
  experiencing
a
 long startup time even after removing the URL, etc?

  Regards,
  -- Cafesolo

  On Aug 20, 10:21 am, Miguel Méndez mmen...@google.com wrote:
   The hosted mode browser is only launched if you specify a URL in
  the
Web
   Application launch configuration's GWT tab.  If you leave it
  blank it
  should
   have the effect that you are looking for.

   2009/8/20 Cafesolo cafes...@gmail.com

Hi Robin,

Not exactly. Even if I hit the compile button, the hosted
  mode
browser will still appear later when I launch the application.

I want to launch my application without opening the hosted mode
browser so I can reduce the application start-up time when I'm
debugging the non-GWT portions of my application.

Regards,
-- Cafesolo

On Aug 20, 4:03 am, Zhi Le Zou zouzh...@gmail.com wrote:
 Hi there,
 The hosted browser has a compile button which compiles your
code
  into
 javascripts, and let you view your app in the native browser.
  Is
that
what
 you want?

 2009/8/20 Cafesolo cafes...@gmail.com

  Hello everyone!

  I'm writing a GWT + GAE application, which has many pages,
  but
only
  one actually uses GWT.

  When I launch my application from Eclipse (using the Google
plugin,
  of
  course) a hosted mode browser instance appears, which is
  fine
for
  debugging the page that uses GWT. However, the hosted mode
browser
  is
  not needed for debugging the non-GWT part of my app (which
  is
about
  90% of the code), and it adds a lot of startup time.

  So my question is: Can I disable the hosted mode browser
  and
still
  be
  able to launch my application from Eclipse using the App
  Engine

[appengine-java] Re: datanucleus - key -- set the name component instead

2009-08-24 Thread Larry Cable

On Jul 13, 2:16 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
 Hello,

 I'm seeing Attempt was made to manually set the id component of a Key
 primary key.  If you want to control the value of the primary key, set
 the name component instead.

 Do I have to fetch an object before updating it?

 I'm fetching (dataClass) from the store with detachable=true
 then copying the data to a bean for serialization to my GWT client
 when it returns, I create a new (dataClass) instance containing the id
 of the original.

 Does that make sense?

 Should be trying something 
 likehttp://www.datanucleus.org/products/accessplatform_1_1/jdo/attach_det...

 Thanks for your good advice!

I am getting the same error in a similar, but different, scenario with
JPA+DataNucleus+GAE ...

I *think* it may be as a result that the PersistenceProvider believes
that it is in control of the PK value allocation strategy, and not the
application, and it is complaining because
the app is setting the PK field (which would be a bad thing if the PP
thought it was in charge of that field and it's contents)!

That's what I think the route of my problem is ...

sadly I am not sure how to resolve 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-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
-~--~~~~--~~--~--~---



[appengine-java] Re: Datanucleus + Eclipse problems

2009-08-24 Thread linhares

I have the same problem. And in my case it´s related to the use of the
@PersistenceAware annotation. If I don´t use it, it works fine,
otherwise eclipse starts an infinite loop with the enhancer.

On Jul 7, 12:25 pm, Alex Rudnick a...@google.com wrote:
 Alright, thanks for the detailed report!

 I'll try to reproduce the problem and figure out what's going on.



 On Tue, Jul 7, 2009 at 4:07 AM, Rolandrol...@mbiproductions.com wrote:

  Well, I only have one project at the time:
  I have used an Eclipse JEE Ganymede SR1 installation on Windows XP
  (SP3) I use for another project (in C:\eclipse\) and just installed
  the Google
  Plugin for Eclipse 3.4 via Software Updates - Available Software -
  Add Site
  (http://dl.google.com/eclipse/plugin/3.4).

  Then I followed the GAE Guestbook tutorial and it worked fine.
  Then I switched on the GWT in the plugin and enhanced the GUI to use
  GWT
  (the result is onhttp://mbi-t1.appspot.com/).

  During development I shared the project in my SVN repository and
  worked
  additionally on my home PC (Windows Vista SP2). There I have several
  Eclipse versions installed and for this project I used Eclipse
  Ganymede SR2
  for plain Java (not JEE) that was installed in C:\eclipse34.

  In the Preferences - Google Section I found that the Google plugin
  did not
  recognize the included SDKs for GAE and GWT as valid. Therefore I
  downloaded
  both SDKs separately and put them into the SVN in parallel to the
  project
  folder. I also ensured that the SVN checkout folder was the same on
  both PCs:
  D:\JAVA. Also I configured the Google Plugin to use the separate
  SDKs on both PCs. This worked so far..

  In the course of the project I configured the Java compiler to use
  project specific
  settings, as such my standard Code templates, code formatter settings,
  and
  some slightly more restrictive compiler warning settings.

  I'm not sure when it began that the Enhancer Builder ran in an endless
  loop,
  but now it is the case and I have to disable it in the project
  settings to stop
  this behavior.

  I also had the impression that when I edit some file and store it, the
  Enhancer
  Builder did not find the class to enhance, because the edited file was
  in a
  subpackage: for example:
   edited file: src/guestbook/client/Guestbook.java
   file to be enhanced: src/guestbook/Greeting.java

  Actually I completed the project by using ANT and used Eclipse as an
  editor only.

  BTW: You can find the Sources on my Site:
     http://roland.blochberger.us/dl/guestbook_20090706.zip

 --
 Alex Rudnick
 swe, gwt, atl
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Any example for JPA One-To-Many relationship

2009-08-24 Thread niuy

Hi there,

I am struggling to   implements   one-to-many relationship ,but  I
never  make it work.  Does any body  make  any   relationship  based
on  JPA? or  it  is impossible  on   GAE / J ?

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



[appengine-java] Re: Inheritance in JDO

2009-08-24 Thread Tom Ball
Does anyone know if JPA supports polymorphism?  I've been working with JDO
because it appears to be better documented right now, but I'd switch for a
more Java-like model.
Tom

On Sun, Aug 23, 2009 at 7:22 AM, David Given d...@cowlark.com wrote:


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 jd wrote:
 [...]
  I have a structure similar to this this:
 [...]
  class Zoo
  class Zebra implements Animal
  class Donkey implements Animal
 [...]
  javax.jdo.JDOUserException: Field animal is declared as a reference
  type (interface/Object) but no implementation classes of Animal have
  been found!

 JDO on App Engine doesn't support polymorphism, as I understand it,
 which means you have to store your Zebras and Donkeys separately. I take
 it that what you want is a mixed bag of Animals of differing objects?

 The only way I found of doing that was to manually serialise my objects
 and store them in Blobs. It's not as hard as it looks, as the low-level
 API is quite nicely designed, but you do need to explicitly pull fields
 you want indexed out of the object before serialisation and store them
 as indexable properties on the entity.

 - --
 ┌─── dg@cowlark.com ─ http://www.cowlark.com ─
 │
 │ People who think they know everything really annoy those of us who
 │ know we don't. --- Bjarne Stroustrup
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iD8DBQFKkVCdf9E0noFvlzgRAmmBAJwIHs8T5Qy5t0FgQ/ik4oTdOca1rACg0Oy1
 IzwfB2MUttjgJZMdgAetr38=
 =U8uT
 -END PGP SIGNATURE-

 


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



[appengine-java] HttpServletRequest.getLocalPort() returns 0

2009-08-24 Thread Gabriel Moreira

Im trying this on google appengine:

public class MyFilter implements  javax.servlet.Filter {

   public void doFilter(ServletRequest servletRequest, ServletResponse
response, FilterChain filterChain) throws IOException,
ServletException {
 response.getWriter().print(port  + ((HttpServletRequest)
servletRequest).getLocalPort() );
   }
}


Testing this local url:  http://localhost:8080/test.servlet

AppEngine is returning 8080 on HttpServletRequest.getLocalPort().


Testing this remote url:  http://myapp.appspot.com/test.servlet

AppEngine is returning 0 on HttpServletRequest.getLocalPort().


Anyone can test this?

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



[google-appengine] Re: Maintenance Timing

2009-08-24 Thread Ben Nevile

I second Jeff's call for some transparency here.

Ben

On Aug 18, 10:17 am, Jeff j...@jgyoung.com wrote:
 Sometimes more warning isn't possible if maintenance is necessary to
 avoid the system tipping over because of a problem.  But of course, if
 it wasn't an emergency maintenance, then 22 hours of warning is
 definitely insufficient.

 But in spite of the comments above, I'll be quiet about this when
 Google says they scheduled the downtime at the best time they could
 based on customer usage and not for their own convenience.  I can
 hardly imagine that noon EST and 9am PST could possibly be the optimum
 time ... except for the convenience of the west coast Google employees
 that did not want to work during the night.  Yes I know there is usage
 worldwide, but ...

 How about it Google, a response defending this seemingly very poor
 scheduling choice?  Tell us why it wasn't possible to provide more
 notice or schedule this at a lower usage time and why we can expect in
 the future you are striving to minimize downtime impact to your
 customers.

 On Aug 18, 9:54 am, BenNevileben.nev...@gmail.com wrote:



  +1 for more advance warning, please.

  Ben

  On Aug 17, 11:52 am, Joshua Smith joshuaesm...@charter.net wrote:

   I really appreciate that you are warning us about the maintenance.
   However, next time, I'd ask:

   1) More warning, if possible; and,

   2) Do it sometime other than the middle of the day in the United
   States!

   It is customary for service providers to do maintenance activities in
   the wee hours, to minimize impacting users.

   -Joshua- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine and Dedicated IP

2009-08-24 Thread jack

Thanks, I'll try to port the site to GAE.

On Aug 23, 11:05 pm, Barry Hunter barrybhun...@googlemail.com wrote:
 No this is not possible, for many reasons.

 A static IP would lose much of the advantage of AppEngine.

 You could if you want proxy the site though the server with the static
 IP, but seems kinda silly.

 On 23/08/2009, yaoye yaoye...@gmail.com wrote:





   Hi, guys,

   Would it be possible to bind a dedicated IP to my GAE-based site? I
   have a pr-4 site, and I wanna port it to GAE, but I'm worried about
   losing its ranking in Google for IP changing.

   All suggestions are welcome!

   Thanks a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine and Dedicated IP

2009-08-24 Thread Nick Johnson (Google)
Hi yaoye,
Although it's not possible to bind a static IP to an App Engine app (or to
route an individual IP address across the internet in general), no search
engine - including Google - is likley to penalize you for your IP address
changing. Search engines generally only care about your DNS name and the
responses they get over HTTP.

-Nick Johnson

On Sun, Aug 23, 2009 at 5:16 AM, yaoye yaoye...@gmail.com wrote:


 Hi, guys,

 Would it be possible to bind a dedicated IP to my GAE-based site? I
 have a pr-4 site, and I wanna port it to GAE, but I'm worried about
 losing its ranking in Google for IP changing.

 All suggestions are welcome!

 Thanks a lot.
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Limit to Reference Collection Size?

2009-08-24 Thread Nick Johnson (Google)
Hi Devel63,
A ReferenceProperty is simply a Key stored in the datastore with the entity
it's on. There's no limit on how many properties can contain a given key.

-Nick Johnson

On Thu, Aug 20, 2009 at 7:36 PM, Devel63 danstic...@gmail.com wrote:


 Is there a limit to the number of entities that can reference a given
 entity?

 For example,

  class Class1(db.Model):
prop1 : db.IntegerProperty()

  class Class2(db.Model):
ref_prop: db.ReferenceProperty(Class1, collection=my_references)

  Is there a limit to the number of class2 entities that can refer to
 a given class1 entity?
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine Application Ports

2009-08-24 Thread Nick Johnson (Google)
Hi leo,
It's not possible to receive email using App Engine, currently, and it's not
possible to run your own servers on arbitrary ports. Receiving email is on
the roadmap; in the meantime you may want to consider services like
smtp2web.com.

-Nick Johnson

On Fri, Aug 21, 2009 at 8:14 PM, leo fomatech l...@fomatech.com wrote:


 Well,

 I want to design a simple service that is used to synchronize two mail
 boxes on the internet.

 I will like to host this simple smtp service on google apps engine. I will
 use java to implement the smtp protocol. So you now see why I want port 25
 open on my application. I think this possible with amazon ec2, but I will
 like to use google apps engine since this free.

 Is this possible ?

 Thanks,
 Leo.





 On Fri, Aug 21, 2009 at 11:50 PM, Barry Hunter 
 barrybhun...@googlemail.com wrote:


 Even this is possible (which I dont think it is), AppEngine is pretty
 much designed to talk HTTP.

 You suggesting port 25 suggests wanting to talk SMTP, which AppEngine
 wont do anyway.


 On 21/08/2009, leo l...@fomatech.com wrote:
 
 
   Dear friends,
 
   It seems to me google apps engine can only run applications that are
   requested on port 80.
 
   It is possible to host a service on google apps engine on a port other
   than port 80. For example port 25. I will like my service to be called
   from port 25.
 
   If possible, How can I accomplish this?
 
   Best Wishes,
   Leo.
 
 
   
 






 --
 Leonard Tchuta
 IT Management Consultant

 Fomatech IT Management Consulting Ltd
 www.fomatech.com
 l...@fomatech.com
 Mob: +86-15900755434
 Tel: +86-21-64398772




 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Entities disappearing from index

2009-08-24 Thread Rodrigo Moraes

Hi,
Last week two of my users complained about entities that
disappeared. I searched for the records using a simple query with no
composite index and found them, and confirmed that they were not
returned by a composite index that should return them. The index was
up and running, and as far as I know the entities disappeared
randomly.

I re-saved the same entities, and they appeared in the index again. I
have no idea if other entities are missing from the index, because I
only know if someone reports it, which is sad and a bit scary.

Question is: in which cases can this happen? Which tricks can we use
to check/ensure that an index is complete?

thanks,
rodrigo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Inconsistent 404

2009-08-24 Thread Nick Johnson (Google)
Hi Michael,
It's not really possible to help without more details. Can you provide us
the contents of your main.py script? It seems likely that your code is
decoding the key being passed in, and returning a 404 if the key isn't
found.

-Nick Johnson

On Fri, Aug 21, 2009 at 9:07 PM, Michael michaeleon...@gmail.com wrote:


 In my app.yaml if have:
 - url: /ill/request/new/.*
  script: ill/request/new/main.py
 --
 When I request the following:
 http://localhost:8080/ill/request/new/agRyY2xzcgwLEgZQYXRyb24YNAw

 I get the following:
 INFO 2009-08-21 18:27:42,381 dev_appserver.py:3029] GET /ill/
 request/new/ag
 RyY2xzcgwLEgZQYXRyb24YNAw HTTP/1.1 200 -
 :)
 ---
 If I repeat the procedure with a different ending, such as:
 http://localhost:8080/ill/request/new/agRyY2xzcgwLEgZQYXRyb24YNgw

 I get the following:
 INFO 2009-08-21 19:03:08,569 dev_appserver.py:3029] GET /ill/
 request/new/ag
 RyY2xzcgwLEgZQYXRyb24YNgw HTTP/1.1 404 -
 :(
 -
 If I repeat the request for the first item which worked the first
 time, it works fine, but anything else throws a 404 error.

 If I close the developement server and restart it, it lets the first
 pass through fine but then gives the 404 on anything that differs from
 the first pass. If I reverse the above procedure after restarting the
 developement server the results are reversed.

 Any thoughts would be greatly appreciated.
 Michael

 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: https support

2009-08-24 Thread Nick Johnson (Google)
Hi repairman,
Redirects are not required in order to serve traffic from your own domain.
You can simply set up Google Apps on your domain (for free), and use that to
map a subdomain (for example, www.abc.com) to your App Engine app. Naked
domains (abc.com) are not currently supported, but that will not impact your
search engine rankings if you ensure your authoritative domain is the
qualified (www.abc.com) one and people link to that. You can use your
registrar's redirect service to send requests for abc.com/* to
www.abc.com/*for manually entered links.

http://code.google.com/appengine/articles/domains.html

-Nick Johnson

On Sat, Aug 22, 2009 at 6:03 AM, repairman alau2...@gmail.com wrote:


 google guys,

 I don't know if you guys realize the implication of not getting a
 static IP?   if I have a domain (abc.com) I cannot map it to the
 appspot subdomain without an IP and I have to resort to a redirect.
 And search engines are not friendly to redirects.  And no serious
 website will ever want to redirect to blah.appsot.com  it just looks
 unprofessional.  So this lack of static IP is preventing google app
 engine from becoming actually useful like EC2 for real business.  And
 that's why there is no serious apps or serious ecommerce systems
 running on your GAE so far despite of all the hype.It's almost
 like selling a car without headlights i.e. sounds like a small miss
 but it will prevent the car you are selling from being popular.  no
 serious person can drive only during the day time.  Please don't think
 of this static IP problem from the techie point of view, think from
 your 'customers' perspective.  This is a show stopper!GAE is such
 a good concept and can revolutionize the industry but this lack of
 static IP is such a spoiler!

 On Aug 6, 7:27 am, Tony fatd...@gmail.com wrote:
  Fair enough.  I'm fine with we're working on solutions, as long as
  it's not sorry, wait for the world to upgrade to FF3/IE8.
 
  On Aug 6, 10:21 am, Nick Johnson (Google) nick.john...@google.com
  wrote:
 
   Hi Tony,
 
   We're looking into solutions. It's not as simple as it may first
   appear - in the case of a service like Amazon EC2, your server resides
   at only a single physical location, and so does theIPaddress you
   rent. In contrast, App Engine apps are served from IPs at Google
   datacenters around the globe.
 
   -Nick Johnson
 
   On Thu, Aug 6, 2009 at 3:18 PM, Tonyfatd...@gmail.com wrote:
 
Why not charge a monthly fee for apps to get astaticIP(like Amazon
does)?  Scarcity of supply seems like a bit of a cop-out to me - it's
not apparent that a majority of app engine apps require this support.
The customers you're losing because of this, however, are customers
that plan to process e-commerce transactions online without looking
like a phishing scam.  Customers that make money on your service are
more likely to spend money on your service.
 
On Aug 5, 3:55 am, Nick Johnson (Google) nick.john...@google.com
wrote:
Hi J Singh,
 
Due to the way SSL works, this is not currently possible without
allocating anIPaddress for each App Engine domain that would use SSL
- which itself isn't very practical due to IPv4 address scarcity.
 
The latest version of SSL supports using a singleIPaddress for
multiple sites with different certificates, but browser support for
this version is not yet nearly widespread enough to make it a
practical alternative.
 
-Nick Johnson
 
On Wed, Aug 5, 2009 at 5:39 AM, J Singhj.si...@earlystageit.com
 wrote:
 For an appengine-based site,
 https://abc.appspot.comiscurrentlysupported
 buthttps://www.abc.comcannotbe supported. I know there is a
 technical
 hurdle to cross but didn't know if any techniques had been
 proposed for
 being able to usewww.abc.comwithSSLconnections?
 
 Thanks.
 
 J Singh
 
 Managing Director
 Early Stage IT
 (978) 760-2055
http://www.earlystageit.com
 
--
Nick Johnson, Developer Programs Engineer, App Engine
 
   --
   Nick Johnson, Developer Programs Engineer, App Engine
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: NEED HELP about _ah/admin

2009-08-24 Thread Nick Johnson (Google)
Hi Allen,

On Mon, Aug 24, 2009 at 2:36 AM, Allen allen.lu...@gmail.com wrote:


 As we know we can use http://localhost/_ah/admin; to go through the
 local database before upload to GAE.  And we can not directly use
 http://www.mydomain.com/_ah/admin; to visit the online database after
 appcfg.py to GAE.

 My question is:

 how can I achieve the same as online database? How to limit the local
 _ah/admin?

 When I developing local webserver, I don't wanna everyone can visit
 database directly by _ah/admin


You shouldn't be using the dev_appserver anywhere that untrusted users can
access it. Also, by default the dev_appserver is only accessible from the
machine it's running on - it's not possible to make requests to it from
another machine.

-Nick Johnson



 Thanks a lot!!!
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: keys_only does not work with Searchable

2009-08-24 Thread Nick Johnson (Google)
Hi Devel63,
Please file a bug for this on
http://code.google.com/p/googleappengine/issues/list .

-Nick Johnson

On Sun, Aug 23, 2009 at 7:23 PM, Devel63 danstic...@gmail.com wrote:


 It seems that the keys_only flag in the Kind.all(keys_only=True) does
 not work/compile for the search.Searchable model.

 I get an 'unexpected keyword' error msg.

 [Tried to post this a few days ago, but it's not findable]
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Request: Upload only code

2009-08-24 Thread Nick Johnson (Google)
Hi vivipuri,
Please file a feature request at
http://code.google.com/p/googleappengine/issues/list .

-Nick Johnson

On Sat, Aug 22, 2009 at 5:30 PM, vivpuri vivpu...@gmail.com wrote:


 While doing appcfg.py update /src, that command also updates the cron
 jobs. While there are commands to independently update cron, indexes
 and ... but there is nothing for uploading only code without impacting
 the existing crons. Can we get that option please?
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Cannot See List of Applications

2009-08-24 Thread Nick Johnson (Google)
Hi abonneau,
Try logging in via http://appengine.google.com/a/inmotio.com .

-Nick Johnson

On Fri, Aug 21, 2009 at 3:43 PM, abonn...@inmotio.com
abonn...@inmotio.comwrote:


 Hello all,

 I have signed up for an account, created my first application ID, and
 uploaded my application to the App Engine.  I am able to access the
 application via the expected appspot URL.  However, when I log into
 the Console I still see the Create an Application button and have no
 way to view information such as logs and quotas for my existing
 application.

 I have considered the possibility that I the same address is being
 used for both a Gmail Account and a Google Account, but I double-
 checked and the account I am using has no access to Gmail.

 Does anyone have any suggestions?

 Thanks,

 -- Adam

 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: synthentic keys - performance implications?

2009-08-24 Thread Sylvain

do not forget to add a prefix to the key_name (ie : 'k:',...)
Else if your key_name starts with a number it will raise an error

On 24 août, 12:56, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Jeff,

 On Sat, Aug 22, 2009 at 7:24 PM, Jeff Enderwick 
 jeff.enderw...@gmail.comwrote:









  Currently, one must put() in order to have obj.key() be valid. In some
  flows, I find my self having to put() object twice for this reason.

  If I make a synthetic key, it appears that I can avoid this:

  class Joker(db.Model):
   unused = db.StringProperty()
   def __init__(self):
     m = hashlib.sha1()
     m.update(str(time.time()))
     name = base64.b64encode(m.digest())
     logging.debug(name=+name)
     db.Model.__init__(self, key_name=name)

  1) GOOG folks - are there any performance downsides to taking this
  approach?

 Not really, no.



  2) If no, are there any other environmental factors that might be
  fodder for the hash (user, etc)?

 I would recommend using uuid.uuid4().hex instead of a straight SHA1 sum.
 UUIDs are guaranteed to be unique.

 I would also recommend defining a class method called something like
 'create' that generates the key name and calls __init__. There are
 subtle-use cases around __init__ and reconstructing entities from the
 datastore, and it's difficult to get right - much more straightforward to
 define a class method to construct new entities.

 -Nick Johnson



  Thanks,
  Jeff

 --
 Nick Johnson, Developer Programs Engineer, App Engine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Combining Python and Java

2009-08-24 Thread David Wolfe

Have people had success with
 Pyjs (aka pyjamas) + GAE + Django ?
I would think this would be cleaner than Python + GWT.

If so, can someone post a sample app?

Thanks,
 David

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Clean way to code around timeouts?

2009-08-24 Thread Bemmu

I decided to finally do something about the Timeout exceptions
littering my log.

I read somewhere on this forum that I am supposed to code around data
store accesses to try things out several times in case of timeouts. Is
this still necessary? Why won't the methods just do that internally?

This is my first attempt to handle a timeout situation, is there any
nicer way to code this?

retries = 3
retry = True
while retry:
try:
retry = False
recipient.put()
except:
retries -= 1
if retries  0:
retry = True
logging.info(recipient.put() failed, retrying)
else:
logging.error(failed even after trying 
recipient.put() three
times)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Clean way to code around timeouts?

2009-08-24 Thread Bemmu

Seems super useful, thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Clean way to code around timeouts?

2009-08-24 Thread 'Αλκης Ευλογημένος
You can make it into a decorator which will make it easier for your
functions to code. I use this:
def retry_on_timeout(retries=3, secs=1):
  A decorator to retry a given function performing db operations.
  def _decorator(func):
def _wrapper(*args, **kwds):
  tries = 0
  while True:
try:
  tries += 1
  return func(*args, **kwds)
except db.Timeout, e:
  logging.debug(e)
  if tries  retries:
raise e
  else:
wait_secs = secs * tries ** 2
logging.warning(Retrying function %r in %d secs % (func,
wait_secs))
time.sleep(wait_secs)
return _wrapper
  return _decorator



On Mon, Aug 24, 2009 at 1:53 PM, Bemmu bemmu@gmail.com wrote:


 I decided to finally do something about the Timeout exceptions
 littering my log.

 I read somewhere on this forum that I am supposed to code around data
 store accesses to try things out several times in case of timeouts. Is
 this still necessary? Why won't the methods just do that internally?

 This is my first attempt to handle a timeout situation, is there any
 nicer way to code this?

retries = 3
retry = True
while retry:
try:
retry = False
recipient.put()
except:
retries -= 1
if retries  0:
retry = True
logging.info(recipient.put() failed,
 retrying)
else:
logging.error(failed even after trying
 recipient.put() three
 times)
 



-- 

Alkis

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Help with storage quota reading

2009-08-24 Thread Jai

Hi Jesse,

Mine is a non-billing account, but if the semantics is the same for
both the accounts then YES it means you have stored .07 GBs since the
last quota reset, which happens every 24 hrs, so i'ts the amount of
data stored today.

Regards,
Jai

On Aug 23, 7:01 am, Jesse Grosjean je...@hogbaysoftware.com wrote:
 Dumb question, but just want to make sure that I'm getting this right.
 In my dashboard I see:

 Stored Data, $0.005/GByte-day, 0%, 0.07 of 201.00 GBytes, $0.00 /
 $1.00

 Am I correct in interpurting this to say that I've used 0.07 GBytes
 (~72 MBytes) of storage so far?

 Thanks,
 Jesse
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Help with storage quota reading

2009-08-24 Thread Nick Johnson (Google)
Hi Jal, Jesse,
A correction: The storage quota is not a daily quota. The storage reported
is the total data you have in your datastore (including indexes etc), not
the amount you have consumed today.

-Nick Johnson

On Mon, Aug 24, 2009 at 2:29 PM, Jai sharma...@gmail.com wrote:


 Hi Jesse,

 Mine is a non-billing account, but if the semantics is the same for
 both the accounts then YES it means you have stored .07 GBs since the
 last quota reset, which happens every 24 hrs, so i'ts the amount of
 data stored today.

 Regards,
 Jai

 On Aug 23, 7:01 am, Jesse Grosjean je...@hogbaysoftware.com wrote:
  Dumb question, but just want to make sure that I'm getting this right.
  In my dashboard I see:
 
  Stored Data, $0.005/GByte-day, 0%, 0.07 of 201.00 GBytes, $0.00 /
  $1.00
 
  Am I correct in interpurting this to say that I've used 0.07 GBytes
  (~72 MBytes) of storage so far?
 
  Thanks,
  Jesse
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Combining Python and Java

2009-08-24 Thread Wiiboy

I haven't done it yet (I plan to, not on GAE, though), but I don't see
why not.

Check out their wiki page, they've got a few examples for using Django/
GAE with pyjamas.  A couple are outdated, though.  If you download the
latest version (0.6), you can see a working example (I think it's
called Djangotasks).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Indexes are not updating in my application

2009-08-24 Thread Jairo Vasquez Moreno
Hi,
My indexes are not updating. It always give me Server Error (500) but
application is updated. I need to updates my indexes. Could you please reset
my indexes?

Application ID: maravilhas09

Please, regards,

-- 
Jairo Vasquez Moreno
Mentez Developer

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: NEED HELP about _ah/admin

2009-08-24 Thread NealWalters

Sounds like you want to show one URL to your admin/users when on dev,
and another URL when on live/production server?
If so, see this post for Python solution:
http://groups.google.com/group/google-appengine-python/browse_thread/thread/d1537b3ea289322e#

Neal

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Indexes are not updating in my application

2009-08-24 Thread Nick Johnson (Google)
Hi Jairo,
I've reset your index count quota.

-Nick Johnson

On Mon, Aug 24, 2009 at 4:00 PM, Jairo Vasquez Moreno 
jairo.vasq...@gmail.com wrote:

 Hi,
 My indexes are not updating. It always give me Server Error (500) but
 application is updated. I need to updates my indexes. Could you please reset
 my indexes?

 Application ID: maravilhas09

 Please, regards,

 --
 Jairo Vasquez Moreno
 Mentez Developer


 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: NEED HELP about _ah/admin

2009-08-24 Thread Allen

Hi Johnson,

I run the application in my local LAN. for example:

dev_appserver.py -a 192.168.1.1 -p 80 myapp

then every one under 192.168.1.x can visit this app by http://192.168.1.1/
but they can also visit the database directly by http://192.168.1.1/_ah/admin
How can I make sure the _ah/admin can be only use at where the
dev_appserver.py server running on?

Thanks!



On Aug 24, 6:05 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Allen,

 On Mon, Aug 24, 2009 at 2:36 AM, Allen allen.lu...@gmail.com wrote:

  As we know we can use http://localhost/_ah/admin; to go through the
  local database before upload to GAE.  And we can not directly use
  http://www.mydomain.com/_ah/admin; to visit the online database after
  appcfg.py to GAE.

  My question is:

  how can I achieve the same as online database? How to limit the local
  _ah/admin?

  When I developing local webserver, I don't wanna everyone can visit
  database directly by _ah/admin

 You shouldn't be using the dev_appserver anywhere that untrusted users can
 access it. Also, by default the dev_appserver is only accessible from the
 machine it's running on - it's not possible to make requests to it from
 another machine.

 -Nick Johnson



  Thanks a lot!!!

 --
 Nick Johnson, Developer Programs Engineer, App Engine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: NEED HELP about _ah/admin

2009-08-24 Thread Nick Johnson (Google)
Hi Allen,

On Mon, Aug 24, 2009 at 4:37 PM, Allen allen.lu...@gmail.com wrote:


 Hi Johnson,

 I run the application in my local LAN. for example:

 dev_appserver.py -a 192.168.1.1 -p 80 myapp

 then every one under 192.168.1.x can visit this app by http://192.168.1.1/
 but they can also visit the database directly by
 http://192.168.1.1/_ah/admin
 How can I make sure the _ah/admin can be only use at where the
 dev_appserver.py server running on?


You can't, unless you use a reverse proxy in front of the dev_appserver. The
dev_appserver isn't designed for this sort of deployment scenario - it's
supposed to be used entirely for local development - so even if you can
block the /_ah URLs, I wouldn't recommend this approach.

If you want to deploy locally, you might want to look into alternatives like
TwistedAE or AppScale.

-Nick Johnson




 Thanks!



 On Aug 24, 6:05 pm, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi Allen,
 
  On Mon, Aug 24, 2009 at 2:36 AM, Allen allen.lu...@gmail.com wrote:
 
   As we know we can use http://localhost/_ah/admin; to go through the
   local database before upload to GAE.  And we can not directly use
   http://www.mydomain.com/_ah/admin; to visit the online database after
   appcfg.py to GAE.
 
   My question is:
 
   how can I achieve the same as online database? How to limit the local
   _ah/admin?
 
   When I developing local webserver, I don't wanna everyone can visit
   database directly by _ah/admin
 
  You shouldn't be using the dev_appserver anywhere that untrusted users
 can
  access it. Also, by default the dev_appserver is only accessible from the
  machine it's running on - it's not possible to make requests to it from
  another machine.
 
  -Nick Johnson
 
 
 
   Thanks a lot!!!
 
  --
  Nick Johnson, Developer Programs Engineer, App Engine
 



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] jdo - collection element type has not been specified - generics

2009-08-24 Thread Peter Warren

I'm getting the following error using DataNucleus with Google App
Engine:

org.datanucleus.metadata.InvalidMetaDataException: Field test in
class Wrapper has been defined as a Collection but the element type
has not been specified!

It seems DataNucleus doesn't figure out the collection type when the
type is specified in the declaration of a class.

For example, the following fails with an InvalidMetaDataException as
noted above...
public class Wrapper {
...
@Persistent
private Test test;
...
}

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Test extends ArrayListString {
...
}

Is there a way to change my annotations so that DataNucleus will
accept my type declaration, or do I have to change my code?

I posted this to the DataNucleus forum on Aug. 13 but haven't heard a
peep.

Thanks for any help,
Peter

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Error deploying sample app

2009-08-24 Thread Oscar

Oops.

Why every question I search about this topic ends with at Are you
behind a proxy?


It would be nice if you say:

 If you are behind a proxy do this, and that  and it get fixed.

Or

If you are behind a proxy, forget it, it wont work.

:(

I guess I'll have to wait until I am in a public internet café or
something to upload my first app.


On Aug 10, 5:16 pm, Jeff S (Google) j...@google.com wrote:
 Hi Kashif,

 It looks like this might be an issue with DNS or some part of the network.
 Are you behind a proxy?

 Thank you,

 Jeff

 On Thu, Aug 6, 2009 at 9:53 AM, Kashif alam.kas...@gmail.com wrote:

  All, I am running into the following error when running appcfg.py
  update command - any guidance will be appreciated

  G:\GAEg:\Program Files (x86)\Google\google_appengine\appcfg.py
  update helloworld/
  Scanning files on local disk.
  Initiating update.
  Email: x...@gmail.com
  Password for x...@gmail.com:
  2009-08-06 09:48:47,328 ERROR appcfg.py:1272 An unexpected error
  occurred. Abort
  ing.
  Traceback (most recent call last):
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1250, in DoUpload
     missing_files = self.Begin()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1045, in Begin
     version=self.version, payload=self.config.ToYAML())
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 356, in Send
     self._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 391, in _Authenticate
     super(HttpRpcServer, self)._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 271, in _Authenticate
     auth_token = self._GetAuthToken(credentials[0], credentials[1])
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 214, in _GetAuthToken
     response = self.opener.open(req)
   File G:\Python25\lib\urllib2.py, line 381, in open
     response = self._open(req, data)
   File G:\Python25\lib\urllib2.py, line 399, in _open
     '_open', req)
   File G:\Python25\lib\urllib2.py, line 360, in _call_chain
     result = func(*args)
   File G:\Python25\lib\urllib2.py, line 1115, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File G:\Python25\lib\urllib2.py, line 1082, in do_open
     raise URLError(err)
  URLError: urlopen error (11004, 'getaddrinfo failed')
  Traceback (most recent call last):
   File G:\Program Files (x86)\Google\google_appengine\appcfg.py,
  line 60, in 
  module
     run_file(__file__, globals())
   File G:\Program Files (x86)\Google\google_appengine\appcfg.py,
  line 57, in r
  un_file
     execfile(script_path, globals_)
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 2303, in module
     main(sys.argv)
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 2294, in main
     result = AppCfgApp(argv).Run()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1458, in Run
     self.action(self)
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 2182, in __call__
     return method()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1730, in Update
     lambda path: open(os.path.join(basepath, path), 'rb'))
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1250, in DoUpload
     missing_files = self.Begin()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1045, in Begin
     version=self.version, payload=self.config.ToYAML())
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 356, in Send
     self._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 391, in _Authenticate
     super(HttpRpcServer, self)._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 271, in _Authenticate
     auth_token = self._GetAuthToken(credentials[0], credentials[1])
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 214, in _GetAuthToken
     response = self.opener.open(req)
   File G:\Python25\lib\urllib2.py, line 381, in open
     response = self._open(req, data)
   File G:\Python25\lib\urllib2.py, line 399, in _open
     '_open', req)
   File G:\Python25\lib\urllib2.py, line 360, in _call_chain
     result = func(*args)
   File G:\Python25\lib\urllib2.py, line 1115, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File 

[google-appengine] Re: PDF Generation

2009-08-24 Thread jek

On Aug 11, 11:03 am, gae123 pa...@gae123.com wrote:
 I have been using ReportLab. Apart from the inability to embed
 pictures I have been pretty happy with it.

Do you mean that you are using only the pure Python part of it?
Is the inability to embed pictures because that feature
requires gcc for support and only pure Python works on GAE?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] GAE statement on security practices?

2009-08-24 Thread jek

One of the key requirements to use GAE for enterprise applications is
to document and test all aspects of security.

Of course, you can encrypt all your data at rest but a lot more is
required to satisfy financial industry participants and regulators.

Often a SAS70 type-2 audit or PCI compliance statement is required.

The AWS people have been working at this for some time and have a
statement about it here:
 
http://developer.amazonwebservices.com/connect/entry!default.jspa?categoryID=152externalID=1697

Some statement like that from Google would be valuable in this
process.

What are the plans at Google to support best-in-class security
practices?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Using Twitter4j in AppEngine

2009-08-24 Thread Jeune

Hi all!

Has anyone of you tried using twitter4j in appengine? I am a bit stuck
and the code examples on their website isn't helping me very much at
all. I  am struggling to find a way  to use it using servlets etc
because the code examples are in a main method.

I delineate my problem more in a post I made here:
http://stackoverflow.com/questions/1318840/right-way-to-use-twitter4j-in-appengine

Any insight would be greatly appreciated!

Thanks!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Can't urlfetch http://www.google.cn

2009-08-24 Thread heroboy

This problem has been many days.

 import urllib
 req = urllib.urlopen('http://www.google.cn')
Traceback (most recent call last):
  File /base/data/home/apps/shell/1.334417654335420704/shell.py,
line 278, in get
exec compiled in statement_module.__dict__
  File string, line 1, in module
  File /base/python_dist/lib/python2.5/urllib.py, line 82, in
urlopen
return opener.open(url)
  File /base/python_dist/lib/python2.5/urllib.py, line 190, in open
return getattr(self, name)(url)
  File /base/python_dist/lib/python2.5/urllib.py, line 328, in
open_http
errcode, errmsg, headers = h.getreply()
  File /base/python_dist/lib/python2.5/httplib.py, line 309, in
getreply
response = self._conn.getresponse()
  File /base/python_dist/lib/python2.5/httplib.py, line 197, in
getresponse
self._allow_truncated, self._follow_redirects)
  File /base/python_lib/versions/1/google/appengine/api/urlfetch.py,
line 241, in fetch
return rpc.get_result()
  File /base/python_lib/versions/1/google/appengine/api/
apiproxy_stub_map.py, line 458, in get_result
return self.__get_result_hook(self)
  File /base/python_lib/versions/1/google/appengine/api/urlfetch.py,
line 331, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 5

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] could clearup the datastore on local env!!!!

2009-08-24 Thread skygra...@gmail.com

hi guys~
i'm building a try-out application on my local pc, i change the entity
structure, but i find no way to totally delete the old entities that
already stored in ds with the old structure. i tried to delete them
from admin console, but shown again after i restart the application.
waiting for your kind reply, thx~

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SMS Verfication Troubles

2009-08-24 Thread martyn-dev

Hi Group.

I'm trynig to create an application on google app engine website but
when I put my mobile phone say that i have en error.I try with Comcel
on Colombia. Thanks for any help.


Regards.


On 25 jul, 17:49, Jonathan Mayhak jmay...@gmail.com wrote:
 I think that I'm having the same problem.

 When I try to create a new application I'm told to enter my cell
 number for verification purposes.  The verification fails because,
 apparently, my number is already in use.

 Could you activate my account as well?

 I'm going to fill out this form as 
 well:http://appengine.google.com/waitlist/sms_issues

 On Jul 23, 6:16 am, Nick Johnson (Google) nick.john...@google.com
 wrote:

  Hi Vinci,

  I've activated your account.

  -Nick

  On Wed, Jul 22, 2009 at 3:12 PM, Vinci Amorim vinci.amo...@gmail.comwrote:

   Hi Nick Johnson,

   I´m having the same problem (Brazil).

   On Wed, Jul 22, 2009 at 9:52 AM, Nick Johnson (Google) 
   nick.john...@google.com wrote:

   Hi Nicolas,

   I've activated your account.

   -Nick Johnson

   On Mon, Jul 20, 2009 at 6:48 AM, Nicolasnlan...@gmail.com wrote:

Hi, I'm having the same problem withmovistarin Argentina, could you
also help me?
Thanks

Nicolas

On Jul 14, 6:51 am, Nick Johnson (Google) nick.john...@google.com
wrote:
Hi Aivar,

I've manually activated your account.

-Nick Johnson

On Sat, Jul 11, 2009 at 8:04 PM, Aivaraivar.anna...@gmail.com wrote:

 Nick, could you please help me too!

 I tried to get verification code to 2 different Estonian carriers
   (EMT
 and Tele2) without success (waited for 2 days).
 I was also unable to report problem athttp://
   appengine.google.com/waitlist/sms_issues
 - from there i got error message There were errors:    * Carrier

 thanks in advance!

 Aivar

--
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
Number: 368047

   --
   Nick Johnson, App Engine Developer Programs Engineer
   Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
   Number: 368047

   --
   Vinci Amorim
  http://vinci.blog.br

  --
  Nick Johnson, App Engine Developer Programs Engineer
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
  368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: deserialize xml

2009-08-24 Thread Anthoni

Hi veearrsix,

Like vp mentioned above, the fastest way to query flickr is to use
their json api,
Below is some code that I use in one of my Google Wave Robots to do
such a thing, hope it helps.
The code was given in the Robots group and is not mine, but it does
work.

[code]
def searchFlickr(query):
results = []
url = 'http://api.flickr.com/services/rest/?
method=flickr.photos.searchapi_key=13b98c74bedac9150a428e87bc782e81format=jsonper_page=5text=
%s' % (urllib.quote(query))
content = urlfetch.fetch(url=url).content
content =content[:-1].replace(jsonFlickrApi(,)
for item in simplejson.loads(content)['photos']['photo']:
results.append('http://farm'+str(item['farm'])
+'.static.flickr.com/'+str(item['server'])+'/'+str(item['id'])+'_'+str
(item['secret'])+'_m.jpg')

return results
[/code]

Note, you will need a simplejson, urlfetch and urllib imports in order
for it to work.

Regards
Anthoni

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] renaming / destroying an appengine ?

2009-08-24 Thread j...@red91.com

hi, i know it's pretty impossible to delete an appengine app once
you've created one, but is there any way to rename it (the application
identifier) ?

also is there any way to change the Authenticiation Options after you
create it ?

Appreciate any pointers on this.


John.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] The AppEngine is not disponible?

2009-08-24 Thread bloggeronweb

I wanted to create an app on Google App Engine, and initially, this
would be called the Logger. Unfortunately, this name is not
disponivel.normal, but now any name I put already failed ...

What are the requirements for the actual name of the App?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] javax.jdo.JDOUserException: Transient instances cant be deleted.

2009-08-24 Thread Yusuf BAYRAKTAR

Hi all,

I am new at Google Technologies. The first sample I have been trying
to develop is Flex Remoting with Google App Engine. While inserting
and listing there is no error, but when I try to delete or update a
database object I am facing with the exception below:

javax.jdo.JDOUserException: Transient instances cant be deleted.

The entity I use in the sample is below:

package com.hymelanos.data.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Product {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Long id;

@Persistent
private String name;

public Product() {

}

public Product(Long id) {
setId(id);
}

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

}


The service implementation's delete method is below:

package com.hymelanos.service.product;

import java.util.List;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import javax.jdo.annotations.Transactional;

import com.hymelanos.data.entity.Product;

public class ProductOperationsImpl implements ProductOperations {

// persistance manager
private static final PersistenceManagerFactory pmfInstance = JDOHelper
.getPersistenceManagerFactory(transactions-optional);
PersistenceManager persistenceManager;

// other methos are here
// -

@Override
@Transactional
public boolean deleteEntity(Long id) {
// get persistance manager
persistenceManager = pmfInstance.getPersistenceManager();
try {
persistenceManager.deletePersistent(new Product(id));
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
}


And the full exception is below:

[BlazeDS]No login command was found for 'Google App Engine Development/
1.2.1'. Please ensure that the login-command tag has the correct
server attribute value, or use 'all' to use the login command
regardless of the server.
The server is running at http://localhost:8080/
javax.jdo.JDOUserException: Transient instances cant be deleted.
at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException
(NucleusJDOHelper.java:427)
at org.datanucleus.jdo.JDOPersistenceManager.jdoDeletePersistent
(JDOPersistenceManager.java:758)
at org.datanucleus.jdo.JDOPersistenceManager.deletePersistent
(JDOPersistenceManager.java:771)
at com.hymelanos.service.product.ProductOperationsImpl.deleteEntity
(ProductOperationsImpl.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at flex.messaging.services.remoting.adapters.JavaAdapter.invoke
(JavaAdapter.java:421)
at flex.messaging.services.RemotingService.serviceMessage
(RemotingService.java:183)
at flex.messaging.MessageBroker.routeMessageToService
(MessageBroker.java:1503)
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage
(AbstractEndpoint.java:884)
at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$
$1a3ef066.invoke(generated)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy
$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java
:150)
at org.springframework.flex.core.MessageInterceptionAdvice.invoke
(MessageInterceptionAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java
:172)
at
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke
(ThrowsAdviceInterceptor.jav
a:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
(ReflectiveMethodInvocation.java
:172)
at org.springframework.aop.framework.Cglib2AopProxy
$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:576)
at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$
$870d5b3d.serviceMessage(generated)
at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke
(MessageBrokerFilter.java:121)
at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:
158)
at flex.messaging.endpoints.amf.SessionFilter.invoke
(SessionFilter.java:44)
at flex.messaging.endpoints.amf.BatchProcessFilter.invoke
(BatchProcessFilter.java:67)
at flex.messaging.endpoints.amf.SerializationFilter.invoke
(SerializationFilter.java:146)
at flex.messaging.endpoints.BaseHTTPEndpoint.service
(BaseHTTPEndpoint.java:278)
at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$
$870d5b3d.service(generated)
at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle

[google-appengine] Re: Error deploying sample app

2009-08-24 Thread Oscar

I have similar problem. It was solved using https_proxy ( secure )

http://bit.ly/ZigHq



On Aug 10, 5:16 pm, Jeff S (Google) j...@google.com wrote:
 Hi Kashif,

 It looks like this might be an issue with DNS or some part of the network.
 Are you behind a proxy?

 Thank you,

 Jeff

 On Thu, Aug 6, 2009 at 9:53 AM, Kashif alam.kas...@gmail.com wrote:

  All, I am running into the following error when running appcfg.py
  update command - any guidance will be appreciated

  G:\GAEg:\Program Files (x86)\Google\google_appengine\appcfg.py
  update helloworld/
  Scanning files on local disk.
  Initiating update.
  Email: x...@gmail.com
  Password for x...@gmail.com:
  2009-08-06 09:48:47,328 ERROR appcfg.py:1272 An unexpected error
  occurred. Abort
  ing.
  Traceback (most recent call last):
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1250, in DoUpload
     missing_files = self.Begin()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1045, in Begin
     version=self.version, payload=self.config.ToYAML())
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 356, in Send
     self._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 391, in _Authenticate
     super(HttpRpcServer, self)._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 271, in _Authenticate
     auth_token = self._GetAuthToken(credentials[0], credentials[1])
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 214, in _GetAuthToken
     response = self.opener.open(req)
   File G:\Python25\lib\urllib2.py, line 381, in open
     response = self._open(req, data)
   File G:\Python25\lib\urllib2.py, line 399, in _open
     '_open', req)
   File G:\Python25\lib\urllib2.py, line 360, in _call_chain
     result = func(*args)
   File G:\Python25\lib\urllib2.py, line 1115, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File G:\Python25\lib\urllib2.py, line 1082, in do_open
     raise URLError(err)
  URLError: urlopen error (11004, 'getaddrinfo failed')
  Traceback (most recent call last):
   File G:\Program Files (x86)\Google\google_appengine\appcfg.py,
  line 60, in 
  module
     run_file(__file__, globals())
   File G:\Program Files (x86)\Google\google_appengine\appcfg.py,
  line 57, in r
  un_file
     execfile(script_path, globals_)
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 2303, in module
     main(sys.argv)
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 2294, in main
     result = AppCfgApp(argv).Run()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1458, in Run
     self.action(self)
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 2182, in __call__
     return method()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1730, in Update
     lambda path: open(os.path.join(basepath, path), 'rb'))
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1250, in DoUpload
     missing_files = self.Begin()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pcfg.py, line 1045, in Begin
     version=self.version, payload=self.config.ToYAML())
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 356, in Send
     self._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 391, in _Authenticate
     super(HttpRpcServer, self)._Authenticate()
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 271, in _Authenticate
     auth_token = self._GetAuthToken(credentials[0], credentials[1])
   File G:\Program Files (x86)\Google\google_appengine\google\appengine
  \tools\ap
  pengine_rpc.py, line 214, in _GetAuthToken
     response = self.opener.open(req)
   File G:\Python25\lib\urllib2.py, line 381, in open
     response = self._open(req, data)
   File G:\Python25\lib\urllib2.py, line 399, in _open
     '_open', req)
   File G:\Python25\lib\urllib2.py, line 360, in _call_chain
     result = func(*args)
   File G:\Python25\lib\urllib2.py, line 1115, in https_open
     return self.do_open(httplib.HTTPSConnection, req)
   File G:\Python25\lib\urllib2.py, line 1082, in do_open
     raise URLError(err)
  urllib2.URLError: urlopen error (11004, 'getaddrinfo failed')

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 

[google-appengine] twitter4j

2009-08-24 Thread Stream

Does anyone have an end-to-end sample of using twitter4j on app an
engine? Any alternative library that allows me to use OAuth with
twitter would also be useful. I am trying to build an application that
uses oauth for twitter on app engine with GWT as the front end... this
is proving harder than i thought it should be.

anyone?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: https support

2009-08-24 Thread Kris Walker

repairman,

I'm building what I hope will be a real business on GAE.  In
particular, my system design is not possible in environments like EC2,
because of the extra configuration and overhead involved in holding a
static IP.  That was a design decision by Amazon.  Not having a static
IP was a design decision by Google, and it offers a different set of
advantages.

If there were only a few different kinds of things on the planet that
we could eat, we would have no chefs.  When creating a great dining
experience for your customers you need a variety of ingredients to put
together that 5 star dish.

My hat is off to the GAE team for carefully considering their design
implications.  I hope they continue to keep their ear to the crowd,
but hold their ground to offer the ingredients we need to make great
products, rather than just anything that everyone else has.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Adult content

2009-08-24 Thread Brandon N. Wirtz
Found it under Program Policies.  I didn't think I could, but you know the
Adult guys always trying to convince you they can do such things.

 

 

 

From: google-appengine@googlegroups.com
[mailto:google-appeng...@googlegroups.com] On Behalf Of Brandon N. Wirtz
Sent: Monday, August 24, 2009 9:59 AM
To: google-appengine@googlegroups.com
Subject: [google-appengine] Adult content

 

I see nothing in the Terms that say Adult content is prohibited.  My
Virtural CDN app has some purchase requests from Adult providers, is it
acceptable to sell to them?

 

-Brandon



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: synthentic keys - performance implications?

2009-08-24 Thread Jeff Enderwick

thanks - I got bit by those __init__ nuances over the weekend. I ended
up passing an optional flag to the __init__ to say this is really a
new() vs a datastore reconstitution. I del the optional flag from
kwargs before calling the super __init__. In the datastore
reconstitution case, I do nothing but call the super __init__.

Does that cover the __init__ gotchas, or am I digging my own grave by
not converting to a distinct create function?

On Mon, Aug 24, 2009 at 3:56 AM, Nick Johnson
(Google)nick.john...@google.com wrote:
 Hi Jeff,

 On Sat, Aug 22, 2009 at 7:24 PM, Jeff Enderwick jeff.enderw...@gmail.com
 wrote:

 Currently, one must put() in order to have obj.key() be valid. In some
 flows, I find my self having to put() object twice for this reason.

 If I make a synthetic key, it appears that I can avoid this:

 class Joker(db.Model):
  unused = db.StringProperty()
  def __init__(self):
    m = hashlib.sha1()
    m.update(str(time.time()))
    name = base64.b64encode(m.digest())
    logging.debug(name=+name)
    db.Model.__init__(self, key_name=name)

 1) GOOG folks - are there any performance downsides to taking this
 approach?

 Not really, no.


 2) If no, are there any other environmental factors that might be
 fodder for the hash (user, etc)?

 I would recommend using uuid.uuid4().hex instead of a straight SHA1 sum.
 UUIDs are guaranteed to be unique.
 I would also recommend defining a class method called something like
 'create' that generates the key name and calls __init__. There are
 subtle-use cases around __init__ and reconstructing entities from the
 datastore, and it's difficult to get right - much more straightforward to
 define a class method to construct new entities.
 -Nick Johnson


 Thanks,
 Jeff





 --
 Nick Johnson, Developer Programs Engineer, App Engine

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Question on increasing performance..

2009-08-24 Thread Devel63

If you only want the 3rd object, do you think it's faster

 -- Just do a normal fetch(3)
 -- Do a keys_only fetch(3), then a get of the 3rd key?

On Aug 23, 4:41 pm, djidjadji djidja...@gmail.com wrote:
 Your query will probably fetch more then 25 Action objects. Fetching
 all those Keys is fast. Fetching all the complete objects is slow, you
 fetch a lot more then you need.

 If you iterate over the GQL query, no fetch, that requests full Action
 objects (SELECT * FROM ACTION...), the objects will be fetched in
 batches of 20. You then only fetch a few more objects then needed.

 Performing XX_multi operations on the memcache will also help reduce
 the response time.

 2009/8/23 bvelasquez bvelasq...@gmail.com:



 http://pastie.org/592489

  If you can help me answer this question, I would appreciate it.

  The above code takes the following ~ time: 1370ms 1725cpu_ms
  670api_cpu_ms.

  Changing the query to return the Actions bumps it up to : 2311ms
  3050cpu_ms 1018api_cpu_ms

  Changing the Action.get() to use the list of Keys from the SELECT
  takes ~ 2000cpu_ms.

  I was surprised that doing an individual get on each key was faster
  than passing the array into get or returning the actions with the
  query.

  What are your suggestions for optimizing this, if anything is
  obviously wrong or maybe there is another way completely for achieving
  the same results, which my limited experience is not telling me.

  A couple notes.  Project is a ReferenceProperty in Action.  I'm
  getting the key and pulling that from memcache if it is available.

  I'm breaking on count = 25 because I only want 25 results where the
  Actions project is active and not deleted.  I cannot limit the fetch
  on 25 because those 25 might be in an inactive Project.

  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Question on increasing performance..

2009-08-24 Thread djidjadji

If it is about response time I think the normal-fetch(3) is faster.
Only one call to the datastore, objects are fetched and converted to
python-objects in parallel.

If you also want to optimize the CPU-ms it depends on the size of the objects.
Writing a test is the only way to know for your type of objects.

2009/8/24 Devel63 danstic...@gmail.com:

 If you only want the 3rd object, do you think it's faster

  -- Just do a normal fetch(3)
  -- Do a keys_only fetch(3), then a get of the 3rd key?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Developer invitation email not sent inside domain

2009-08-24 Thread peter

Hi there,

we need to set up a developer (mainly to use this as a from adress for
outgoing emails on our portal).

But the invitation is never sent when using a domain hosted by google
sites.

Email invitations to external domains work!

Is this a known issue?

The domain we try to set up ist www.plaincode.com, app id is plain-
code

Thanks so much help!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Why am I getting a regular Timeout?

2009-08-24 Thread Nefarious

Hi all,

I have an incredibly simple query that looks like this:

listings = Listing.all().filter(created =, str(now)).order('-
created')[:10]

Currently, it is looking through about 12 records (and returning up to
10), now is a datetime.  This regularly times out!  How can such a
simple query with almost no data to look through timeout regularly
(like 50% of the time)?

I thought maybe it was because I didn't create an index for the
descending situation.  So I added this to index.yaml:

- kind: Listing
  properties:
  - name: created
direction: desc

But, during upload, I am told this:

Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: Listing
ancestor: false
Property {
  name: created
  direction: 2
}

is not necessary, since single-property indices are built in. Please
remove it from your index file and upgrade to the latest version of
the SDK, if you haven't already.

Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why am I getting a regular Timeout?

2009-08-24 Thread 'Αλκης Ευλογημένος
Every operation to the datastore has a chance to timeout. You should retry
datastore operations.

On Mon, Aug 24, 2009 at 11:03 PM, Nefarious mike...@gmail.com wrote:


 Hi all,

 I have an incredibly simple query that looks like this:

 listings = Listing.all().filter(created =, str(now)).order('-
 created')[:10]

 Currently, it is looking through about 12 records (and returning up to
 10), now is a datetime.  This regularly times out!  How can such a
 simple query with almost no data to look through timeout regularly
 (like 50% of the time)?

 I thought maybe it was because I didn't create an index for the
 descending situation.  So I added this to index.yaml:

 - kind: Listing
  properties:
  - name: created
direction: desc

 But, during upload, I am told this:

 Error 400: --- begin server output ---
 Creating a composite index failed: This index:
 entity_type: Listing
 ancestor: false
 Property {
  name: created
  direction: 2
 }

 is not necessary, since single-property indices are built in. Please
 remove it from your index file and upgrade to the latest version of
 the SDK, if you haven't already.

 Any ideas?
 



-- 

Alkis

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: PDF Generation

2009-08-24 Thread johnP

ReportLab works on Appengine, and you can include images. They just
need to be converted to JPG (use the Google image library) before you
embed them into the PDF.  JPG is a native format for PDF files, so
Reportlab does not need to make calls to the PIL module when
generating the file.

johnP



On Aug 22, 9:49 am, jek jim.kleck...@gmail.com wrote:
 On Aug 11, 11:03 am, gae123 pa...@gae123.com wrote:

  I have been using ReportLab. Apart from the inability to embed
  pictures I have been pretty happy with it.

 Do you mean that you are using only the pure Python part of it?
 Is the inability to embed pictures because that feature
 requires gcc for support and only pure Python works on GAE?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine and Dedicated IP

2009-08-24 Thread jack

Hi, Nick

Many thanks for your valuable suggestions

On Aug 24, 4:35 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi yaoye,
 Although it's not possible to bind a static IP to an App Engine app (or to
 route an individual IP address across the internet in general), no search
 engine - including Google - is likley to penalize you for your IP address
 changing. Search engines generally only care about your DNS name and the
 responses they get over HTTP.

 -Nick Johnson

 On Sun, Aug 23, 2009 at 5:16 AM, yaoye yaoye...@gmail.com wrote:

  Hi, guys,

  Would it be possible to bind a dedicated IP to my GAE-based site? I
  have a pr-4 site, and I wanna port it to GAE, but I'm worried about
  losing its ranking in Google for IP changing.

  All suggestions are welcome!

  Thanks a lot.

 --
 Nick Johnson, Developer Programs Engineer, App Engine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] First __key__?

2009-08-24 Thread Devel63

It would make my paging code a lot cleaner if there were a way to
indicate 'the first key'.  Is there?  Like db.Key.from_path
(MyModel.kind(), ) when using key_names?

That way, I could compile my GQL and just keep plugging in a new :key
value each iteration, including the first.

I know, the example cases always look clean with their starting query,
and then the follow-ups, but in real life I sometimes find myself
pretty nested with various logic clauses such that it would be nice to
just be able to do this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Google App Engine and Dedicated IP

2009-08-24 Thread Jeff Enderwick

There is a related feature request, which you can star:
http://code.google.com/p/googleappengine/issues/detail?id=792colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

On Mon, Aug 24, 2009 at 1:13 AM, jackyaoye...@gmail.com wrote:

 Thanks, I'll try to port the site to GAE.

 On Aug 23, 11:05 pm, Barry Hunter barrybhun...@googlemail.com wrote:
 No this is not possible, for many reasons.

 A static IP would lose much of the advantage of AppEngine.

 You could if you want proxy the site though the server with the static
 IP, but seems kinda silly.

 On 23/08/2009, yaoye yaoye...@gmail.com wrote:





   Hi, guys,

   Would it be possible to bind a dedicated IP to my GAE-based site? I
   have a pr-4 site, and I wanna port it to GAE, but I'm worried about
   losing its ranking in Google for IP changing.

   All suggestions are welcome!

   Thanks a lot.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---