GoogleCloudPlatform / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
19 stars 21 forks source link

GAE deployment: appengine-maven-plugin:1.9.50:endpoints_get_discovery_doc : Null key for a Map not allowed in JSON #83

Open Judp0m opened 7 years ago

Judp0m commented 7 years ago

Deployment to 1.9.48 used to work fine. Today, it deploys but then gets stuck:

Beginning interaction for module default... 0% Created staging directory at: '/tmp/appcfg383317982922298217.tmp' 5% Scanning for jsp files. 20% Scanning files on local disk. 25% Scanned 250 files. 28% Initiating update. 31% Cloning 57 static files. 33% Cloning 242 application files. 40% Uploading 0 files. 52% Initializing precompilation... 90% Deploying new version. 95% Will check again in 1 seconds. 98% Will check again in 2 seconds. 99% Will check again in 4 seconds. 99% Will check again in 8 seconds. 99% Will check again in 16 seconds. 99% Will check again in 32 seconds. 99% Will check again in 60 seconds. 99% Will check again in 60 seconds........forever

In the cloud console, I can see in "Activities" the successful deployment, but the API config update fails:

10:55 PM API config update request failed xxxxx API config update request failed: staging 10:54 PM Completed update of a new alternate version xxxxx completed update of a new alternate version: staging

Upgrading to 1.9.49 leads to this issue Upgrading to 1.9.50 is causing this other issue (no changes other than bumping the app engine version):

[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.50:endpoints_get_discovery_doc (default) on project xxxxx: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) -> [Help 1]

The error occurs right after this step:

API Discovery Document written to xxxxx/target/generated-sources/appengine-endpoints/WEB-INF/xxxxx-v1-rest.discovery

Here below is the stack trace: at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:352) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:197) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) at com.google.appengine.endpoints.EndpointsMojo.executeEndpointsCommand(EndpointsMojo.java:114) at com.google.appengine.endpoints.EndpointsGetDiscoveryDoc.execute(EndpointsGetDiscoveryDoc.java:47) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 24 more