From: <php...@li...> - 2007-05-02 12:04:08
|
Hi, Please open a ticket, please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 and attach the log of the bridge there. We'll check this issue asap. Regards, Jost Boekemeier --- php...@li... schrieb: > 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=... v=...>...</C> > <-- <O v=.../> > > > 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='...'; > > java_require($classpath); > > try { > > $var=new 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? Versuchen Sie´s 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 > __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |