繁体   English   中英

jBPM 业务应用程序:无法获取 REST 服务器(错误 500)

[英]jBPM Business Application: not able to get REST server (error 500)

我设法从https://start.jbpm.org/获取了 jBPM 业务应用程序,并按照分步指南https://docs.jbpm.org/7.58.0.Final/jbpm-docs/html_single/#_launch_application I使用“business-service/launch.bat clean install”成功启动业务应用程序。 我设法到达主页“http://localhost:8090/”

但是,当我尝试使用默认的“用户”凭据访问“http://localhost:8090/rest/server”时,我的 web 浏览器出现以下错误:[Error500][1] Whitelabel Error Page

此应用程序没有针对 /error 的显式映射,因此您将其视为后备。

There was an unexpected error (type=Internal Server Error, status=500).

From the server logs, I can see this:
2021-08-14 09:53:01.428  INFO 19584 --- [           main] o.k.server.services.impl.KieServerImpl   : Container business-chopper-kjar-1_0-SNAPSHOT (for release id com.bikerzon:business-chopper-kjar:1.0-SNAPSHOT) successfully started
2021-08-14 09:53:01.444  INFO 19584 --- [           main] o.k.server.services.impl.KieServerImpl   : KieServer business-chopper-service is ready to receive requests
2021-08-14 09:53:01.580  INFO 19584 --- [           main] o.k.s.s.a.KieServerAutoConfiguration     : KieServer (id business-chopper-service) started successfully
2021-08-14 09:53:01.900  INFO 19584 --- [           main] org.apache.cxf.endpoint.ServerImpl       : Setting the server's publish address to be /
2021-08-14 09:53:02.200  INFO 19584 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8090 (http) with context path ''
2021-08-14 09:53:02.224  INFO 19584 --- [           main] com.bikerzon.service.Application         : Started Application in 26.283 seconds (JVM running for 28.248)
2021-08-14 09:58:53.330  INFO 19584 --- [0.0-8090-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-08-14 09:58:53.330  INFO 19584 --- [0.0-8090-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-08-14 09:58:53.340  INFO 19584 --- [0.0-8090-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 8 ms
2021-08-14 10:00:33.203 ERROR 19584 --- [0.0-8090-exec-4] c.s.x.b.v2.runtime.reflect.opt.Injector  : null

java.security.PrivilegedActionException: null
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:558) ~[na:na]
        at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>(Injector.java:197) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:81) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:125) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.optimize(Accessor.java:402) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.property.ArrayProperty.<init>(ArrayProperty.java:68) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.<init>(ArrayERProperty.java:88) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.<init>(ArrayElementProperty.java:100) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at com.sun.xml.bind.v2.runtime.property.ArrayElementLeafProperty.<init>(ArrayElementLeafProperty.java:70) ~[jaxb-impl-2.3.0.jar!/:2.3.0]
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) ~[na:na]
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]```

Please help


  [1]: https://i.stack.imgur.com/TNPIy.png

我猜你正在使用 java 16(请确认)并且有一个新功能( https://openjdk.java.net/jeps/396 )将启动器选项 --illegal-access 的默认值设置为“拒绝”而不是“允许”。

您可以在启动器中明确使用“--illegal-access=permit”或降级 java 版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM