IBM Bluemix Cloud Foundry SpringBoot kotlin 应用程序错误

IBM Bluemix Cloud Foundry SpringBoot kotlin app error

我已经在 IBM Bluemix 上部署了一个用 kotlin 编写的 spring 启动应用程序。我有 java.

的自由使用权

但是我无法 运行 正确地使用我的应用程序,但是在我本地的机器上它工作得很好。

当我调用我的 REST API 时,它 return 我出错或无法正常工作。

这是错误:

There was an unexpected error (type=Internal Server Error, status=500). java.lang.NoClassDefFoundError: it.gate42.skip.DeviceInfo.DeviceInfo_Accessor_ewee6w (initialization failure)

我已经尝试更改 Java 版本,但错误是一样的。 (我已经设置了OPEN_JDK和版本1.8.+)

这是 return 我调用 cloud foundry 应用程序的日志:https://gist.github.com/paranoiasystem/a28a2587c231f2b398c4650ba1c7016c

我把它 post 放在要点上,因为它太长了,不可能 post 全部记录在这里。

我已经解决了这个问题,我重写了我的 manifest.yml 如下:

---
applications:
- name: testskipapi
  memory: 1G
  instances: 1
  path: build/libs/skipcode-0.0.1-SNAPSHOT.jar
  buildpack: https://github.com/cloudfoundry/java-buildpack.git
env:
  JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 1.8.0_+ } }'