|
From: <php...@li...> - 2007-09-25 10:30:28
|
Hi,
I have instantiated a Java object in PHP 5.1.6 using the version 3.2.1b of
the php/java bridge.
I am trying to call a method (setCurrTrxDate) that expects a
java.sql.Dateparameter to be passed and I am getting the following
Java exception:
java.lang.Exception: Invoke failed:
[o(DepMnt0302AcctDispDelSrvImport$InBankParameters)]->setCurrTrxDate((Date)c(Date)).
Cause: java.lang.IllegalArgumentException: argument type mismatch
Responsible VM: 1.5.0_09
The relevant PHP code is:
$java_date = new Java("java.sql.Date");
$java_date->valueOf("2007-12-07");
$proxy_input->getInParameters()->getInBankParameters()->setCurrTrxDate($java_date);
I cannot understand why I am getting the type mismatch and I do not
understand the (Date)c(Date) part in the exception :-(
Any suggestions will be highly appreciated,
Apostolos
|