技术文章 - CS297905
Integration Runtime 日志文件中出现错误“java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空”
已修改: 08-Sep-2025
适用于
- Windchill Navigate (formerly ThingWorx Navigate) 1.8.0 to 10.0
说明
- 在ptc-windchill-integration-connector中执行ValidateConnection服务时发生错误。
- 使用固定身份验证配置 Thingworx(不带 SSL)和 Windchill(带 SSL)时,集成运行时日志文件中出现以下错误:
javax.net.ssl.SSLException:java.lang.RuntimeException:意外错误:java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空
在 sun.security.ssl.Alerts.getSSLException(Alerts.java:208)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) ~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1903) ~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1886)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1402)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)~[na:1.8.0_191]
在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.ServiceUnavailableRetryExec.execute(ServiceUnavailableRetryExec.java:85) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.component.http4.HttpProducer.executeMethod(HttpProducer.java:334) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:193) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:124) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:436)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:119) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:541) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.Pipeline.process(Pipeline.java:120)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:529) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:497) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:365)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:497)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.send(ProducerCache.java:242) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:148)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:135)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:301)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.twx.integration.route.IntegrationEngine.dispatchRoute(IntegrationEngine.java:122)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.twx.integration.client.things.IntegrationRuntimeServer.Invoke(IntegrationRuntimeServer.java:72) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[na:1.8.0_191]
在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.0_191]
在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.0_191]
在 java.lang.reflect.Method.invoke(Method.java:498)~[na:1.8.0_191]
在 com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.things.VirtualThing.invokeService(VirtualThing.java:1120)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.things.VirtualThing.handleServiceRequest(VirtualThing.java:1026)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.ConnectedThingClient.handleRequest(ConnectedThingClient.java:313)[集成运行时-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.processor.ClientProcessorTask.run(ClientProcessorTask.java:55) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191]
在 java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_191]
在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[na:1.8.0_191]
在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191]
在 java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
原因:java.lang.RuntimeException:意外错误:java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空
在 sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:91) ~[na:1.8.0_191]
在 sun.security.validator.Validator.getInstance(Validator.java:181) ~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:312)~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:171)~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:184)~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)~[na:1.8.0_191]
在 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)~[na:1.8.0_191]
在 sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)~[na:1.8.0_191]
在 sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)~[na:1.8.0_191]
在 sun.security.ssl.Handshaker.process_record(Handshaker.java:965)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)~[na:1.8.0_191]
...省略了 53 个公共框架
原因:java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空
在 java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)~[na:1.8.0_191]
在 java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120) ~[na:1.8.0_191]
在 java.security.cert.PKIXBuilderParameters。<init>(PKIXBuilderParameters.java:104) ~[na:1.8.0_191]
在 sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:89) ~[na:1.8.0_191]
...省略了 65 个公共框架
在 sun.security.ssl.Alerts.getSSLException(Alerts.java:208)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) ~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1903) ~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1886)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1402)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)~[na:1.8.0_191]
在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.ServiceUnavailableRetryExec.execute(ServiceUnavailableRetryExec.java:85) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.component.http4.HttpProducer.executeMethod(HttpProducer.java:334) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.component.http4.HttpProducer.process(HttpProducer.java:193) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:124) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:436)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:119) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:541) ~[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.Pipeline.process(Pipeline.java:120)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:198)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:529) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:497) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:365)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:497)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.ProducerCache.send(ProducerCache.java:242) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:148)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:135)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:301)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.twx.integration.route.IntegrationEngine.dispatchRoute(IntegrationEngine.java:122)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.twx.integration.client.things.IntegrationRuntimeServer.Invoke(IntegrationRuntimeServer.java:72) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[na:1.8.0_191]
在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.0_191]
在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.0_191]
在 java.lang.reflect.Method.invoke(Method.java:498)~[na:1.8.0_191]
在 com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.things.VirtualThing.invokeService(VirtualThing.java:1120)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.things.VirtualThing.handleServiceRequest(VirtualThing.java:1026)[integration-runtime-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.ConnectedThingClient.handleRequest(ConnectedThingClient.java:313)[集成运行时-8.0.3-b232.jar:1.0.0]
在 com.thingworx.communications.client.processor.ClientProcessorTask.run(ClientProcessorTask.java:55) [integration-runtime-8.0.3-b232.jar:1.0.0]
在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_191]
在 java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_191]
在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[na:1.8.0_191]
在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_191]
在 java.lang.Thread.run(Thread.java:748) [na:1.8.0_191]
原因:java.lang.RuntimeException:意外错误:java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空
在 sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:91) ~[na:1.8.0_191]
在 sun.security.validator.Validator.getInstance(Validator.java:181) ~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:312)~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:171)~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:184)~[na:1.8.0_191]
在 sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)~[na:1.8.0_191]
在 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)~[na:1.8.0_191]
在 sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)~[na:1.8.0_191]
在 sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)~[na:1.8.0_191]
在 sun.security.ssl.Handshaker.process_record(Handshaker.java:965)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)~[na:1.8.0_191]
在 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)~[na:1.8.0_191]
...省略了 53 个公共框架
原因:java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须非空
在 java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)~[na:1.8.0_191]
在 java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120) ~[na:1.8.0_191]
在 java.security.cert.PKIXBuilderParameters。<init>(PKIXBuilderParameters.java:104) ~[na:1.8.0_191]
在 sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:89) ~[na:1.8.0_191]
...省略了 65 个公共框架
这是文章 297905 的 PDF 版本,可能已过期。最新版本 CS297905