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





