Article - CS292363

Server utilities fail with 'java.security.KeyStoreException: Could not load keystore file' after update to Java 8u171 or later in Windchill

Modified: 11-Dec-2018   


Applies To

  • Windchill PDMLink 11.0 to 11.1
  • Windchill ProjectLink 11.0 to 11.1
  • Pro/INTRALINK 8.x + 11.0 to 11.1
  • Windchill PDM Essentials 11.0 to 11.1
  • PTC Arbortext Content Manager 11.0 to 11.1

Description

  • Server utilities fail with java.security.KeyStoreException: Could not load keystore file after update to Java 8u171 or later in Windchill.
  • This includes command line utilities such as AddColumns and Upgrade tools.
  • Example stack trace from Upgrade Manager:
ERROR: UpgradeManager: ERROR : com.ptc.windchill.keystore.WTKeyStore - Error getting the value from the KeyStore file
UpgradeManager: java.security.KeyStoreException: Could not load keystore file.
UpgradeManager:       at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:352)
UpgradeManager:       at com.ptc.windchill.keystore.KeyStoreProxy.load(KeyStoreProxy.java:325)
UpgradeManager:       at com.ptc.windchill.keystore.KeyStoreProxy.getEntry(KeyStoreProxy.java:157)
UpgradeManager:       at com.ptc.windchill.keystore.WTKeyStore.get(WTKeyStore.java:120)
UpgradeManager:       at com.infoengine.au.DecryptingProperties.decrypt(DecryptingProperties.java:162)
UpgradeManager:       at com.infoengine.au.DecryptingProperties.put(DecryptingProperties.java:172)
UpgradeManager:       at java.util.Properties.setProperty(Properties.java:166)
UpgradeManager:       at com.infoengine.au.IEProperties.resetProperties(IEProperties.java:1182)
UpgradeManager:       at com.infoengine.au.IEProperties.resetProperties(IEProperties.java:1099)
UpgradeManager:       at com.infoengine.au.IEProperties.resetProperties(IEProperties.java:1077)
UpgradeManager:       at com.infoengine.au.NamingService.setProperties(NamingService.java:1160)
UpgradeManager:       at com.infoengine.au.NamingService.newInstance(NamingService.java:265)
UpgradeManager:       at com.infoengine.au.NamingService.newInstance(NamingService.java:197)
UpgradeManager:       at wt.federation.StandardFederationService.initInfoEngineProperties(StandardFederationService.java:2267)
UpgradeManager:       at com.ptc.windchill.upgrade.util.UpgradePropertiesController.resetSpecialPropertiesInMemory(UpgradePropertiesController.java:119)
UpgradeManager:       at com.ptc.windchill.upgrade.util.UpgradePropertiesController.init(UpgradePropertiesController.java:98)
UpgradeManager:       at com.ptc.windchill.upgrade.statemachine.UpgradeFrameworkStateMachine.enableDbConnections(UpgradeFrameworkStateMachine.java:916)
UpgradeManager:       at com.ptc.windchill.upgrade.statemachine.UpgradeFrameworkStateMachine.main_(UpgradeFrameworkStateMachine.java:738)
UpgradeManager:       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
UpgradeManager:       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
UpgradeManager:       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
UpgradeManager:       at java.lang.reflect.Method.invoke(Method.java:498)
UpgradeManager:       at com.ptc.windchill.upgrade.statemachine.DynamicLauncher.runUpgradeFrameworkStateMachine(DynamicLauncher.java:58)
UpgradeManager:       at com.ptc.windchill.upgrade.statemachine.DynamicLauncher.main(DynamicLauncher.java:33)
UpgradeManager: Caused by: java.io.IOException: Invalid secret key format
UpgradeManager:       at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:856)
UpgradeManager:       at java.security.KeyStore.load(KeyStore.java:1445)
UpgradeManager:       at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:350)
UpgradeManager:       ... 23 more
This is a PDF version of Article CS292363 and may be out of date. For the latest version click https://www.ptc.com/en/support/article/CS292363