java JDK 从 Oracle 更改为 Amazon Corretto 后 Pentaho 服务器登录问题

Pentaho server login problems after java JDK change from Oracle to Amazon Coretto

我们使用 Pentaho(社区版)的 BI 服务器。由于我们要把Oracle的Java-JRE改成Amazon Coretto的OpendJDK,所以当用户要登录时(空页面)启动服务器后出现问题。登录页面本身显示正常 - 如果登录正确,则会出现所描述的问题。

Windows 服务器 2012 R2 亚马逊 Corretto\jdk1.8.0_212 pentaho-server-ce-8.2.0.0-342

尝试包含丢失的 .jar 文件,重新安装,本地安装 - 没有任何效果。因此,我们附加了上次 "normal trial" 的整个 Catalina 和访问日志以获得精简输出。

记录卡特琳娜:

27-May-2019 14:32:25.018 INFO [main] org.apache.catalina.core.StandardServer.await 通过关闭端口接收到有效的关闭命令。停止服务器实例。 2019 年 5 月 27 日 14:32:25.018 信息 [main] org.apache.coyote.AbstractProtocol.pause 暂停 ProtocolHandler ["http-nio-8080"] 2019 年 5 月 27 日 14:32:25.112 信息 [主要] org.apache.coyote.AbstractProtocol.pause 暂停 ProtocolHandler ["ajp-nio-8009"] 2019 年 5 月 27 日 14:32:25.143 信息 [main] org.apache.catalina.core.StandardService.stopInternal 停止服务 [Catalina] 2019 年 5 月 27 日 14:32:26.033 信息 [FelixShutdown] org.apache.cxf.management.jmx.InstrumentationManagerImpl.unregister 注销 MBean org.apache.cxf:bus.id=pentaho-metaverse-web-cxf590120556,type=Bus.Service.Endpoint ,service="{http://service.metaverse.pentaho.org/}MetaverseService",port="MetaverseService",instance.id=1796025488 2019 年 5 月 27 日 14:32:26.033 信息 [FelixShutdown] org.apache.cxf.management.jmx.InstrumentationManagerImpl.unregister 注销 MBean org.apache.cxf:bus.id=pentaho-metaverse-web-cxf590120556,WorkQueueManager=Bus.WorkQueueManager ,type=WorkQueueManager,instance.id=531601800 2019 年 5 月 27 日 14:32:26.033 信息 [FelixShutdown] org.apache.cxf.management.jmx.InstrumentationManagerImpl.unregister 注销 MBean org.apache.cxf:bus.id=pentaho-metaverse-web-cxf590120556,type=Bus,instance.id=590120556 2019 年 5 月 27 日 14:32:26.596 信息 [FelixShutdown] org.apache.cxf.management.jmx.InstrumentationManagerImpl.unregister 注销 MBean org.apache.cxf:bus.id=get-fields-core-cxf634285651,type=Bus.Service.Endpoint ,service="{http://endpoint.getfields.pentaho.org/}GetFieldsEndpoint",port="GetFieldsEndpoint",instance.id=1950245397

[...]

org.pentaho.platform.api.engine.ObjectFactoryException:无法使用键 [ApplicationContext] 检索对象,org.pentaho.platform.api.engine.ObjectFactoryException:无法使用键 [ApplicationContext] 检索对象。]])但无法在 Web 应用程序时删除它被阻止了。线程将随着时间的推移而更新,以尝试避免可能的内存泄漏。 2019 年 5 月 27 日 14:32:27.658 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks Web 应用程序 [pentaho] 创建了一个 ThreadLocal,键类型为 [java.lang.ThreadLocal](值 [java.lang.ThreadLocal@3da0db51]) 和类型 [java.util.ArrayList] 的值(值 [[org.pentaho.platform.api.engine.ObjectFactoryException: Fehler beim Abrufen des Objekts mit Schlüssel [ApplicationContext]., org.pentaho.platform.api.engine.ObjectFactoryException: Fehler beim Abrufen des Objekts mit Schlüssel [ApplicationContext]., org.pentaho.platform.api.engine.ObjectFactoryException: Fehler beim Abrufen des Objekts mit Schlüssel [ApplicationContext]., org.pentaho.platform.api.engine.ObjectFactoryException: Fehler beim Abrufen des Objekts mit Schlüssel [ApplicationContext]., org.pentaho.platform.api.engine.ObjectFactoryException : Fehler beim Abrufen des Objekts mit Schlüssel [ApplicationContext]., org.pentaho.platform.api.engine.ObjectFactoryException: Fehler beim Abrufen des Objekts mit Schlüssel [ApplicationContext]., org.pentaho.platform.api.engine.ObjectFactoryException: Fehler beim Abrufen

[...]

文件日志的其余部分:https://ufile.io/8wtti6pm

Pentaho 8.2 支持 OpenJDK,但看起来 Amazon Corretto 出于某种原因不兼容。 Amazon Corretto 和标准 OpenJDk 之间存在差异;这些差异一定是导致您看到的问题的原因。

Differences Amazon Corretto and OpenJDK