I get the following exception when I try to connect to a firewall enabled windows vista machine using J-Interop WMI (when the firewall is down I am able to connect to the remote machine without problem).
I am able to connect to the same computer when the firewall is on using VBS. The vista firewall is already configured to allow remote WMI and WINRM. In addition I cannot find on the windows firewall logs any "Blocked" packeges, only allowed ones…
Have anyone encountered this problem?
Caused by: 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.
… 6 more
Caused by: org.jinterop.dcom.common.JIRuntimeException: 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.
… 9 more
Can you provide a wireshark capture of both the native and j-interop applications ?
These are the wireshark captures quering remote Win32_LocalTime:
VBS capture with remote firewall on:
J-Interop capture with remote firewall on:
J-Interop capture with remote firewall off:
This seems to be environment specific (not j-Interop) , http://stackoverflow.com/questions/369177/connecting-to-wmi-0x800706ba-errors-on-some-machines-but-not-all , does this help ?
Thanks for the fast reply, but this didn't help. The vista computer I'm trying to query is not managed by a domain. I've tried adding the firewall exceptions mentioned in the post and it didn't help. I've even tried to open port 445 for all comunication and it didn't help.
As I said before, I am able to connect to the machine using VBS based WMI script contrary to what was mentioned in stack overflow's forum what makes me more certen its a J-Interop problem. can you identify the packet that was missing from the communication that caused this problem? do you know whats it's purpese? does the VBS script requires it too? why not?
Thanks for your help looking into my problem.
We will have a look at the packets again and let you know today.
Thank you for looking into this problem.
Did anyone had a chance of looking further into this problem?