简体   繁体   English

Spring Boot可以在Google标准应用引擎上运行吗?

[英]Can spring boot run on google standard app engine?

SpringBoot application can be deployed to Google Flex App Engine. SpringBoot应用程序可以部署到Google Flex App Engine。

But when I try to deploy to Google Standard App Engine, an exception will be thrown out: 但是,当我尝试部署到Google Standard App Engine时,将抛出一个异常:

[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 [INFO] GCLOUD:2018-06-11 23:04:06.517:WARN:oeja.ClassInheritanceHandler:qtp249515771-16:[INFO] GCLOUD:java.lang.NullPointerException [INFO] GCLOUD:位于java.util.concurrent.ConcurrentHashMap。 get(ConcurrentHashMap.java:936)[INFO] GCLOUD:位于org.eclipse.jetty.annotations.ClassInheritanceHandler.addToInheritanceMap(ClassInheritanceHandler.java:72)[INFO] GCLOUD:位于org.eclipse.jetty.annotations.ClassInheritanceHandler.handle( ClassInheritanceHandler.java:58)[INFO] GCLOUD:在org.eclipse.jetty.annotations.AnnotationParser $ MyClassVisitor.visit(AnnotationParser.java:476)[INFO] GCLOUD:在org.objectweb.asm.ClassReader.accept(ClassReader。 java:650)[INFO] GCLOUD:位于org.objectweb.asm.ClassReader.accept(ClassReader.java:525)[INFO] GCLOUD:位于org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:978) [INFO] GCLOUD:位于org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:958)[INFO] GCLOUD:位于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 r.parseJar(AnnotationParser.java:902)[INFO] GCLOUD:位于org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851)[INFO] GCLOUD:位于org.eclipse.jetty.annotations.AnnotationConfiguration $ ParserTask.call(AnnotationConfiguration.java:163)[INFO] GCLOUD:位于org.eclipse.jetty.annotations.AnnotationConfiguration $ 1.run(AnnotationConfiguration.java:546)[INFO] GCLOUD:位于org.eclipse.jetty.util.thread .QueuedThreadPool.runJob(QueuedThreadPool.java:671)[INFO] GCLOUD:位于org.eclipse.jetty.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:589)[INFO] GCLOUD:位于java.lang.Thread。运行(Thread.java:748)[INFO] GCLOUD:2018-06-11 23:04:06.669:INFO:oeja.AnnotationConfiguration:main:扫描经过时间= 1717ms

The example I took is from here. 我举的例子是从这里开始的。

https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/appengine-standard-java8/springboot-appengine-standard 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. 由于某些版本的Spring Boot> 2.0.0,我已经看到了此异常。 I don't know exactly what it means... but the application should normally run on the Google Cloud Platform... 我不确切知道这是什么意思...但是该应用程序通常应在Google Cloud Platform上运行...

I just update components the gcloud 我只是更新gcloud的组件

gcloud components list

组件更新可用

sudo gcloud components update

更新后

I had before update jetty-9.3.18.v20170406 我在更新jetty-9.3.18.v20170406之前

在此处输入图片说明

I have after update: jetty-9.4.14.v20181114 我有更新后:jetty-9.4.14.v20181114

在此处输入图片说明

PD: Sorry for my grammar, my native language is Spanish. PD:对不起,我的语法是我的母语是西班牙语。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不稳定的 Google Cloud Engine - 标准环境 - 延迟(Spring Boot 应用程序) - Erratic Google Cloud Engine - Standard Environment - Latency (Spring Boot App) 如何在适用于Google App Engine(标准)的Spring Boot应用程序上使用调试器 - How can I use the debugger on a Spring Boot application for the Google App Engine (standard) Google App Engine标准环境 - 未找到控制器方法 - Spring Boot应用程序 - Google App Engine Standard env - not found controller method - Spring Boot app 在Google App Engine标准版上运行Spring Boot Application时发生javax.el.E​​xpressionFactory错误 - javax.el.ExpressionFactory Error when running Spring Boot Application on Google App Engine Standard 通过春季启动在Google App Engine中进行Cron作业 - Cron job in Google app engine with spring boot Spring 在 Google Cloud App Engine 上启动托管 - Spring Boot hosting on Google Cloud App Engine Spring 启动应用程序在部署到 Google App Engine 时无法连接到 Google Cloud SQL (PostgreSQL) - Spring Boot app can't connect to Google Cloud SQL (PostgreSQL) when deploying to Google App Engine 无法从Google App Engine(春​​季启动应用)连接到Google Cloud SQL(第二代) - Can not connect to google cloud sql(second generation) from google app engine(spring boot app) Google App Engine上的Spring Boot应用程序:无法找到主类 - Spring Boot app on Google App Engine: unable to find main class 在 Google App Engine 中部署 Spring boot gradle 应用 - Deploy Spring boot gradle app in Google App Engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM