技术文章 - CS343365
在 ThingWorx 中执行 GetEndpointList 服务时出错“无法在 ODataConnector 上调用服务 GetEndpointList:您的路由交换失败”
已修改: 06-Dec-2024
适用于
- Windchill PDMLink 11.0 M030-CPS06 to 13.0
- ThingWorx Platform 8.3 to 9.3
- Windchill Navigate (formerly ThingWorx Navigate) 8.5.0 to 9.3
说明
- 运行服务GetEndpointList时,UI 上出现以下错误:
[context: com.thingworx.webservices.context.HttpExecutionContext@xxxxxx][message: Unable to Invoke Service GetEndpointList on <ODataConnector thing> : Your route exchange has failed. Resource Error [Failed to aggregate all metadatas, 3 were expected, but only 0 received]]
- 调用错误的端点 URL 或有印刷错误的端点时会出现以下错误:
Unable to Invoke Service delete on ptc-windchill-OData-connector : Your route exchange has failed. Service operation failed with status [ - The URI is malformed.]
- ValidateConnection服务返回200 Ok
- 集成运行时日志显示以下错误:
WARN c.t.i.r.o.MetadataAggregator - Failure processing metadata: HTTP operation failed invoking https://<hostname>/Windchill/servlet/odata/DocMgmt/$metadata with statusCode: 401 WARN c.t.i.r.o.MetadataAggregator - Failure processing metadata: HTTP operation failed invoking https://<hostname>/Windchill/servlet/odata/IE/$metadata with statusCode: 401 WARN c.t.i.r.o.MetadataAggregator - Failure processing metadata: HTTP operation failed invoking https://<hostname>/Windchill/servlet/odata/ProdMgmt/$metadata with statusCode: 401 ERROR c.t.i.r.IntegrationEngine - Exchange process failed with exception thrown : Your route exchange has failed. Resource Error [Failed to aggregate all metadatas, 3 were expected, but only 0 received] java.lang.RuntimeException: Your route exchange has failed. Resource Error [Failed to aggregate all metadatas, 3 were expected, but only 0 received] at com.twx.integration.route.exceptions.ExceptionHelper.convertToRuntimeException(ExceptionHelper.java:77) at com.twx.integration.route.IntegrationEngine.dispatchRoute(IntegrationEngine.java:159) at com.twx.integration.client.things.IntegrationRuntimeServer.Invoke(IntegrationRuntimeServer.java:72) at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261) at com.thingworx.communications.client.things.VirtualThing.invokeService(VirtualThing.java:1120) at com.thingworx.communications.client.things.VirtualThing.handleServiceRequest(VirtualThing.java:1028) at com.thingworx.communications.client.ConnectedThingClient.handleRequest(ConnectedThingClient.java:315) at com.thingworx.communications.client.processor.ClientProcessorTask.run(ClientProcessorTask.java:55) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
这是文章 343365 的 PDF 版本,可能已过期。最新版本 CS343365