From: <php...@li...> - 2007-05-03 11:21:51
|
> Which PHP version do you use, btw? I mentioned that in the very first line of my append: 3.1.8. Michael :-) = From: php...@li... = = To: php...@li... = = Date: 02.05.2007 11:42 = = Subject: Re: [Php-java-bridge-users] Getting back null-object from= new Java(...) - how to debug this? = Hi, you're right that new Java(...) cannot return NULL. > How can I figure out, what's going wrong here and > why??? You can look at the protocol level. Either set the log level to 4 or above or, if you use linux, type: strace -s 1024 php yourPhpScript.php >error.log You will see something like: --> <C p=3D... v=3D...>...</C> <-- <O v=3D.../> Which PHP version do you use, btw? Regards, Jost Boekemeier --- php...@li... schrieb: > > I am using php/java bridge 3.1.8. I am having the > interesting case that in > my PHP code I do a > > $classpath=3D'...'; > java_require($classpath); > try { > $var=3Dnew Java('class.name.here'); // > the constructor has no > paramete > } catch(JavaException $exeption) { > throw new Exception('Java-exception > creating object of class > "class.name.here": '.$exeption); > } > if ($var) { > // using the object... > } else { > echo 'got a null object... :-( '; > } > > Initially I was getting misc. > ClassNotFound-Exceptions until I got my > classpath right. The classpath seems to be OK now, > but now I am NOT getting > any JavaException but I get back a null-object, i.e. > I am falling into the > echo ... statement in the above snippet. > > How can I figure out, what's going wrong here and > why??? > > Michael > > > -----------------------------------------------------------------------= -- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuch= en Sie=B4s mit dem neuen Yahoo! Mail. www.yahoo.de/mail -----------------------------------------------------------------------= -- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users = |