Utgard连接opcserver

Utgard连接opcserver
在这里插入图片描述
在这里插入图片描述
DCOM也配置了,并且都是在本地一台电脑上进行测试的。
错误信息: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]

16:37:16.265 [main] INFO org.openscada.opc.lib.da.Server - Socket timeout: 0
四月 01, 2020 4:37:16 下午 org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
信息: j-Interop Version = j-Interop 2.04 (Release Candidate 8).

四月 01, 2020 4:37:16 下午 org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
信息: java.runtime.name = Java™ SE Runtime Environment
sun.boot.library.path = D:\Program Files\Java\jdk1.8\jre\bin
java.vm.version = 25.40-b25
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot™ 64-Bit Server VM
file.encoding.pkg = sun.io
user.country = CN
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = Service Pack 1
java.vm.specification.name = Java Virtual Machine Specification
user.dir = F:\install\bao\utgardTest
java.runtime.version = 1.8.0_40-b25
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = D:\Program Files\Java\jdk1.8\jre\lib\endorsed
os.arch = amd64
java.io.tmpdir = C:\Users\ADMINI~1\AppData\Local\Temp
line.separator =

java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.jnu.encoding = GBK
java.library.path = D:\Program Files\Java\jdk1.8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jdk1.8/bin/…/jre/bin/server;D:/Program Files/Java/jdk1.8/bin/…/jre/bin;D:/Program Files/Java/jdk1.8/bin/…/jre/lib/amd64;G:\xshell;D:\Program Files\Xmanager;D:\Program Files\Java\jdk1.8\bin;D:\Program Files\Java\jdk1.8\jre\bin;D:\Program Files\apache-maven-3.3.9/bin;F:\app\Administrator\product\11.2.0\dbhome_1\bin;D:\Ora10InstantClient\BIN;;D:\Program Files\apache-ant-1.9.7\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Program Files;C:\Program Files\IDM Computer Solutions\UltraCompare;G:\ProgramData\Anaconda3;G:\ProgramData\Anaconda3\Scripts;G:\ProgramData\Anaconda3\Library\bin;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;D:\Program Files\TortoiseSVN\bin;D:\Program Files (x86)\Microsoft VS Code\bin;D:\Program Files\node;D:\Program Files\node;D:\lijia\instantclient_11_2;C:\Program Files\MySQL\MySQL Server 5.7\bin;F:\install\apache-tomcat-8.5.50\bin;F:\install\apache-tomcat-8.5.50\lib;D:\Ora10InstantClient\BIN;C:\Users\Administrator.babun;D:\Program Files (x86)\Microsoft VS Code\bin;D:\pyCharm\PyCharm 2018.3.2\bin;;C:\Users\Administrator\AppData\Roaming\npm;F:\install\sts-bundle\sts-3.9.9.RELEASE;;.
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
os.version = 6.1
user.home = C:\Users\Administrator
user.timezone = Asia/Shanghai
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = UTF-8
java.specification.version = 1.8
java.class.path = F:\install\bao\utgardTest\bin;F:\install\bao\utgardTest\lib\logback-classic-1.2.3.jar;F:\install\bao\utgardTest\lib\logback-core-1.2.3.jar;F:\install\bao\utgardTest\lib\org.openscada.external.jcifs-1.2.25-20150512.072447-33.jar;F:\install\bao\utgardTest\lib\org.openscada.opc.dcom-1.2.0-20150512.072915-30.jar;F:\install\bao\utgardTest\lib\org.openscada.opc.lib-1.3.0-20150512.072954-4.jar;F:\install\bao\utgardTest\lib\slf4j-api-1.7.25.jar;F:\install\bao\utgardTest\lib\j-interopdeps-2.0.4.jar;F:\install\bao\utgardTest\lib\j-interop-2.0.4.jar;F:\install\bao\utgardTest\lib\bcprov-jdk16-1.46.jar
user.name = Administrator
java.vm.specification.version = 1.8
sun.java.command = tcb.UtgardTutorial1
java.home = D:\Program Files\Java\jdk1.8\jre
sun.arch.data.model = 64
user.language = zh
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = 1.8.0_40
java.ext.dirs = D:\Program Files\Java\jdk1.8\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = D:\Program Files\Java\jdk1.8\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8\jre\lib\rt.jar;D:\Program Files\Java\jdk1.8\jre\lib\sunrsasign.jar;D:\Program Files\Java\jdk1.8\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8\jre\classes
java.vendor = Oracle Corporation
file.separator =
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.desktop = windows
sun.cpu.isalist = amd64

四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JIComOxidRuntime C l i e n t P i n g T i m e r T a s k r u n 信 息 : R u n n i n g C l i e n t P i n g T i m e r T a s k ! 四 月 01 , 20204 : 37 : 16 下 午 o r g . j i n t e r o p . d c o m . c o r e . J I S e s s i o n c r e a t e S e s s i o n 信 息 : C r e a t e d S e s s i o n : 754874743 四 月 01 , 20204 : 37 : 16 下 午 o r g . j i n t e r o p . d c o m . c o r e . J I C o m O x i d R u n t i m e ClientPingTimerTask run 信息: Running ClientPingTimerTask ! 四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JISession createSession 信息: Created Session: 754874743 四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JIComOxidRuntime ClientPingTimerTaskrun:RunningClientPingTimerTask!01,20204:37:16org.jinterop.dcom.core.JISessioncreateSession:CreatedSession:75487474301,20204:37:16org.jinterop.dcom.core.JIComOxidRuntimeServerPingTimerTask run
信息: Running ServerPingTimerTask !
四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JISession$Release_References_TimerTask run
信息: Release_References_TimerTask:[RUN] Session: 754874743 , listOfDeferencedIpids: []
四月 01, 2020 4:37:16 下午 org.jinterop.dcom.common.JISystem internal_dumpMap
信息: mapOfHostnamesVsIPs: {}
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processOutgoing
信息:
Sending BIND
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processIncoming
信息:
Recieved BIND_ACK
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processOutgoing
信息:
Sending AUTH3
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processOutgoing
信息:
Sending ALTER_CTX
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processIncoming
信息:
Recieved ALTER_CTX_RESP
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
四月 01, 2020 4:37:16 下午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JIComServer initialise
警告: Got the class not registered exception , will attempt setting entries based on status flags…
16:37:16.440 [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(JIComServer.java:550)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:458)
at org.jinterop.dcom.core.JIComServer.(JIComServer.java:427)
at org.openscada.opc.lib.da.Server.connect(Server.java:108)
at tcb.UtgardTutorial1.main(UtgardTutorial1.java:40)
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(JIRemActivation.java:191)
at ndr.NdrObject.decode(NdrObject.java:19)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:138)
at rpc.Stub.call(Stub.java:112)
at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:538)
… 4 common frames omitted
16:37:16.440 [main] INFO org.openscada.opc.lib.da.Server - Destroying DCOM session…
16:37:16.440 [main] INFO org.openscada.opc.lib.da.Server - Destroying DCOM session… forked
16:37:16.440 [OPCSessionDestructor] DEBUG org.openscada.opc.lib.da.Server - Starting destruction of DCOM session
四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JISession postDestroy
信息: About to destroy links for Session: 754874743 , size of which is 0
80040154: Unknown error (80040154)
四月 01, 2020 4:37:16 下午 org.jinterop.dcom.core.JIComOxidRuntime destroySessionOIDs
信息: destroySessionOIDs for session: 754874743
16:37:16.441 [OPCSessionDestructor] INFO org.openscada.opc.lib.da.Server - Destructed DCOM session
16:37:16.441 [OPCSessionDestructor] INFO org.openscada.opc.lib.da.Server - Session destruction took 1 ms

请问哪位有遇到过。

评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值