技术文章 - CS440263
ThingWorx 升级后,无法启动启用了 SSO 的 ThingWorx 平台,应用程序日志中显示“在类路径资源 [config/securityContext.xml] 中创建名为‘filterChainProxy’的 bean 时出错”
已修改: 25-Mar-2025
适用于
- 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