技术文章 - CS372864
当非管理员用户在 ThingWorx Platform 中基于 ODataConnector、SwaggerConnector 或 HTTPConnector 的事物上执行路由/服务时,会出现“无法调用服务:未连接集成运行时”的错误信息
已修改: 06-Feb-2025
适用于
- Windchill Navigate (formerly ThingWorx Navigate) 9.3 to 9.7
- ThingWorx Platform 9.3 to 9.7
- Integration Runtime (IR)
说明
- 非管理员用户无法在 Odata Connector 上执行任何服务
- 管理员能够基于 SwaggerConnector 或 ODataConnector 事物模板成功执行事物上的路由,但非管理员则不能
- 基于以下任何事物模板的事物对于非管理员用户而言均会失败
- Swagger连接器
- WindchillSwagger 连接器
- OData连接器
- SAPO数据连接器
- HTTP连接器
- 非管理员在 SwaggerConnector 或 ODataConnector 上执行路由需要什么权限?
- 用户已添加到 Navigate 组,但仍收到一条错误消息,指出未连接任何 Integration Runtime 实例
- 在 Composer 中执行路由时以非管理员用户身份获取以下内容:
Unable to Invoke Service : No Integration Runtime Connected, Contact Administrator for Further Information - 位于<ThingworxStorage>\logs的 ThingWorx Platform 日志显示以下错误消息:
- 应用程序日志
[L: ERROR] [O: c.t.w.Things] [I: ] [U: <User>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-2] Invalid service name: service_name [L: ERROR] [O: c.t.w.Things] [I: ] [U: <User>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-6] Invalid service name: service_name [L: ERROR] [O: c.t.s.s.i.IntegrationSubsystem] [I: ] [U: <User>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-1] Error getting IR status
[L: ERROR] [O: c.t.w.Things] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-443-exec-1] Execution error in service script [<Service>] :: Unable to Invoke Service : No Integration Runtime Connected, Contact Administrator for Further Information
- ScriptLog.log
Unable to Invoke Service : No Integration Runtime Connected, Contact Administrator for Further Information - See Script Error Log for more details.
- ErrorLog.log (在 LoggingSubsystem 中启用了“启用堆栈跟踪”)
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <User>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-7] Error getting IR status com.thingworx.common.exceptions.InvalidRequestException: Not authorized for PropertyRead on AvailableForRequests in IR-<GUID> at com.thingworx.things.Thing.generateSecurityException(Thing.java:3171) at com.thingworx.things.Thing.checkRunTimeAuthorization(Thing.java:3118) at com.thingworx.things.Thing.getProperty(Thing.java:3660) at com.thingworx.things.Thing.getPropertyValue(Thing.java:3700) at com.thingworx.system.subsystems.integration.IntegrationSubsystem.getAllIntegrationRuntimes(IntegrationSubsystem.java:680) ... [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <User>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-7] Unable to Invoke Service : No Integration Runtime Connected, Contact Administrator for Further Information com.thingworx.common.exceptions.InvalidRequestException: Unable to Invoke Service : No Integration Runtime Connected, Contact Administrator for Further Information at com.thingworx.system.subsystems.integration.IntegrationSubsystem.getAllIntegrationRuntimes(IntegrationSubsystem.java:693) at com.thingworx.system.subsystems.integration.IntegrationSubsystem.getNextAvailableIntegrationRuntime(IntegrationSubsystem.java:626) at com.thingworx.system.subsystems.integration.IntegrationSubsystem.Invoke(IntegrationSubsystem.java:227) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ...
- 笔记:
- 根据缺少的权限或缺少可见性权限,可能会出现不同的错误
- SecurityLog.log (日志级别设置为Trace)
[L: TRACE] [O: ScttThing] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-443-exec-8] Run time authorization check failed due to Exception: Not authorized for PropertyRead on AvailableForRequests in IR-<GUID>- 笔记:
- 根据缺少的权限或缺少可见性权限,可能会出现不同的错误
- 应用程序日志
这是文章 372864 的 PDF 版本,可能已过期。最新版本 CS372864