From: <php...@li...> - 2011-02-24 13:53:09
|
Many thanks for the help! 1. I don't understand the remark: "Your java object backed by a php instance doesn't have any public methods." => the method is public (but I did forget the 'static'). 2. I changed the code of java: public static Object[] encode(Object request) throws RuntimeException, Exception { -> I added static: that was logic -> I added RuntimeException, like in the FAQ. But the error stays the same... 2011/2/24 <php...@li...> > Hi, > > your java code has thrown an unchecked exception (error or runtime > exception). After that your php code has tried to set a non-existing > property on it. > > Any unchecked exception crossing the container boundary must be declared, > otherwise the behaviour is undefined. Please see our FAQ for details. > > Your code contains several problems. Your java object backed by a php > instance doesn't have any public methods. This may or may not be what you > want. And you call a method as if it were a procedure. Won't work, so I > assume that the code you have shown isn't the code you actually use. Either > encode is actually static or the php code you have posted is missing a new > statement. > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- *Koen Thomeer*, MD, MSc http://koen.thomeer.be |