Can't get UtgardTutorial1 to work: Access is denied. Latest Guess: Windows 7 Home not suitable?

1,254 views
Skip to first unread message

Reinhard Stein

unread,
Nov 20, 2013, 6:58:19 PM11/20/13
to open...@googlegroups.com
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

Jens Reimann

unread,
Nov 21, 2013, 2:10:27 AM11/21/13
to open...@googlegroups.com

Hi,

As far as I know your assumption is correct. Windows home cannot be used as the opc server using DCOM. However the client side (using utgard) can be windows home. It is only a problem on the server side.

Best regards

Jens

--
You received this message because you are subscribed to the Google Groups "openSCADA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openscada+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Spotti Malotti

unread,
Jun 15, 2015, 7:50:29 AM6/15/15
to open...@googlegroups.com
Hi,

Can windows 8.1 be the opc server ? I got the exact same errors but WIN 8.1 as OS.
Best regards
Alex

Jens Reimann

unread,
Jun 15, 2015, 8:28:21 AM6/15/15
to open...@googlegroups.com
Hi,

never tried it.

Jens

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages