[appengine-java] Re: Geospatial data management with GAE Java

2010-04-10 Thread Alex
Please check on http://code.google.com/p/javageomodel/

On Mar 18, 1:35 am, Rahul Ravikumar  wrote:
> There is a java port of the Geomodel project in java which you can try
> out.
>
> On Mar 17, 1:39 am, fvisticot  wrote:
>
> > I know that Geomodel is a solution for python users to manage
> > geospatial information.
> > What is available for GAE Java users in term of Geospatial data
> > management ?
>
> > What is the best solution ?
> > Is there a native approach provided by GAE Java ?
>
> > In case no solution is available, what are the workarrounds ? Is
> > Google Maps Data Api the solution ?
>
> > Fred.

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



[appengine-java] Re: Is there an equivalent of Python GeoModel project in Java?

2010-04-10 Thread Alex
Hi Christian,

1. your exception looks weird. I'm using the library with this kind of
class:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {

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

@Persistent
private List geocells;
}
... and it works well.

2. the min/max resolution of cells may be changed if you pass a
CostFunction as parameter (it tells the algorithm when searching for
bigger cells: when the cost raises, it stops). Also, since I did the
java portage of python Geomodel library, I'd be interested in the
"false positives" cells you get. Can you give me an example of input
that fails?

3. Your query in the example seems to be wrong, you're declaring
"geocellsP" as a parameter, but it does not exist in the request.

I've recently updated the library (and added the proximity fetch
search). Please post an issue if something does not look ok.

++
Alex

On Mar 1, 8:09 pm, Torquester  wrote:
> I tried out the Java Geomodelhttp://code.google.com/p/javageomodel/
>
> The query used in the example provided on the project page seems
> strange to me. The example uses a List parameter (containing
> the cells of the bounding box) and passes it to a query which filters
> the List (geocells) property of the entity class. When I
> execute that query I get following error: Collection parameters are
> only supported when filtering on primary key.
>
> Is it possible to have a query in appengine where the entity has a
> List property (which is not a primary key) and you want to
> know if that property contains one of the values provided by a second
> List?
>
> I'm also wondering if the resolution of the cells can be changed. The
> results I get are inaccurate (I'm getting some false positives when I
> do a bounding box search).
>
> class GeoObject {
>   @Persistent
>   List geocells;
>   ...
>
> }
>
> // Transform this to a bounding box
> BoundingBox bb = new BoundingBox(latNE, lonNE, latSW, lonSW);
>
> // Calculate the geocells list to be used in the queries (optimize
> list of cells that complete the given bounding box)
> List cells = Geocell.best_bbox_search_cells(bb, null);
> // In Google App Engine, you'll have something like below. In
> hibernate (or whatever else), it might be a little bit different.
> String queryString = "select from GeoObject where
> geocellsParameter.contains(geocells)";
> Query query = pm.newQuery(query);
> query.declareParameters("String geocellsParameter");
> query.declareParameters("String geocellsP");
> List objects = (List) query.execute(cells);
>
> On Feb 8, 11:24 pm, "Ikai L (Google)"  wrote:
>
> > Looks like someone ported the Python code to Java for GeoHash:
>
> >http://stackoverflow.com/questions/2060219/google-app-engine-geohashing
>
> > Also seems like a pretty good explanation of GeoHashing in general.
>
> > On Thu, Feb 4, 2010 at 10:16 AM, mianor  wrote:
> > > Hi,
>
> > > I am trying to implement geolocation search with GAE in Java using
> > > GeoPt.
> > > But due to restrictions on Datastore, bounding box queries are also
> > > not supported in App Engine because there need to be two inequalities
> > > on two independent properties (latitude and longitude).
>
> > > There seems to be a solution with Geohash but every thing I found is
> > > based on GAE Python. Is there anything based on Java or can I use
> > > Geomodel (http://code.google.com/p/geomodel/) from Python in my Java
> > > applications?
>
> > > Thanks for your help!
>
> > > Romain
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App 
> > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine

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



[appengine-java] Re: Is there an equivalent of Python GeoModel project in Java?

2010-04-10 Thread Alex
Hi Christian,

1. your exception looks weird. I'm using the library with this kind of
class:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {

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

@Persistent
private List geocells;
}
... and it works well.

2. the min/max resolution of cells may be changed if you pass a
CostFunction as parameter (it tells the algorithm when searching for
bigger cells: when the cost raises, it stops). Also, since I did the
java portage of python Geomodel library, I'd be interested in the
"false positives" cells you get. Can you give me an example of input
that fails?

3. Your query in the example seems to be wrong, you're declaring
"geocellsP" as a parameter, but it does not exist in the request.

I've recently updated the library (and added the proximity fetch
search). Please post an issue if something does not look ok.

++
Alex

On Mar 1, 8:09 pm, Torquester  wrote:
> I tried out the Java Geomodelhttp://code.google.com/p/javageomodel/
>
> The query used in the example provided on the project page seems
> strange to me. The example uses a List parameter (containing
> the cells of the bounding box) and passes it to a query which filters
> the List (geocells) property of the entity class. When I
> execute that query I get following error: Collection parameters are
> only supported when filtering on primary key.
>
> Is it possible to have a query in appengine where the entity has a
> List property (which is not a primary key) and you want to
> know if that property contains one of the values provided by a second
> List?
>
> I'm also wondering if the resolution of the cells can be changed. The
> results I get are inaccurate (I'm getting some false positives when I
> do a bounding box search).
>
> class GeoObject {
>   @Persistent
>   List geocells;
>   ...
>
> }
>
> // Transform this to a bounding box
> BoundingBox bb = new BoundingBox(latNE, lonNE, latSW, lonSW);
>
> // Calculate the geocells list to be used in the queries (optimize
> list of cells that complete the given bounding box)
> List cells = Geocell.best_bbox_search_cells(bb, null);
> // In Google App Engine, you'll have something like below. In
> hibernate (or whatever else), it might be a little bit different.
> String queryString = "select from GeoObject where
> geocellsParameter.contains(geocells)";
> Query query = pm.newQuery(query);
> query.declareParameters("String geocellsParameter");
> query.declareParameters("String geocellsP");
> List objects = (List) query.execute(cells);
>
> On Feb 8, 11:24 pm, "Ikai L (Google)"  wrote:
>
> > Looks like someone ported the Python code to Java for GeoHash:
>
> >http://stackoverflow.com/questions/2060219/google-app-engine-geohashing
>
> > Also seems like a pretty good explanation of GeoHashing in general.
>
> > On Thu, Feb 4, 2010 at 10:16 AM, mianor  wrote:
> > > Hi,
>
> > > I am trying to implement geolocation search with GAE in Java using
> > > GeoPt.
> > > But due to restrictions on Datastore, bounding box queries are also
> > > not supported in App Engine because there need to be two inequalities
> > > on two independent properties (latitude and longitude).
>
> > > There seems to be a solution with Geohash but every thing I found is
> > > based on GAE Python. Is there anything based on Java or can I use
> > > Geomodel (http://code.google.com/p/geomodel/) from Python in my Java
> > > applications?
>
> > > Thanks for your help!
>
> > > Romain
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App 
> > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine

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



[appengine-java] Re: Java DB in App Engine

2010-04-10 Thread Peter Ondruska
No, JavaDB will not work.

On Apr 10, 4:18 pm, HK  wrote:
> Hi, Can I use Java DB in my App Engine application? If yes will there
> be any performance impacts?

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



[appengine-java] AuthSub token error

2010-04-10 Thread Cloud Teaching
We are developing the app called "cloud based teaching system"

we are using blogger data api, we encountering an error while using
the authsub.This is the list of error.


Error for /CheckServlet
java.lang.NoClassDefFoundError: com/google/common/collect/Maps
at com.google.gdata.wireformats.AltRegistry.(AltRegistry.java:
118)
at com.google.gdata.wireformats.AltRegistry.(AltRegistry.java:
100)
at com.google.gdata.client.Service.(Service.java:546)
at com.google.blogger.CheckServlet.doGet(CheckServlet.java:34)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
243)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5485)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5483)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
536)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:404)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.google.common.collect.Maps
at
com.google.appengine.runtime.Request.process-86966cf2ec85758a(Request.java)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 47 more

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubs

[appengine-java] Java DB in App Engine

2010-04-10 Thread HK
Hi, Can I use Java DB in my App Engine application? If yes will there
be any performance impacts?

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



[appengine-java] Eclipse plugin requires carbon version of SWT?

2010-04-10 Thread datguy
I tried to install the Google plugin for Eclipse 3.5, and got the
following error while trying to resolve dependencies:

   Cannot find a solution satisfying the following requirements
org.eclipse.swt.carbon.macosx [3.4.0.v3448f].

What's the easiest way to resolve this?  Does anyone know if the
plugin will be updated to Cocoa?

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



Re: [appengine-java] Re: Error while Using the Datastore with JDO

2010-04-10 Thread Smitha Kamath
Thanks a lot for your response.I will check that again and if it still
doesn't work I shall post the class.
The fact is that I tried out the Greetings sample in another project and it
worked fine. So I was trying to develop one of my own.

Thanks again for both your responses. I will get back to you at the earlist
with more details.

Thanks & Regards,
Smitha.


On 4/10/10, Ikai L (Google)  wrote:
>
> That's my suspicion as well. Guess we'll have to wait and see.
>
>
> On Fri, Apr 9, 2010 at 2:01 PM, David Sowerby wrote:
>
>> I usually find I get this when the class I am trying to persist
>> doesn't have the @PersistenceCapable annotation, or more often, where
>> one of its ancestors hasn't.
>>
>> On Apr 9, 6:47 pm, "Ikai L (Google)"  wrote:
>> > Can you post the class?
>> >
>> >
>> >
>> >
>> >
>>
>>  > On Fri, Apr 9, 2010 at 5:49 AM, Smitha  wrote:
>> > > I'm trying to create a JDO object, create a table and assign values to
>> > > it.
>> >
>> > > But I'm getting the following error when i try to run it although I
>> > > have enhanced it and I'm using the Google Plugin for eclipse to build
>> > > it.
>> >
>> > > The class "The class "com.store.db.UserDetails" is not persistable.
>> > > This means that it either hasnt been enhanced, or that the enhanced
>> > > version of the file is not in the CLASSPATH (or is hidden by an
>> > > unenhanced version), or the Meta-Data/annotations for the class are
>> > > not found." is not persistable. This means that it either hasnt been
>> > > enhanced, or that the enhanced version of the file is not in the
>> > > CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data
>> > > for the class is not found.
>> > > RequestURI=/signUser
>> >
>> > > Caused by:
>> >
>> > > org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException:
>> > > The class "The class "com.store.db.UserDetails" is not persistable.
>> > > This means that it either hasnt been enhanced, or that the enhanced
>> > > version of the file is not in the CLASSPATH (or is hidden by an
>> > > unenhanced version), or the Meta-Data/annotations for the class are
>> > > not found." is not persistable. This means that it either hasnt been
>> > > enhanced, or that the enhanced version of the file is not in the
>> > > CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data
>> > > for the class is not found.
>> > >at
>> >
>>
>> > >
>> org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(Nuc
>> leusJDOHelper.java:
>> > > 241)
>> > >at
>> >
>> > >
>> org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceM
>> anager.java:
>> > > 674)
>> >
>> > > Please let me know if you need any more details.
>> > > Thanks in advance.
>> > > Smitha.
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "Google App Engine for Java" group.
>> > > To post to this group, send email to
>> > > google-appengine-j...@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>>
>> > > google-appengine-java+unsubscr...@googlegroups.com> unsubscr...@googlegroups.com>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-appengine-java?hl=en.
>> >
>> > --
>> > Ikai Lan
>>
>> > Developer Programs Engineer, Google App Enginehttp://
>> googleappengine.blogspot.com|http://twitter.com/app_engine
>>
>> --
>>  You received this message because you are subscribed to the Google
>> Groups "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>>
>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

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



[appengine-java] Re: DataStore query without transaction - Spring 2.5 + JPA

2010-04-10 Thread objectuser
I've not used Open*InView support in AppEngine (don't like the pattern
myself ;).  However, if all that is to get around the problem of the
transaction limitations like you state just below, then there are a
couple of options:
- Declare the DAO methods as transaction-new; that way they won't
clash
- Declare the DAO methods as transaction-not-supported and use JDO (so
you don't have to have the .size() hack)

Sorry I can't help with the Open*InView thing, but hopefully one of
the above helps.

On Apr 8, 3:25 pm, Nexus  wrote:
> I need to use query that fetches objects from multiple entity groups
> (which means I can't use transactions). Here's the method:
> @Override
>         public Collection findInactiveItems(Date endDate) {
>                 inactiveItems =
> em.createNamedQuery("findInactiveItems").setParameter("endDate",
> endDate).getResultList();
>                 if(null == inactiveItems) inactiveItems = new 
> ArrayList();
>                 inactiveItems.size();
>                 return inactiveItems;
>         }
> However, calling getResultList() causes the following error:
> Caused by: org.datanucleus.exceptions.NucleusUserException: Object
> Manager has been closed
>         at
> org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java:
> 3876)
>         at
> org.datanucleus.ObjectManagerImpl.getTransaction(ObjectManagerImpl.java:
> 596)
>         at
> org.datanucleus.jpa.EntityTransactionImpl.isActive(EntityTransactionImpl.java:
> 61)
>         at org.datanucleus.jpa.JPAQuery.getResultList(JPAQuery.java:158)
>
> I found here on groups the same error posted with suggestions that
> using OpenEntityManagerInViewFilter should keep entity manager
> throughout the request. Unforfunately, I can't get this filter working
> because it tries to create a new entity manager factory while gae
> allows to create only one of those.
> Here is part of my web.xml
> 
>                 context
>                 
>                         org.springframework.web.context.ContextLoaderServlet
>                 
>                 1
>         
>
>         
>                 OpenEntityManagerInViewFilter
>          class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter filter-class>
>         
>                 entityManagerFactory
>                 entityManagerFactory
>         
>         
>
>         
>                 OpenEntityManagerInViewFilter
>                 *.html
>         
>
> And part of applicationContext.xml:
>
>          class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"
> scope="singleton">
>                  value="transactions-optional" /
>
>         
>
>          class="org.springframework.orm.jpa.JpaTransactionManager"
> scope="singleton">
>                  ref="entityManagerFactory" />
>         
>
> And here is the error caused by filter:
> org.springframework.web.servlet.FrameworkServlet initServletBean:
> Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'entityManagerFactory' defined in
> ServletContext resource [/WEB-INF/allewidok-servlet.xml]: Invocation
> of init method failed; nested exception is
> javax.persistence.PersistenceException: Provider error. Provider:
> org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
> (...)
> Caused by: java.lang.IllegalStateException: Application code attempted
> to create a EntityManagerFactory named transactions-optional, but one
> with this name already exists!  Instances of EntityManagerFactory are
> extremely slow to create and it is usually not necessary to create one
> with a given name more than once.  Instead, create a singleton and
> share it throughout your code.  If you really do need to create a
> duplicate EntityManagerFactory (such as for a unittest suite), set the
> appengine.orm.disable.duplicate.emf.exception system property to avoid
> this error.
>         at
> org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.checkForRepeatedAllocation(DatastoreEntityManagerFactory.java:
> 136)
>         at
> org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.(DatastoreEntityManagerFactory.java:
> 64)
>         at
> org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory(DatastorePersistenceProvider.java:
> 35)
>         at javax.persistence.Persistence.createFactory(Persistence.java:172)
>
> So, has anybody actually used OpenEntityManagerInViewFilter on 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-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine fo

[appengine-java] Re: JSF session beans on GAE

2010-04-10 Thread objectuser
I see "JSP session beans are not supported" but nothing similar on
JSF.  I've not had many problems with JSF 2.0 ... seems to work fine
with the setup mentioned on that page.

On Apr 9, 10:41 am, Uldall  wrote:
> The "Will it play in App Engine" page states that JSF session beans
> doesn't work on GAE. Can anyone explain to me why that is?

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



Re: [appengine-java] Persisting data with both Java and Python frameworks

2010-04-10 Thread John Patterson


On 10 Apr 2010, at 05:32, Houston startup coder wrote:


If I have multiple app versions so that I can essentially run
different applications around the same datastore, will I typically run
into issues with the data if one of them is Java and another is
Python?  I'm looking at using something like Twig or Slim3 on the Java
side, and I'm curious as to whether there might be hard-to-foresee
problems with reading and modifying that data through something like
tipfy on the Python side.



At the datastore level all the various interfaces must store Entities  
and properties which means there should be some degree of  
interoperability.


Twig can be configured to read Entity and property names in any format  
you want by implementing the FieldStrategy interface:


http://code.google.com/p/twig-persist/source/browse/src/main/java/com/vercer/engine/persist/strategy/FieldStrategy.java

and passing it into the constructor of StrategyObjectDatastore.

So at least from the Twig side you will be able to read and write data  
in a format that can be read by Python frameworks... although I cannot  
say what that format would be.


John

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