Article - CS440263

Unable to start ThingWorx Platform with SSO enabled after ThingWorx upgrade with "Error creating bean with name 'filterChainProxy' defined in class path resource [config/securityContext.xml]" in Application Log

Modified: 25-Mar-2025   


Applies To

  • ThingWorx Platform 9.6

Description

  • Failed to start ThingWorx with SSO enabled after upgrading ThingWorx from 9.3.3 to 9.6.1
  • Getting below error log in Application Log
  • [L: ERROR] [O: c.p.e.i.o.g.TinkEncryptedClientTokenServices] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] Could not save keystore to (/ThingworxPlatform/ssoSecurityConfig/_sso_keystore.pfx)
    [L: WARN] [O: o.s.w.c.s.XmlWebApplicationContext] [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: o.s.w.c.ContextLoader] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] Context initialization failed
    [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [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: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [P: ] [T: main] *** Web Application STATE is being set to ERROR! ***
  • SSO passwords are encypted
This is a printer-friendly version of Article 440263 and may be out of date. For the latest version click CS440263