IllegalArgumentException

Rick
2011-07-20
2012-11-29
  • Rick
    Rick
    2011-07-20

    I am getting this with the following code
    comServer = new JIComServer(JIClsid.valueOf("270BA898-891F-4EE6-B61F-F9BC1F3D3031"),"127.0.0.1",jiSession);
    IJIComObject comObject = comServer.createInstance();
    IJIComObject comInterface = comObject.queryInterface("283D3FDB4-DB74-4FE0-A7DE-C18D7BE3465B");
    JICallBuilder callBuilder = new JICallBuilder();
    callBuilder.addInParamAsString(someXML, strFLAg);
    Object results = comInterface.call(callBuilder);
    [[Lorg.jinterop.dcom.core.JIVariant;
    [Ljava.lang.Integer;
    [[Ljava.lang.Short;
    java.lang.Short
    [F
    [I
    [D
    [C
    [Z
    [B
    [S
    [[J , [J
    java.lang.IllegalArgumentException: array element type mismatch
    at java.lang.reflect.Array.set(Native Method)
    at org.jinterop.dcom.test.Driver.main(Driver.java:155)

    Any ideas on how to fix
    Thanks
    Rick

     
  • Hi,
         Your outparams does it have a Struct or Union ?

    thanks.,
    best regards,
    Vikram