hodneeri

Failed to connect to PI server through DCOM (J-Interop) implementation

Discussion created by hodneeri on Jul 18, 2013
Latest reply on Sep 2, 2013 by Gregor

Hi!

 

I failed to connect to the PI server via J-Interop implementation in java code. 

 

The OS machine is microsoft window 2003 and installed  PISDK_2010 R2 x86_.exe & PI OLEDB_2010 R3_.exe

 

Below are the log details which generated during the  J-Interop open connection process.

 

 

 

18 Julai 2013 5:45:30 PM org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
INFO: j-Interop Version = j-Interop 2.08

 

18 Julai 2013 5:45:30 PM org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
INFO: java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = C:\Java\jdk1.6.0_37\jre\bin
java.vm.version = 20.12-b01
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
user.country = MY
sun.os.patch.level = Service Pack 1
java.vm.specification.name = Java Virtual Machine Specification
user.dir = C:\eclipse\workspace\MyJavaTesting
java.runtime.version = 1.6.0_37-b06
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = C:\Java\jdk1.6.0_37\jre\lib\endorsed
os.arch = amd64
java.io.tmpdir = C:\Users\leeeecho\AppData\Local\Temp\
line.separator =

 

java.vm.specification.vendor = Sun Microsystems Inc.
user.variant =
os.name = Windows 7
sun.jnu.encoding = Cp1252
java.library.path = C:\Java\jdk1.6.0_37\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ora11gR2\product\11.2.0\dbhome_1\bin;C:\Python27\;C:\Python27\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerS11hell\v1.0\;C:\Java\jdk1.5.0_22\bin;C:\Program Files (x86)\cvsnt;C:\Program Files\TortoiseHg\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\PIPC\JDBC;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;%APPDATA%\Python\Scripts;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;.
java.specification.name = Java Platform API Specification
java.class.version = 50.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
os.version = 6.1
user.home = C:\Users\leeeecho
user.timezone = Asia/Singapore
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = Cp1252
java.specification.version = 1.6
java.class.path = C:\eclipse\workspace\MyJavaTesting\bin;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib\dom4j.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib\jaxen.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\PIJDBCDriver.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\jasperreport\jfreechart-1.0.10.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\jasperreport\jcommon-1.0.13.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\ojdbc5_g.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-ext\p6spyPatched.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib\activation.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib\mail.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\j-interop.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\jcifs-1.2.19.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\j-interopdeps.jar;C:\EnergyComponent\HEAD\ECJboss-EC-HEAD\jboss-eap-4.3.0.GA_CP04\server\ec\lib-EnergyX-std\JNative.jar
user.name = leeeecho
java.vm.specification.version = 1.0
sun.java.command = MyJInteropTest
java.home = C:\Java\jdk1.6.0_37\jre
sun.arch.data.model = 64
user.language = ms
java.specification.vendor = Sun Microsystems Inc.
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = 1.6.0_37
java.ext.dirs = C:\Java\jdk1.6.0_37\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
sun.boot.class.path = C:\Java\jdk1.6.0_37\jre\lib\resources.jar;C:\Java\jdk1.6.0_37\jre\lib\rt.jar;C:\Java\jdk1.6.0_37\jre\lib\sunrsasign.jar;C:\Java\jdk1.6.0_37\jre\lib\jsse.jar;C:\Java\jdk1.6.0_37\jre\lib\jce.jar;C:\Java\jdk1.6.0_37\jre\lib\charsets.jar;C:\Java\jdk1.6.0_37\jre\lib\modules\jdk.boot.jar;C:\Java\jdk1.6.0_37\jre\classes
java.vendor = Sun Microsystems Inc.
file.separator = \
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.desktop = windows
sun.cpu.isalist = amd64

 

domhost : win2k3-head2
connectString : Provider = PIOLEDB ; Data Source =10.81.1.140; User Id=piadmin; Password=; Timestamp Interval Start = True; Time Zone = UTC; Session ID=-1; Command Timeout = 180; Log File = c:\temp\jinterop\logfile.log; Log Level = 0
18 Julai 2013 5:45:30 PM org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
INFO: Running ServerPingTimerTask !
18 Julai 2013 5:45:30 PM org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
INFO: Running ClientPingTimerTask !
18 Julai 2013 5:45:30 PM org.jinterop.dcom.core.JISession createSession
INFO: Created Session: 1356583351
18 Julai 2013 5:45:30 PM org.jinterop.dcom.core.JISession$Release_References_TimerTask run
INFO: Release_References_TimerTask:[RUN] Session: 1356583351 , listOfDeferencedIpids.size(): 0
18 Julai 2013 5:45:30 PM org.jinterop.dcom.common.JISystem saveDBPathAndLoadFile
INFO: progIdVsClsidDB: {}
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:30 PM org.jinterop.dcom.common.JISystem internal_dumpMap
INFO: mapOfHostnamesVsIPs: {}
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
18 Julai 2013 5:45:30 PM rpc.DefaultConnection processOutgoing
INFO:
Sending AUTH3
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending ALTER_CTX
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved ALTER_CTX_RESP
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: 40 45 71 9F F1 A5 A4 D6 |@Eq.ñ¥¤ö |

 

, hasExpired false }
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JISession addToSession
INFO: [addToSession] Adding IPID: 0000ac09-04d4-ffff-b909-beabd1aec774 to session: 1356583351
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JISession addToSession
INFO: for IID: 00000000-0000-0000-c000-000000000046
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JISession releaseRef
INFO: releaseRef:Reclaiming from Session: 1356583351 , the IPID: 0000480a-04d4-ffff-8b00-f28f010aca8d, numinstances is 5
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JISession releaseRef
WARNING: releaseRef: Releasing numinstances 5 references of IPID: 0000480a-04d4-ffff-8b00-f28f010aca8d session: 1356583351
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending AUTH3
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JIComObjectImpl addRef
WARNING: addRef: Adding 5 references for 0000ac09-04d4-ffff-b909-beabd1aec774 session: 1356583351
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 2 } and OID in bytes[] 00000: 40 45 71 9F F1 A5 A4 D6 |@Eq.ñ¥¤ö |

 

, hasExpired false }
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JISession addToSession
INFO: [addToSession] Adding IPID: 0000480a-04d4-ffff-8b00-f28f010aca8d to session: 1356583351
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JISession addToSession
INFO: for IID: 00020400-0000-0000-c000-000000000046
18 Julai 2013 5:45:31 PM org.jinterop.dcom.core.JIComObjectImpl addRef
WARNING: addRef: Adding 5 references for 0000480a-04d4-ffff-8b00-f28f010aca8d session: 1356583351
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending AUTH3
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:31 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:52 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
[PI SDK] Version information not returned in pisdk_subsysquery. [-10733] PINET: RPC Resolver is Off-Line. [ : -2147467259 : HelpFilePath: ]
org.jinterop.dcom.impls.automation.JIAutomationException: Exception occurred. [0x80020009]
at org.jinterop.dcom.impls.automation.JIDispatchImpl.invoke(JIDispatchImpl.java:333)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:459)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethod(JIDispatchImpl.java:447)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethod(JIDispatchImpl.java:441)
at JInteropConnection.Open(JInteropConnection.java:58)
at MyJInteropTest.initializeAdapter(MyJInteropTest.java:195)
at MyJInteropTest.main(MyJInteropTest.java:76)
Caused by: org.jinterop.dcom.common.JIRuntimeException: Exception occurred. [0x80020009]
at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1079)
at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:957)
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.JIComServer.call(JIComServer.java:901)
at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:856)
at org.jinterop.dcom.core.JIComObjectImpl.call(JIComObjectImpl.java:266)
at org.jinterop.dcom.core.JIComObjectImpl.call(JIComObjectImpl.java:153)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.invoke(JIDispatchImpl.java:315)
... 6 more
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JISession prepareForReleaseRef
WARNING: prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0000ac09-04d4-ffff-b909-beabd1aec774 session: 1356583351 , numInstancesfirsttime is 5
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JISession prepareForReleaseRef
WARNING: prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0000480a-04d4-ffff-8b00-f28f010aca8d session: 1356583351 , numInstancesfirsttime is 5
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JISession releaseRefs
INFO: In releaseRefs for session : 1356583351 , array length is: 2
18 Julai 2013 5:45:52 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
18 Julai 2013 5:45:52 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JIComOxidRuntime clearIPIDsforSession
INFO: clearIPIDsforSession: holder.currentSetOIDs's size is 1
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JISession destroySession
INFO: Destroyed Session: 1356583351
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JISession postDestroy
INFO: About to destroy links for Session: 1356583351 , size of which is 0
18 Julai 2013 5:45:52 PM org.jinterop.dcom.core.JIComOxidRuntime destroySessionOIDs
INFO: destroySessionOIDs for session: 1356583351

 

 

 

Very appreciated any help or advice. :)

 

Thanks.

Outcomes