2

我在 centos 启动期间在 Payara 5.194 中收到此错误。我尝试将设置更改为默认设置并更改端口,但我仍然收到此错误

[2020-04-03T10:36:10.144+0545] [Payara 5.194] [WARNING] [] [fish.payara.nucleus.microprofile.config.spi.ConfigProviderResolverImpl] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1585889460207] [timeMillis: 1585889470144] [levelValue: 900] [[
      Timeout out waiting for Microprofile Config startup
    java.lang.IllegalStateException: Payara Microprofile Config needs running server environment to work. Either it's not running, or you're experiencing a race condition
        at fish.payara.nucleus.microprofile.config.spi.ConfigProviderResolverSync.await(ConfigProviderResolverSync.java:55)
        at fish.payara.nucleus.microprofile.config.spi.ConfigProviderResolverSync.getConfig(ConfigProviderResolverSync.java:77)
        at org.eclipse.microprofile.config.ConfigProvider.getConfig(ConfigProvider.java:93)
        at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:119)
        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.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
        at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
        at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
        at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    ]]
4

2 回答 2

1

看起来这个错误是由于服务器的启动时间很慢。由于 Payara 服务器的内存设置问题,Payara 服务器运行缓慢,现在修复启动问题后我没有收到此错误。

编辑:我还发现了这个https://github.com/payara/Payara/pull/4480并且看起来由于启动缓慢而导致的启动错误已在新版本的 Payara 服务器中得到修复。

于 2020-04-06T09:22:29.023 回答
1

我认为这个问题在 Payara 5.201 中得到了解决。我在 5.201 中没有收到此错误,但我的启动速度很慢。

还要检查这个https://github.com/payara/Payara/pull/4486

于 2020-04-06T10:21:06.000 回答