Open tomohiro-n opened 9 years ago
I am seeing the same problems fwiw...
@raphaelbauer thank you for the comment. I did the following to make it work.
For now, I'll go with this. I'm not really sure if you officially want to downgrade as I did or to make some proper fixes to keep using the latest Objectify.
Any feedbacks would be appreciated.
Thanks, Tomo
Any resolution? I really can't use Ninja if I can't get a simple archetype working.
Hi Jesse
make sure your StartupActions class looks like:
@Start(order=100)
public void generateDummyDataWhenInTest() {
if (ninjaProperties.isDev()) {
try (Closeable closeable = ObjectifyService.begin()) {
ObjectifyProvider.setup();
} catch (IOException ex) {
Logger.getLogger(StartupActions.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
We should have fixed that long ago in the archetype, but it's not really high on the prio list. It would be awesome if you could push a PR :)
Fixed in ninja-appengine 1.9.31. Please confirm and close this issue after trying the fix. Thanks!
@raphaelbauer No luck, ObjectifyService.begin()
doesn't exist.
Having said that, I have no idea what I'm doing.
Okay... here's the thing. When we release a new archtype version it takes around one week until a simple command like
mvn archetype:generate -DarchetypeGroupId=org.ninjaframework -DarchetypeArtifactId=ninja-appengine-blog-archetype -DarchetypeVersion=1.9.31
"sees" the new archetype. Afaics the new version is not yet listed in Maven's archtype registry.
I bet you are still getting version 1.9.30 when calling the archetype - right? Therefore you still see the bug...
I'll wait some more days and will then ping sonatype - maybe something went wrong during publishing of the archetype.
You can still manually update your pom.xml to use Ninja 5.2.2 and GAE 1.9.31 + add the workaround described above - that will fix the issue....
OK, and which version of Objectify do I use? 5.0.5? Because now it seems the API's changed; I don't see an ObjectifyService.begin()
anywhere.
Btw I created an issue. Let's see where the problem is: https://issues.sonatype.org/browse/OSSRH-20511
Objectify should be 5.1.9 / ninja-appengine should be 1.9.31. And your project file should roughly look like: https://github.com/ninjaframework/ninja-appengine/blob/master/ninja-appengine-blog-archetype/src/main/resources/archetype-resources/pom.xml
Sorry for the inconveniences... Wouldn't be such a hassle with an archetype :)
Hi,
I cloned the latest release tag ninja-appengine-1.9.23 and ran ninja-appengine-integration-test-blog project with a maven command mvn appengine:devserver -Pdevserver, but observed an error below.
Actually I've seen the same issue before with Objectify 5.1.x. At the time I didn't use Ninjaframework and started seeing this issue since upgrading from 5.0.x.
There's a relevant post in Stack Overflow. http://stackoverflow.com/questions/26577029/objectify-5-1-context-not-started-error-due-to-missing-objectifyfilter
Questions
The detailed stacktrace is below.
Thanks, Tomo