[appengine-java] Re: app upload issue

2010-07-01 Thread Szymon Malok
Change your app version and upload then.



On 1 Lip, 04:47, Vik vik@gmail.com wrote:
 Hie

 Can someone help me on how to resolve it? I understand what the error means
 but dont know where to go to fix it

 Initiating update.
 java.io.IOException: Error posting to 
 URL:https://appengine.google.com/api/appversion/create?app_id=sakshumweb2...
 409 Conflict
 Another transaction by user vik.ceo is already in progress for this app and
 major version. That user can undo the transaction with appcfg.py's
 rollback command.

 Thankx and Regards

 Vik
 Founderwww.sakshum.comwww.sakshum.blogspot.com

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



[appengine-java] Re: String limit in JDO

2010-07-01 Thread Ian Marshall
You might want to try the persistent class

  com.google.appengine.api.datastore.Text

as mentioned in

  
http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types

as this class has no specific character length limit. Of course, use
of this must still satisfy the overall datastore quotas and limits. I
use Text objects to persist string data longer than 250 or 500
characters long.

Enjoy,

Ian


On Jul 1, 4:36 am, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 why don't you use blobs 
 ?http://code.google.com/appengine/docs/java/blobstore/overview.html

 didier

 On Jun 30, 6:59 pm, Developer cyber.antagon...@gmail.com wrote:

  Hi!

  I'm developing blog engine using JSP, servletts and JDO (thru GAE).
  And I've got a problem.

  For blog-posts I've developed persistance class Posts with some fields
  and with main String-field text for content of post. The problem is
  the max lenght of this field: I can't add blog-posts larger then max
  size of String. And of cource I cant add them then in datastore.

  Does anybody have any ideas how to fix it? Because if I don't solve
  this problem, I would get kind of micro-blog (like Twitter). And I
  want a normal blog enstead :)

  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-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: SDK 1.3.5 released!

2010-07-01 Thread Nacho Coloma
The datastore now supports both end cursors.

I have checked out the documentation and cannot find what this is
about. Anyone?

On Jul 1, 1:10 am, Ikai Lan i...@google.com wrote:
 Hey everybody,

 We've released the 1.3.5 SDK. Blog post here:

 http://googleappengine.blogspot.com/2010/06/app-engine-sdk-135-releas...

 The big announcements are the raising of the Task Queue rate, Python
 precompilation, and new Blob features. You can get it from the downloads
 page:

 http://code.google.com/appengine/downloads.html

 Release notes are below:

 Java
 ---
 - Ability to configure the Task Queue storage limit with the
 total-storage-limit field in the queue.xml file.
 - Task Queues now support up to 50 qps per queue, up from 50 qps per app.
 - Developers can programmatically access Blobs with BlobstoreInputStream,
 which provides an InputStream view of a blob in Blobstore.
 - Bulkloader transform helpers for lists and hierarchical keys were added.
 - remote_api_shell commands can be sent over HTTPS or HTTP.
 - Admin Console logs now include information on request time latency.
 - The datastore now supports both end cursors.
 - Fixed an issue where requesting /appstats would not properly direct to
 /appstats/.
 - Fixed an issue with inconsistent URL mappings between the SDK and
 production.
 -http://code.google.com/p/googleappengine/issues/detail?id=2598

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

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



[appengine-java] Re: Ctrl+C doesnt stop development server

2010-07-01 Thread shekhar
I am using ANT scripts to start the server.
How to check the development server version? Is there any command for
it?



On Jun 14, 10:04 pm, Ikai L (Google) ika...@google.com wrote:
 What's the version of Windows you're running? Are you using ant or the
 Eclipse plugin?





 On Fri, Jun 11, 2010 at 12:43 PM, bchoii bch...@gmail.com wrote:
  Hi, Im encountering the same issue.

  JRE 1.6.0_20
  GAE 1.3.4

  On Jun 11, 3:08 am, Ikai L (Google) ika...@google.com wrote:
   We're seeing reports of this for folks using Windows. What version of
   Windows are you using? Are you using a JRE or JDK, and what versions or
   releases are you using? What version of GAE?

   On Wed, Jun 9, 2010 at 11:06 PM, shekhar shekhar.kote...@gmail.com
  wrote:
Hi,

Anyone knows how to stop development server? I am starting it on
command prompt using ANT script but when I try to stop server using
Ctrl+C, server doesnt stop. I can see development server process
running by using Windwos Task Manager and I have to kill that process
in order to stop server. I want to avoid killing process.

Please enlighten 

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

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

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

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

 - Show quoted text -

-- 
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] Regarding GQL

2010-07-01 Thread MANISH DHIMAN
Hi Google Guys
I have following queries regarding G Q L and Data Store.
 + Is it possible in G A E  to use parametrised query. If not is there
any plan for such support in near future.
 + How to use G Q L in a Java class.

-- 
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: Any ETA for a backup/restore facility?

2010-07-01 Thread xcdesz
Ikai,

I have read your post on using this bulkloader for java:

http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/

However, without a Python background, this stuff is Latin to me..  Any
plans on making a java-friendly version of this Bulk Loader?

I am one of the hundreds who starred issue 776 in the backlog, and
don't consider the current python-based bulkloader tool an adequate
solution to this problem.

On Jun 30, 8:14 pm, Ikai L (Google) ika...@google.com wrote:
 That was referring to the bulkloader, which lets you do those things. App
 Engine's datastore isn't a relational database. We can't do a dump of all
 your data without iterating through all of your indexes, then retrieving
 your Entities.





 On Wed, Jun 30, 2010 at 4:02 PM, mscwd01 mscw...@gmail.com wrote:
  Thanks for replying Ikai. I assumed the Datastore dump and restore
  facility on the roadmap was referring to an import/export tool - a
  way for us to download the contents of the datastore for safekeeping
  and restoring it if needs be?
  Is this something different?

  Lastly, I would consider an import/export tool to be extremely useful
  if not critical to most applications, surely there has been some plans
  to offer one?

  On Jun 30, 7:57 pm, Ikai L (Google) ika...@google.com wrote:
   A web-based import/export tool is and was not ever on our roadmap:

  http://code.google.com/appengine/docs/roadmap.html

   The roadmap is not an all-inclusive list of features we plan to build,
  but
   rather, a list of features we have high confidence will ship in the
  upcoming
   6 month timeframe.

   You are absolutely welcome to build an open source web based
  import/export
   tool for App Engine. Once you have done this, submit a request and we
  will
   add it to the Open Source projects page:

  http://groups.google.com/group/google-appengine/web/google-app-engine...

   On Wed, Jun 30, 2010 at 8:51 AM, mscwd01 mscw...@gmail.com wrote:
Can I attempt to get the attention of a Google employee to ask When
can we expect an in-built web based import/export tool for the GAE?

Thanks :P

On Jun 30, 11:04 am, François Masurel fm2...@mably.com wrote:
 I dont think the bulkloader is really convenient for doing daily
 datastore backups of several gigabytes, and I'm not talking about
 exploding quotas.

 I would rather prefer some kind of snapshot mechanism on datastore
 side.

 François

 On 29 juin, 20:40, Matthew Blain matthew.bl...@google.com wrote:

  The bulk loader does indeed provide backup and restore
  functionality
  today. While the implementation is in Python it can talk to your
  Java
  server and the entities are shared between Java and Python.

  On Jun 28, 4:46 pm, mscwd01 mscw...@gmail.com wrote:

   Thanks for your replying guys, it would be great if we could get
  an
   official Google response to update us on this as well though!

   I'll definitely have a look at the Bulk Loader in the meantime...

   On Jun 28, 1:52 pm, Mike Dillon mikedillo...@gmail.com wrote:

Mscwd01,

I'm not a google employee, but I have had success backing up
  our
datastore and then restoring our datastore with
the bulkloader utility. Currently the bulkloader is in the
  python
sdk,
so all you need to do is download that and then
youll be able to do backups and restore from those backups.
   Check
out
the literature on the app engine, and try
a couple searches to get your bearings.  Nick Johnson has
  commented
or
written every search result that comes
back when I was researching this a couple of weeks back, and
  there
is
also an  I/O video on the bulkloader.

Make sure you read some of the fine print, i.e. one caveat is
  that
you
must have had your datastore populated for
at least 12 hours which is the amount of time it takes for the
statistics info to be built. That what the bulkloader
works off of to do its datastore dump.

- Mike

On Jun 28, 7:16 am, mscwd01 mscw...@gmail.com wrote:

 Hey Google Employees,

 There has been a backup/restore facility on the roadmap for a
while
 now. Can you let us know if and when we may get an in-built
  tool
that
 will allow us to easily save the contents of the datastore to
  our
 local machines and restore it if needs be?

 In the meantime, what is the preferred solution to
  backup/restore
our
 Java based apps?

 Thanks

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

[appengine-java] Type 'java.lang.Long' was not included in the set of types which can be serialized by this SerializationPolicy

2010-07-01 Thread Vik
Hie

Any idea why i m getting this exception after including Long type in my
class?

Vik

SEVERE: [1277994943477000] javax.servlet.ServletContext log: Exception while
dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:760)
 at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:723)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:612)
 at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
 at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
 at
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564)
 at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
 at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
 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
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
 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.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
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.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
 at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.reflect.InvocationTargetException
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
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:742)
 ... 38 more
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'java.lang.Long' was not included in the set of types which can be
serialized by this SerializationPolicy or its Class object could not be
loaded. For security purposes, this type will not be serialized.: instance =
26
 at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:610)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
 at

[appengine-java] not able to update to latest version of sdk

2010-07-01 Thread Vik
Hie

Whenever i click on update in the manage site on google site link

I get Unexpected error encountered while preparing for the operation.
java.lang.NullPointerException


no other message is provided to help me understand whats wrong. any advise
please

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

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



[appengine-java] Re: Any ETA for a backup/restore facility?

2010-07-01 Thread mscwd01
I second this.

On Jul 1, 2:17 pm, xcdesz xcd...@gmail.com wrote:
 Ikai,

 I have read your post on using this bulkloader for java:

 http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...

 However, without a Python background, this stuff is Latin to me..  Any
 plans on making a java-friendly version of this Bulk Loader?

 I am one of the hundreds who starred issue 776 in the backlog, and
 don't consider the current python-based bulkloader tool an adequate
 solution to this problem.

 On Jun 30, 8:14 pm, Ikai L (Google) ika...@google.com wrote:



  That was referring to the bulkloader, which lets you do those things. App
  Engine's datastore isn't a relational database. We can't do a dump of all
  your data without iterating through all of your indexes, then retrieving
  your Entities.

  On Wed, Jun 30, 2010 at 4:02 PM, mscwd01 mscw...@gmail.com wrote:
   Thanks for replying Ikai. I assumed the Datastore dump and restore
   facility on the roadmap was referring to an import/export tool - a
   way for us to download the contents of the datastore for safekeeping
   and restoring it if needs be?
   Is this something different?

   Lastly, I would consider an import/export tool to be extremely useful
   if not critical to most applications, surely there has been some plans
   to offer one?

   On Jun 30, 7:57 pm, Ikai L (Google) ika...@google.com wrote:
A web-based import/export tool is and was not ever on our roadmap:

   http://code.google.com/appengine/docs/roadmap.html

The roadmap is not an all-inclusive list of features we plan to build,
   but
rather, a list of features we have high confidence will ship in the
   upcoming
6 month timeframe.

You are absolutely welcome to build an open source web based
   import/export
tool for App Engine. Once you have done this, submit a request and we
   will
add it to the Open Source projects page:

   http://groups.google.com/group/google-appengine/web/google-app-engine...

On Wed, Jun 30, 2010 at 8:51 AM, mscwd01 mscw...@gmail.com wrote:
 Can I attempt to get the attention of a Google employee to ask When
 can we expect an in-built web based import/export tool for the GAE?

 Thanks :P

 On Jun 30, 11:04 am, François Masurel fm2...@mably.com wrote:
  I dont think the bulkloader is really convenient for doing daily
  datastore backups of several gigabytes, and I'm not talking about
  exploding quotas.

  I would rather prefer some kind of snapshot mechanism on datastore
  side.

  François

  On 29 juin, 20:40, Matthew Blain matthew.bl...@google.com wrote:

   The bulk loader does indeed provide backup and restore
   functionality
   today. While the implementation is in Python it can talk to your
   Java
   server and the entities are shared between Java and Python.

   On Jun 28, 4:46 pm, mscwd01 mscw...@gmail.com wrote:

Thanks for your replying guys, it would be great if we could get
   an
official Google response to update us on this as well though!

I'll definitely have a look at the Bulk Loader in the 
meantime...

On Jun 28, 1:52 pm, Mike Dillon mikedillo...@gmail.com wrote:

 Mscwd01,

 I'm not a google employee, but I have had success backing up
   our
 datastore and then restoring our datastore with
 the bulkloader utility. Currently the bulkloader is in the
   python
 sdk,
 so all you need to do is download that and then
 youll be able to do backups and restore from those backups.
    Check
 out
 the literature on the app engine, and try
 a couple searches to get your bearings.  Nick Johnson has
   commented
 or
 written every search result that comes
 back when I was researching this a couple of weeks back, and
   there
 is
 also an  I/O video on the bulkloader.

 Make sure you read some of the fine print, i.e. one caveat is
   that
 you
 must have had your datastore populated for
 at least 12 hours which is the amount of time it takes for the
 statistics info to be built. That what the bulkloader
 works off of to do its datastore dump.

 - Mike

 On Jun 28, 7:16 am, mscwd01 mscw...@gmail.com wrote:

  Hey Google Employees,

  There has been a backup/restore facility on the roadmap for 
  a
 while
  now. Can you let us know if and when we may get an in-built
   tool
 that
  will allow us to easily save the contents of the datastore 
  to
   our
  local machines and restore it if needs be?

  In the meantime, what is the preferred solution to
   backup/restore
 our
  Java based apps?

  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 

[appengine-java] Re: CloudCover: Cannot schedule instance of TestClass because of not an available class

2010-07-01 Thread luijar
Not sure what the problem is, all my queries are failing with this
message:

Illegal argument
javax.jdo.JDOFatalUserException: Illegal argument at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:
344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:252) at

Environment: SDK 1.3.4
JUnit = 4

Is there a code sample we can use as reference?, with all of the
required JAR files?. I haven't been able to run a single test that
requires accessing datastore.



On Jun 30, 5:58 pm, luijar luis.j.aten...@gmail.com wrote:
 I am seeing this however,

 Executing a simple query:

 Illegal argument
 javax.jdo.JDOFatalUserException: Illegal argument at
 org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:
 344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:252) at

 This query works when the actual application is running, and it works
 in the Local testing Helper, but not with the
 CloudCoverLocalServiceTestHelper. Is there a specific version of App
 Engine I should be using? I am using 1.3.2.

 On Jun 12, 11:57 pm, Max Ross (Google) maxr+appeng...@google.com
 wrote:

  This most likely means that your tests aren't available as part of your
  application.  Are you certain you uploaded them?

  On Fri, Jun 11, 2010 at 11:31 PM, Art art...@gmail.com wrote:
   Dear group,

   I would like to know how to make CloudCover (http://code.google.com/p/
   cloudcover/) work.

   At cloudcover.html, even I clicked on the Start New Run button, the
   (default) test won't be executed.
   The cloudcover.html showed like:
   Run 1001: NOT_STARTED, Completed 0/0 (0%)
   Passed: 0 Too Slow: 0 Failed: 0 In Progress: 0 Not Started: 0
   com.google.appengine.testing.cloudcover.harness.junit3.JUnit3TestHarness
   (0)

   I found the following logs in the GAE/J logs:
   W 06-11 10:45PM 49.387
   com.google.appengine.testing.cloudcover.harness.junitx.JUnitTestRun
   getTestIds: 1001: Cannot schedule instance of class
   com.appspot.waversbeach.server.MemcacheTest for execution because its
   String represenation,
   testInsert1(com.appspot.waversbeach.server.MemcacheTest), is not an
   available class.

   W 06-11 10:45PM 49.395
   com.google.appengine.testing.cloudcover.harness.junitx.JUnitTestRun
   getTestIds: 1001: Cannot schedule instance of class
   com.appspot.waversbeach.server.MemcacheTest for execution because its
   String represenation,
   testInsert2(com.appspot.waversbeach.server.MemcacheTest), is not an
   available class.

   MemcacheTest class is a really simple test class just for the trial
   purpose with CloudCover:
   public class MemcacheTest extends TestCase {
          public MemcacheTest( String name) {
                  super( name);
          }

          protected static Cache cache = null;

         �...@override
          protected void setUp() throws Exception {
                  if ( cache == null) {
                          CacheFactory cacheFactory =
   CacheManager.getInstance().getCacheFactory();
                          cache = cacheFactory.createCache(
   Collections.emptyMap());
                  }
          }

         �...@override
          protected void tearDown() throws Exception {
                  cache.clear();
          }

          private void doTest() {
                  assertFalse( cache.containsKey( yar));
                  cache.put( yar, foo);
                  assertTrue( cache.containsKey( yar));
          }

          public void testInsert1() {
                  doTest();
          }

          public void testInsert2() {
                  doTest();
          }

   }

   My JUnit3Config class is like:
   public class CloudCoverRunnerConfig extends JUnit3Config {

         �...@override
          public TestRun newTestRun( String arg0) {
                  TestSuite suite = new TestSuite();
                  suite.addTest( new MemcacheTest( testInsert1));
                  suite.addTest( new MemcacheTest( testInsert2));
                  return new JUnit3TestRun( suite);
          }
   }

   I'm thinking of giving the CloudCover a shot for Wave robot testing if
   it's possible, since I have read in one of Wave docs that there is no
   existing mechanism currently to test Wave robot on local machine.

   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-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

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

[appengine-java] AppEngine SDK 1.3.5 ECLIPSE UPGRADE PROBLEM

2010-07-01 Thread Andreas
hi, i have just upgraded in eclipse the appengine sdk 1.3.4-1.3.5 .
however there are some problems that occured, although my application
was functioning good before the update. The web server returns a HTTP
Error 500 internal server error.the console outputs the following :

INFO: The server is running at http://localhost:/
Jul 1, 2010 4:40:26 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Error for /insert
java.lang.ExceptionInInitializerError
at core.insertModule.doGet(insertModule.java:65)
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.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
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
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
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.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
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.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception
caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException
at
javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
1186)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
803)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
1086)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
914)
at util.PMF.clinit(PMF.java:8)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
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
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at javax.jdo.JDOHelper$16.run(JDOHelper.java:1956)
at java.security.AccessController.doPrivileged(Native Method)
at javax.jdo.JDOHelper.invoke(JDOHelper.java:1951)
at
javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
1159)
... 32 more
Caused by: org.datanucleus.exceptions.NucleusException: Plugin
(Bundle) org.datanucleus.store.appengine is already registered.
Ensure you dont have multiple JAR versions of the same plugin in the
classpath. The URL file:/home/petrucci/Hbasewrk/Helium/war/WEB-INF/
lib/datanucleus-appengine-1.0.3.jar is already registered, and you
are trying to register an identical plugin located at URL file:/home/
petrucci/Hbasewrk/Helium/war/WEB-INF/lib/datanucleus-
appengine-1.0.7.final.jar.
at
org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:
434)
at
org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:
340)

[appengine-java] Random silent failures of pm.store()

2010-07-01 Thread John
I have a piece of code which only creates an entity and stores it with

public void makeEntity() {
UserPhoto  photo = new UserPhoto(...);
this.pm.makePersistent(photo);
this.pm.close();
assert photo.key != null; // - fails from time to time


From time to time, the code above will fail. Maybe once every 10 times
(with the same parameters).
I am assuming that the store() call at the datastore level is failing
for whatever reason, but it is a silent fail as the code does not
throw any exception. When this happens I can confirm looking at the
datastore viewer that the entity was not persisted.
The size does not seem to matter (fails on 5kb as well as 200 kb).
I have logs of the app where back to back requests will fail first and
succeeds next, with the exact same payload.

It would be great if the App Engine team can point to an open bug
which remotely explains this behavior.
(the problem was present with 1.3.4 already)


The entity model is :

@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable = true)
public class UserPhoto {

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

@Persistent
Blob photo;

@Persistent
Blob thumbPhoto;

@Persistent
private Key user;

@Persistent
private int size;

@Persistent
private String filename;

@Persistent
private Date date;

@Persistent
private Boolean canDelete;

-- 
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 Helios 3.6 - plugin appenginge

2010-07-01 Thread Daniela
Hi,

just wondering if there's going to be an upgrade to the plugin for
Eclipse soon, since the new version of Eclipse was released (Eclipse
Helios).

Until now the Google Plugin can be installed in Eclipse Europa,
Ganymede and Galileo 3.5, but not Helios 3.6.

Thank you,

Daniela

-- 
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] How do you make a field unique with JDO DataNucleus

2010-07-01 Thread nevzat
I am trying to make one of my field unique, but cannot do it. I used
annotations which did not work. Then I try to do it in jdo xsd file
and that did not work either. Can you please help me out?

here is an example:
public class AccountInfo {

@Persistent
private String userName;

}

I want to make userName unique.

Thanks in advance for your time.

-- 
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] Unit Testing Maven Based JPA Application on GAE

2010-07-01 Thread vhazrati
I had some trouble setting up the unit testing framework for testing
my DAOs. Hope this might help others

http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-application-on-gae/

Regards | Vikas
www.inphina.com
thoughts.inphina.com

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



[appengine-java] Entity class is not enhanced!!

2010-07-01 Thread Marthen
Hi guys,

I have an simple application running on top of Spring using JPA for
Google AppEngine (GAE).

There's no compilation error, but when i load my application using
Google AppEngine Development Server, i got runtime error saying that
my Entity class is not enhanced!!
Which kinda confusing me actually, because i deployed to another
container (tomcat) and this Entity classes is running smoothly (of
course i need to modify the persistence.xml accordingly)

Here is my persistence.xml :

?xml version=1.0 encoding=UTF-8?
persistence xmlns=http://java.sun.com/xml/ns/persistence;
version=1.0
persistence-unit name=myDB
providerorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider/
provider
properties
property name=datanucleus.NontransactionalRead value=true/
property name=datanucleus.NontransactionalWrite value=true/
property name=datanucleus.ConnectionURL value=appengine/
/properties
/persistence-unit
/persistence



My Entity class :

@Entity
@Table(name = audit_trail)
public class AuditTrail implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private Integer id;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = id, nullable = false)
public Integer getId() {
return id;
}

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

private String message;

@Column(name = message)
public String getMessage() {
return message;
}

public void setMessage(String msg) {
this.message = msg;
}
}



And this is the error code:

10-07-01 11:18:22 ERROR [] [main] MetaData - Found Meta-Data for class
com.somecompany.demo.model.AuditTrail but this class is not enhanced!!
Please enhance the class before running DataNucleus.
org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for
class com.somecompany.demo.model.AuditTrail but this class is not
enhanced!! Please enhance the class before running DataNucleus.
at
org.datanucleus.metadata.MetaDataManager.initialiseClassMetaData(MetaDataManager.java:
2225)
at
org.datanucleus.metadata.MetaDataManager.initialiseFileMetaData(MetaDataManager.java:
2176)
at
org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaDataManager.java:
881)
at
org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
794)
at
org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF(EntityManagerFactoryImpl.java:
488)
at
org.datanucleus.jpa.EntityManagerFactoryImpl.init(EntityManagerFactoryImpl.java:
355)
at
org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.init(DatastoreEntityManagerFactory.java:
63)
at
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory(Datastor
ePersistenceProvider.java:35)
at javax.persistence.Persistence.createFactory(Persistence.java:172)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
112)
at
org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalEnti
tyManagerFactoryBean.java:91)
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManage
rFactoryBean.java:291)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Abstr
actAutowireCapableBeanFactory.java:1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstract
AutowireCapableBeanFactory.java:1335)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAu
towireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAuto
wireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleton
BeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
261
)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
164)
at
org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryU
tils.java:99)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFac
tory(PersistenceAnnotationBeanPostProcessor.java:488)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(
PersistenceAnnotationBeanPostProcessor.java:470)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor

[appengine-java] Volunteers needed for magazine project

2010-07-01 Thread nosarious
Good morning, all.

I am working on a magazine project that will hopefully use Google App
Engine as the main way information is stored and retrieved. The goal
is to be the Flickr of digital publishing.

I have spent the past month trying to figure out the way to do this
with Python, and haven't gotten as far as I would like. Due to the
nature of this project (It's not intended to make me millions of
dollars) and the altruistic goal (enabling anyone to publish content
to e-devices like the iphone/ipad/mobile touch market/tablet computers/
multitouch surfaces, etc) without users being cobbled by a huge
barrier to entry, I've decided to stop hoarding the idea and ask for
volunteer programmers.

I understand WHAT is needed to accomplish this, but I don't understand
the HOW. I am more interested in publishing myself, but nothing exists
in the format I envision.

The engine can be run on java or python at this moment. It's a matter
of which community responds first.

If you would like more information, or to yell at me for assuming this
part would be easy, you can reach me at:

gerry.straathof AT acad.ca

I have a general flow chart of how things should progress, but some
parts are still labelled a miracle occurs...

-- 
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] Eclipse Helios 3.6 - plugin appenginge

2010-07-01 Thread Wilson MacGyver
it's available now

http://code.google.com/eclipse/docs/getting_started.html

On Wed, Jun 30, 2010 at 8:21 PM, Daniela daniela.fernan...@gmail.com wrote:
 Hi,

 just wondering if there's going to be an upgrade to the plugin for
 Eclipse soon, since the new version of Eclipse was released (Eclipse
 Helios).

 Until now the Google Plugin can be installed in Eclipse Europa,
 Ganymede and Galileo 3.5, but not Helios 3.6.

 Thank you,

 Daniela

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





-- 
Omnem crede diem tibi diluxisse supremum.

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



[appengine-java] JDO Detached ListKey or SetKey Issues

2010-07-01 Thread James
I'm seeing some odd behavior now that I've switched to properly
detached objects (previously I was calling detachCopy but didn't have
my classes marked w/ the detachable annotation).

Given an entity that contains a ListKey, I can save a new entity w/
one key in the list.  However if I remove that item from the list,
persist, and retrieve again, the removed item is still there.

I can work around this by replacing my List w/ an entirely new List
object that is empty.  Then it persists correctly.

Oddly, I do NOT need to create a new List object, and things work okay
if:
- I'm adding to the list or
- I'm removing from the list but leaving one item in it

There are a number of GAE and Datanucleus issues logged, but none of
them directly hit on this, so I thought I'd post it and see if I'm
going crazy...

-- 
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: Disable Single Property Indexes

2010-07-01 Thread James
Finally found the answer to my own question (assuming the post from
11/2009 is still valid):

http://gae-java-persistence.blogspot.com/2009/11/unindexed-properties.html


On Jun 30, 2:36 pm, James jamesk...@gmail.com wrote:
 (Clarification - I'm ok w/ disabling both composite and single-prop
 indexes, just wondering how)

 On Jun 30, 10:40 am, James jamesk...@gmail.com wrote:



  Thanks Nick, that's good to know.

  Is there a way to disable (single property + composite) indexes:
  1 - Using JDO
  2 - By applying this to existing data (versus some sort of delete/
  recreate an entire Kind approach)

  James

  On Jun 30, 10:23 am, Nick Johnson (Google) nick.john...@google.com
  wrote:

   Hi James,

   It's not possible to disable just the single property indexing. If you
   exclude a property from being indexed, it won't be included in these
   indexes, but it won't be included in any composite indexes, either.

   -Nick Johnson

   On Wed, Jun 30, 2010 at 3:04 PM, James jamesk...@gmail.com wrote:
Is there a way to disable the automatic single-propery indexes using
JDO?  Can they be disabled on data that already exists, or would I
need to create an entirely new Kind?

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

   --
   Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. 
   ::
   Registered in Dublin, Ireland, Registration Number: 368047
   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 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: JDO Detached ListKey or SetKey Issues

2010-07-01 Thread James
There's JDO documentation on Arrays which describes somewhat similar
behavior - 
http://www.datanucleus.org/products/accessplatform/jdo/orm/arrays.html:

-- Quote --
JDO has no simple way of detecting changes to an arrays contents. To
update an array you must either
replace the array field with the new array value
update the array element and then call JDOHelper.makeDirty(obj,
fieldName);
---

Using JDOHelper does resolve my issue.  However this doesn't fully
explain why:
- This happens w/ List and HashSet, which I'd expect to be smarter
since JDO backing subclasses are available
- Some cases (adds, remove-leaving-one) work fine w/o using either of
the two recommended work-arounds

I should note that I'm also using detachOnClose.




On Jul 1, 1:37 pm, James jamesk...@gmail.com wrote:
 I'm seeing some odd behavior now that I've switched to properly
 detached objects (previously I was calling detachCopy but didn't have
 my classes marked w/ the detachable annotation).

 Given an entity that contains a ListKey, I can save a new entity w/
 one key in the list.  However if I remove that item from the list,
 persist, and retrieve again, the removed item is still there.

 I can work around this by replacing my List w/ an entirely new List
 object that is empty.  Then it persists correctly.

 Oddly, I do NOT need to create a new List object, and things work okay
 if:
 - I'm adding to the list or
 - I'm removing from the list but leaving one item in it

 There are a number of GAE and Datanucleus issues logged, but none of
 them directly hit on this, so I thought I'd post it and see if I'm
 going crazy...

-- 
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: Any ETA for a backup/restore facility?

2010-07-01 Thread mscwd01
Before I go off to learn Python in order to backup the contents of my
datastore, can I be certain the bulkloader will work with my Java app?
I am not concerned with reusing the contents of the live datastore
in a local environment, only that I can download a backup of the
datastore and perform a complete restore if a worst case scenario
occurred and the datastore became corrupted/unusable.

Ultimately, I'm not sure if I am missing something glaringly obvious
but isn't a backup/restore feature fundamental to any service? You
must have companies which rely on the app engine and the data they
have within the datastore - are we expected to write our own tools to
backup/restore our data?
Does Google perform backups regularly we can access and restore? Are
we just to cross our fingers and hope nothing goes awry?


On Jul 1, 6:56 pm, Ikai L (Google) ika...@google.com wrote:
 This bulkloader doesn't need any real Python knowledge to do basic
 operations. If you know how to program, you can learn Python easily. This is
 the book I used to get up to speed on Python. Took me about 30 minutes to
 pick up 90% of what I needed:

 http://diveintopython.org/

 That being said, we're always thinking about feature parity. I'm trying to
 think of a good way to wrap the bulkloader work with Java. We've got to be
 aware of tradeoffs - my sense is there may be issues with being able to
 reuse locally enhanced classes (just a guess, since if I were to build this
 out I would skip past trying to meet the requirement of being JDO/JPA aware
 in a version 1). Scripting operations or operations where strict-typing is
 more of a burden than a blessing are almost always easier in not-Java, which
 is why this made sense to launch in Python first.

 If you need export capability or incremental export capability now, however,
 don't wait on this since it won't be soon. My suggestion is to learn to use
 the current bulkloader or build your own export mechanism.





 On Thu, Jul 1, 2010 at 8:16 AM, mscwd01 mscw...@gmail.com wrote:
  I second this.

  On Jul 1, 2:17 pm, xcdesz xcd...@gmail.com wrote:
   Ikai,

   I have read your post on using this bulkloader for java:

  http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...

   However, without a Python background, this stuff is Latin to me..  Any
   plans on making a java-friendly version of this Bulk Loader?

   I am one of the hundreds who starred issue 776 in the backlog, and
   don't consider the current python-based bulkloader tool an adequate
   solution to this problem.

   On Jun 30, 8:14 pm, Ikai L (Google) ika...@google.com wrote:

That was referring to the bulkloader, which lets you do those things.
  App
Engine's datastore isn't a relational database. We can't do a dump of
  all
your data without iterating through all of your indexes, then
  retrieving
your Entities.

On Wed, Jun 30, 2010 at 4:02 PM, mscwd01 mscw...@gmail.com wrote:
 Thanks for replying Ikai. I assumed the Datastore dump and restore
 facility on the roadmap was referring to an import/export tool - a
 way for us to download the contents of the datastore for safekeeping
 and restoring it if needs be?
 Is this something different?

 Lastly, I would consider an import/export tool to be extremely useful
 if not critical to most applications, surely there has been some
  plans
 to offer one?

 On Jun 30, 7:57 pm, Ikai L (Google) ika...@google.com wrote:
  A web-based import/export tool is and was not ever on our roadmap:

 http://code.google.com/appengine/docs/roadmap.html

  The roadmap is not an all-inclusive list of features we plan to
  build,
 but
  rather, a list of features we have high confidence will ship in the
 upcoming
  6 month timeframe.

  You are absolutely welcome to build an open source web based
 import/export
  tool for App Engine. Once you have done this, submit a request and
  we
 will
  add it to the Open Source projects page:

 http://groups.google.com/group/google-appengine/web/google-app-engine...

  On Wed, Jun 30, 2010 at 8:51 AM, mscwd01 mscw...@gmail.com
  wrote:
   Can I attempt to get the attention of a Google employee to ask
  When
   can we expect an in-built web based import/export tool for the
  GAE?

   Thanks :P

   On Jun 30, 11:04 am, François Masurel fm2...@mably.com wrote:
I dont think the bulkloader is really convenient for doing
  daily
datastore backups of several gigabytes, and I'm not talking
  about
exploding quotas.

I would rather prefer some kind of snapshot mechanism on
  datastore
side.

François

On 29 juin, 20:40, Matthew Blain matthew.bl...@google.com
  wrote:

 The bulk loader does indeed provide backup and restore
 functionality
 today. While the implementation is in Python it can talk to
  your
 Java
 server and the entities are 

Re: [appengine-java] Volunteers needed for magazine project

2010-07-01 Thread RAVINDER MAAN
I would like to work with you.but i work in java .if you dont have any
problem working in java then we can start .

On Thu, Jul 1, 2010 at 9:43 PM, nosarious nosemon...@gmail.com wrote:

 Good morning, all.

 I am working on a magazine project that will hopefully use Google App
 Engine as the main way information is stored and retrieved. The goal
 is to be the Flickr of digital publishing.

 I have spent the past month trying to figure out the way to do this
 with Python, and haven't gotten as far as I would like. Due to the
 nature of this project (It's not intended to make me millions of
 dollars) and the altruistic goal (enabling anyone to publish content
 to e-devices like the iphone/ipad/mobile touch market/tablet computers/
 multitouch surfaces, etc) without users being cobbled by a huge
 barrier to entry, I've decided to stop hoarding the idea and ask for
 volunteer programmers.

 I understand WHAT is needed to accomplish this, but I don't understand
 the HOW. I am more interested in publishing myself, but nothing exists
 in the format I envision.

 The engine can be run on java or python at this moment. It's a matter
 of which community responds first.

 If you would like more information, or to yell at me for assuming this
 part would be easy, you can reach me at:

 gerry.straathof AT acad.ca

 I have a general flow chart of how things should progress, but some
 parts are still labelled a miracle occurs...

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




-- 
Regards,
Ravinder Singh Maan

-- 
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] Volunteers needed for magazine project

2010-07-01 Thread Andrés Cerezo
I'm interested too but in Java.

Cheers.

2010/7/1 RAVINDER MAAN rsmaan...@gmail.com

 I would like to work with you.but i work in java .if you dont have any
 problem working in java then we can start .


 On Thu, Jul 1, 2010 at 9:43 PM, nosarious nosemon...@gmail.com wrote:

 Good morning, all.

 I am working on a magazine project that will hopefully use Google App
 Engine as the main way information is stored and retrieved. The goal
 is to be the Flickr of digital publishing.

 I have spent the past month trying to figure out the way to do this
 with Python, and haven't gotten as far as I would like. Due to the
 nature of this project (It's not intended to make me millions of
 dollars) and the altruistic goal (enabling anyone to publish content
 to e-devices like the iphone/ipad/mobile touch market/tablet computers/
 multitouch surfaces, etc) without users being cobbled by a huge
 barrier to entry, I've decided to stop hoarding the idea and ask for
 volunteer programmers.

 I understand WHAT is needed to accomplish this, but I don't understand
 the HOW. I am more interested in publishing myself, but nothing exists
 in the format I envision.

 The engine can be run on java or python at this moment. It's a matter
 of which community responds first.

 If you would like more information, or to yell at me for assuming this
 part would be easy, you can reach me at:

 gerry.straathof AT acad.ca

 I have a general flow chart of how things should progress, but some
 parts are still labelled a miracle occurs...

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




 --
 Regards,
 Ravinder Singh Maan


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


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



[appengine-java] Show User In Logs when not using Users API

2010-07-01 Thread Spines
If you use the user's api then in all the logs it shows the user's
username right after the ip address in the log entry.  My app doesn't
use the user's api, it just uses it's own user management with the
datastore.

Is there a way that I can get the user's username, or alternatively,
datastore id to show up in the request logs like it does for apps that
use the user's api?

-- 
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] TO GOOGLE GAE Java team: Book author looking for early access to next release (java)

2010-07-01 Thread Daniel Guermeur
Hello there

I am finishing a book on GWT + GAE with Packtpub. I would like to
include a chapter on **Browser Push (Comet) communication** feature.
This feature is 'on deck' as indicated on the GAE roadmap (http://
code.google.com/appengine/docs/roadmap.html). To write this chapter, I
would like to have an early access to the upcoming GAE Java release.

Could someone at Google help me with this?

Thank you so much.

Daniel

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



[appengine-java] Jetty binds to localhost and not my wireless IP

2010-07-01 Thread keyeslabs
I'm running GAE eclipse dev environment (GAE installed via the eclipse
update mechanism).  When I run my GAE application locally, it starts
jetty, which seems to bind to localhost (127.0.0.1) rather than my
machine's IP associated with my wireless card.  When I try to connect
to the running GAE app from another machine using, for example,
http://192.168.1.100:, the connection fails.  Things work from the
machine on which the app is running by using http://localhost:.

So... my question is, how can I make jetty bind to more than one IP,
or perhaps to a different IP?  Are there command-line params that I
can pass to the Eclipse target?

Thanks for the 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-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] Jetty binds to localhost and not my wireless IP

2010-07-01 Thread John Patterson
Try -bindAddress 0.0.0.0  It works for connecting to GWT from a  
different machine but I never had a problem connecting to the servlet  
engine.



On 2 Jul 2010, at 03:25, keyeslabs wrote:


I'm running GAE eclipse dev environment (GAE installed via the eclipse
update mechanism).  When I run my GAE application locally, it starts
jetty, which seems to bind to localhost (127.0.0.1) rather than my
machine's IP associated with my wireless card.  When I try to connect
to the running GAE app from another machine using, for example,
http://192.168.1.100:, the connection fails.  Things work from the
machine on which the app is running by using http://localhost:.

So... my question is, how can I make jetty bind to more than one IP,
or perhaps to a different IP?  Are there command-line params that I
can pass to the Eclipse target?

Thanks for the 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 
.




--
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] Jetty binds to localhost and not my wireless IP

2010-07-01 Thread John Patterson

Try -bindAddress 0.0.0.0 - it works for GWT, not sure about Jetty.

On 2 Jul 2010, at 03:25, keyeslabs wrote:


I'm running GAE eclipse dev environment (GAE installed via the eclipse
update mechanism).  When I run my GAE application locally, it starts
jetty, which seems to bind to localhost (127.0.0.1) rather than my
machine's IP associated with my wireless card.  When I try to connect
to the running GAE app from another machine using, for example,
http://192.168.1.100:, the connection fails.  Things work from the
machine on which the app is running by using http://localhost:.

So... my question is, how can I make jetty bind to more than one IP,
or perhaps to a different IP?  Are there command-line params that I
can pass to the Eclipse target?

Thanks for the 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 
.




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



Re: [appengine-java] Entity class is not enhanced!!

2010-07-01 Thread Hariharan Anantharaman
Hi Marthen,
I too faced similar problem.  That time my data objects were in a java
project while my jdo-config was in a web project( web project in-turn had
project reference to this java project).  The java project had app-engine
jar's in its class path, but still enhancement did not happen when the
project was build.

As a work around i moved my data classes to web project and then it worked.
 Dont know the reason for this though.  Perhaps could be an issue with
eclipse plugin only.

Thanks
Hari

2010/7/1 Marthen marthen...@gmail.com

 Hi guys,

 I have an simple application running on top of Spring using JPA for
 Google AppEngine (GAE).

 There's no compilation error, but when i load my application using
 Google AppEngine Development Server, i got runtime error saying that
 my Entity class is not enhanced!!
 Which kinda confusing me actually, because i deployed to another
 container (tomcat) and this Entity classes is running smoothly (of
 course i need to modify the persistence.xml accordingly)

 Here is my persistence.xml :

 ?xml version=1.0 encoding=UTF-8?
 persistence xmlns=http://java.sun.com/xml/ns/persistence;
 version=1.0
 persistence-unit name=myDB

 providerorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider/
 provider
 properties
 property name=datanucleus.NontransactionalRead value=true/
 property name=datanucleus.NontransactionalWrite value=true/
 property name=datanucleus.ConnectionURL value=appengine/
 /properties
 /persistence-unit
 /persistence



 My Entity class :

 @Entity
 @Table(name = audit_trail)
 public class AuditTrail implements java.io.Serializable {
 private static final long serialVersionUID = 1L;
 private Integer id;

 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 @Column(name = id, nullable = false)
 public Integer getId() {
 return id;
 }

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

 private String message;

 @Column(name = message)
 public String getMessage() {
 return message;
 }

 public void setMessage(String msg) {
 this.message = msg;
 }
 }



 And this is the error code:

 10-07-01 11:18:22 ERROR [] [main] MetaData - Found Meta-Data for class
 com.somecompany.demo.model.AuditTrail but this class is not enhanced!!
 Please enhance the class before running DataNucleus.
 org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for
 class com.somecompany.demo.model.AuditTrail but this class is not
 enhanced!! Please enhance the class before running DataNucleus.
 at

 org.datanucleus.metadata.MetaDataManager.initialiseClassMetaData(MetaDataManager.java:
 2225)
 at

 org.datanucleus.metadata.MetaDataManager.initialiseFileMetaData(MetaDataManager.java:
 2176)
 at

 org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaDataManager.java:
 881)
 at

 org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
 794)
 at

 org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF(EntityManagerFactoryImpl.java:
 488)
 at

 org.datanucleus.jpa.EntityManagerFactoryImpl.init(EntityManagerFactoryImpl.java:
 355)
 at

 org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.init(DatastoreEntityManagerFactory.java:
 63)
 at

 org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory(Datastor
 ePersistenceProvider.java:35)
 at javax.persistence.Persistence.createFactory(Persistence.java:172)
 at
 javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
 112)
 at

 org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalEnti
 tyManagerFactoryBean.java:91)
 at

 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManage
 rFactoryBean.java:291)
 at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Abstr
 actAutowireCapableBeanFactory.java:1369)
 at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstract
 AutowireCapableBeanFactory.java:1335)
 at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAu
 towireCapableBeanFactory.java:473)
 at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
 $1.run(AbstractAutowireCapableBeanFactory.java:409)
 at java.security.AccessController.doPrivileged(Native Method)
 at

 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAuto
 wireCapableBeanFactory.java:380)
 at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:264)
 at

 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleton
 BeanRegistry.java:222)
 at

 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
 261
 )
 at

 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
 185)
 

[appengine-java] order by clause- JPA queries

2010-07-01 Thread Deepika M
Hi all,

I'd like to know if order byclause is supported in the JPA queries in the
App engine. I tried to a query with order by clause but that doesn't
really seem to work. Any help is appreciated!

Thanks,
Deepika

-- 
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] Not able to upload app to GAE

2010-07-01 Thread Vik
Hie

While trying to do that I am getting:
An internal error occurred during: Deploying SakshumWebGAE to Google.
Received SAXException parsing the input stream for
D:/eclipse/vskumar/workspace/SakshumWebGAE/war\WEB-INF/web.xml

For your ref web.xml is:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  !-- Servlets --

  servlet
servlet-namesubscribeServlet/servlet-name

 
servlet-classvik.sakshum.sakshumweb.server.SubscribeServiceImpl/servlet-class
  /servlet

   servlet
servlet-namebloodDonorRegisterServlet/servlet-name

 
servlet-classvik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl/servlet-class
  /servlet

  servlet
servlet-nameloginServlet/servlet-name

 
servlet-classvik.sakshum.sakshumweb.server.LoginModuleServiceImpl/servlet-class
  /servlet

  servlet
servlet-nameadminServlet/servlet-name

 
servlet-classvik.sakshum.sakshumweb.server.AdminDashBoardServiceImpl/servlet-class
  /servlet

  servlet
servlet-namefindBloodDonorServlet/servlet-name

 
servlet-classvik.sakshum.sakshumweb.server.FindBloodDonorServiceImpl/servlet-class
  /servlet
  servlet
servlet-namegeoDataServlet/servlet-name

 servlet-classvik.sakshum.sakshumweb.server.GeoDataServiceImpl/servlet-class
  /servlet
  servlet
servlet-nameuserRolesServlet/servlet-name

 
servlet-classvik.sakshum.sakshumweb.server.UserRoleServiceImpl/servlet-class
  /servlet

  servlet-mapping
servlet-namesubscribeServlet/servlet-name
url-pattern/sakshumwebgae/subscribe/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namebloodDonorRegisterServlet/servlet-name
url-pattern/sakshumwebgae/registerBloodDonor/url-pattern
  /servlet-mapping
   servlet-mapping
servlet-nameloginServlet/servlet-name
url-pattern/sakshumwebgae/login/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameadminServlet/servlet-name
url-pattern/adminmodule/admin/url-pattern
  /servlet-mapping
   servlet-mapping
servlet-namefindBloodDonorServlet/servlet-name
url-pattern/sakshumwebgae/findBloodDonor/url-pattern
  /servlet-mapping
   servlet-mapping
servlet-namegeoDataServlet/servlet-name
url-pattern/sakshumwebgae/geoData/url-pattern
  /servlet-mapping
   servlet-mapping
servlet-namegeoDataServlet/servlet-name
url-pattern/adminmodule/geoData/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameuserRolesServlet/servlet-name
url-pattern/adminmodule/userRoles/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-nameuserRolesServlet/servlet-name
url-pattern/sakshumwebgae/userRoles/url-pattern
  /servlet-mapping
  !-- Default page to serve --
  welcome-file-list
welcome-fileindex.html/welcome-file
  /welcome-file-list

/web-app



Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

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



[appengine-java] Re: Entity class is not enhanced!!

2010-07-01 Thread Didier Durand
Hello,

The enhancer sometimes doesn't start on classes.

The best way I have found to make it run each time is to name
explicitly all my jdo-annotated classes in Project Settings - Google -
 App Engine - ORM under Eclipse.
No more problem!
Hope it works for you too
didier

On Jul 1, 1:47 pm, Marthen marthen...@gmail.com wrote:
 Hi guys,

 I have an simple application running on top of Spring using JPA for
 Google AppEngine (GAE).

 There's no compilation error, but when i load my application using
 Google AppEngine Development Server, i got runtime error saying that
 my Entity class is not enhanced!!
 Which kinda confusing me actually, because i deployed to another
 container (tomcat) and this Entity classes is running smoothly (of
 course i need to modify the persistence.xml accordingly)

 Here is my persistence.xml :

 ?xml version=1.0 encoding=UTF-8?
 persistence xmlns=http://java.sun.com/xml/ns/persistence;
 version=1.0
 persistence-unit name=myDB
 providerorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider/
 provider
 properties
 property name=datanucleus.NontransactionalRead value=true/
 property name=datanucleus.NontransactionalWrite value=true/
 property name=datanucleus.ConnectionURL value=appengine/
 /properties
 /persistence-unit
 /persistence

 My Entity class :

 @Entity
 @Table(name = audit_trail)
 public class AuditTrail implements java.io.Serializable {
 private static final long serialVersionUID = 1L;
 private Integer id;

 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 @Column(name = id, nullable = false)
 public Integer getId() {
 return id;

 }

 public void setId(Integer id) {
 this.id = id;

 }

 private String message;

 @Column(name = message)
 public String getMessage() {
 return message;

 }

 public void setMessage(String msg) {
 this.message = msg;

 }
 }

 And this is the error code:

 10-07-01 11:18:22 ERROR [] [main] MetaData - Found Meta-Data for class
 com.somecompany.demo.model.AuditTrail but this class is not enhanced!!
 Please enhance the class before running DataNucleus.
 org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for
 class com.somecompany.demo.model.AuditTrail but this class is not
 enhanced!! Please enhance the class before running DataNucleus.
 at
 org.datanucleus.metadata.MetaDataManager.initialiseClassMetaData(MetaDataManager.java:
 2225)
 at
 org.datanucleus.metadata.MetaDataManager.initialiseFileMetaData(MetaDataManager.java:
 2176)
 at
 org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaDataManager.java:
 881)
 at
 org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
 794)
 at
 org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF(EntityManagerFactoryImpl.java:
 488)
 at
 org.datanucleus.jpa.EntityManagerFactoryImpl.init(EntityManagerFactoryImpl.java:
 355)
 at
 org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.init(DatastoreEntityManagerFactory.java:
 63)
 at
 org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory(Datastor
 ePersistenceProvider.java:35)
 at javax.persistence.Persistence.createFactory(Persistence.java:172)
 at
 javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
 112)
 at
 org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalEnti
 tyManagerFactoryBean.java:91)
 at
 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManage
 rFactoryBean.java:291)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Abstr
 actAutowireCapableBeanFactory.java:1369)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstract
 AutowireCapableBeanFactory.java:1335)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAu
 towireCapableBeanFactory.java:473)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
 $1.run(AbstractAutowireCapableBeanFactory.java:409)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAuto
 wireCapableBeanFactory.java:380)
 at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:264)
 at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleton
 BeanRegistry.java:222)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
 261
 )
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
 185)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
 164)
 at
 org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryU
 tils.java:99)
 at
 

[appengine-java] Re: How do you make a field unique with JDO DataNucleus

2010-07-01 Thread Didier Durand
Hello,

You have to use it in a Key object or use it as key (may not be
possible so directly because of entity groups)

I would recommend including in Key object: see
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Class_and_Field_Annotations

didier

On Jul 1, 4:17 pm, nevzat u...@myjavasolutions.com wrote:
 I am trying to make one of my field unique, but cannot do it. I used
 annotations which did not work. Then I try to do it in jdo xsd file
 and that did not work either. Can you please help me out?

 here is an example:
 public class AccountInfo {

 @Persistent
 private String userName;

 }

 I want to make userName unique.

 Thanks in advance for your time.

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