Great, Stephan,

That solves the problem, i based that method from a post at
http://www.oooforum.org/forum/viewtopic.phtml?p=192641#192641 that
have that 0 sizes, now i post a reply there, to alert about that error
too.

Thanks for your help.

On 12/1/06, Stephan Bergmann <[EMAIL PROTECTED]> wrote:
Clovis Wichoski wrote:
> hi, i created a java method:
>
> public Object executeMacro(Object xScript, ArrayList alParams) throws
> Exception {
>         //xScript.invoke(aParams, aOutParamIndex, aOutParam);
>         Object[] aParams = alParams.toArray();
>         short[][] aOutParamIndex = new short[0][0];
>         Object[][] aOutParam  = new Object[0][0];

these [out] parameters must be arrays of length 1 (with arbitrary
content), not of length 0

-Stephan

>         Method invokeMethod =
> xScript.getClass().getMethod("invoke",new Class[]
> {aParams.getClass(),aOutParamIndex.getClass(),aOutParam.getClass()});
>         return invokeMethod.invoke(xScript,new Object[] {aParams,
> aOutParamIndex, aOutParam});
>   }
>
> that invoke the macro:
>
> Sub SaySomething( x )
>   MsgBox x
> End Sub
>
> the call works very well the message appears, but, when i click in OK
> i get a ArrayIndexOutOfBoundsException that occurs in
> java_remote_bridge.java line 237, the package is
> com.sun.star.lib.uno.bridges.java_remote, anyone know because i get
> this Exception?
>
> or where i can browse the source java_remote_bridge.java and check that
> myself?
>
>
> Thanks
>
> Clóvis

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to