From: <php...@li...> - 2007-07-25 19:52:44
|
Hi guys, I'm having problems with a List object. I have the following code: <?php $mAnnouncements =3D array ( 'Welcome.wav', 'CPAA.wav', ); print("Array: <br />"); print_r($mAnnouncements); print("<br />Creating List Object...<br />"); $oList =3D new java('java.util.List'); foreach ($mAnnouncements as $ann) { $oList->add($ann); } print("List: <br />"); print_r($oList); print("<br />"); for ($i =3D 0; $i < $oList->size(); $i++) { print("Value:" . $oList->get($i) . "<br />"); } ?> When I run it I get this output: Array: Array ( [0] =3D> Welcome.wav [1] =3D> CPAA.wav ) Creating List Object... And it just dies there. No error on the output nor on the logs. I'm using php/java bridge on that box withoud any problems, working with my own java classes, but when I need to create this List object I get this problem. Any ideas? Do I need to require any file with java_require? Thanks in advance Andr=E9s Gattinoni |
From: <php...@li...> - 2007-07-25 20:17:08
|
Hi, > And it just dies there. No error on the output nor on the logs. there should be some output. Can you please set the log level to 4 and check the log of the back end? Please see our FAQ for details how to enable the log of the PHP/Java Bridge back end. My guess is that this is a PHP issue. Since PHP version 5 PHP does no longer report any errors to the client. They are logged in the HTTP log or in the configured PHP log file or in the System log. Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-25 20:22:53
|
Michael was right. Using ArrayList it worked. I'm tailing the apache error log and nothing appeared there with that script. With the rest of the work I've been doing with php/java bridge I ca= n see all the output there. I will try later to set the log level to 4 and will post the response here. Regards, Andr=E9s Gattinoni On 7/25/07, php...@li... < php...@li...> wrote: > > Hi, > > > And it just dies there. No error on the output nor on the logs. > > there should be some output. Can you please set the log level to 4 and > check the log of the back > end? > Please see our FAQ for details how to enable the log of the PHP/Java > Bridge back end. > > My guess is that this is a PHP issue. Since PHP version 5 PHP does no > longer report any errors to > the client. They are logged in the HTTP log or in the configured PHP log > file or in the System > log. > > > Regards, > Jost Boekemeier > > > dddd > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-07-25 20:27:28
|
Hi, PHP should display a clear error message. If it doesn't there's either a bug in the bridge or in PHP. Which PHP/Java Bridge version do you use? I old C implementation or the pure PHP implementation? Regards, Jost Boekemeier __________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-27 19:57:35
|
Guys, I'm having serious memory leaking problems and I want to make sure I have PHP/Java Brigde properly configured and that I'm using it correctly. I have just activated the PHP/Java Bridge log in debug mode. I would appreciate any help you can provide to help me on the troubleshooting. If anyone can provide an MSN Messenger, YIM or GTalk contact so that we can work live would be a great help. Thanks, Best regards, Andr=E9s Gattinoni On 7/25/07, php...@li... < php...@li...> wrote: > > Hi, > > PHP should display a clear error message. If it doesn't there's either a > bug in the > bridge or in PHP. Which PHP/Java Bridge version do you use? I old C > implementation or > the pure PHP implementation? > > > Regards, > Jost Boekemeier > > > > __________________________________ Wissenswertes f=FCr Bastler und > Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-07-27 20:09:22
|
BTW: I'm using the C implementation compiled on Solaris, running Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8d PHP/5.2.1 Server. If I wanted to use the Pure PHP Implementation I would need to install Tomcat, am I right? Regards, Andr=E9s Gattinoni On 7/27/07, Andr=E9s Gattinoni <and...@gm...> wrote: > > Guys, I'm having serious memory leaking problems and I want to make sure = I > have PHP/Java Brigde properly configured and that I'm using it correctly. > > I have just activated the PHP/Java Bridge log in debug mode. I would > appreciate any help you can provide to help me on the troubleshooting. > > If anyone can provide an MSN Messenger, YIM or GTalk contact so that we > can work live would be a great help. > > Thanks, > > Best regards, > > Andr=E9s Gattinoni > > On 7/25/07, php...@li... <php-java-bridge-= us...@li... > > wrote: > > > > Hi, > > > > PHP should display a clear error message. If it doesn't there's either = a > > bug in the > > bridge or in PHP. Which PHP/Java Bridge version do you use? I old C > > implementation or > > the pure PHP implementation? > > > > > > Regards, > > Jost Boekemeier > > > > > > > > __________________________________ Wissenswertes f=FCr Bastler u= nd > > Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever > > > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > |
From: <php...@li...> - 2007-07-28 12:22:53
|
Hi, > Guys, I'm having serious memory leaking problems and I want to make sure I > have PHP/Java Brigde properly configured and that I'm using it correctly. can you please be more specific? Memory leaks in the back end or in PHP? The old C implementation[1] does have some memory leaks. But this isn't a problem since the Zend memory manager takes care of them. If there are memory leaks in the back end, please see our FAQ how to debug memory leaks in your code. Regards, Jost Boekemeier [1] The C implementation prior to 4.1.8. Since 4.1.8 the C implementation simply compiles the pure PHP implementation into obcode and uses that. __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-28 12:33:01
|
Hi Andres, [PHP did not display any error messages] > I have just activated the PHP/Java Bridge log in debug mode. I would > appreciate any help you can provide to help me on the troubleshooting. can you please append the log at the end of your ticket? Please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier __________________________________ Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |