Menu

ArrayIndexOutOfBoundsException

Help
Stephanie
2014-12-05
2014-12-08
  • Stephanie

    Stephanie - 2014-12-05

    Hello!

    Since I am new to WMI and JAVA I thought I start by following the examples as close as possible. Therefore I created a class MSSysInfo and copied the source from the corresponding example. However I always get this error (if I change the supplied credentials I get "Access is denied, please check whether the [domain-username-password] are correct." So I am quite sure this should work):

    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)
    at com.tb.ach.core.MSSysInfo.<init>(MSSysInfo.java:34)
    at com.tb.ach.core.MSSysInfo.localMain(MSSysInfo.java:83)
    at com.tb.ach.core.MSSysInfo.<init>(MSSysInfo.java:28)
    at com.tb.ach.core.Main.main(Main.java:31)

    Any help/ideas are highly appreciated.

    Cheers,
    Steffi

     
    • Vikram Roopchand

      Hi Steffi,

      This is a bug. Its been fixed on the trunk (src). Please take the sources
      of the main trunk and compile on your own.

      best regards,
      Vikram

      On Fri, Dec 5, 2014 at 9:52 PM, Stephanie yellow-steffi@users.sf.net
      wrote:

      Hello!

      Since I am new to WMI and JAVA I thought I start by following the examples
      as close as possible. Therefore I created a class MSSysInfo and copied the
      source from the corresponding example. However I always get this error (if
      I change the supplied credentials I get "Access is denied, please check
      whether the [domain-username-password] are correct." So I am quite sure
      this should work):

      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)
      at com.tb.ach.core.MSSysInfo.<init>(MSSysInfo.java:34)
      at com.tb.ach.core.MSSysInfo.localMain(MSSysInfo.java:83)
      at com.tb.ach.core.MSSysInfo.<init>(MSSysInfo.java:28)
      at com.tb.ach.core.Main.main(Main.java:31)

      Any help/ideas are highly appreciated.

      Cheers,
      Steffi


      ArrayIndexOutOfBoundsException
      https://sourceforge.net/p/j-interop/discussion/600730/thread/7c2ad872/?limit=25#b8ac


      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)

       

Log in to post a comment.