我正在尝试追踪以下异常,运行payara micro
java -jar payara-micro-5.182.jar --deplay mywar.war
这似乎是某种内部错误,一些关于我的应用程序的哪些部分可能导致这种情况的指针会有很大帮助。
[2018-07-17T15:04:27.730+0200] [] [?[1;92mINFO?[0m] [] [?[1;94mcom.bmw.pcc.configuration.ApplicationStartup?[0m] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1531832667730] [levelValue: 800] loading settings...
[2018-07-17T15:04:28.827+0200] [] [?[1;92mINFO?[0m] [AS-WEB-GLUE-00172] [?[1;94mjavax.enterprise.web?[0m] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1531832668827] [levelValue: 800] Loading application [pcc] at [/]
[2018-07-17T15:04:29.179+0200] [] [?[1;93mWARNING?[0m] [NCLS-CORE-00069] [?[1;94mjavax.enterprise.system.core?[0m] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1531832669179] [levelValue: 900] [[
Exception while dispatching an event
java.lang.NullPointerException
at fish.payara.microprofile.openapi.impl.processor.ApplicationProcessor.visitProduces(ApplicationProcessor.java:315)
at fish.payara.microprofile.openapi.impl.visitor.OpenApiWalker.processAnnotation(OpenApiWalker.java:217)
at fish.payara.microprofile.openapi.impl.visitor.OpenApiWalker.processAnnotations(OpenApiWalker.java:193)
at fish.payara.microprofile.openapi.impl.visitor.OpenApiWalker.processAnnotations(OpenApiWalker.java:206)
at fish.payara.microprofile.openapi.impl.visitor.OpenApiWalker.accept(OpenApiWalker.java:173)
at fish.payara.microprofile.openapi.impl.processor.ApplicationProcessor.process(ApplicationProcessor.java:157)
at fish.payara.microprofile.openapi.impl.OpenApiService.createOpenApiDocument(OpenApiService.java:186)
at fish.payara.microprofile.openapi.impl.OpenApiService.event(OpenApiService.java:151)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
也许我可以禁用OpenApi
(假设它只用于提供文档(
如何禁用它?
这是5.182中的已知问题,将在5.183中修复。在此之前,您可以使用mp.openapi.scan.disable
属性禁用OpenAPI扫描。例如:
java -jar -Dmp.openapi.scan.disable=true payara-micro.jar