Connection Issues

Help
MarkB
2014-07-23
2014-07-23
  • MarkB

    MarkB - 2014-07-23

    I have tested my user account using WBEMTEST and it works remotely against Windows 2012 server.

    However, using J-Interop with same login information I get the following errors:

    First attempt:
    STATUS_PIPE_NOT_AVAILABLE
    INFO: Attempting to register on 32 bit
    org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC00000AC

    Seconds attempt:
    Access denied message
    INFO: Attempting to register on 64 bit
    Jul 23, 2014 9:34:50 AM rpc.DefaultConnection processOutgoing
    INFO:
    Sending REQUEST
    Jul 23, 2014 9:34:50 AM rpc.DefaultConnection processIncoming
    INFO:
    Recieved RESPONSE
    org.jinterop.dcom.common.JIException: Message not found for errorCode: 0x00000005

    If I wait some amount of time and try again I will get the STATUS_PIPE_NOT_AVAILABLE error followed by Access denied.

    Can you explain why my first attempts results in STATUS_PIPE_NOT_AVAILABLE error?

    Also, I understand you must perform the following steps to get around the Access denied error:

    Step 1 Locate the following registry location:
    HKEY_CLASSES_ROOT\CLSID{76A64158-CB41-11D1-8B02-00600806D9B6}
    Step 2 Right-click the entry {76A64158-CB41-11D1-8B02-00600806D9B6}, then click Permissions.
    The Permissions window is displayed.
    Step 3 Click Advanced.
    The Advanced Security Settings window is displayed.
    Step 4 Select the Administrators group, click OK.
    The Permissions window is displayed.
    Step 5 Select the jinteropuser user, select the Allow check box for Full Control permission, and click Apply.
    NOTE
    If the jinteropuser user is not listed in the permissions list, you must add the user to the Configuration.
    Step 6 Click Advanced.
    The Advanced Security Settings window is displayed.
    Step 7 Click the Owner tab.
    Administrators is shown as the current owner.
    Step 8 Select or add your jinteropuser user, click OK.
    NOTE
    If the jinteropuser user is not listed in the Change owner to permission list, you must select Other users or groups to add the user to the configuration.

    Step 9 Click OK to return to the Registry Editor.
    Step 10 Repeat above steps for the following registry key:
    HKEY_CLASSES_ROOT\Wow6432Node\CLSID{76A64158-CB41-11D1-8B02-00
    600806D9B6}

    I do not understand why WBEMTEST works without the above registry changes.

    Can you explain too?

    Thanks,
    Mark

     
    • Vikram Roopchand

      Hi Mark,

      Did you turn on security (packet level encryption) on j-interop ? At times
      that is the reason for failure. Also I presume both wbemtest and jinterop
      are using the same credentials.

      Best regards,
      Vikram
      On Jul 23, 2014 8:41 PM, "MarkB" mbooco@users.sf.net wrote:

      I have tested my user account using WBEMTEST and it works remotely against
      Windows 2012 server.

      However, using J-Interop with same login information I get the following
      errors:

      First attempt:
      STATUS_PIPE_NOT_AVAILABLE
      INFO: Attempting to register on 32 bit
      org.jinterop.dcom.common.JIException: Message not found for errorCode:
      0xC00000AC

      Seconds attempt:
      Access denied message
      INFO: Attempting to register on 64 bit
      Jul 23, 2014 9:34:50 AM rpc.DefaultConnection processOutgoing
      INFO:
      Sending REQUEST
      Jul 23, 2014 9:34:50 AM rpc.DefaultConnection processIncoming
      INFO:
      Recieved RESPONSE
      org.jinterop.dcom.common.JIException: Message not found for errorCode:
      0x00000005

      If I wait some amount of time and try again I will get the
      STATUS_PIPE_NOT_AVAILABLE error followed by Access denied.

      Can you explain why my first attempts results in STATUS_PIPE_NOT_AVAILABLE
      error?

      Also, I understand you must perform the following steps to get around the
      Access denied error:

      Step 1 Locate the following registry location:
      HKEY_CLASSES_ROOT\CLSID{76A64158-CB41-11D1-8B02-00600806D9B6}
      Step 2 Right-click the entry {76A64158-CB41-11D1-8B02-00600806D9B6}, then
      click Permissions.
      The Permissions window is displayed.
      Step 3 Click Advanced.
      The Advanced Security Settings window is displayed.
      Step 4 Select the Administrators group, click OK.
      The Permissions window is displayed.
      Step 5 Select the jinteropuser user, select the Allow check box for Full
      Control permission, and click Apply.
      NOTE
      If the jinteropuser user is not listed in the permissions list, you must
      add the user to the Configuration.
      Step 6 Click Advanced.
      The Advanced Security Settings window is displayed.
      Step 7 Click the Owner tab.
      Administrators is shown as the current owner.
      Step 8 Select or add your jinteropuser user, click OK.
      NOTE
      If the jinteropuser user is not listed in the Change owner to permission
      list, you must select Other users or groups to add the user to the
      configuration.

      Step 9 Click OK to return to the Registry Editor.
      Step 10 Repeat above steps for the following registry key:
      HKEY_CLASSES_ROOT\Wow6432Node\CLSID{76A64158-CB41-11D1-8B02-00
      600806D9B6}

      I do not understand why WBEMTEST works without the above registry changes.

      Can you explain too?

      Thanks,
      Mark


      Connection Issues
      https://sourceforge.net/p/j-interop/discussion/600730/thread/eb75ea04/?limit=25#65a0


      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/

       
      • MarkB

        MarkB - 2014-07-23

        Yes, using session security: session.useSessionSecurity(true);

        Also, your assumption is correct. Both using same credentials.

         

Log in to post a comment.