[appengine-java] Re: Cannot Deploy - backend null. java.lang.RuntimeException: Version not ready.

2012-03-01 Thread Asaf
Same here the last 24 hours I can't deploy,
someone need to fix this thing fast







On Feb 29, 11:40 pm, treguess tregu...@gmail.com wrote:
 Hi All,
 The problem started last night. Since then, I was not able to deploy.
 Deploy get stuck at 86%

 

 There is a new version of the SDK available.

 ---

 Latest SDK:

 Release: 1.6.3

 Timestamp: Tue Jan 31 12:54:06 PST 2012

 API versions: [1.0]

 ---

 Your SDK:

 Release: 1.6.1

 Timestamp: Mon Dec 12 14:53:13 PST 2011

 API versions: [1.0]

 ---

 Please visithttp://code.google.com/appenginefor the latest SDK.

 

  Deploying frontend 

 Preparing to deploy:

 Created staging directory at:
 '/var/folders/JY/JYPiJhZnFoi4XHyWuWyx2U+++TI/-Tmp-/appcfg1064336464616060847.tmp'

 Scanning for jsp files.

 Compiling jsp files.

 Scanning files on local disk.

 Scanned 250 files.

 Initiating update.

 Cloning 88 static files.

 Cloning 257 application files.

 Cloned 100 files.

 Cloned 200 files.

 Deploying:

 Uploading 0 files.

 Initializing precompilation...

 Deploying new version.

 Verifying availability:

 Will check again in 1 seconds.

 Will check again in 2 seconds.

 Will check again in 4 seconds.

 Will check again in 8 seconds.

 Will check again in 16 seconds.

 Will check again in 32 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

 Will check again in 60 seconds.

  on backend null.

 java.lang.RuntimeException: Version not ready.

 Debugging information may be found in
 /private/var/folders/JY/JYPiJhZnFoi4XHyWuWyx2U+++TI/-Tmp-/appengine-deploy3027388026892993990.log

 Can someone help please.

 tareq

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



Re: [appengine-java] Re: Deploy Hangs - Please help

2012-03-01 Thread Amir
Having the same issue, i've been trying for a full 24 hours now... tried 
incrementing version, no luck. 

Google has a huge opportunity in taking the lead on cloud computing, but 
this is failure. We haven't released our app yet, i can only imagine 
how disastrous this kind of an outage could be for us after release. 



On Wednesday, February 29, 2012 5:23:57 PM UTC-8, Jonathan Chen wrote:

 On Thursday, 1 March 2012 13:35:29 UTC+13, Matthew Johnson wrote:

 I had the same issue last night, incrementing the version number this 
 morning made seemed to allow it to deploy successfully.


 Bumping the version number did not do it for my app. This really makes me 
 lose faith in Java GAE. 



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



[appengine-java] Unable to deploy java web app

2012-03-01 Thread Prabu Uthirapathi
When I try to deploy the application in eclipse, It stays there at 86% and 
says verifying availability of front end. 

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



[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-03-01 Thread dilbert
Not sure what you mean by make your .svn directories writable. I develop on 
linux and all the .svn folders have rwx for the user under which I develop. 
The development server runs as the same user. Should I make the adjustments 
for group and others? What about the subfolders inside the .svn folder? 
Should I mess with them too?

This is the exception I get:
Exception in thread main java.lang.ExceptionInInitializerError
at 
com.google.appengine.tools.util.Logging.initializeLogging(Logging.java:35)
at 
com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:77)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.NullPointerException
at com.google.appengine.tools.info.SdkInfo.getLibs(SdkInfo.java:77)
at 
com.google.appengine.tools.info.SdkInfo.determineOptionalLibs(SdkInfo.java:284)
at 
com.google.appengine.tools.info.SdkInfo.determineOptionalUserLibs(SdkInfo.java:254)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:233)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.java:182)
at 
com.google.appengine.tools.info.SdkImplInfo.clinit(SdkImplInfo.java:19)
... 11 more

I think this is the relevant issue on the issue tracker:
http://code.google.com/p/googleappengine/issues/detail?id=6936

This is still an issue in 1.6.3.
Please fix this ASAP.

On Thursday, February 23, 2012 3:06:32 AM UTC+1, Max Ross (Google) wrote:

 It's a bug triggered by the fact that the .svn directories are read-only. 
 If you make those directories writable the problem *should* go away. 
 Please try that out and let me know.

 Thanks,
 Max


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



[appengine-java] malware detected in 1.6.3 java sdk?

2012-03-01 Thread Sven Busse
Hi,

i just downloaded the Java GAE SDK 1.6.3 and my Anti virus program 
(Microsoft Essentials)
tells me, it detected Malware in the zip file?!

Exploit:Java/CVE-2008-5353.WX

Allegedly it would be here:
appengine-java-sdk-1.6.3.zip.crdownload - 
appengine-java-sdk-1.6.3/demos/guestbook/war/WEB-INF/lib/appengine-api-labs.jar 
- com/google/appengine/repackaged/org/json/Test.class

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



[appengine-java] Re: malware detected in 1.6.3 java sdk?

2012-03-01 Thread Sven Busse
Hm,

downloading it a second time did not bring up a warning.

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



[appengine-java] Thread question

2012-03-01 Thread Aswath Satrasala
Hello,
In Appengine, after a request is served by a Thread, is there any
configuration to automatically discard the ThreadLocal data of the Thread.
I want to ensure that every request coming does not have the ThreadLocal
data that may have been stored by an earlier request.

Regards
-Aswath

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



[appengine-java] Re: Thread question

2012-03-01 Thread Aswath Satrasala
I am already resetting the ThreadLocal variables to null in the first
filter in the web.xml.  But, wanted to find out, if any other configuration
is available.

Regards
-Aswath

On Thu, Mar 1, 2012 at 5:16 PM, Aswath Satrasala aswath.satras...@gmail.com
 wrote:

 Hello,
 In Appengine, after a request is served by a Thread, is there any
 configuration to automatically discard the ThreadLocal data of the Thread.
 I want to ensure that every request coming does not have the ThreadLocal
 data that may have been stored by an earlier request.

 Regards
 -Aswath



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



[appengine-java] send channel message per page

2012-03-01 Thread Luke
is there any technique to send out only channel message if user is
viewing particular ajax page? what technique do you folks use to check
whether user is viewing particular ajax page? because it would be
waste of bandwidth to send out all channel messages to all users
(example 10,000) users if only 100 person is viewing particular ajax
page

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



[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-03-01 Thread Rick Mangi
Dilbert, see my reply on the ticket.

Max - that comment about svn being writable is nonsense. I wish you guys 
would talk to your own support engineers. I tried that solution with my 
premier support contact and it doesn't even make sense. svn directories are 
always writable. This is a bug, it's reproducible and it's going to be 
fixed in 1.6.4 (supposedly). The workaround is posted in my comment on the 
ticket. It took me weeks of back and forth to get the google engineers to 
see the problem. If someone had just tried it out I'm sure they would have 
seen the problem right away.

On Thursday, February 2, 2012 4:05:43 AM UTC-5, dilbert wrote:

 We keep the GAE sdk (together with the project) in svn. Yesterday we 
 upgraded to GAE sdk 1.6.2. It worked fine until we checked it into the svn 
 repo. After that when the server is started it dies with the following 
 message:

 Exception in thread main java.lang.ExceptionInInitializerError
at com.google.appengine.tools.util.Logging.initializeLogging(Lo
 gging.java:35)
at com.google.appengine.tools.development.gwt.AppEngineLauncher
 .start(AppEngineLauncher.java:77)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.j
 ava:120)
 Caused by: java.lang.NullPointerException
at com.google.appengine.tools.info.SdkInfo.getLibs(SdkInfo.java:77)
at com.google.appengine.tools.info.SdkInfo.determineOptionalLib
 s(SdkInfo.java:284)
at com.google.appengine.tools.info.SdkInfo.determineOptionalUse
 rLibs(SdkInfo.java:254)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:233)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.j
 ava:182)
at com.google.appengine.tools.info.SdkImplInfo.clinit(SdkImpl
 Info.java:19)
... 11 more

 We keep the sdk in svn since version 1.3.1 and this has never happened 
 before. Any ideas on why this is happening? Any solution?
 Thanks.


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



Re: [appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-03-01 Thread Jeff Schnitzer
Time to migrate to Git!  :-)

Jeff

On Thu, Mar 1, 2012 at 9:25 AM, Rick Mangi r...@broadcastr.com wrote:

 Dilbert, see my reply on the ticket.

 Max - that comment about svn being writable is nonsense. I wish you guys
 would talk to your own support engineers. I tried that solution with my
 premier support contact and it doesn't even make sense. svn directories are
 always writable. This is a bug, it's reproducible and it's going to be
 fixed in 1.6.4 (supposedly). The workaround is posted in my comment on the
 ticket. It took me weeks of back and forth to get the google engineers to
 see the problem. If someone had just tried it out I'm sure they would have
 seen the problem right away.


 On Thursday, February 2, 2012 4:05:43 AM UTC-5, dilbert wrote:

 We keep the GAE sdk (together with the project) in svn. Yesterday we
 upgraded to GAE sdk 1.6.2. It worked fine until we checked it into the svn
 repo. After that when the server is started it dies with the following
 message:

 Exception in thread main java.lang.ExceptionInInitializ**erError
at com.google.appengine.tools.uti**l.Logging.initializeLogging(Lo*
 *gging.java:35)
at com.google.appengine.tools.dev**elopment.gwt.AppEngineLauncher*
 *.start(AppEngineLauncher.java:**77)
at com.google.gwt.dev.DevMode.doS**tartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase**.startUp(DevModeBase.java:1068*
 *)
at com.google.gwt.dev.DevModeBase**.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.mai**n(DevMode.java:311)
at sun.reflect.NativeMethodAccess**orImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccess**orImpl.invoke(NativeMethodAcce*
 *ssorImpl.java:39)
at sun.reflect.DelegatingMethodAc**cessorImpl.invoke(DelegatingMe*
 *thodAccessorImpl.java:25)
at java.lang.reflect.Method.invok**e(Method.java:597)
at com.intellij.rt.execution.appl**ication.AppMain.main(AppMain.j*
 *ava:120)
 Caused by: java.lang.NullPointerException
at com.google.appengine.tools.inf**o.SdkInfo.getLibs(SdkInfo.java*
 *:77)
at com.google.appengine.tools.inf**o.SdkInfo.determineOptionalLib*
 *s(SdkInfo.java:284)
at com.google.appengine.tools.inf**o.SdkInfo.determineOptionalUse*
 *rLibs(SdkInfo.java:254)
at com.google.appengine.tools.inf**o.SdkInfo.init(SdkInfo.java:23*
 *3)
at com.google.appengine.tools.inf**o.SdkInfo.getSdkRoot(SdkInfo.j*
 *ava:182)
at com.google.appengine.tools.inf**o.SdkImplInfo.clinit(SdkImpl*
 *Info.java:19)
... 11 more

 We keep the sdk in svn since version 1.3.1 and this has never happened
 before. Any ideas on why this is happening? Any solution?
 Thanks.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/dJrB5UEdA7kJ.

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


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



[appengine-java] Objectify + RequestFactory: Server Error: No class with kind '__Stat_Kind_IsRootEntity__' was registered

2012-03-01 Thread Alexander Orlov
Locally the code works fine, but on GAE this code (RF callback):
*@Override*
*public void onFailure(ServerFailure error) {*
*Core.log(error.getMessage());*
*Core.log(Error:  + error);*
*}*

...delivers this message to the Chrome console:

Server Error: No class with kind '*__Stat_Kind_IsRootEntity__*' was 
registered
Error: com.google.web.bindery.requestfactory.shared.ServerFailure@2a

Everything I've found about *__Stat_Kind_IsRootEntity__ *is that it's a 
Python related entity. 

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



Re: [appengine-java] Re: Deploy Hangs - Please help

2012-03-01 Thread Jonathan Chen
On Thursday, 1 March 2012 19:57:55 UTC+13, Amir wrote:

 Having the same issue, i've been trying for a full 24 hours now... tried 
 incrementing version, no luck. 


They've finally fixed it. It now works for me. 



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



Re: [appengine-java] Re: Deploy Hangs - Please help

2012-03-01 Thread Amir
Yeah we noticed it was fixed at 12:12AM last night. I wish they'd give an 
explanation for what happened, and why it won't happen again. 

We've got a lot riding on GAE. 



On Thursday, March 1, 2012 9:53:06 AM UTC-8, Jonathan Chen wrote:

 On Thursday, 1 March 2012 19:57:55 UTC+13, Amir wrote:

 Having the same issue, i've been trying for a full 24 hours now... tried 
 incrementing version, no luck. 


 They've finally fixed it. It now works for me. 



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



[appengine-java] Re: gae.parent-encoded-pk or how to combine gae.parent-pk and gae.encoded-pk?

2012-03-01 Thread Niklas Lönn
I have found a solution for creating owned relationships within an entity 
group, and still be portable, the best part, you dont need to manually 
handle key and parentKey. 
Check out my blog post at: 
http://blog.wp.weightpoint.se/2012/03/01/portable-owned-jdo-relations-appengine/

On Tuesday, May 19, 2009 3:14:59 PM UTC+2, mb wrote:

 Thanks Max, it does indeed work fine. 

 So basically what I needed to do was: 

 @PersistenceCapable(identityType = IdentityType.APPLICATION) 
 public class MyDomainObject { 

 // Set parent key as an encoded string, manually 
 @Persistent 
 @Extension(vendorName=datanucleus, 
 key=gae.parent-pk, value=true) 
 private String parentKey; 

 // This gets set automatically when object is made persistent. 
 @PrimaryKey 
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
 @Extension(vendorName = datanucleus, 
 key = gae.encoded-pk, value=true) 
 private String key; 

 public MyDomainObject(String encodedParentKey) { 
 this.parentKey = encodedParentKey; 
 } 

 ... 

 It seems that GAE/datanucleus is clever enough to figure out that the 
 parent key is an encoded string.  I had assumed that the above would 
 make it assume that the parent key was an unencoded String, as the 
 key=gae.parent-pk doesn't specify that it's an encoded one. 

 Thanks for taking the time to point me in the right direction :) 

 On May 16, 12:32 am, Max Ross maxr+appeng...@google.com wrote: 
  You should be able to do what you're describing without any dependencies 
 on 
  app-engine classes. 
  
  Here's a class that's part of the plugin test-suite that I believe 
  demonstrates the behavior you're looking for:
 http://code.google.com/p/datanucleus-appengine/source/browse/trunk/te... 
  
  And here's a testcase that illustrates setting a parent, leaving the id 
  blank, and getting back a system generated id:
 http://www.google.com/codesearch/p?hl=en#79kbA0UmWLw/trunk/tests/org/... 
  \.googlecode\.com 
  
  Does this help? 
  
  Max 
  
  On Wed, May 13, 2009 at 3:07 PM, mb mbrom...@gmail.com wrote: 
  
   On May 13, 7:36 pm, mb mbrom...@gmail.com wrote: 
Actually I suppose the same problem applies to unowned relationships 
that aren't children.  It doesn't look like there's a way to do them 
without using com.google.appengine.api.datastore.Key in the domain 
model.  i.e. you can't use encoded strings as a substitute. 
  
   Oops, sorry I wasn't thinking when I posted that...  You can simply 
   store the encoded String as a regular String for unowned 
   relationships.  But for parent objects the problem remains, as 
   described in my first post.

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



[appengine-java] Enhancing class issue using GAEJ+Spring+JPA+Cloud SQL

2012-03-01 Thread Vasu
Hi All,

I am developing an application using GAE+Java+Spring+JPA+Google CLoud SQL. 
When i retrieve the data from Database i'm getting the below error.
*org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for class 
CLASS-NAME but this class is not enhanced!! Please enhance the class 
before running DataNucleus.*
*
*
Could anyone please help me to resolve the above issue.

Following is my persistence.xml file:

?xml version=1.0 encoding=UTF-8 ?
persistence xmlns=http://java.sun.com/xml/ns/persistence;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
version=1.0

persistence-unit name=transactions-optional
providerorg.datanucleus.api.jpa.PersistenceProviderImpl/provider
properties
property name=datanucleus.NontransactionalRead value=true /
property name=datanucleus.NontransactionalWrite value=true /
property name=javax.persistence.jdbc.driver
value=com.google.appengine.api.rdbms.AppEngineDriver /
property name=datanucleus.ConnectionURL
value=jdbc:google:rdbms://INSTACE-NAME/DATABASE_NAME /

!-- property name=datanucleus.autoCreateTables value=false / --
!-- property name=datanucleus.storeManagerType value=rdbms / --
!-- property name=datanucleus.jpa.level value=JPA1 / --
!-- property name=datanucleus.jpa.addClassTransformer value=false 
/ --
/properties
/persistence-unit

/persistence


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



[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-03-01 Thread dilbert
Thanks Rick for the valuable information. I do not like the idea of mixing 
jars from different versions just for svn's sake. For now I'll remove GAE 
SDK from svn and handle things manually which is a real pain. Hope they fix 
this issue soon.

On Thursday, March 1, 2012 3:25:39 PM UTC+1, Rick Mangi wrote:

 Dilbert, see my reply on the ticket.

 Max - that comment about svn being writable is nonsense. I wish you guys 
 would talk to your own support engineers. I tried that solution with my 
 premier support contact and it doesn't even make sense. svn directories are 
 always writable. This is a bug, it's reproducible and it's going to be 
 fixed in 1.6.4 (supposedly). The workaround is posted in my comment on the 
 ticket. It took me weeks of back and forth to get the google engineers to 
 see the problem. If someone had just tried it out I'm sure they would have 
 seen the problem right away.

 On Thursday, February 2, 2012 4:05:43 AM UTC-5, dilbert wrote:

 We keep the GAE sdk (together with the project) in svn. Yesterday we 
 upgraded to GAE sdk 1.6.2. It worked fine until we checked it into the svn 
 repo. After that when the server is started it dies with the following 
 message:

 Exception in thread main java.lang.ExceptionInInitializerError
at com.google.appengine.tools.util.Logging.initializeLogging(Lo
 gging.java:35)
at com.google.appengine.tools.development.gwt.AppEngineLauncher
 .start(AppEngineLauncher.java:77)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.j
 ava:120)
 Caused by: java.lang.NullPointerException
at com.google.appengine.tools.info.SdkInfo.getLibs(SdkInfo.java
 :77)
at com.google.appengine.tools.info.SdkInfo.determineOptionalLib
 s(SdkInfo.java:284)
at com.google.appengine.tools.info.SdkInfo.determineOptionalUse
 rLibs(SdkInfo.java:254)
at com.google.appengine.tools.info.SdkInfo.init(SdkInfo.java:233)
at com.google.appengine.tools.info.SdkInfo.getSdkRoot(SdkInfo.j
 ava:182)
at com.google.appengine.tools.info.SdkImplInfo.clinit(SdkImpl
 Info.java:19)
... 11 more

 We keep the sdk in svn since version 1.3.1 and this has never happened 
 before. Any ideas on why this is happening? Any solution?
 Thanks.



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



[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-03-01 Thread Jonathan Chen


On Friday, 2 March 2012 08:24:40 UTC+13, dilbert wrote:

 Thanks Rick for the valuable information. I do not like the idea of mixing 
 jars from different versions just for svn's sake. For now I'll remove GAE 
 SDK from svn and handle things manually which is a real pain. Hope they fix 
 this issue soon.


How about using maven to handle your project dependencies instead? 

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



Re: [appengine-java] Re: Deploy Hangs - Please help

2012-03-01 Thread Jonathan Chen

On Friday, 2 March 2012 06:55:46 UTC+13, Amir wrote:

 Yeah we noticed it was fixed at 12:12AM last night. I wish they'd give an 
 explanation for what happened, and why it won't happen again. 

 We've got a lot riding on GAE. 
  


Yeah, same here. The status pages didn't even register any issue regarding 
deployment. 

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



Re: [appengine-java] Enhancing class issue using GAEJ+Spring+JPA+Cloud SQL

2012-03-01 Thread Paul Ford
I got the same error and resolved it. I have to dig up my old code tonight
and research will let you know

On Thu, Mar 1, 2012 at 5:18 AM, Vasu srinivas.che...@gmail.com wrote:

 Hi All,

 I am developing an application using GAE+Java+Spring+JPA+Google CLoud SQL.
 When i retrieve the data from Database i'm getting the below error.
 *org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for
 class CLASS-NAME but this class is not enhanced!! Please enhance the
 class before running DataNucleus.*
 *
 *
 Could anyone please help me to resolve the above issue.

 Following is my persistence.xml file:

 ?xml version=1.0 encoding=UTF-8 ?
 persistence xmlns=http://java.sun.com/xml/ns/persistence;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
 version=1.0

 persistence-unit name=transactions-optional
 providerorg.datanucleus.api.jpa.PersistenceProviderImpl/provider
 properties
 property name=datanucleus.NontransactionalRead value=true /
 property name=datanucleus.NontransactionalWrite value=true /
 property name=javax.persistence.jdbc.driver
 value=com.google.appengine.api.rdbms.AppEngineDriver /
 property name=datanucleus.ConnectionURL
 value=jdbc:google:rdbms://INSTACE-NAME/DATABASE_NAME /

 !-- property name=datanucleus.autoCreateTables value=false / --
 !-- property name=datanucleus.storeManagerType value=rdbms / --
 !-- property name=datanucleus.jpa.level value=JPA1 / --
 !-- property name=datanucleus.jpa.addClassTransformer value=false
 / --
 /properties
 /persistence-unit

 /persistence


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




-- 
Regards

Paul

*Paul W. Ford │ Principal*
Maven Wave Partners LLC
GTalk  +1.312.884.1051  M: +1.312.953.1664
paul.f...@mavenwave.com

Please check out our Fusion
Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
more insights

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



[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-03-01 Thread Rick Mangi
That's on our roadmap, but I'm waiting for Atlassian OnDemand to start
supporting maven repos for artifact deployment. It's a good goal, but
adding an SDK to subversion shouldn't cause it to break...

On Mar 1, 2:34 pm, Jonathan Chen j...@chen.org.nz wrote:
 On Friday, 2 March 2012 08:24:40 UTC+13, dilbert wrote:

  Thanks Rick for the valuable information. I do not like the idea of mixing
  jars from different versions just for svn's sake. For now I'll remove GAE
  SDK from svn and handle things manually which is a real pain. Hope they fix
  this issue soon.

 How about using maven to handle your project dependencies instead?

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



[appengine-java] Re: publishing html files

2012-03-01 Thread Mike Lawrence
How about a public google doc?
https://support.google.com/docs/bin/answer.py?hl=enanswer=184006


On Feb 26, 2:28 pm, Vik vik@gmail.com wrote:
 Hie

 I am generated html documents using a google text doc as template (reading
 it using gdata apis and then doing some text manipulation).
 Now, I want to publish these documents somewhere so that I can refer to
 others giving the url of the document (which means it would be publicly
 accessible).

 Any suggestions on how do i go about it? Like where should i host these?

 Thankx and Regards

 Vik
 Founderhttp://www.sakshum.orghttp://blog.sakshum.org

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



[appengine-java] Understanding id generation (local test environment)

2012-03-01 Thread Marcel Overdijk
Hi,

I'm using Objectify to store data on Google App Engine.
When creating new entities a entity is put without it's Long id filled. 
This causes App Engine to assign a generated key automatically.

I would like to understand how this key generation works, and more 
specifically in the local test environment with new 
LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()).setUp().

My observation is that when I e.g. do:
- create customer == id 1 will be assigned
- create customer == id 2 will be assigned
- create product == id 3 will be assigned 
- create customer == id 4 will be assigned 

So basically a sequential id is used for everything that is created.

I wonder if this can be customized so each datastore kind has it's own 
sequential key.


Cheers,
Marcel

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



[appengine-java] AWS, Signed Requests work locally but not when deployed to GAE

2012-03-01 Thread reston
Amazon WS (AWS) requires signed requests to access their Product 
Advertising API.  I have a working application running locally using the 
Play! framework that sends a signed request using java.net.URL and receives 
a valid item lookup response, which basically can you tell whatever you 
might want to know about a particular product that Amazon sells.

The problem I'm running into is that, for some reason, these signed 
requests are somehow being _discombobulated_ when they are sent to Amazon 
via the same application deployed on Google App Engine.

The requests are clearly going out and the response from AWS is that there 
might be a problem with the signed request.  I can't understand why it 
would work locally but not in Google App Engine, and there are no errors or 
exceptions thrown.

Before posting code or getting into the nitty-gritty, I was wondering if 
anyone on this board has run into a similar issue using AWS via GAE?

Thank you very much.

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