From: Jost B. <jos...@ya...> - 2005-11-05 13:36:43
|
Hi Guillaume, > $Array = new JavaClass("java.lang.reflect.Array"); > $String = new JavaClass("java.lang.String"); > $entries = $Array->newInstance($String, 2); [...] > $req->ProcessFunction($Array); [...] >...(([Ljava.lang.String;)c:java.lang.reflect.Array) if I understand this correctly, you want to pass the created String[] instance to ProcessFunction, not the $Array class. Does $req->ProcessFunction($entries) solve the problem? BTW: The above error message indicates that the ProcessFunction2 accepts a [Ljava.Lang.String], i.e. a String[] but it is called with an argument which is a class java.lang.reflect.Array. I agree that this is difficult to read, but if I make the message more verbose, php may cut off the rest of the message. Maybe the full message should go to the PHP/Java Bridge log. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |