简体   繁体   中英

Can spring boot run on google standard app engine?

SpringBoot application can be deployed to Google Flex App Engine.

But when I try to deploy to Google Standard App Engine, an exception will be thrown out:

[INFO] GCLOUD: 2018-06-11 23:04:06.517:WARN:oeja.ClassInheritanceHandler:qtp249515771-16: [INFO] GCLOUD: java.lang.NullPointerException [INFO] GCLOUD: at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) [INFO] GCLOUD: at org.eclipse.jetty.annotations.ClassInheritanceHandler.addToInheritanceMap(ClassInheritanceHandler.java:72) [INFO] GCLOUD: at org.eclipse.jetty.annotations.ClassInheritanceHandler.handle(ClassInheritanceHandler.java:58) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor.visit(AnnotationParser.java:476) [INFO] GCLOUD: at org.objectweb.asm.ClassReader.accept(ClassReader.java:650) [INFO] GCLOUD: at org.objectweb.asm.ClassReader.accept(ClassReader.java:525) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:978) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:958) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParse r.parseJar(AnnotationParser.java:902) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163) [INFO] GCLOUD: at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:546) [INFO] GCLOUD: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [INFO] GCLOUD: at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [INFO] GCLOUD: at java.lang.Thread.run(Thread.java:748) [INFO] GCLOUD: 2018-06-11 23:04:06.669:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=1717ms

The example I took is from here.

https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/appengine-standard-java8/springboot-appengine-standard

I have seen this exception since some versions of Spring Boot > 2.0.0. I don't know exactly what it means... but the application should normally run on the Google Cloud Platform...

I just update components the gcloud

gcloud components list

组件更新可用

sudo gcloud components update

更新后

I had before update jetty-9.3.18.v20170406

在此处输入图片说明

I have after update: jetty-9.4.14.v20181114

在此处输入图片说明

PD: Sorry for my grammar, my native language is Spanish.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM