access denied for ABB Freelance2000OPCServer.

Help
Percy
2014-07-09
2014-07-15
  • Percy

    Percy - 2014-07-09

    I can access the server from any of Windows OPC client tools.But utgard can not.
    Here is the call stack:

    Thread [main] (Suspended (breakpoint at line 1095 in JICallBuilder))
    owns: Object (id=42)
    owns: Object (id=43)
    owns: Server (id=34)
    JICallBuilder.readResult(NetworkDataRepresentation) line: 1095
    JICallBuilder.read(NetworkDataRepresentation) line: 969
    JICallBuilder(NdrObject).decode(NetworkDataRepresentation, NdrBuffer) line: 36
    JIComEndpoint(ConnectionOrientedEndpoint).call(int, UUID, int, NdrObject) line: 137
    JIRemUnknownServer(Stub).call(int, NdrObject) line: 113
    JIRemUnknownServer.call(JICallBuilder, String, int) line: 150
    JIRemUnknownServer.addRef_ReleaseRef(JICallBuilder) line: 179
    JISession.addRef_ReleaseRef(String, JICallBuilder, int) line: 781
    JIComObjectImpl.addRef() line: 120
    JIComServer.createInstance() line: 875
    Server.connect() line: 130
    Manager.connect() line: 330
    Manager.Fetch() line: 221
    NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
    NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available
    DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not available
    Method.invoke(Object, Object...) line: not available
    Function.Call(Object...) line: 15
    Timer.Timeout() line: 56
    TimerManager.Update() line: 51
    Looper.update() line: 47
    Looper.Run(int) line: 24
    Main.main(String[]) line: 11

    Here is the code throw exception:
    private void readResult(NetworkDataRepresentation ndr)
    {
    //last has to be the result.
    hresult = ndr.readUnsignedLong();

        if (hresult != 0)
        {
            //something exception occured at server, set up results
            resultsOfException = outparams;
            outparams = null;
            throw new JIRuntimeException(hresult);
        }
    }
    

    Here is the output:

    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
    信息: j-Interop Version = null

    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
    信息: java.runtime.name = Java(TM) SE Runtime Environment
    sun.boot.library.path = C:\Program Files\Java\jre8\bin
    java.vm.version = 25.5-b02
    java.vm.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    path.separator = ;
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    file.encoding.pkg = sun.io
    user.country = CN
    user.script =
    sun.java.launcher = SUN_STANDARD
    sun.os.patch.level =
    java.vm.specification.name = Java Virtual Machine Specification
    user.dir = D:\Projects\Data_gatherer\src\Data_gatherer_opc_java
    java.runtime.version = 1.8.0_05-b13
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs = C:\Program Files\Java\jre8\lib\endorsed
    os.arch = amd64
    java.io.tmpdir = C:\Users\Percy\AppData\Local\Temp\ line.separator =

    java.vm.specification.vendor = Oracle Corporation
    user.variant =
    os.name = Windows 8.1
    sun.jnu.encoding = GBK
    java.library.path = C:\Program Files\Java\jre8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\app\Percy\product\12.1.0\dbhome_1\bin;C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\bin;C:\Program Files (x86)\Zend\ZendServer\bin;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;D:\Softwares\Game_engines\Cocos2d-x\cocos2d-x-3.1\tools\cocos2d-console\bin;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;D:\Softwares\Programming_languages\C++\Android\android-ndk-r9d;C:\Python27;C:\Program Files (x86)\Windows Resource Kits\Tools;.
    java.specification.name = Java Platform API Specification
    java.class.version = 52.0
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    os.version = 6.3
    user.home = C:\Users\Percy
    user.timezone = Asia/Shanghai
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    file.encoding = UTF-8
    java.specification.version = 1.8
    java.class.path = D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\bin;D:\Projects\libpercy\src\libpercy-j\bin;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\annotations-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\catalina-ant.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\catalina-ha.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\catalina-tribes.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\catalina.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\ecj-P20140317-1600.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\el-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\jasper-el.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\jasper.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\jsp-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-coyote.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-dbcp.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-i18n-es.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-i18n-fr.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-i18n-ja.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-jdbc.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-util.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat7-websocket.jar;C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\websocket-api.jar;D:\Projects\libpercy\Libraries\J-interop\jcifs-1.2.19.jar;D:\Projects\libpercy\Libraries\J-interop\j-interop.jar;D:\Projects\libpercy\Libraries\J-interop\j-interopdeps.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\j-interop.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\j-interopdeps.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\commons-net-3.3.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\log4j-1.2.17.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\org.openscada.opc.dcom_1.1.0.v20130529.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\org.openscada.opc.lib_1.1.0.v20130529.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\slf4j-api-1.7.5.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\slf4j-log4j12-1.7.5.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\jcifs-1.3.17.jar
    user.name = Percy
    java.vm.specification.version = 1.8
    sun.java.command = Main
    java.home = C:\Program Files\Java\jre8
    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_05
    java.ext.dirs = C:\Program Files\Java\jre8\lib\ext;C:\Windows\Sun\Java\lib\ext
    sun.boot.class.path = C:\Program Files\Java\jre8\lib\resources.jar;C:\Program Files\Java\jre8\lib\rt.jar;C:\Program Files\Java\jre8\lib\sunrsasign.jar;C:\Program Files\Java\jre8\lib\jsse.jar;C:\Program Files\Java\jre8\lib\jce.jar;C:\Program Files\Java\jre8\lib\charsets.jar;C:\Program Files\Java\jre8\lib\jfr.jar;C:\Program Files\Java\jre8\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

    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
    信息: Running ClientPingTimerTask !
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
    信息: Running ServerPingTimerTask !
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession$Release_References_TimerTask run
    信息: Release_References_TimerTask:[RUN] Ipid Vs Count Map size 0 listOfDeferencedIpids size 0
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession$Release_References_TimerTask run
    信息: Release_References_TimerTask:[RUN] Session: -74391011 , listOfDeferencedIpids: []
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession createSession
    信息: Created Session: -74391011
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession$Release_References_TimerTask run
    信息: Release_References_TimerTask:[RUN] Ipid Vs Count Map size after preparing release 0
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.common.JISystem internal_dumpMap
    信息: mapOfHostnamesVsIPs: {}
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending BIND
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved BIND_ACK
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending AUTH3
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending ALTER_CTX
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved ALTER_CTX_RESP
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    信息: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: 4E 66 23 9F 04 7F F6 F0 |Nf#...öð |

    , hasExpired false }
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession addToSession
    信息: [addToSession] Adding IPID: 0000101a-0ca8-14c4-0062-f4c6b80d19a1 to session: -74391011
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession addToSession
    信息: for IID: 00000000-0000-0000-c000-000000000046 session: -74391011
    七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JIComObjectImpl addRef
    警告: addRef: Adding 5 references for 0000101a-0ca8-14c4-0062-f4c6b80d19a1 session: -74391011
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending BIND
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved BIND_ACK
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending AUTH3
    七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    信息: addUpdateOXIDs: finally this oid is { IPID ref count is 2 } and OID in bytes[] 00000: 4E 66 23 9F 04 7F F6 F0 |Nf#...öð |

    , hasExpired false }
    七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JISession addToSession
    信息: [addToSession] Adding IPID: 00008c1b-0ca8-14c4-30d6-aa39c0e4fc0e to session: -74391011
    七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JISession addToSession
    信息: for IID: 13486d50-4821-11d2-a494-3cb306c10000 session: -74391011
    七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JIComObjectImpl addRef
    警告: addRef: Adding 5 references for 00008c1b-0ca8-14c4-30d6-aa39c0e4fc0e session: -74391011
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending BIND
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved BIND_ACK
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending AUTH3
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    CLSID gotten:f822de8f-207c-11d1-bad4-006097385023
    七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JIComOxidRuntime delIPIDReference
    信息: delIPIDReference: Decrementing reference count for IPID 0000101a-0ca8-14c4-0062-f4c6b80d19a1 on OID { IPID ref count is 1 } and OID in bytes[] 00000: 4E 66 23 9F 04 7F F6 F0 |Nf#...öð |

    , hasExpired false }
    七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JISession addDereferencedIpids
    信息: addDereferencedIpids for session : -74391011 , IPID is: 0000101a-0ca8-14c4-0062-f4c6b80d19a1
    14-07-09 12:33:01 - INFO org.openscada.opc.lib.da.Server - Socket timeout: 0
    七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JISession createSession
    信息: Created Session: 1938322515
    七月 09, 2014 12:33:04 下午 org.jinterop.dcom.common.JISystem internal_dumpMap
    信息: mapOfHostnamesVsIPs: {}
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending BIND
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved BIND_ACK
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending AUTH3
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending ALTER_CTX
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved ALTER_CTX_RESP
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    信息: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: 52 F9 8E 32 8C 1C 55 CF |Rù.2..UÏ |

    , hasExpired false }
    七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JISession addToSession
    信息: [addToSession] Adding IPID: 00004c02-1130-0000-5d2f-ecf12d778463 to session: 1938322515
    七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JISession addToSession
    信息: for IID: 00000000-0000-0000-c000-000000000046 session: 1938322515
    七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JIComObjectImpl addRef
    警告: addRef: Adding 5 references for 00004c02-1130-0000-5d2f-ecf12d778463 session: 1938322515
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending BIND
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved BIND_ACK
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending AUTH3
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
    信息:
    Sending REQUEST
    七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
    信息:
    Recieved RESPONSE
    14-07-09 12:34:49 - INFO org.openscada.opc.lib.da.Server - Failed to connect to server
    org.jinterop.dcom.common.JIException: Access is denied. [0x80070005]
    at org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:159)
    at org.jinterop.dcom.core.JIRemUnknownServer.addRef_ReleaseRef(JIRemUnknownServer.java:179)
    at org.jinterop.dcom.core.JISession.addRef_ReleaseRef(JISession.java:781)
    at org.jinterop.dcom.core.JIComObjectImpl.addRef(JIComObjectImpl.java:120)
    at org.jinterop.dcom.core.JIComServer.createInstance(JIComServer.java:875)
    at org.openscada.opc.lib.da.Server.connect(Server.java:130)
    at Manager.connect(Manager.java:330)
    at Manager.Fetch(Manager.java:221)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at libpercy.function_object.Function.Call(Function.java:15)
    at libpercy.timer.Timer.Timeout(Timer.java:56)
    at libpercy.timer.TimerManager.Update(TimerManager.java:51)
    at libpercy.looper.Looper.update(Looper.java:47)
    at libpercy.looper.Looper.Run(Looper.java:24)
    at Main.main(Main.java:11)
    Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied. [0x80070005]
    at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1095)
    at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:969)
    at ndr.NdrObject.decode(NdrObject.java:36)
    at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
    at rpc.Stub.call(Stub.java:113)
    at org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:150)
    ... 17 more
    14-07-09 12:34:49 - INFO org.openscada.opc.lib.da.Server - Destroying DCOM session...
    14-07-09 12:34:49 - INFO org.openscada.opc.lib.da.Server - Destroying DCOM session... forked
    org.jinterop.dcom.common.JIException: Access is denied. [0x80070005]
    at org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:159)Check tags file.
    at org.jinterop.dcom.core.JIRemUnknownServer.addRef_ReleaseRef(JIRemUnknownServer.java:179)
    at org.jinterop.dcom.core.JISession.addRef_ReleaseRef(JISession.java:781)
    at org.jinterop.dcom.core.JIComObjectImpl.addRef(JIComObjectImpl.java:120)
    at org.jinterop.dcom.core.JIComServer.createInstance(JIComServer.java:875)
    at org.openscada.opc.lib.da.Server.connect(Server.java:130)
    at Manager.connect(Manager.java:330)
    at Manager.Fetch(Manager.java:221)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at libpercy.function_object.Function.Call(Function.java:15)
    at libpercy.timer.Timer.Timeout(Timer.java:56)
    at libpercy.timer.TimerManager.Update(TimerManager.java:51)
    at libpercy.looper.Looper.update(Looper.java:47)
    at libpercy.looper.Looper.Run(Looper.java:24)
    at Main.main(Main.java:11)
    Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied. [0x80070005]
    at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1095)
    at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:969)
    at ndr.NdrObject.decode(NdrObject.java:36)
    at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
    at rpc.Stub.call(Stub.java:113)
    at org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:150)
    ... 17 more
    七月 09, 2014 12:34:49 下午 org.jinterop.dcom.core.JISession prepareForReleaseRef
    警告: prepareForReleaseRef: Releasing 10references of IPID: 00004c02-1130-0000-5d2f-ecf12d778463 session: 1938322515
    七月 09, 2014 12:34:49 下午 org.jinterop.dcom.core.JISession releaseRefs
    信息: In releaseRefs for session : 1938322515 , array length is: 1

     
    • Vikram Roopchand

      Hi,

      When you say you can access the server from Windows OPC tools, are you
      doing this locally on the server or remotely from a different windows
      machine ? When you are local, DCOM does not come into play.

      best regards,
      Vikram

      On Wed, Jul 9, 2014 at 10:07 AM, Percy persanker@users.sf.net wrote:

      I can access the server from any of Windows OPC client tools.But utgard
      can not.
      Here is the call stack:

      Thread [main] (Suspended (breakpoint at line 1095 in JICallBuilder))
      owns: Object (id=42)
      owns: Object (id=43)
      owns: Server (id=34)
      JICallBuilder.readResult(NetworkDataRepresentation) line: 1095
      JICallBuilder.read(NetworkDataRepresentation) line: 969
      JICallBuilder(NdrObject).decode(NetworkDataRepresentation, NdrBuffer)
      line: 36
      JIComEndpoint(ConnectionOrientedEndpoint).call(int, UUID, int, NdrObject)
      line: 137
      JIRemUnknownServer(Stub).call(int, NdrObject) line: 113
      JIRemUnknownServer.call(JICallBuilder, String, int) line: 150
      JIRemUnknownServer.addRef_ReleaseRef(JICallBuilder) line: 179
      JISession.addRef_ReleaseRef(String, JICallBuilder, int) line: 781
      JIComObjectImpl.addRef() line: 120
      JIComServer.createInstance() line: 875
      Server.connect() line: 130
      Manager.connect() line: 330
      Manager.Fetch() line: 221
      NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
      available [native method]
      NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available
      DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not available
      Method.invoke(Object, Object...) line: not available
      Function.Call(Object...) line: 15
      Timer.Timeout() line: 56
      TimerManager.Update() line: 51
      Looper.update() line: 47
      Looper.Run(int) line: 24
      Main.main(String[]) line: 11

      Here is the code throw exception:
      private void readResult(NetworkDataRepresentation ndr)
      {
      //last has to be the result.
      hresult = ndr.readUnsignedLong();

      if (hresult != 0)
      {
          //something exception occured at server, set up results
          resultsOfException = outparams;
          outparams = null;
          throw new JIRuntimeException(hresult);
      }}
      

      Here is the output:

      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.common.JISystem
      logSystemPropertiesAndVersion
      信息: j-Interop Version = null

      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.common.JISystem
      logSystemPropertiesAndVersion
      信息: java.runtime.name = Java(TM) SE Runtime Environment
      sun.boot.library.path = C:\Program Files\Java\jre8\bin
      java.vm.version = 25.5-b02
      java.vm.vendor = Oracle Corporation
      java.vendor.url = http://java.oracle.com/
      path.separator = ;
      java.vm.name = Java HotSpot(TM) 64-Bit Server VM
      file.encoding.pkg = sun.io
      user.country = CN
      user.script =
      sun.java.launcher = SUN_STANDARD
      sun.os.patch.level =
      java.vm.specification.name = Java Virtual Machine Specification
      user.dir = D:\Projects\Data_gatherer\src\Data_gatherer_opc_java
      java.runtime.version = 1.8.0_05-b13
      java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
      java.endorsed.dirs = C:\Program Files\Java\jre8\lib\endorsed
      os.arch = amd64
      java.io.tmpdir = C:\Users\Percy\AppData\Local\Temp\ line.separator =

      java.vm.specification.vendor = Oracle Corporation
      user.variant =
      os.name = Windows 8.1
      sun.jnu.encoding = GBK
      java.library.path = C:\Program
      Files\Java\jre8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\app\Percy\product\12.1.0\dbhome_1\bin;C:\Program
      Files (x86)\Windows Resource Kits\Tools\;C:\Program Files (x86)\NVIDIA
      Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
      Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
      (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program
      Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program
      Files\TortoiseSVN\bin;C:\Program Files
      (x86)\Zend\ZendServer\share\ZendFramework\bin;C:\Program Files
      (x86)\Zend\ZendServer\bin;C:\Program Files\Microsoft SQL
      Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client
      SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft
      SDKs\TypeScript\1.0\;D:\Softwares\Game_engines\Cocos2d-x\cocos2d-x-3.1\tools\cocos2d-console\bin;C:\Program
      Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft
      SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
      Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft
      SQL
      Server\120\DTS\Binn\;D:\Softwares\Programming_languages\C++\Android\android-ndk-r9d;C:\Python27;C:\Program
      Files (x86)\Windows Resource Kits\Tools;.
      java.specification.name = Java Platform API Specification
      java.class.version = 52.0
      sun.management.compiler = HotSpot 64-Bit Tiered Compilers
      os.version = 6.3
      user.home = C:\Users\Percy
      user.timezone = Asia/Shanghai
      java.awt.printerjob = sun.awt.windows.WPrinterJob
      file.encoding = UTF-8
      java.specification.version = 1.8
      java.class.path =
      D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\bin;D:\Projects\libpercy\src\libpercy-j\bin;C:\Program
      Files\Apache Software Foundation\Tomcat
      7.0\lib\annotations-api.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\catalina-ant.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\catalina-ha.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\catalina-tribes.jar;C:\Program Files\Apache
      Software Foundation\Tomcat 7.0\lib\catalina.jar;C:\Program Files\Apache
      Software Foundation\Tomcat 7.0\lib\ecj-P20140317-1600.jar;C:\Program
      Files\Apache Software Foundation\Tomcat 7.0\lib\el-api.jar;C:\Program
      Files\Apache Software Foundation\Tomcat 7.0\lib\jasper-el.jar;C:\Program
      Files\Apache Software Foundation\Tomcat 7.0\lib\jasper.jar;C:\Program
      Files\Apache Software Foundation\Tomcat 7.0\lib\jsp-api.jar;C:\Program
      Files\Apache Software Foundation\Tomcat 7.0\lib\servlet-api.jar;C:\Program
      Files\Apache Software Foundation\Tomcat 7.0\lib\tomcat-api.jar;C:\Program
      Files\Apache Software Foundation\Tomcat
      7.0\lib\tomcat-coyote.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\tomcat-dbcp.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\tomcat-i18n-es.jar;C:\Program Files\Apache
      Software Foundation\Tomcat 7.0\lib\tomcat-i18n-fr.jar;C:\Program
      Files\Apache Software Foundation\Tomcat
      7.0\lib\tomcat-i18n-ja.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\tomcat-jdbc.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\tomcat-util.jar;C:\Program Files\Apache Software
      Foundation\Tomcat 7.0\lib\tomcat7-websocket.jar;C:\Program Files\Apache
      Software Foundation\Tomcat
      7.0\lib\websocket-api.jar;D:\Projects\libpercy\Libraries\J-interop\jcifs-1.2.19.jar;D:\Projects\libpercy\Libraries\J-interop\j-interop.jar;D:\Projects\libpercy\Libraries\J-interop\j-interopdeps.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\j-interop.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\j-interopdeps.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\commons-net-3.3.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\log4j-1.2.17.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\org.openscada.opc.dcom_1.1.0.v20130529.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\org.openscada.opc.lib_1.1.0.v20130529.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\slf4j-api-1.7.5.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\slf4j-log4j12-1.7.5.jar;D:\Projects\Data_gatherer\src\Data_gatherer_opc_java\lib\jcifs-1.3.17.jar
      user.name = Percy
      java.vm.specification.version = 1.8
      sun.java.command = Main
      java.home = C:\Program Files\Java\jre8
      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_05
      java.ext.dirs = C:\Program
      Files\Java\jre8\lib\ext;C:\Windows\Sun\Java\lib\ext
      sun.boot.class.path = C:\Program
      Files\Java\jre8\lib\resources.jar;C:\Program
      Files\Java\jre8\lib\rt.jar;C:\Program
      Files\Java\jre8\lib\sunrsasign.jar;C:\Program
      Files\Java\jre8\lib\jsse.jar;C:\Program
      Files\Java\jre8\lib\jce.jar;C:\Program
      Files\Java\jre8\lib\charsets.jar;C:\Program
      Files\Java\jre8\lib\jfr.jar;C:\Program Files\Java\jre8\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

      七月 09, 2014 12:33:00 下午
      org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
      信息: Running ClientPingTimerTask !
      七月 09, 2014 12:33:00 下午
      org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
      信息: Running ServerPingTimerTask !
      七月 09, 2014 12:33:00 下午
      org.jinterop.dcom.core.JISession$Release_References_TimerTask run
      信息: Release_References_TimerTask:[RUN] Ipid Vs Count Map size 0
      listOfDeferencedIpids size 0
      七月 09, 2014 12:33:00 下午
      org.jinterop.dcom.core.JISession$Release_References_TimerTask run
      信息: Release_References_TimerTask:[RUN] Session: -74391011 ,
      listOfDeferencedIpids: []
      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession createSession
      信息: Created Session: -74391011
      七月 09, 2014 12:33:00 下午
      org.jinterop.dcom.core.JISession$Release_References_TimerTask run
      信息: Release_References_TimerTask:[RUN] Ipid Vs Count Map size after
      preparing release 0
      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.common.JISystem internal_dumpMap
      信息: mapOfHostnamesVsIPs: {}
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending BIND
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved BIND_ACK
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending AUTH3
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending ALTER_CTX
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved ALTER_CTX_RESP
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      信息: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in
      bytes[] 00000: 4E 66 23 9F 04 7F F6 F0 |Nf#...öð |

      , hasExpired false }
      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession addToSession
      信息: [addToSession] Adding IPID: 0000101a-0ca8-14c4-0062-f4c6b80d19a1 to
      session: -74391011
      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JISession addToSession
      信息: for IID: 00000000-0000-0000-c000-000000000046 session: -74391011
      七月 09, 2014 12:33:00 下午 org.jinterop.dcom.core.JIComObjectImpl addRef
      警告: addRef: Adding 5 references for 0000101a-0ca8-14c4-0062-f4c6b80d19a1
      session: -74391011
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending BIND
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved BIND_ACK
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending AUTH3
      七月 09, 2014 12:33:00 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      信息: addUpdateOXIDs: finally this oid is { IPID ref count is 2 } and OID in
      bytes[] 00000: 4E 66 23 9F 04 7F F6 F0 |Nf#...öð |

      , hasExpired false }
      七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JISession addToSession
      信息: [addToSession] Adding IPID: 00008c1b-0ca8-14c4-30d6-aa39c0e4fc0e to
      session: -74391011
      七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JISession addToSession
      信息: for IID: 13486d50-4821-11d2-a494-3cb306c10000 session: -74391011
      七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JIComObjectImpl addRef
      警告: addRef: Adding 5 references for 00008c1b-0ca8-14c4-30d6-aa39c0e4fc0e
      session: -74391011
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending BIND
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved BIND_ACK
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending AUTH3
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:01 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      CLSID gotten:f822de8f-207c-11d1-bad4-006097385023
      七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JIComOxidRuntime
      delIPIDReference
      信息: delIPIDReference: Decrementing reference count for IPID
      0000101a-0ca8-14c4-0062-f4c6b80d19a1 on OID { IPID ref count is 1 } and OID
      in bytes[] 00000: 4E 66 23 9F 04 7F F6 F0 |Nf#...öð |

      , hasExpired false }
      七月 09, 2014 12:33:01 下午 org.jinterop.dcom.core.JISession
      addDereferencedIpids
      信息: addDereferencedIpids for session : -74391011 , IPID is:
      0000101a-0ca8-14c4-0062-f4c6b80d19a1
      14-07-09 12:33:01 - INFO org.openscada.opc.lib.da.Server - Socket timeout:
      0
      七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JISession createSession
      信息: Created Session: 1938322515
      七月 09, 2014 12:33:04 下午 org.jinterop.dcom.common.JISystem internal_dumpMap
      信息: mapOfHostnamesVsIPs: {}
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending BIND
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved BIND_ACK
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending AUTH3
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending ALTER_CTX
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved ALTER_CTX_RESP
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      信息: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in
      bytes[] 00000: 52 F9 8E 32 8C 1C 55 CF |Rù.2..UÏ |

      , hasExpired false }
      七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JISession addToSession
      信息: [addToSession] Adding IPID: 00004c02-1130-0000-5d2f-ecf12d778463 to
      session: 1938322515
      七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JISession addToSession
      信息: for IID: 00000000-0000-0000-c000-000000000046 session: 1938322515
      七月 09, 2014 12:33:04 下午 org.jinterop.dcom.core.JIComObjectImpl addRef
      警告: addRef: Adding 5 references for 00004c02-1130-0000-5d2f-ecf12d778463
      session: 1938322515
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending BIND
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved BIND_ACK
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending AUTH3
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processOutgoing
      信息:
      Sending REQUEST
      七月 09, 2014 12:33:04 下午 rpc.DefaultConnection processIncoming
      信息:
      Recieved RESPONSE
      14-07-09 12:34:49 - INFO org.openscada.opc.lib.da.Server - Failed to
      connect to server
      org.jinterop.dcom.common.JIException: Access is denied. [0x80070005]
      at
      org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:159)
      at
      org.jinterop.dcom.core.JIRemUnknownServer.addRef_ReleaseRef(JIRemUnknownServer.java:179)
      at org.jinterop.dcom.core.JISession.addRef_ReleaseRef(JISession.java:781)
      at org.jinterop.dcom.core.JIComObjectImpl.addRef(JIComObjectImpl.java:120)
      at org.jinterop.dcom.core.JIComServer.createInstance(JIComServer.java:875)
      at org.openscada.opc.lib.da.Server.connect(Server.java:130)
      at Manager.connect(Manager.java:330)
      at Manager.Fetch(Manager.java:221)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at libpercy.function_object.Function.Call(Function.java:15)
      at libpercy.timer.Timer.Timeout(Timer.java:56)
      at libpercy.timer.TimerManager.Update(TimerManager.java:51)
      at libpercy.looper.Looper.update(Looper.java:47)
      at libpercy.looper.Looper.Run(Looper.java:24)
      at Main.main(Main.java:11)
      Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied.
      [0x80070005]
      at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1095)
      at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:969)
      at ndr.NdrObject.decode(NdrObject.java:36)
      at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
      at rpc.Stub.call(Stub.java:113)
      at
      org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:150)
      ... 17 more
      14-07-09 12:34:49 - INFO org.openscada.opc.lib.da.Server - Destroying DCOM
      session...
      14-07-09 12:34:49 - INFO org.openscada.opc.lib.da.Server - Destroying DCOM
      session... forked
      org.jinterop.dcom.common.JIException: Access is denied. [0x80070005]
      at
      org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:159)Check
      tags file.
      at
      org.jinterop.dcom.core.JIRemUnknownServer.addRef_ReleaseRef(JIRemUnknownServer.java:179)
      at org.jinterop.dcom.core.JISession.addRef_ReleaseRef(JISession.java:781)
      at org.jinterop.dcom.core.JIComObjectImpl.addRef(JIComObjectImpl.java:120)
      at org.jinterop.dcom.core.JIComServer.createInstance(JIComServer.java:875)
      at org.openscada.opc.lib.da.Server.connect(Server.java:130)
      at Manager.connect(Manager.java:330)
      at Manager.Fetch(Manager.java:221)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at libpercy.function_object.Function.Call(Function.java:15)
      at libpercy.timer.Timer.Timeout(Timer.java:56)
      at libpercy.timer.TimerManager.Update(TimerManager.java:51)
      at libpercy.looper.Looper.update(Looper.java:47)
      at libpercy.looper.Looper.Run(Looper.java:24)
      at Main.main(Main.java:11)
      Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied.
      [0x80070005]
      at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1095)
      at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:969)
      at ndr.NdrObject.decode(NdrObject.java:36)
      at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
      at rpc.Stub.call(Stub.java:113)
      at
      org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:150)
      ... 17 more
      七月 09, 2014 12:34:49 下午 org.jinterop.dcom.core.JISession
      prepareForReleaseRef
      警告: prepareForReleaseRef: Releasing 10references of IPID:
      00004c02-1130-0000-5d2f-ecf12d778463 session: 1938322515
      七月 09, 2014 12:34:49 下午 org.jinterop.dcom.core.JISession releaseRefs
      信息: In releaseRefs for session : 1938322515 , array length is: 1


      access denied for ABB Freelance2000OPCServer.
      https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/j-interop/discussion/600730/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      The Mind is a place of its own. It can make a heaven out of hell or a hell
      out of heaven. Attitude is everything. No matter how adverse conditions
      maybe, one has the capacity to turn things around by one's Determination,
      Perseverance and Hardwork.

      John Milton
      (Paradise Lost)

       
      • Percy

        Percy - 2014-07-09

        remotely from a different windows machine

         
        • Vikram Roopchand

          Can you share the wire copy of that (pcap file). Also have you checked if
          the target system does not need higher security level ?
          On Jul 9, 2014 11:40 AM, "Percy" persanker@users.sf.net wrote:

          remotely from a different windows machine

          access denied for ABB Freelance2000OPCServer.
          https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/j-interop/discussion/600730/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           
          Attachments
          • Percy

            Percy - 2014-07-09

            Here are pcap files of j-interop and Matrikon client tool.
            I have checked the dcom config of target system and the configurations are "Connect" and "Identity".
            My ip is 192.168.1.100 and the target machine's ip is 192.168.1.146

             
            Last edit: Percy 2014-07-09
            Attachments
            • Vikram Roopchand

              Credentials being used are different. j-Interop is using "Administrator" of
              the target machine (146) and matrikon is using "Percy_pc\Percy" ... could
              you try with these credential ?

              best regards,
              Vikram

              On Wed, Jul 9, 2014 at 12:27 PM, Percy persanker@users.sf.net wrote:

              Here are pcap file of j-interop and Matrikon client tool.
              I have checked the dcom config of target system and the configurations are
              "Connect" and "Identity".


              access denied for ABB Freelance2000OPCServer.
              https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd/ae22/707e


              Sent from sourceforge.net because you indicated interest in
              https://sourceforge.net/p/j-interop/discussion/600730/

              To unsubscribe from further messages, please visit
              https://sourceforge.net/auth/subscriptions/

              --
              The Mind is a place of its own. It can make a heaven out of hell or a hell
              out of heaven. Attitude is everything. No matter how adverse conditions
              maybe, one has the capacity to turn things around by one's Determination,
              Perseverance and Hardwork.

              John Milton
              (Paradise Lost)

               
              Attachments
              • Percy

                Percy - 2014-07-11

                Here is the Matrikon pcap using account Administrator.
                My ip is 192.168.1.117 and OPC server ip is 192.168.1.133

                 
                Last edit: Percy 2014-07-11
                Attachments
                • Vikram Roopchand

                  Can you check the attached image ? Which is PERCY_PC here ? In the last
                  PCAP of Matrikon the target server was different I.P but the hostname and
                  domain were still PERCY_PC ... credentials have to be the same for
                  j-interop as well. Can you show me the connecting code ?

                  best regards,
                  Vikram[image: Inline image 1]

                  On Fri, Jul 11, 2014 at 6:18 AM, Percy persanker@users.sf.net wrote:

                  Here is the Matrikon pcap using account Administrator

                  access denied for ABB Freelance2000OPCServer.
                  https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd/ae22/707e/5af1/3a92


                  Sent from sourceforge.net because you indicated interest in
                  https://sourceforge.net/p/j-interop/discussion/600730/

                  To unsubscribe from further messages, please visit
                  https://sourceforge.net/auth/subscriptions/

                  --
                  The Mind is a place of its own. It can make a heaven out of hell or a hell
                  out of heaven. Attitude is everything. No matter how adverse conditions
                  maybe, one has the capacity to turn things around by one's Determination,
                  Perseverance and Hardwork.

                  John Milton
                  (Paradise Lost)

                   
                  • Percy

                    Percy - 2014-07-11

                    My client machine is Percy_PC. The target OPC server machine is LENOVO_PC.
                    Because we are using DHCP, so our IPs are changed every day.
                    I configured J-interop to use credential of Administrator, but not Percy_PC/Administrator. Is this critical?
                    Here's my own defined configurations file:

                    <root tags_file_path="tagsconfig.properties" host="192.168.1.133" user="Administrator" pass="admin" clsid="f822de8f-207c-11d1-bad4-006097385023" data_file_path="data.txt" read_item_from_device="false" write_back_directory="Write_backs"/>

                    My connecting code is:

                        ci = new ConnectionInformation();
                        ci.setHost(root.getAttribute("host"));
                        //ci.setProgId("MatrikonOPC Server for Simulation and Testing");
                        String host=root.getAttribute("host");
                        String user_name=root.getAttribute("user");
                        String pass_word=root.getAttribute("pass");
                        ci.setDomain(host);
                        String clsid=root.getAttribute("clsid");
                        if(clsid!=null && clsid.equals(""))
                        {
                            clsid=null;
                        }
                        ci.setClsid(clsid); 
                        ci.setUser(user_name);
                        ci.setPassword(pass_word);
                        svr = new Server(ci, Executors.newScheduledThreadPool(5));
                        svr.isDefaultActive();
                        JISystem.setAutoRegisteration(true);
                        try {
                            svr.connect();
                        }
                    
                     
                    • Vikram Roopchand

                      No that isn't critical (same hostname, I.P would do) ... which CLSID is
                      this f822de8f-207c-11d1-bad4-006097385023 ?

                      On Fri, Jul 11, 2014 at 12:43 PM, Percy persanker@users.sf.net wrote:

                      My client machine is Percy_PC. The target OPC server machine is LENOVO_PC.
                      Because we are using DHCP, so our IPs are changed every day.
                      I configured J-interop to use credential of Administrator, but not
                      Percy_PC/Administrator. Is this critical?
                      Here's my own defined configurations file:
                      <root tags_file_path="tagsconfig.properties" host="192.168.1.133" user="Administrator" pass="admin" clsid="f822de8f-207c-11d1-bad4-006097385023" data_file_path="data.txt" read_item_from_device="false" write_back_directory="Write_backs"/>

                      My connecting code is:

                      ci = new ConnectionInformation();
                      ci.setHost(root.getAttribute("host"));
                      //ci.setProgId("MatrikonOPC Server for Simulation and Testing");
                      String host=root.getAttribute("host");
                      String user_name=root.getAttribute("user");
                      String pass_word=root.getAttribute("pass");
                      ci.setDomain(host);
                      String clsid=root.getAttribute("clsid");
                      if(clsid!=null && clsid.equals(""))
                      {
                          clsid=null;
                      }
                      ci.setClsid(clsid);
                      ci.setUser(user_name);
                      ci.setPassword(pass_word);
                      svr = new Server(ci, Executors.newScheduledThreadPool(5));
                      svr.isDefaultActive();
                      JISystem.setAutoRegisteration(true);
                      try {
                          svr.connect();
                      }
                      

                      access denied for ABB Freelance2000OPCServer.
                      https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd/ae22/707e/5af1/3a92/c061/7151


                      Sent from sourceforge.net because you indicated interest in
                      https://sourceforge.net/p/j-interop/discussion/600730/

                      To unsubscribe from further messages, please visit
                      https://sourceforge.net/auth/subscriptions/

                      --
                      The Mind is a place of its own. It can make a heaven out of hell or a hell
                      out of heaven. Attitude is everything. No matter how adverse conditions
                      maybe, one has the capacity to turn things around by one's Determination,
                      Perseverance and Hardwork.

                      John Milton
                      (Paradise Lost)

                       
                      • Percy

                        Percy - 2014-07-11

                        CLSID f822de8f-207c-11d1-bad4-006097385023 is ABB's OPC Server, whose progid is Freelance2000OPCServer.23.1

                         
                        Last edit: Percy 2014-07-11
                        • Vikram Roopchand

                          Okay and matrikon also connects to the same , I presume ? Can you use
                          dcomcnfg and find out the permissions on that clsid ? If both tools are
                          connecting to the same server with the same credentials, there isn't much
                          reason why one should get an access denied while the other works.
                          On Jul 11, 2014 1:31 PM, "Percy" persanker@users.sf.net wrote:

                          CLSID f822de8f-207c-11d1-bad4-006097385023 if ABB's OPC Server, whose
                          progid is Freelance2000OPCServer.23.1


                          access denied for ABB Freelance2000OPCServer.
                          https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd/ae22/707e/5af1/3a92/c061/7151/fa95/b36e


                          Sent from sourceforge.net because you indicated interest in
                          https://sourceforge.net/p/j-interop/discussion/600730/

                          To unsubscribe from further messages, please visit
                          https://sourceforge.net/auth/subscriptions/

                           
                          Attachments
                          • Percy

                            Percy - 2014-07-11

                            I agree with you. But It is true that J-interop cannot access the Server. This is really strange. J-interop can access other OPC servers with no problem, but ABB's Freelance2000OPCServer.
                            The permissions of that clsid are all granted to Administrator for both activating and accessing.

                             
                            • Vikram Roopchand

                              It seems you are using an older library version .. Could you take a build
                              from the trunk, we have implemented the ISCMActivator interface in that. I
                              doubt if it would resolve this particular issue but at least we will have
                              comparable protocols. Please attach the PCAP file of j-interop once you
                              have used it with the latest trunk version.

                              best regards,
                              Vikram

                              On Fri, Jul 11, 2014 at 2:12 PM, Percy persanker@users.sf.net wrote:

                              I agree with you. But It is true that J-interop cannot access the Server.
                              This is really strange. J-interop can access other OPC servers with no
                              problem, but ABB's Freelance2000OPCServer.
                              The permissions of that clsid are all granted to Administrator for both
                              activating and accessing.


                              access denied for ABB Freelance2000OPCServer.
                              https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd/ae22/707e/5af1/3a92/c061/7151/fa95/b36e/766b/24f2


                              Sent from sourceforge.net because you indicated interest in
                              https://sourceforge.net/p/j-interop/discussion/600730/

                              To unsubscribe from further messages, please visit
                              https://sourceforge.net/auth/subscriptions/

                              --
                              The Mind is a place of its own. It can make a heaven out of hell or a hell
                              out of heaven. Attitude is everything. No matter how adverse conditions
                              maybe, one has the capacity to turn things around by one's Determination,
                              Perseverance and Hardwork.

                              John Milton
                              (Paradise Lost)

                               
                              Attachments
                              • Percy

                                Percy - 2014-07-14

                                I used r148 from SVN. The same. Here is the pcap.
                                My IP is 192.168.1.109, OPC IP is 192.168.1.111

                                 
                                Attachments
                                • Vikram Roopchand

                                  Hi,

                                  This seems okay. A valid pointer was also returned. It clearly should have
                                  gone ahead. Where exactly are you getting the access denied here ? Can you
                                  dump the stack trace ?

                                  best regards,
                                  Vikram

                                  On Mon, Jul 14, 2014 at 12:23 PM, Percy persanker@users.sf.net wrote:

                                  I used r148 from SVN. The same. Here is the pcap.
                                  My IP is 192.168.1.109, OPC IP is 192.168.1.111


                                  access denied for ABB Freelance2000OPCServer.
                                  https://sourceforge.net/p/j-interop/discussion/600730/thread/02557e24/?limit=25#d514/c047/78fd/ae22/707e/5af1/3a92/c061/7151/fa95/b36e/766b/24f2/5ce3/d0ee


                                  Sent from sourceforge.net because you indicated interest in
                                  https://sourceforge.net/p/j-interop/discussion/600730/

                                  To unsubscribe from further messages, please visit
                                  https://sourceforge.net/auth/subscriptions/

                                  --
                                  The Mind is a place of its own. It can make a heaven out of hell or a hell
                                  out of heaven. Attitude is everything. No matter how adverse conditions
                                  maybe, one has the capacity to turn things around by one's Determination,
                                  Perseverance and Hardwork.

                                  John Milton
                                  (Paradise Lost)

                                   
                                  Attachments
                                  • Percy

                                    Percy - 2014-07-15

                                    14-07-15 08:42:08 - INFO org.openscada.opc.lib.da.Server - Failed to connect to server
                                    org.jinterop.dcom.common.JIException: Access is denied. [0x80070005]
                                    at org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:159)
                                    at org.jinterop.dcom.core.JIRemUnknownServer.addRef_ReleaseRef(JIRemUnknownServer.java:179)
                                    at org.jinterop.dcom.core.JISession.addRef_ReleaseRef(JISession.java:781)
                                    at org.jinterop.dcom.core.JIComObjectImpl.addRef(JIComObjectImpl.java:120)
                                    at org.jinterop.dcom.core.JIComServer.createInstance(JIComServer.java:875)
                                    at org.openscada.opc.lib.da.Server.connect(Server.java:130)
                                    at Manager.connect(Manager.java:330)
                                    at Manager.Fetch(Manager.java:221)
                                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                    at java.lang.reflect.Method.invoke(Unknown Source)
                                    at libpercy.function_object.Function.Call(Function.java:15)
                                    at libpercy.timer.Timer.Timeout(Timer.java:56)
                                    at libpercy.timer.TimerManager.Update(TimerManager.java:51)
                                    at libpercy.looper.Looper.update(Looper.java:47)
                                    at libpercy.looper.Looper.Run(Looper.java:24)
                                    at Main.main(Main.java:11)
                                    Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied. [0x80070005]
                                    at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1095)
                                    at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:969)
                                    at ndr.NdrObject.decode(NdrObject.java:36)
                                    at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
                                    at rpc.Stub.call(Stub.java:113)
                                    at org.jinterop.dcom.core.JIRemUnknownServer.call(JIRemUnknownServer.java:150)
                                    ... 17 more

                                     
  • Percy

    Percy - 2014-07-10
     
    Last edit: Percy 2014-07-25

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks