On Aug 11, 2:39 pm, chris idr <[EMAIL PROTECTED]> wrote:
> Hi I'm getting an exception from rhino.
>
> I think it is because the method it is trying to access is not defined.
>
> But I have no idea what the method signature should be, how do I find
> out what rhino is trying to access?
>
> I get this error :- Java class "[Ljava.lang.Object;" has no public
> instance field or method named "value".
> and I have code :- acro.getField("04");var hh =
> acro.getField("22");event.value = gg.value - hh.value;
>
> The java class I return from acro.getField("22") has a method signature
> public String getValue() { return "10.0"; }
>
> How do I find out what method signature Rhino is trying to call?
>


the object it is trying to invoke your method on is a native java
array (Object[])

You can tell this because "[Ljava.lang.Object;" is the class name for
the array type.

One of your variables, either 'event', 'gg', or 'hh' is a reference to
an object of this type. The exception is happening because there is no
field or method named 'value' on the java type Object[]
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to