[appengine-java] Re: multiple GAE apps under one Google Apps domain

2011-10-19 Thread Eliot Stock
Broc: thank you very much indeed. This is *extremely* helpful. Am now up and 
running.

Cheers,

Eliot.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/6aHC8UR1gMMJ.
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] multiple GAE apps under one Google Apps domain

2011-10-18 Thread Eliot Stock
Hi there,

I'd like to create subdomains for various environments under my domain.com 
as follows:

dev.domain.com would map to the app ID dev-domain-com
test.domain.com - app ID: test-domain-com
prod.domain.com - app ID: prod-domain-com
www.domain.com - app ID: prod-domain-com

Is this possible? When adding the URL dev.domain.com to an existing GAE app, 
the redirect into the Google Apps control panel gives me the following 
error:

Sorry, you've reached a login page for a domain that isn't using Google 
Apps

This is not true: domain.com is definitely a domain using Google Apps. It's 
being confused by dev.domain.com though.

Any ideas?

Cheers,

Eliot.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Ibu4qCTIcMoJ.
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: multiple GAE apps under one Google Apps domain

2011-10-18 Thread Eliot Stock
Thanks, but having multiple domains pointing to one app (eg. prod-domain-com 
in my example) isn't really the important thing. The important thing for me 
is getting all three apps running under one Google Apps domain (domain.com 
in my example) each with its own subdomain.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Dv_D-dc84OYJ.
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: This application does not exist (app_id=u'application-id').

2011-10-06 Thread Eliot Stock
I just had this same error when I was NOT logged in as the user I thought I 
was. Didn't have access to the app as this user. I think the error message 
is wrong: the app exists, I just don't have access to it.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/T8bsQa5yKlEJ.
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] GeoPt vs. two floats

2011-10-04 Thread Eliot Stock
Hi there,

What's the advantage, if any of using GeoPt (
http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types)
 
over using two float fields?

I've found the disadvantage is that Spring form beans are difficult to work 
with when you have two hidden fields on the UI (lat and long) but one GeoPt 
field on the entity.

Cheers,

Eliot

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/c8oRwyDMIIgJ.
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] subclass-table inheritance strategy, new errors on query

2011-08-10 Thread Eliot Stock
Hi there,

I have an object model that uses inheritance, with classes like so:

@Inheritance(strategy=InheritanceStrategy.SUBCLASS_TABLE)
Post {
// Owned one-to-many
@Persistent(mappedBy = post, defaultFetchGroup = true)
private ListResponse responses;
}
OfferedPost extends Post
WantedPost extends Post

and I also have another class

@PersistenceCapable
Response {
// Parent
@Persistent
private Post post;
}

Until today, this wasn't a problem. I could polymorhpically set an
OfferedPost or a WantedPost on my Response without any trouble. As of
today however (and I can't think for the life of me what I've changed
in my object model) I'm getting a new NPE when querying for
OfferedPost  or WantedPost . Has something changed on the servers?
Have you bumped the DataNucleus version?

[s~not-landfill/6.352431011734918192].stdout: 16:38:49,411 WARN
[DataNucleus.Persistence] - Field org.recyc.domain.Response.post
represents either a 1-1 relation, or a N-1 relation where the other
end uses subclass-table inheritance strategy and more than 1
subclasses with a table. This is not fully supported by JPOX

/admin/offered/list
java.lang.NullPointerException
at
org.datanucleus.store.mapped.mapping.CorrespondentColumnsMapper.init(CorrespondentColumnsMapper.java:
260)
at
org.datanucleus.store.mapped.mapping.PersistenceCapableMapping.prepareDatastoreMapping(PersistenceCapableMapping.java:
202)
at
org.datanucleus.store.mapped.mapping.PersistenceCapableMapping.initialize(PersistenceCapableMapping.java:
117)
at
org.datanucleus.store.mapped.mapping.MappingFactory.createMapping(MappingFactory.java:
97)
at
org.datanucleus.store.mapped.mapping.AbstractMappingManager.getMapping(AbstractMappingManager.java:
248)
at
org.datanucleus.store.appengine.DatastoreTable.addFieldMapping(DatastoreTable.java:
494)
at
org.datanucleus.store.appengine.DatastoreTable.initializeNonPK(DatastoreTable.java:
440)
at
org.datanucleus.store.appengine.DatastoreTable.buildMapping(DatastoreTable.java:
377)
at
org.datanucleus.store.appengine.DatastoreManager.buildStoreData(DatastoreManager.java:
509)
at
org.datanucleus.store.appengine.DatastoreManager.newStoreData(DatastoreManager.java:
447)
at
org.datanucleus.store.AbstractStoreManager.addClasses(AbstractStoreManager.java:
788)
at
org.datanucleus.store.AbstractStoreManager.addClass(AbstractStoreManager.java:
759)
at
org.datanucleus.store.mapped.MappedStoreManager.getDatastoreClass(MappedStoreManager.java:
358)
at
org.datanucleus.store.appengine.DatastoreManager.getDatastoreClass(DatastoreManager.java:
747)
at
org.datanucleus.store.appengine.DatastoreTable.initializePK(DatastoreTable.java:
806)
at
org.datanucleus.store.appengine.DatastoreTable.buildMapping(DatastoreTable.java:
376)
at
org.datanucleus.store.appengine.DatastoreManager.buildStoreData(DatastoreManager.java:
509)
at
org.datanucleus.store.appengine.DatastoreManager.newStoreData(DatastoreManager.java:
447)
at
org.datanucleus.store.AbstractStoreManager.addClasses(AbstractStoreManager.java:
788)
at
org.datanucleus.store.AbstractStoreManager.addClass(AbstractStoreManager.java:
759)
at
org.datanucleus.store.mapped.MappedStoreManager.getDatastoreClass(MappedStoreManager.java:
358)
at
org.datanucleus.store.appengine.DatastoreManager.getDatastoreClass(DatastoreManager.java:
747)
at
org.datanucleus.store.appengine.DatastoreTable.initializePK(DatastoreTable.java:
806)
at
org.datanucleus.store.appengine.DatastoreTable.buildMapping(DatastoreTable.java:
376)
at
org.datanucleus.store.appengine.DatastoreManager.buildStoreData(DatastoreManager.java:
509)
at
org.datanucleus.store.appengine.DatastoreManager.newStoreData(DatastoreManager.java:
447)
at
org.datanucleus.store.AbstractStoreManager.addClasses(AbstractStoreManager.java:
788)
at
org.datanucleus.store.AbstractStoreManager.addClass(AbstractStoreManager.java:
759)
at
org.datanucleus.store.mapped.MappedStoreManager.getDatastoreClass(MappedStoreManager.java:
358)
at
org.datanucleus.store.appengine.DatastoreManager.getDatastoreClass(DatastoreManager.java:
747)
at
org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(DatastoreQuery.java:
224)
at
org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQLQuery.java:
92)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:
1371)
at org.datanucleus.store.query.Query.execute(Query.java:1344)
at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221)
at
org.recyc.web.OfferedPostController.list(OfferedPostController.java:
42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

[appengine-java] NPE in InsertMappingConsumer on JDO query

2011-08-10 Thread Eliot Stock
Have been getting this since deploying recently. A redeploy has not fixed 
it. The same code was working just fine until now.

java.lang.NullPointerException
at 
org.datanucleus.store.appengine.InsertMappingConsumer.consumeMapping(InsertMappingConsumer.java:65)
at 
org.datanucleus.store.appengine.DatastoreTable.providePrimaryKeyMappings(DatastoreTable.java:1045)
at 
org.datanucleus.store.appengine.DatastoreFieldManager.buildMappingConsumer(DatastoreFieldManager.java:1180)
at 
org.datanucleus.store.appengine.DatastoreFieldManager.buildMappingConsumer(DatastoreFieldManager.java:1161)
at 
org.datanucleus.store.appengine.DatastoreFieldManager.init(DatastoreFieldManager.java:154)
at 
org.datanucleus.store.appengine.DatastoreFieldManager.init(DatastoreFieldManager.java:184)
at 
org.datanucleus.store.appengine.query.DatastoreQuery$3.fetchFields(DatastoreQuery.java:626)
at 
org.datanucleus.state.JDOStateManagerImpl.loadFieldValues(JDOStateManagerImpl.java:841)
at 
org.datanucleus.state.JDOStateManagerImpl.initialiseForHollowAppId(JDOStateManagerImpl.java:284)
at 
org.datanucleus.state.StateManagerFactory.newStateManagerForHollowPopulatedAppId(StateManagerFactory.java:116)
at 
org.datanucleus.ObjectManagerImpl.findObjectUsingAID(ObjectManagerImpl.java:2117)
at 
org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(DatastoreQuery.java:639)
at 
org.datanucleus.store.appengine.query.DatastoreQuery.entityToPojo(DatastoreQuery.java:603)
at 
org.datanucleus.store.appengine.query.DatastoreQuery.access$300(DatastoreQuery.java:119)
at 
org.datanucleus.store.appengine.query.DatastoreQuery$6.apply(DatastoreQuery.java:783)
at 
org.datanucleus.store.appengine.query.DatastoreQuery$6.apply(DatastoreQuery.java:774)
at 
org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java:94)
at 
org.datanucleus.store.appengine.query.LazyResult.resolveAll(LazyResult.java:116)
at 
org.datanucleus.store.appengine.query.LazyResult.size(LazyResult.java:110)
at 
org.datanucleus.store.appengine.query.StreamingQueryResult.size(StreamingQueryResult.java:130)
at org.recyc.web.BaseController.handlePagination(BaseController.java:27)
at 
org.recyc.web.OfferedPostController.list(OfferedPostController.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:43)
at 
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at 
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
at 
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
 

[appengine-java] request.getRequestURI() returns WEB-INF/views/whatever.jsp

2011-04-25 Thread Eliot Stock
From the example code, I should be able to 
call userService.createLoginURL(request.getRequestURI()) and expect to get a 
destination URL for after login that matches where I am now. If I do this 
from a scriptlet inside a JSP, however, the request URI 
is WEB-INF/views/whatever.jsp, which is NOT the URL of the original http 
request at all - it's an internal path in the filesystem to my JSP. How do I 
get that path from the request?

-- 
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: javamail: adding text attachment to email causes exception

2011-04-21 Thread Eliot Stock
looks like calling setFileName() will fix that, even if you're not attaching 
a file as such.

-- 
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] How do I run my Junit test suite on the server?

2011-03-31 Thread Eliot Stock
Is there a standard way to do this or do I have to write a servlet or 
something? If I have to write something, how am I going to get the log 
output from the tests onto the UI or the logs in the dashboard?

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.