Connection to Matrikon OPC Simulation Server via Utgard

376 views
Skip to first unread message

Julián F. Pérez

unread,
Jul 29, 2015, 9:42:03 AM7/29/15
to openSCADA
I am using the Matrikon OPC Server for Simulation and Testing, instead of TOPServer, along with the tutorial HowToStartWithUtgard I am not able to connect to the server. This is the error that I get:

       
15:02:18.452 [main] DEBUG o.j.dcom.transport.JIComTransport - Socket closed... Socket[unconnected] host XXX.XXX.XX.X, port 135
   
15:02:18.453 [main] WARN  org.jinterop.dcom.core.JIComServer - Got the class not registered exception , will attempt setting entries based on status flags...
   
15:02:18.468 [main] INFO  org.openscada.opc.lib.da.Server - Failed to connect to server
    org
.jinterop.dcom.common.JIException: Class not registered. If you are using a DLL/OCX , please make sure it has "DllSurrogate" flag set. Faq A(6) in readme.html. [0x80040154]
    at org
.jinterop.dcom.core.JIComServer.init(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at org
.jinterop.dcom.core.JIComServer.initialise(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at org
.jinterop.dcom.core.JIComServer.<init>(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at org
.openscada.opc.lib.da.Server.connect(Server.java:117) ~[org.openscada.opc.lib_1.0.0.201303051455.jar:na]
    at com
.matrikonopc.utgard.tutorial.UtgardReadTutorial.main(UtgardReadTutorial.java:31) [bin/:na]
   
Caused by: org.jinterop.dcom.common.JIRuntimeException: Class not registered. If you are using a DLL/OCX , please make sure it has "DllSurrogate" flag set. Faq A(6) in readme.html. [0x80040154]
    at org
.jinterop.dcom.core.JIRemActivation.read(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at ndr
.NdrObject.decode(Unknown Source) ~[org.openscada.jinterop.deps_1.0.0.201303051454.jar:na]
    at rpc
.ConnectionOrientedEndpoint.call(Unknown Source) ~[org.openscada.jinterop.deps_1.0.0.201303051454.jar:na]
    at rpc
.Stub.call(Unknown Source) ~[org.openscada.jinterop.deps_1.0.0.201303051454.jar:na]
   
... 5 common frames omitted
   
15:02:18.469 [main] INFO  org.openscada.opc.lib.da.Server - Destroying DCOM session...
   
15:02:18.470 [main] INFO  org.openscada.opc.lib.da.Server - Destroying DCOM session... forked
   
80040154: Unknown error (80040154)
   
15:02:18.499 [OPCSessionDestructor] DEBUG org.openscada.opc.lib.da.Server - Starting destruction of DCOM session
   
15:02:18.500 [OPCSessionDestructor] INFO  org.jinterop.dcom.core.JISession - About to destroy 0 sessesion which are linked to this session: 1325311425
   
15:02:18.500 [OPCSessionDestructor] INFO  o.j.dcom.core.JIComOxidRuntime - destroySessionOIDs for session: 1325311425
   
15:02:18.500 [OPCSessionDestructor] INFO  org.openscada.opc.lib.da.Server - Destructed DCOM session
   
15:02:18.501 [OPCSessionDestructor] INFO  org.openscada.opc.lib.da.Server - Session destruction took 27 ms

    
    I do not know where I should register the Class and what Class it refers to.

Şahin Atam

unread,
Sep 16, 2015, 1:26:12 AM9/16/15
to openSCADA
Hi Julián F. Pérez,

Can you send the code sample you want to connect matrikon opc server ? 



29 Temmuz 2015 Çarşamba 16:42:03 UTC+3 tarihinde Julián F. Pérez yazdı:
I am using the Matrikon OPC Server for Simulation and Testing, instead of TOPServer, along with the tutorial HowToStartWithUtgard I am not able to connect to the server. This is the error that I get:

       
15:02:18.452 [main] DEBUG o.j.dcom.transport.JIComTransport - Socket closed... Socket[unconnected] host XXX.XXX.XX.X, port 135
   
15:02:18.453 [main] WARN  org.jinterop.dcom.core.JIComServer - Got the class not registered exception , will attempt setting entries based on status flags...
   
15:02:18.468 [main] INFO  org.openscada.opc.lib.da.Server - Failed to connect to server
    org
.jinterop.dcom.common.JIException: Class not registered. If you are using a DLL/OCX , please make sure it has "DllSurrogate" flag set. Faq A(6) in readme.html. [0x80040154]
    at org
.jinterop.dcom.core.JIComServer.init(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at org
.jinterop.dcom.core.JIComServer.initialise(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at org
.jinterop.dcom.core.JIComServer.<init>(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at org
.openscada.opc.lib.da.Server.connect(Server.java:117) ~[org.openscada.opc.lib_1.0.0.201303051455.jar:na]
    at com
.matrikonopc.utgard.tutorial.UtgardReadTutorial.main(UtgardReadTutorial.java:31) [bin/:na]
   
Caused by: org.jinterop.dcom.common.JIRuntimeException: Class not registered. If you are using a DLL/OCX , please make sure it has "DllSurrogate" flag set. Faq A(6) in readme.html. [0x80040154]
    at org
.jinterop.dcom.core.JIRemActivation.read(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
    at ndr
.NdrObject.decode(Unknown Source) ~[org.openscada.jinterop.deps_1.0.0.201303051454.jar:na]
    at rpc
.ConnectionOrientedEndpoint.call(Unknown Source) ~[org.openscada.jinterop.deps_1.0.0.201303051454.jar:na]
    at rpc
.Stub.call(Unknown Source) ~[org.openscada.jinterop.deps_1.0.0.201303051454.jar:na]
   
... 5 common frames omitted
   
15:02:18.469 [main] INFO  org.openscada.opc.lib.da.Server - Destroying DCOM session...
   
15:02:18.470 [main] INFO  org.openscada.opc.lib.da.Server - Destroying DCOM session... forked
   
80040154: Unknown error (80040154)
   
15:02:18.499 [OPCSessionDestructor] DEBUG org.openscada.opc.lib.da.Server - Starting destruction of DCOM session
   
15:02:18.500 [OPCSessionDestructor] INFO  org.jinterop.dcom.core.JISession - About to destroy 0 sessesion which are linked to this session: 1325311425
   
15:02:18.500 [OPCSessionDestructor] INFO  o.j.dcom.core.JIComOxidRuntime - destroySessionOIDs for session: 132531
...

Trina Ghosh

unread,
May 29, 2018, 2:59:16 AM5/29/18
to openSCADA
Hi Julián F. Pérez wrote,

I am getting same error. Can you please help ??
Reply all
Reply to author
Forward
0 new messages