Payara服务器启动异常

huangapple go评论85阅读模式
英文:

Payara Server Startup Exception

问题

我在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)
]]
英文:

I am getting this error in Payara 5.194 during startup in centos.I try changing setting to default setting and change port but i am still getting this error

[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)
    ]]

答案1

得分: 1

看起来这个错误是由服务器启动时间过慢引起的。由于Payara服务器的内存设置问题,Payara服务器启动缓慢,现在在我修复启动问题后,我不再遇到这个错误。

编辑:我还发现了这个链接:https://github.com/payara/Payara/pull/4480,看起来由于新版本的Payara服务器已经修复了由于启动缓慢引起的启动错误。

英文:

It look like this error is due to slow startup time of server. Payara server was slow due to memory setting issue of Payara server and now I am not getting this error after I fix startup issue.

Edited: I also found this https://github.com/payara/Payara/pull/4480 and it looks like startup error due to slow startup has been fix in new version of Payara server.

答案2

得分: 1

我认为这个问题在 Payara 5.201 版本中已经修复。我在 5.201 版本中没有遇到这个错误,但我的启动速度较慢。

另外,请查看这个链接:https://github.com/payara/Payara/pull/4486。

英文:

I think this issue is fixed in Payara 5.201. I did not get this error in 5.201 but my startup is slow.

Also Check this https://github.com/payara/Payara/pull/4486

huangapple
  • 本文由 发表于 2020年4月4日 17:57:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/61026412.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定