IIOP1002:主体传播:在主题中找不到主体信息]]

问题描述

我有 Waffle SSO filter 工作得很好,但我们的服务器日志现在完全充满了如下所示的行:

[2021-05-18T08:54:24.525+0100] [Payara 5.2021.1] [SEVERE] [] [javax.enterprise.system.core.security.com.sun.enterprise.iiop.security] [tid: _ThreadID=115 _ThreadName=http-thread-pool::http-listener-1(3)] [timeMillis: 1621324464525] [levelValue: 1000] [[

  IIOP1002: Principal propagation: Cannot find principal information in subject]]

所以我的问题是,如何删除这些日志?

这里有一些其他细节:

应用服务器 - Payara 5

Waffle SSO 类型 - 基于过滤器(版本 2.3.0)

操作系统:Windows 10

解决方法

请注意,这可能不是最佳解决方案,而只是一种解决方法!

好吧,最后关闭日志的唯一方法是注释执行日志记录的那一行 :) 。为此,我必须重新编译 SecurityMechanismSelector(存在于 C:\Payara\glassfish\modules\ejb.security.jar),并注释该行:

enter image description here

您可以从 here 中找到 SecurityMechanismSelector 的来源。一旦注释了该行并且所有内容都在您的 IDE 中编译良好,您需要将类文件放回 jar 并用新编译的 jar 替换原始 jar(位于 C:\Payara\glassfish\modules)。

确保从 JEE 服务器中删除缓存:

  1. 停止服务器

  2. 删除以下位置的所有文件:

    C:\Payara\glassfish\domains\domain1\osgi-cache
    

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...