Migrate AppEngine Java 8 to Java 11 with Objectify 5

520 views
Skip to first unread message

Mukkoti Ramanjaneyulu

unread,
Dec 16, 2021, 11:37:31 PM12/16/21
to objectify-appengine
Hi All,

We are trying to move our project from Java 8 to 11 in AppEngine with Objectify 5.1.22 version. Below are the changes as part of migration we did.

1) appengine-web.xml file : update runtime java8 to runtime java11
2) update appengine-api-1.0-sdk to 1.9.89

After deploying above changes, services are not coming up and it's going loop. Below is the error we can see in logs.

"Process terminated because it failed to respond to the start request with an HTTP status code of 200-299 or 404."


Note: We tried with Objectify 6.0.7 with above changes, it's working as expected ( we tried this change only to verify this issue is objectify or some other issue, our application can't move into Objectify 6 because application using many "IN" filters in queries )


Is anyone facing this issue?

Jeff Romine

unread,
Dec 17, 2021, 1:31:41 PM12/17/21
to objectify...@googlegroups.com
Mukkotti,

What HTTP status code is being returned? I think that the error message just means that something is going wrong in the instance initialization producing an error response to /_ah/start.  See https://stackoverflow.com/questions/27266399/gae-backend-process-terminated-because-it-failed-to-respond-to-the-start-reques.

-Jeff

--
You received this message because you are subscribed to the Google Groups "objectify-appengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectify-appen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/objectify-appengine/0e6b664b-7298-48fa-9b73-d74fa48cd6ben%40googlegroups.com.

Veronika Priesner

unread,
Dec 18, 2021, 2:58:47 PM12/18/21
to objectify-appengine
Hi Mukkoti,

Could you post your full pom.xml and appengine-web.xml file contents?

-Veronika

Stefano Ciccarelli

unread,
Dec 19, 2021, 3:08:39 AM12/19/21
to objectify-appengine
Hello,

the problem is that the Java 11 runtime doesn't support the bundled services APIs used by Objectify 5 (https://cloud.google.com/appengine/docs/standard/java11/java-differences). The difference between Objectify 5 and Objectify 6 is that the first is using the legacy App Engine APIs whilst the latter is using the new Cloud Datastore APIs (https://github.com/objectify/objectify/wiki/UpgradeVersion5ToVersion6), Objectify 6 can be used even outside App Engine.

In the last weeks, Google started to preview support for the bundled services in second-generation runtimes, you can read more here https://cloud.google.com/appengine/docs/standard/java11/services/access and probably this could solve your problems.

Bye
Stefano

Mukkoti Ramanjaneyulu

unread,
Dec 20, 2021, 1:40:00 AM12/20/21
to objectify-appengine

After updating below changes, application started and working fine.

1) Update appengine-maven-plugin version to 2.4.0
2) Add below property in configuration section
    <gcloudMode>beta</gcloudMode>

Thank you All.
Reply all
Reply to author
Forward
0 new messages