opc da java,java调用OPC-DA出现0x00000005错误

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值