技术文章 - CS110492

Windchill 中,使用 xconfmanager 命令修改密码时报错 “com.ptc.windchill.keystore.WTKeyStore - Error getting the value from the KeyStore file”

已修改: 11-Dec-2020   


适用于

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

说明

  • 使用xconfmanager命令修改密码时报错 com.ptc.windchill.keystore.WTKeyStore - Error getting the value from the KeyStore file
  • 重启 Windchill 时,详细报错信息:
[main] com.ptc.windchill.keystore.WTKeyStore - Error getting the value from the KeyStore file
java.security.KeyStoreException: Could not load keystore file.
at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:330)
at com.ptc.windchill.keystore.KeyStoreProxy.load(KeyStoreProxy.java:304)
at com.ptc.windchill.keystore.KeyStoreProxy.getEntry(KeyStoreProxy.java:157)
at com.ptc.windchill.keystore.WTKeyStore.get(WTKeyStore.java:113)
at com.ptc.windchill.keystore.WTKeyStore.put(WTKeyStore.java:149)
at com.ptc.windchill.structconf.SetSiteProperty.execute(SetSiteProperty.java:133)
at com.ptc.windchill.structconf.StructConfManagerCommand.execute(StructConfManagerCommand.java:102)
at com.ptc.windchill.structconf.StructConfManager.execute(StructConfManager.java:259)
at com.ptc.windchill.structconf.StructConfManager.execute(StructConfManager.java:273)
at com.ptc.windchill.structconf.StructConfManager.main(StructConfManager.java:820)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..)
at java.security.KeyStore.load(KeyStore.java:1185)
at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:328)

ERROR [main] com.ptc.windchill.keystore.WTKeyStore - Error adding the key: (encrypted.wt.pom.dbPassword)
java.security.KeyStoreException: Could not load keystore file.
at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:330)
at com.ptc.windchill.keystore.KeyStoreProxy.load(KeyStoreProxy.java:304)
at com.ptc.windchill.keystore.KeyStoreProxy.addEntry(KeyStoreProxy.java:120)
at com.ptc.windchill.keystore.WTKeyStore.put(WTKeyStore.java:153)
at com.ptc.windchill.structconf.SetSiteProperty.execute(SetSiteProperty.java:133)
at com.ptc.windchill.structconf.StructConfManagerCommand.execute(StructConfManagerCommand.java:102)
at com.ptc.windchill.structconf.StructConfManager.execute(StructConfManager.java:259)
at com.ptc.windchill.structconf.StructConfManager.execute(StructConfManager.java:273)
at com.ptc.windchill.structconf.StructConfManager.main(StructConfManager.java:820)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..)
at java.security.KeyStore.load(KeyStore.java:1185)
at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:328)
  • Server Manager 日志中如下报错信息:
ERROR [main] com.ptc.windchill.keystore.WTKeyStore - Error getting the value from the KeyStore file
java.security.KeyStoreException: Could not load keystore file.
at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:352)
at com.ptc.windchill.keystore.KeyStoreProxy.load(KeyStoreProxy.java:325)
at com.ptc.windchill.keystore.KeyStoreProxy.getEntry(KeyStoreProxy.java:157)
at com.ptc.windchill.keystore.WTKeyStore.get(WTKeyStore.java:120)
at wt.dataservice.DSPropertiesServer.getKeyStoreValue(DSPropertiesServer.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at wt.dataservice.DSProperties.getPasswordProperty(DSProperties.java:240)
at wt.dataservice.DSProperties.<clinit>(DSProperties.java:175)
at wt.dataservice.DataServiceFactory.<init>(DataServiceFactory.java:63)
at wt.dataservice.DataServiceFactory.getDefault(DataServiceFactory.java:37)
at wt.manager.CacheMasterNegotiator.getNewConnection(CacheMasterNegotiator.java:859)
at wt.manager.CacheMasterNegotiator.start(CacheMasterNegotiator.java:2268)
at wt.manager.ServerManagerMain.startServerManager_internal(ServerManagerMain.java:391)
at wt.manager.ServerManagerMain.run(ServerManagerMain.java:299)
at wt.manager.ServerManagerMain.main(ServerManagerMain.java:229)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:865)
at java.security.KeyStore.load(KeyStore.java:1445)
at com.ptc.windchill.keystore.KeyStoreProxy.loadExisting(KeyStoreProxy.java:350)
 
这是文章 CS110492 的 PDF 版本,可能已过期。最新版本 https://www.ptc.com/cn/support/article/cs110492