Eugene Konopaka - 2011-11-29


I'm trying to configure my win2k8r2 x64 machine to be working with j-interop.
The details of my environment:
1. Windows 2008 R2 in domain
2. user on behalf of which I'm trying to connect: Administrator (local Administrator)
3. the permissions are set - all which are mentioned on
4. the registry tweak is also done for HKEY_CLASSES_ROOT\CLSID\{76A64158-CB41-11D1-8B02-00600806D9B6} key
5. Remote registry and Server services are up and running

Trying to connect to my server -

        String domain = "localhost";
        String username = "Administrator";
        String password = "P@ssw0rd";
        String remoteMachineName = "oa-ykon-vm3";

        ClientInfo clientInfo = new ClientInfo(domain, username, password, remoteMachineName);
        sWbemLocator = new SWbemLocator(clientInfo);

my problem is -

Exception in thread "main" com.dcom.exception.DCOMException: org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC0000022
    at com.dcom.client.ServiceConnection.connect(
    at com.dcom.client.ConnectionMgr.clientConnect(
    at Example.main(
Caused by: org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC0000022
    at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKCR(
    at org.jinterop.dcom.core.JIComServer.initialise(
    at org.jinterop.dcom.core.JIComServer.<init>(
    at com.dcom.client.ServiceConnection.connect(
    ... 2 more
Caused by: jcifs.smb.SmbAuthException: Access is denied.
    at jcifs.smb.SmbTransport.send(
    at jcifs.smb.SmbSession.send(
    at jcifs.smb.SmbTree.send(
    at jcifs.smb.SmbFile.send(
    at jcifs.smb.SmbFileOutputStream.write(
    at rpc.ncacn_np.RpcTransport.send(
    at rpc.DefaultConnection.transmitFragment(
    at rpc.DefaultConnection.transmit(
    at rpc.ConnectionOrientedEndpoint.send(
    at rpc.ConnectionOrientedEndpoint.connect(
    at rpc.ConnectionOrientedEndpoint.bind(
    at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKCR(
    ... 5 more

Tried to google for the answer but unfortunately unsuccessfully.
Could you please help or give a hint what i'm doing wrong?