Hello,
I'm an experienced Java Programmer, but completely new to OPC and COM/DCOM.
I try to connect to the Matrikon OPC Simulation Server with the "Utgard Hello World Application", but whatever Credentials, ProgIds oder CLSIDs I use, I always get the same Exception:
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]I googled for days now, changed DCOM Settings, disabled the Firewall, tried another CLSID as proposed in this forum, installed another OPC Server, even changed Rights in the Registry... nothing helps.
I'm on Windows 7 HOME. Can it be that Windows 7 Home is not feasible for DCOM or even connecting Utgard to an OPC-Server on the same machine?
The documentations concerning OPC/DCOM Settings point to "secpol.msc" which I don't have in Windows 7 HOME. Is this the missing piece?
I would be really glad if someone could help me. I wasted days now and I run out of ideas.
Will things work if I aquire 2 machines with Windows PROF versions and setup DCOM there?
Thanks in Advance.
Best regards,
Reinhard Stein
P.S. This is the complete Log of my failing UtgardTutorial:
21:36:32.832 [Timer-1] INFO o.j.dcom.core.JIComOxidRuntime - Running ClientPingTimerTask !
21:36:32.832 [Timer-2] INFO o.j.dcom.core.JIComOxidRuntime - Running ServerPingTimerTask !
21:36:32.832 [main] INFO org.jinterop.dcom.core.JISession - Created Session: 1761134975
21:36:32.832 [Timer-0] INFO org.jinterop.dcom.core.JISession - Release_References_TimerTask:[RUN] Session: 1761134975 , listOfDeferencedIpids.size(): 0
Nov 20, 2013 9:36:32 PM org.jinterop.dcom.common.JISystem internal_dumpMap
Information: mapOfHostnamesVsIPs: {}
21:36:32.842 [main] DEBUG o.j.dcom.transport.JIComTransport - Opening socket on /127.0.0.1:135
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processOutgoing
Information:
Sending BIND
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processIncoming
Information:
Recieved BIND_ACK
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processOutgoing
Information:
Sending AUTH3
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processOutgoing
Information:
Sending ALTER_CTX
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processIncoming
Information:
Recieved ALTER_CTX_RESP
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processOutgoing
Information:
Sending REQUEST
Nov 20, 2013 9:36:32 PM rpc.DefaultConnection processIncoming
Information:
Recieved FAULT
21:36:32.982 [main] DEBUG o.j.dcom.transport.JIComTransport - Socket closed... Socket[unconnected] host 127.0.0.1, port 135
21:36:32.987 [main] INFO org.openscada.opc.lib.da.Server - Failed to connect to server
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) ~[org.openscada.jinterop.core_1.1.0.v20130529.jar:na]
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:561) ~[org.openscada.jinterop.core_1.1.0.v20130529.jar:na]
at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:524) ~[org.openscada.jinterop.core_1.1.0.v20130529.jar:na]
at org.openscada.opc.lib.da.Server.connect(Server.java:117) ~[org.openscada.opc.lib_1.1.0.v20130529.jar:na]
at org.openscada.opc.tutorial.UtgardTutorial1.main(UtgardTutorial1.java:40) [bin/:na]
Caused by: rpc.FaultException: Received fault. (unknown)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:147) ~[org.openscada.jinterop.deps_1.1.0.v20130529.jar:na]
at rpc.Stub.call(Stub.java:134) ~[org.openscada.jinterop.deps_1.1.0.v20130529.jar:na]
at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:649) ~[org.openscada.jinterop.core_1.1.0.v20130529.jar:na]
... 4 common frames omitted
21:36:32.987 [main] INFO org.openscada.opc.lib.da.Server - Destroying DCOM session...
21:36:32.987 [main] INFO org.openscada.opc.lib.da.Server - Destroying DCOM session... forked
21:36:32.988 [OPCSessionDestructor] DEBUG org.openscada.opc.lib.da.Server - Starting destruction of DCOM session
00000005: Unknown error (00000005)
21:36:32.988 [OPCSessionDestructor] INFO org.jinterop.dcom.core.JISession - About to destroy 0 sessesion which are linked to this session: 1761134975
21:36:32.988 [OPCSessionDestructor] INFO o.j.dcom.core.JIComOxidRuntime - destroySessionOIDs for session: 1761134975
21:36:32.988 [OPCSessionDestructor] INFO org.openscada.opc.lib.da.Server - Destructed DCOM session