java OPC, DCOM 错误汇总

本文详细记录了解决Java中使用JInterop库进行DCOM访问时遇到的两个常见错误:权限被拒绝及RPC服务器不可用。通过检查账户密码、调整本地安全策略、确认COM服务器运行状态及网络连通性,最终通过暂时关闭Windows防火墙解决了问题。

错误:

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]

排查,
确定账户密码正确。
本地安全策略设置网络访问

想要结婚,想要有媳妇,想要年薪百万。修改为:
想要结婚,想要有媳妇,想要年薪百万
第二个错误:

 信息: 
 Recieved RESPONSE
Exception in thread "main" org.jinterop.dcom.common.JIException: 
The RPC server is unavailable.
 Please check if the COM server is up and running and that route to the COM Server is accessible 
(A simple "Ping" to the Server machine would do).
 Also please confirm if the Windows Firewall is not blocking DCOM access. 
  [0x800706BA]

通过错误日志可知:

错误原因有两个:
1.RPC服务器不可用
2.请确认Windows防火墙是否未阻止DCOM访问

没解决办法,我直接把防火墙关闭了。以后再确认问题吧

评论 19
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值