使用java,基于utgard开发OPC客户端。能够连接服务器,出现以下错误。请问是什么原因,如何解决?
09:44:48.637 [main] INFO org.openscada.opc.lib.da.Server - Socket timeout: 0
七月 19, 2017 9:44:48 上午 org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
信息: j-Interop Version = null
七月 19, 2017 9:44:48 上午 org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
信息: java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = C:\Program Files\Java\jre1.8.0_121\bin
java.vm.version = 25.121-b13
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) Client 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 = D:\java-neon\workspace\MyUtgardOPC
java.runtime.version = 1.8.0_121-b13
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_121\lib\endorsed
os.arch = x86
java.io.tmpdir = C:\Users\X\AppData\Local\Temp\
line.separator =
java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.jnu.encoding = GBK
java.library.path = C:\Program Files\Java\jre1.8.0_121\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_121/bin/client;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Windows\system32;;.
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot Client Compiler
os.version = 6.1
user.home = C:\Users\X
user.timezone = Asia/Shanghai
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = GBK
java.specification.version = 1.8
java.class.path = D:\java-neon\workspace\MyUtgardOPC\bin;D:\java-neon\workspace\MyUtgardOPC\lib\ch.qos.logback.classic_1.0.0.jar;D:\java-neon\workspace\MyUtgardOPC\lib\ch.qos.logback.core_1.0.0.jar;D:\java-neon\workspace\MyUtgardOPC\lib\org.openscada.external.jcifs_1.2.25.201303051448.jar;D:\java-neon\workspace\MyUtgardOPC\lib\org.openscada.jinterop.core_2.0.8.201303051454.jar;D:\java-neon\workspace\MyUtgardOPC\lib\org.openscada.jinterop.deps_1.0.0.201303051454.jar;D:\java-neon\workspace\MyUtgardOPC\lib\org.openscada.opc.dcom_1.0.0.201303051455.jar;D:\java-neon\workspace\MyUtgardOPC\lib\org.openscada.opc.lib_1.0.0.201303051455.jar;D:\java-neon\workspace\MyUtgardOPC\lib\slf4j.api_1.6.4.jar
user.name = X
java.vm.specification.version = 1.8
sun.java.command = org.openscada.opc.tutorial.UtgardTutorial1
java.home = C:\Program Files\Java\jre1.8.0_121
sun.arch.data.model = 32
user.language = zh
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode, sharing
java.version = 1.8.0_121
java.ext.dirs = C:\Program Files\Java\jre1.8.0_121\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\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 = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
09:44:48.668 [Timer-1] INFO o.j.dcom.core.JIComOxidRuntime - Running ClientPingTimerTask !
09:44:48.668 [Timer-2] INFO o.j.dcom.core.JIComOxidRuntime - Running ServerPingTimerTask !
09:44:48.669 [main] INFO org.jinterop.dcom.core.JISession - Created Session: 1866239643
09:44:48.680 [main] DEBUG o.j.dcom.transport.JIComTransport - Opening socket on /127.0.0.1:135
七月 19, 2017 9:44:48 上午 org.jinterop.dcom.common.JISystem internal_dumpMap
信息: mapOfHostnamesVsIPs: {}
七月 19, 2017 9:44:48 上午 rpc.DefaultConnection processOutgoing
信息:
Sending BIND
七月 19, 2017 9:44:48 上午 rpc.DefaultConnection processIncoming
信息:
Recieved BIND_ACK
七月 19, 2017 9:44:48 上午 rpc.DefaultConnection processOutgoing
信息:
Sending AUTH3
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending ALTER_CTX
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved ALTER_CTX_RESP
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
09:44:49.276 [main] DEBUG o.j.dcom.transport.JIComTransport - Socket closed... Socket[unconnected] host 127.0.0.1, port 135
09:44:49.281 [main] INFO o.j.dcom.core.JIComOxidRuntime - addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: E0 8C 67 73 95 D0 6B 57 |à.gs.?kW |
, hasExpired false }
09:44:49.281 [main] INFO org.jinterop.dcom.core.JISession - [addToSession] Adding IPID: 00001402-1544-0844-b5ef-7f2fe24f1321 to session: 1866239643
09:44:49.281 [main] INFO org.jinterop.dcom.core.JISession - for IID: 00000000-0000-0000-c000-000000000046
09:44:49.282 [main] INFO o.jinterop.dcom.core.JIComObjectImpl - addRef: Adding 5 references for 00001402-1544-0844-b5ef-7f2fe24f1321 session: 1866239643
09:44:49.282 [main] DEBUG o.j.dcom.transport.JIComTransport - Opening socket on /2001:0:9d38:6ab8:1c4b:f629:2472:2ce2:49336
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending BIND
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved BIND_ACK
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending AUTH3
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
09:44:49.304 [main] INFO o.j.dcom.core.JIComOxidRuntime - addUpdateOXIDs: finally this oid is { IPID ref count is 2 } and OID in bytes[] 00000: E0 8C 67 73 95 D0 6B 57 |à.gs.?kW |
, hasExpired false }
09:44:49.304 [main] INFO org.jinterop.dcom.core.JISession - [addToSession] Adding IPID: 00000803-1544-0844-2102-1c64ed3d41d7 to session: 1866239643
09:44:49.304 [main] INFO org.jinterop.dcom.core.JISession - for IID: 39c13a4d-011e-11d0-9675-0020afd8adb3
09:44:49.304 [main] INFO o.jinterop.dcom.core.JIComObjectImpl - addRef: Adding 5 references for 00000803-1544-0844-2102-1c64ed3d41d7 session: 1866239643
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved RESPONSE
09:44:49.310 [main] DEBUG org.openscada.opc.lib.da.AccessBase - Create a new group
09:44:49.310 [main] DEBUG o.j.dcom.transport.JIComTransport - Opening socket on /2001:0:9d38:6ab8:1c4b:f629:2472:2ce2:49336
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending BIND
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved BIND_ACK
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending AUTH3
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processOutgoing
信息:
Sending REQUEST
七月 19, 2017 9:44:49 上午 rpc.DefaultConnection processIncoming
信息:
Recieved FAULT
09:44:49.337 [main] ERROR org.openscada.opc.lib.da.AccessBase - Failed to change state (true)
org.jinterop.dcom.common.JIException: The server threw an exception. [0x80010105]
at org.jinterop.dcom.core.JIComServer.call(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
at org.jinterop.dcom.core.JIComServer.call(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
at org.jinterop.dcom.core.JIComObjectImpl.call(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
at org.jinterop.dcom.core.JIComObjectImpl.call(Unknown Source) ~[org.openscada.jinterop.core_2.0.8.201303051454.jar:na]
at org.openscada.opc.dcom.da.impl.OPCServer.addGroup(OPCServer.java:79) ~[org.openscada.opc.dcom_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.Server.addGroup(Server.java:260) [org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.Server.addGroup(Server.java:290) [org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.AccessBase.start(AccessBase.java:211) [org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.SyncAccess.start(SyncAccess.java:105) ~[org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.AccessBase.connectionStateChanged(AccessBase.java:190) [org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.Server.addStateListener(Server.java:436) [org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.lib.da.AccessBase.bind(AccessBase.java:96) [org.openscada.opc.lib_1.0.0.201303051455.jar:na]
at org.openscada.opc.tutorial.UtgardTutorial1.main(UtgardTutorial1.java:45) [bin/:na]
Caused by: rpc.FaultException: Received fault. (unknown)
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]
... 13 common frames omitted