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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
--
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.
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
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:
--
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)