gpt4 book ai didi

java - Heroku 部署失败

转载 作者:行者123 更新时间:2023-11-30 05:22:01 28 4
gpt4 key购买 nike

我正在使用 Play 框架和 Java 1.7。

上次部署:

-----> Play! app detected

-----> Installing OpenJDK 1.7... done

-----> Building Play! application...

这次部署:

-----> Play! app detected /app/tmp/buildpacks/85dfc1d8f48aec0b42f03a59461dc516a918eb099c9e908767a7f42ddf326e12e48c6030ff4891e5c63f08e3b760ea09dee5bbfa4ca293b152d266406bfa29b3/bin/compile: line 31: detect_java_version: command not found

-----> Installing OpenJDK .../app/tmp/buildpacks/85dfc1d8f48aec0b42f03a59461dc516a918eb099c9e908767a7f42ddf326e12e48c6030ff4891e5c63f08e3b760ea09dee5bbfa4ca293b152d266406bfa29b3/bin/compile: line 34: jdk_overlay: command not found

-----> Building Play! application...

错误日志之后

OpenJDK 64-Bit Server VM warning: ignoring option UseSplitVerifier; support was removed in 8.0 CompilerOracle: exclude jregex/Pretokenizer.next Listening for transport dt_socket at address: 8000 08:52:08,455 INFO ~ Starting /tmp/build_bedf10ee7c8222565973235fe2454700 08:52:10,049 INFO ~ Precompiling ... 08:53:02,606 ERROR ~

@7e83895fc Cannot start in PROD mode with errors

Oops: UnexpectedException An unexpected error occured caused by exception UnexpectedException: While applying class play.classloading.enhancers.LocalvariablesNamesEnhancer on controllers.Application

play.exceptions.UnexpectedException: While applying play.CorePlugin@aecb35a on controllers.Application at play.plugins.PluginCollection.enhance(PluginCollection.java:556) at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:235) at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:167) at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:431) at play.Play.preCompile(Play.java:600) at play.Play.init(Play.java:304) at play.server.Server.main(Server.java:162) Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.LocalvariablesNamesEnhancer on controllers.Application at play.CorePlugin.enhance(CorePlugin.java:302) at play.plugins.PluginCollection.enhance(PluginCollection.java:551) ... 6 more Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18 at javassist.CtClassType.getClassFile2(CtClassType.java:203) at javassist.CtClassType.subtypeOf(CtClassType.java:303) at javassist.bytecode.stackmap.TypeData$TypeName.update(TypeData.java:274) at javassist.bytecode.stackmap.TypeData$TypeName.setType(TypeData.java:203) at javassist.bytecode.stackmap.TypeData.setType(TypeData.java:46) at javassist.bytecode.stackmap.Tracer.doInvokeIntfMethod(Tracer.java:828) at ja -----> Play! app detected

如何解决?

最佳答案

首先请注意Heroku no longer supports Play 1.x 。如果可以,请考虑将您的应用程序升级到 Play 2.x,which is still supported .

但是,您描述的问题 has now been fixed 。现已弃用的 Play 1.x 构建包的依赖项破坏了向后兼容性。重新部署您的应用程序应该无需您做任何工作即可完成。

关于java - Heroku 部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59407167/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com