Need help with 0x80020009 Exception

Help
Crazy Cat
2013-08-09
2013-08-16
  • Crazy Cat

    Crazy Cat - 2013-08-09

    We are connecting from one VM to another and then interfacing with Microsoft’s SCCM product and obtain scanning information. We tested with VB Script examples from the Microsoft Configuration Manager SDK sites and we were able to retrieve site status information. We tried porting those VB Script examples to J-Interop and we get a “0x80020009” exception, which normally points to a permissions error with the DLL. We really want a Java implementation. If anyone has any information that can help us out, we would be very grateful.

    Here is the code:
    public void testConnection(String domain, String hostname, String username, String password, String serviceName,
    int action) {

        JISession dcomSession = null;
        try {
            dcomSession = init(domain, username, password);
    
            JIComServer comServer = new JIComServer(valueOf("WbemScripting.SWbemLocator"), hostname, dcomSession);
            IJIDispatch wbemLocator = (IJIDispatch) narrowObject(comServer.createInstance().queryInterface(IID));
    
            Object[] params = new Object[] { 
                    new JIString(hostname), 
                    new JIString("root\\sms"),
                    JIVariant.OPTIONAL_PARAM(), 
                    JIVariant.OPTIONAL_PARAM(), 
                    JIVariant.OPTIONAL_PARAM(),
                    JIVariant.OPTIONAL_PARAM(), 
                    new Integer(0), 
                    JIVariant.OPTIONAL_PARAM() 
            };
            JIVariant results[] = wbemLocator.callMethodA("ConnectServer", params);
            //Determine where the provider is and connect.
            IJIDispatch wbemServices = (IJIDispatch) narrowObject(results[0].getObjectAsComObject());           
            JIVariant results2[] = wbemServices.callMethodA("InstancesOf",
                    new Object[]{new JIString("SMS_ProviderLocation"), 
                    new Integer(0), JIVariant.OPTIONAL_PARAM()});
    
            Object[] params2 = new Object[] { 
                    new JIString(hostname), 
                    new JIString("root\\sms\\site_SCM"),
                    JIVariant.OPTIONAL_PARAM(), 
                    JIVariant.OPTIONAL_PARAM(), 
                    JIVariant.OPTIONAL_PARAM(),
                    JIVariant.OPTIONAL_PARAM(), 
                    new Integer(0), 
                    JIVariant.OPTIONAL_PARAM() 
            };
            JIVariant results3[] = wbemLocator.callMethodA("ConnectServer", params2);
            ShowSiteHealth(wbemServices);
    

    ...
    private void ShowSiteHealth(IJIDispatch wbemServices) {
    try {
    // Exception occurs here >>>>>>>>>>>>>>>>
    // Exception occurs here >>>>>>>>>>>>>>>>
    JIVariant results2[] = wbemServices.callMethodA("Get",
    new Object[]{new JIString("SMS_SummarizerSiteStatus.SiteCode='SCM'"),
    new Integer(0), JIVariant.OPTIONAL_PARAM()});
    }catch (Exception e) {
    e.printStackTrace();
    }
    }

    Here is the Log file:
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession createSession
    INFO: Created Session: 1265101789
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.common.JISystem saveDBPathAndLoadFile
    INFO: progIdVsClsidDB: {}
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession$Release_References_TimerTask run
    INFO: Release_References_TimerTask:[RUN] Session: 1265101789 , listOfDeferencedIpids: []
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
    INFO: Running ClientPingTimerTask !
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
    INFO: Running ServerPingTimerTask !
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending BIND
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved BIND_ACK
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.common.JISystem internal_dumpMap
    INFO: mapOfHostnamesVsIPs: {}
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending BIND
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved BIND_ACK
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending AUTH3
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending ALTER_CTX
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved ALTER_CTX_RESP
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

    , hasExpired false }
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession addToSession
    INFO: [addToSession] Adding IPID: 0000d807-326c-1780-08d2-9fc2db9639df to session: 1265101789
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession addToSession
    INFO: for IID: 00000000-0000-0000-c000-000000000046
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession releaseRef
    INFO: releaseRef:Reclaiming from Session: 1265101789 , the IPID: 00008808-326c-1780-6b85-8687700dca04
    Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession releaseRef
    WARNING: releaseRef: Releasing 5 references of IPID: 00008808-326c-1780-6b85-8687700dca04 session: 1265101789
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending BIND
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved BIND_ACK
    Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending AUTH3
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
    WARNING: addRef: Adding 5 references for 0000d807-326c-1780-08d2-9fc2db9639df session: 1265101789
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 2 } and OID in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

    , hasExpired false }
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: [addToSession] Adding IPID: 00008808-326c-1780-6b85-8687700dca04 to session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: for IID: 00020400-0000-0000-c000-000000000046
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
    WARNING: addRef: Adding 5 references for 00008808-326c-1780-6b85-8687700dca04 session: 1265101789
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending ALTER_CTX
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved ALTER_CTX_RESP
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: Adding OID to holder SetID[null] , currentSetOIDs[[{ IPID ref count is 2 } and OID in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

    , hasExpired false } ]], current size of currentSetOIDs is 1
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: 48 2D AB 6D E0 DE 20 DF |H-«màÞ ß |

    , hasExpired false }
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: [addToSession] Adding IPID: 0000c40c-326c-1780-7d8b-f04864fa0c55 to session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: for IID: 00020400-0000-0000-c000-000000000046
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
    WARNING: addRef: Adding 5 references for 0000c40c-326c-1780-7d8b-f04864fa0c55 session: 1265101789
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: Adding OID to holder SetID[null] , currentSetOIDs[[{ IPID ref count is 2 } and OID in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

    , hasExpired false } , { IPID ref count is 1 } and OID in bytes[] 00000: 48 2D AB 6D E0 DE 20 DF |H-«màÞ ß |

    , hasExpired false } ]], current size of currentSetOIDs is 2
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: 37 2C B0 BC C1 5B 17 61 |7,°¼Á[.a |

    , hasExpired false }
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: [addToSession] Adding IPID: 00003812-326c-1780-6e53-570472399955 to session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: for IID: 00020400-0000-0000-c000-000000000046
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
    WARNING: addRef: Adding 5 references for 00003812-326c-1780-6e53-570472399955 session: 1265101789
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: Adding OID to holder SetID[null] , currentSetOIDs[[{ IPID ref count is 2 } and OID in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

    , hasExpired false } , { IPID ref count is 1 } and OID in bytes[] 00000: 48 2D AB 6D E0 DE 20 DF |H-«màÞ ß |

    , hasExpired false } , { IPID ref count is 1 } and OID in bytes[] 00000: 37 2C B0 BC C1 5B 17 61 |7,°¼Á[.a |

    , hasExpired false } ]], current size of currentSetOIDs is 3
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime addUpdateOXIDs
    INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID in bytes[] 00000: 6C 54 2D 20 E0 9A 96 F2 |lT- à..ò |

    , hasExpired false }
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: [addToSession] Adding IPID: 0000fc14-326c-1780-7857-17d8ceb20c20 to session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
    INFO: for IID: 00020400-0000-0000-c000-000000000046
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
    WARNING: addRef: Adding 5 references for 0000fc14-326c-1780-7857-17d8ceb20c20 session: 1265101789
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    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:520)
    at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:526)
    at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:477)
    at SimpleServiceManager.ShowSiteHealth(SimpleServiceManager.java:90)
    at SimpleServiceManager.testConnection(SimpleServiceManager.java:139)
    at SimpleServiceManager.start(SimpleServiceManager.java:71)
    at SimpleServiceManager.main(SimpleServiceManager.java:57)
    Caused by: org.jinterop.dcom.common.JIRuntimeException: Exception occurred. [0x80020009]
    at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1078)
    at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:957)
    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.call(JIComServer.java:870)
    at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:825)
    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)
    ... 7 more
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession prepareForReleaseRef
    WARNING: prepareForReleaseRef: Releasing 10 references of IPID: 00008808-326c-1780-6b85-8687700dca04 session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession prepareForReleaseRef
    WARNING: prepareForReleaseRef: Releasing 10 references of IPID: 0000fc14-326c-1780-7857-17d8ceb20c20 session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession prepareForReleaseRef
    WARNING: prepareForReleaseRef: Releasing 10 references of IPID: 00003812-326c-1780-6e53-570472399955 session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession prepareForReleaseRef
    WARNING: prepareForReleaseRef: Releasing 10 references of IPID: 0000d807-326c-1780-08d2-9fc2db9639df session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession prepareForReleaseRef
    WARNING: prepareForReleaseRef: Releasing 10 references of IPID: 0000c40c-326c-1780-7d8b-f04864fa0c55 session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession releaseRefs
    INFO: In releaseRefs for session : 1265101789 , array length is: 5
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending BIND
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved BIND_ACK
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending AUTH3
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime clearIPIDsforSession
    INFO: clearIPIDsforSession: holder.currentSetOIDs's size is 4
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession destroySession
    INFO: Destroyed Session: 1265101789
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession postDestroy
    INFO: About to destroy links for Session: 1265101789 , size of which is 0
    Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime destroySessionOIDs
    INFO: destroySessionOIDs for session: 1265101789

     
    • Vikram Roopchand

      Hi There,

      Apologies on the delayed reply, we have been swamped with work. Can you
      please check the method getExcepInfo() method of JIAutomationException for
      more information to the exact error ?

      thanks,
      best regards,
      Vikram

      On Fri, Aug 9, 2013 at 10:27 PM, Crazy Cat wildman9@users.sf.net wrote:

      We are connecting from one VM to another and then interfacing with
      Microsoft’s SCCM product and obtain scanning information. We tested with VB
      Script examples from the Microsoft Configuration Manager SDK sites and we
      were able to retrieve site status information. We tried porting those VB
      Script examples to J-Interop and we get a “0x80020009” exception, which
      normally points to a permissions error with the DLL. We really want a Java
      implementation. If anyone has any information that can help us out, we
      would be very grateful.

      Here is the code:
      public void testConnection(String domain, String hostname, String
      username, String password, String serviceName,
      int action) {

      JISession dcomSession = null;
      try {
          dcomSession = init(domain, username, password);
      
          JIComServer comServer = new JIComServer(valueOf("WbemScripting.SWbemLocator"), hostname, dcomSession);
          IJIDispatch wbemLocator = (IJIDispatch) narrowObject(comServer.createInstance().queryInterface(IID));
      
          Object[] params = new Object[] {
                  new JIString(hostname),
                  new JIString("root\\sms"),
                  JIVariant.OPTIONAL_PARAM(),
                  JIVariant.OPTIONAL_PARAM(),
                  JIVariant.OPTIONAL_PARAM(),
                  JIVariant.OPTIONAL_PARAM(),
                  new Integer(0),
                  JIVariant.OPTIONAL_PARAM()
          };
          JIVariant results[] = wbemLocator.callMethodA("ConnectServer", params);
          //Determine where the provider is and connect.
          IJIDispatch wbemServices = (IJIDispatch) narrowObject(results[0].getObjectAsComObject());
          JIVariant results2[] = wbemServices.callMethodA("InstancesOf",
                  new Object[]{new JIString("SMS_ProviderLocation"),
                  new Integer(0), JIVariant.OPTIONAL_PARAM()});
      
          Object[] params2 = new Object[] {
                  new JIString(hostname),
                  new JIString("root\\sms\\site_SCM"),
                  JIVariant.OPTIONAL_PARAM(),
                  JIVariant.OPTIONAL_PARAM(),
                  JIVariant.OPTIONAL_PARAM(),
                  JIVariant.OPTIONAL_PARAM(),
                  new Integer(0),
                  JIVariant.OPTIONAL_PARAM()
          };
          JIVariant results3[] = wbemLocator.callMethodA("ConnectServer", params2);
          ShowSiteHealth(wbemServices);
      

      ...
      private void ShowSiteHealth(IJIDispatch wbemServices) {
      try {
      // Exception occurs here >>>>>>>>>>>>>>>>
      // Exception occurs here >>>>>>>>>>>>>>>>
      JIVariant results2[] = wbemServices.callMethodA("Get",
      new Object[]{new JIString("SMS_SummarizerSiteStatus.SiteCode='SCM'"),
      new Integer(0), JIVariant.OPTIONAL_PARAM()});
      }catch (Exception e) {
      e.printStackTrace();
      }
      }

      Here is the Log file:
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession createSession
      INFO: Created Session: 1265101789
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.common.JISystem
      saveDBPathAndLoadFile
      INFO: progIdVsClsidDB: {}
      Aug 09, 2013 11:30:46 AM
      org.jinterop.dcom.core.JISession$Release_References_TimerTask run
      INFO: Release_References_TimerTask:[RUN] Session: 1265101789 ,
      listOfDeferencedIpids: []
      Aug 09, 2013 11:30:46 AM
      org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
      INFO: Running ClientPingTimerTask !
      Aug 09, 2013 11:30:46 AM
      org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
      INFO: Running ServerPingTimerTask !
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending BIND
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved BIND_ACK
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.common.JISystem internal_dumpMap
      INFO: mapOfHostnamesVsIPs: {}
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending BIND
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved BIND_ACK
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending AUTH3
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending ALTER_CTX
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved ALTER_CTX_RESP
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID
      in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

      , hasExpired false }
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession addToSession
      INFO: [addToSession] Adding IPID: 0000d807-326c-1780-08d2-9fc2db9639df to
      session: 1265101789
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession addToSession
      INFO: for IID: 00000000-0000-0000-c000-000000000046
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession releaseRef
      INFO: releaseRef:Reclaiming from Session: 1265101789 , the IPID:
      00008808-326c-1780-6b85-8687700dca04
      Aug 09, 2013 11:30:46 AM org.jinterop.dcom.core.JISession releaseRef
      WARNING: releaseRef: Releasing 5 references of IPID:
      00008808-326c-1780-6b85-8687700dca04 session: 1265101789
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending BIND
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved BIND_ACK
      Aug 09, 2013 11:30:46 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending AUTH3
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
      WARNING: addRef: Adding 5 references for
      0000d807-326c-1780-08d2-9fc2db9639df session: 1265101789
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 2 } and OID
      in bytes[] 00000: CE B3 5D 44 C1 E4 21 49 |γ]DÁä!I |

      , hasExpired false }
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: [addToSession] Adding IPID: 00008808-326c-1780-6b85-8687700dca04 to
      session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: for IID: 00020400-0000-0000-c000-000000000046
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
      WARNING: addRef: Adding 5 references for
      00008808-326c-1780-6b85-8687700dca04 session: 1265101789
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending ALTER_CTX
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved ALTER_CTX_RESP
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: Adding OID to holder SetID[null] , currentSetOIDs[[{
      IPID ref count is 2 } and OID in bytes[]
      00000: CE B3 5D 44 C1 E4 21 49
      |γ]DÁä!I |

      , hasExpired false } ]], current size of currentSetOIDs is 1
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID
      in bytes[] 00000: 48 2D AB 6D E0 DE 20 DF |H-«màÞ ß |

      , hasExpired false }
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: [addToSession] Adding IPID: 0000c40c-326c-1780-7d8b-f04864fa0c55 to
      session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: for IID: 00020400-0000-0000-c000-000000000046
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
      WARNING: addRef: Adding 5 references for
      0000c40c-326c-1780-7d8b-f04864fa0c55 session: 1265101789
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: Adding OID to holder SetID[null] , currentSetOIDs[[{
      IPID ref count is 2 } and OID in bytes[]
      00000: CE B3 5D 44 C1 E4 21 49
      |γ]DÁä!I |

      , hasExpired false } , { IPID ref count is 1 } and OID in bytes[] 00000:
      48 2D AB 6D E0 DE 20 DF |H-«màÞ ß |

      , hasExpired false } ]], current size of currentSetOIDs is 2
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID
      in bytes[] 00000: 37 2C B0 BC C1 5B 17 61 |7,°¼Á[.a |

      , hasExpired false }
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: [addToSession] Adding IPID: 00003812-326c-1780-6e53-570472399955 to
      session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: for IID: 00020400-0000-0000-c000-000000000046
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
      WARNING: addRef: Adding 5 references for
      00003812-326c-1780-6e53-570472399955 session: 1265101789
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: Adding OID to holder SetID[null] , currentSetOIDs[[{
      IPID ref count is 2 } and OID in bytes[]
      00000: CE B3 5D 44 C1 E4 21 49
      |γ]DÁä!I |

      , hasExpired false } , { IPID ref count is 1 } and OID in bytes[] 00000:
      48 2D AB 6D E0 DE 20 DF |H-«màÞ ß |

      , hasExpired false } , { IPID ref count is 1 } and OID in bytes[] 00000:
      37 2C B0 BC C1 5B 17 61 |7,°¼Á[.a |

      , hasExpired false } ]], current size of currentSetOIDs is 3
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      addUpdateOXIDs
      INFO: addUpdateOXIDs: finally this oid is { IPID ref count is 1 } and OID
      in bytes[] 00000: 6C 54 2D 20 E0 9A 96 F2 |lT- à..ò |

      , hasExpired false }
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: [addToSession] Adding IPID: 0000fc14-326c-1780-7857-17d8ceb20c20 to
      session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession addToSession
      INFO: for IID: 00020400-0000-0000-c000-000000000046
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComObjectImpl addRef
      WARNING: addRef: Adding 5 references for
      0000fc14-326c-1780-7857-17d8ceb20c20 session: 1265101789
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      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:520)
      at
      org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:526)
      at
      org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:477)
      at SimpleServiceManager.ShowSiteHealth(SimpleServiceManager.java:90)
      at SimpleServiceManager.testConnection(SimpleServiceManager.java:139)
      at SimpleServiceManager.start(SimpleServiceManager.java:71)
      at SimpleServiceManager.main(SimpleServiceManager.java:57)
      Caused by: org.jinterop.dcom.common.JIRuntimeException: Exception
      occurred. [0x80020009]
      at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1078)
      at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:957)
      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.call(JIComServer.java:870)
      at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:825)
      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)
      ... 7 more
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession
      prepareForReleaseRef
      WARNING: prepareForReleaseRef: Releasing 10 references of IPID:
      00008808-326c-1780-6b85-8687700dca04 session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession
      prepareForReleaseRef
      WARNING: prepareForReleaseRef: Releasing 10 references of IPID:
      0000fc14-326c-1780-7857-17d8ceb20c20 session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession
      prepareForReleaseRef
      WARNING: prepareForReleaseRef: Releasing 10 references of IPID:
      00003812-326c-1780-6e53-570472399955 session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession
      prepareForReleaseRef
      WARNING: prepareForReleaseRef: Releasing 10 references of IPID:
      0000d807-326c-1780-08d2-9fc2db9639df session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession
      prepareForReleaseRef
      WARNING: prepareForReleaseRef: Releasing 10 references of IPID:
      0000c40c-326c-1780-7d8b-f04864fa0c55 session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession releaseRefs
      INFO: In releaseRefs for session : 1265101789 , array length is: 5
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending BIND
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved BIND_ACK
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending AUTH3
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Aug 09, 2013 11:30:47 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      clearIPIDsforSession
      INFO: clearIPIDsforSession: holder.currentSetOIDs's size is 4
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession destroySession
      INFO: Destroyed Session: 1265101789
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JISession postDestroy
      INFO: About to destroy links for Session: 1265101789 , size of which is 0
      Aug 09, 2013 11:30:47 AM org.jinterop.dcom.core.JIComOxidRuntime
      destroySessionOIDs
      INFO: destroySessionOIDs for session: 1265101789


      Need help with 0x80020009 Exceptionhttps://sourceforge.net/p/j-interop/discussion/600730/thread/ef419f8b/?limit=25#5156

      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)

       
    • Crazy Cat

      Crazy Cat - 2013-08-15

      Using JIException - getExcepInfo(), gave: "org.jinterop.dcom.impls.automation.JIExcepInfo@a75974"

       
      • Vikram Roopchand

        It will return an object with some description to what transpired.

        Best regards,
        Vikram
        On Aug 16, 2013 1:11 AM, "Crazy Cat" wildman9@users.sf.net wrote:

        Using JIException - getExcepInfo(), gave:
        "org.jinterop.dcom.impls.automation.JIExcepInfo@a75974"


        Need help with 0x80020009 Exceptionhttps://sourceforge.net/p/j-interop/discussion/600730/thread/ef419f8b/?limit=25#5156/1db2

        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/

         
        • Crazy Cat

          Crazy Cat - 2013-08-16

          Vikram, I used the following two lines to get the information that you requested:
          System.out.println("JIException>>"+j.getExcepInfo()+"<<");
          System.out.printf("JIException Code %d, Message %s, Source %s >>",j.getExcepInfo().getErrorCode(), j.getExcepInfo().getExcepDesc(), j.getExcepInfo().getExcepSource());

          There was nothing in the object:
          JIException>>org.jinterop.dcom.impls.automation.JIExcepInfo@e20459<<
          JIException Code -1, Message null, Source null >>Aug 16, 2013 9:50:38 AM rpc.DefaultConnection processOutgoing

          Note: The original stack trace is listed in my original post above.
          I appreciate your assistance.
          Thanks.

           

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks