Getting java.lang.ArrayIndexOutOfBoundsException: 16

Deepak
2013-10-03
2013-10-03
  • Deepak
    Deepak
    2013-10-03

    I am unable to get it working. Not sure what is the problem.

    Code snippet
    JISystem.getLogger().setLevel(Level.WARNING);
    JISystem.setAutoRegisteration(true);
    JISession dcomSession = JISession.createSession(domainName,username,password);
    dcomSession.useSessionSecurity(false);
    comServer = new JIComServer(valueOf("WbemScripting.SWbemLocator"),hostName,dcomSession);

    Exception trace:
    java.lang.ArrayIndexOutOfBoundsException: 16
    at jcifs.util.Encdec.dec_uint32le(Encdec.java:90)
    at ndr.NdrBuffer.dec_ndr_long(NdrBuffer.java:146)
    at ndr.NetworkDataRepresentation.readUnsignedLong(NetworkDataRepresentation.java:64)
    at org.jinterop.dcom.core.JIRemoteSCMActivator$RemoteCreateInstance.read(JIRemoteSCMActivator.java:642)
    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.init(JIComServer.java:645)
    at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:496)
    at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:429)

     
  • Deepak
    Deepak
    2013-10-03

    Sorry, duplicate of b1481117