From: Abbett, J. <Jon...@ch...> - 2005-09-21 14:39:23
|
Based on the error, it seems like $h is null. Whatever is providing you with the HashMap object needs to be looked at more closely... I doubt it's a problem with the PHP-Java bridge. --Jon =20 =20 ________________________________ From: php...@li... [mailto:php...@li...] On Behalf Of Nicolas Granelli Sent: Tuesday, September 20, 2005 7:04 PM To: php-java-bridge Subject: [Php-java-bridge-users] HashMap->get() =20 I can't get to work the get method of a HashMap, that I get from Java (i'm not creating from php) I try: $Cliente=3D$h->get(1); //where $h is the HashMap Also: $i=3Dnew java("java.lang.Integer",1); $Cliente=3D$h->get($i); echo "Cliente:".$Cliente->toString(); both return : Fatal error: Call to a member function toString() on a non-object. |