技术文章 - CS440263

ThingWorx 升级后,无法启动启用了 SSO 的 ThingWorx 平台,应用程序日志中显示“在类路径资源 [config/securityContext.xml] 中创建名为‘filterChainProxy’的 bean 时出错”

已修改: 25-Mar-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 9.6

说明

  • 将 ThingWorx 从 9.3.3 升级到 9.6.1 后,无法在启用 SSO 的情况下启动 ThingWorx
  • 在应用程序日志中获取以下错误日志
  •  [L: ERROR] [O: cpeiogTinkEncryptedClientTokenServices] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] Could not save keystore to (/ThingworxPlatform/ssoSecurityConfig/_sso_keystore.pfx) [L: WARN] [O: oswcsXmlWebApplicationContext] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChainProxy' defined in class path resource [config/securityContext.xml]: Cannot create inner bean '(inner bean)#58a01287' of type [org.springframework.security.web.DefaultSecurityFilterChain] while setting constructor argument with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#58a01287': Cannot resolve reference to bean 'oAuth2AuthorizationCodeRedirectFilter' while setting constructor argument with key [5]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oAuth2AuthorizationCodeRedirectFilter' defined in class path resource [config/securityContext.xml]: Cannot resolve reference to bean 'authorizedClientRepository' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizedClientRepository' defined in class path resource [config/securityContext.xml]: Cannot resolve reference to bean 'authorizedClientService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizedClientService' defined in class path resource [config/securityContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.thingworx.security.authentication.sso.SSOEncryptedClientTokenServices]: Constructor threw exception; nested exception is java.lang.NullPointerException [L: ERROR] [O: oswcContextLoader] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] Context initialization failed [L: ERROR] [O: ctsThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] *** CRITICAL ERROR ON STARTUP: Error creating bean with name 'filterChainProxy' defined in class path resource [config/securityContext.xml]: Cannot create inner bean '(inner bean)#58a01287' of type [org.springframework.security.web.DefaultSecurityFilterChain] while setting constructor argument with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#58a01287': Cannot resolve reference to bean 'oAuth2AuthorizationCodeRedirectFilter' while setting constructor argument with key [5]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oAuth2AuthorizationCodeRedirectFilter' defined in class path resource [config/securityContext.xml]: Cannot resolve reference to bean 'authorizedClientRepository' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizedClientRepository' defined in class path resource [config/securityContext.xml]: Cannot resolve reference to bean 'authorizedClientService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizedClientService' defined in class path resource [config/securityContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.thingworx.security.authentication.sso.SSOEncryptedClientTokenServices]: Constructor threw exception; nested exception is java.lang.NullPointerException [L: ERROR] [O: ctsThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] *** Web Application STATE is being set to ERROR! ***
  • SSO 密码已加密
这是文章 440263 的 PDF 版本,可能已过期。最新版本 CS440263