使用utgard调用OPC时出现如下异常:
Recieved FAULT
15:36:42.441 [main] DEBUG org.jinterop.dcom.transport.JIComTransport - Socket closed... Socket[unconnected] host 192.168.0.210, port 135
Exception in thread "main" org.jinterop.dcom.common.JIException: Access is denied, please check whether the [domain-username-password] are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions. [0x00000005]
at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:654)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:561)
at org.jinterop.dcom.core.JIComServer.(JIComServer.java:524)
at org.openscada.opc.lib.list.ServerList.(ServerList.java:51)
at org.openscada.opc.lib.list.ServerList.(ServerList.java:81)
at com.jdrx.iot.opc.da.Test

在使用Java的utgard库调用OPC-DA时遇到'Access is denied'错误,错误代码0x00000005。问题可能涉及身份验证配置。解决方法包括检查Windows机器的DCOM配置,确保正确设置[域-用户名-密码]。此外,文章提到了相关Maven依赖,并给出了测试代码示例,包括建立连接和列举服务器。
最低0.47元/天 解锁文章
3737

被折叠的 条评论
为什么被折叠?



