You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ced...@e-...> - 2005-12-02 08:39:16
|
You were right : the API has changed from 5.1.0 to 5.1.1. I'll submit a = bug report to the PHP team. [root@lorien tmp]# grep -r "ZEND_API void zend_fetch_debug_backtrace" = php* php-5.0.5/Zend/zend_builtin_functions.c:ZEND_API void zend_fetch_debug_backtrace (zval *return_value, int skip_last TSRMLS_DC) php-5.0.5/Zend/zend_builtin_functions.h:ZEND_API void zend_fetch_debug_backtrace (zval *return_value, int skip_last TSRMLS_DC); php-5.1.0/Zend/zend_builtin_functions.c:ZEND_API void zend_fetch_debug_backtrace (zval *return_value, int skip_last TSRMLS_DC) php-5.1.0/Zend/zend_builtin_functions.h:ZEND_API void zend_fetch_debug_backtrace (zval *return_value, int skip_last TSRMLS_DC); php-5.1.1/Zend/zend_builtin_functions.c:ZEND_API void zend_fetch_debug_backtrace (zval *return_value, int skip_last, int provide_object TSRMLS_DC) php-5.1.1/Zend/zend_builtin_functions.h:ZEND_API void zend_fetch_debug_backtrace (zval *return_value, int skip_last, int provide_object TSRMLS_DC);=20 =20 =20 > -----Message d'origine----- > De : C=E9dric CHAMPEAU [mailto:ced...@e-...]=20 > Envoy=E9 : vendredi 2 d=E9cembre 2005 09:35 > =C0 : 'php...@li...' > Objet : RE: [Php-java-bridge-users] Building with PHP 5.1.1 >=20 > >=20 > > have you already reported this to the PHP release > > team? If PHP5.1.1 is really ABI incompatible with > > 5.1.0, then this a serious bug which must be fixed > > immediately! >=20 > Wow, didn't know it was so serious. I did not report=20 > anything. I'll try to do it. >=20 > >=20 > > (They cannot change the public API in the middle of a > > release. If this is necessary, then they must adjust > > the API_VERSION_NO and change the version number to > > 5.2). > >=20 > >=20 > > > My problem now is about that 403 error with Tomcat > > when=20 > > > trying to do "PUT" on the servlet... > >=20 > > I could reproduce this problem. As a workaround > > please change the java.servlet parameter to > >=20 > > java.servlet=3D"/JavaBridge/foo.php" > >=20 > > I will fix this bug for version 3.0.0RC2, which will > > be available tomorrow. Thank you very much for > > reporting this bug! >=20 > Thanks ! >=20 > C=E9dric >=20 |
From: <ced...@e-...> - 2005-12-02 08:31:23
|
>=20 > have you already reported this to the PHP release > team? If PHP5.1.1 is really ABI incompatible with > 5.1.0, then this a serious bug which must be fixed > immediately! Wow, didn't know it was so serious. I did not report anything. I'll try = to do it. >=20 > (They cannot change the public API in the middle of a > release. If this is necessary, then they must adjust > the API_VERSION_NO and change the version number to > 5.2). >=20 >=20 > > My problem now is about that 403 error with Tomcat > when=20 > > trying to do "PUT" on the servlet... >=20 > I could reproduce this problem. As a workaround > please change the java.servlet parameter to >=20 > java.servlet=3D"/JavaBridge/foo.php" >=20 > I will fix this bug for version 3.0.0RC2, which will > be available tomorrow. Thank you very much for > reporting this bug! Thanks ! C=E9dric |
From: Jost B. <jos...@ya...> - 2005-12-01 18:55:39
|
Hi Janno, > I'm using the bridge to make about 50000 calls to a > Java method that takes > ArrayList as a parameter (containing some Date, > Integer and String objects) and > returns a HashMap. Php 4 does not release allocated handles. If you call: for($i=0; $i<100000; $i++) $s=new String("123"); php 4 creates 100000 string objects which will be released by the bridge when the script terminates. Since PHP5 each string instance is released immediately, so the VM cannot run out of memory, even if the script runs forever. So I would recommend to upgrate to the latest stable php5 version, which is php 5.0.5, and to use PHP/Java Bridge 2.0.8. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-12-01 18:54:01
|
Hi Kun, > Can someone be kind enough to tell me how to add > some other jar files > to my classpath? Please copy your .jar files to /usr/share/java or to extension_dir/lib or to $JAVA_HOME/jre/lib/ext. If you install your .jars in /usr/share/java or extension_dir/lib, you can require them with: java_require("foo.jar;bar.jar"); If you copy them to $JAVA_HOME/jre/lib/ext, you must restart the backend after installation. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-12-01 18:36:01
|
Hi Cedric, > discovered that the zend_fetch_debug_stacktrace > method signature had > changed have you already reported this to the PHP release team? If PHP5.1.1 is really ABI incompatible with 5.1.0, then this a serious bug which must be fixed immediately! (They cannot change the public API in the middle of a release. If this is necessary, then they must adjust the API_VERSION_NO and change the version number to 5.2). > My problem now is about that 403 error with Tomcat when > trying to do "PUT" on the servlet... I could reproduce this problem. As a workaround please change the java.servlet parameter to java.servlet="/JavaBridge/foo.php" I will fix this bug for version 3.0.0RC2, which will be available tomorrow. Thank you very much for reporting this bug! Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Kun N. <hao...@gm...> - 2005-12-01 16:12:16
|
Dear all, Sorry to trouble you all. But I've got the following problem. My jre is jre1.4.2_10 which is installed with a rpm package download from java.sun.com. I've successfully installed php-java-brige on my FC3 with all the default package bundled with FC3. And now, I want to add some other jar files to my classpath. But when I set java.classpath in my java.ini file. The php-java server failed to start up. Can someone be kind enough to tell me how to add some other jar files to my classpath? Thanks for reading and look forward to your reply. Sincerely, Kun |
From: Janno M. <jan...@tr...> - 2005-12-01 11:14:20
|
Hi, I'm using the bridge to make about 50000 calls to a Java method that takes ArrayList as a parameter (containing some Date, Integer and String objects) and returns a HashMap. My script causes java.lang.OutOfMemory error. Is there a way to destroy Java objects in PHP script and release memory? I've tried unsetting the objects in PHP and also calling garbage collector directly (via Runtime class) but it doesn't seem to help. I'm using PHP4 and JavaBridge version 1.0.6a. Would newer versios work better for me? Any help greatly appreciated. BR, Janno |
From: <ced...@e-...> - 2005-11-30 21:01:07
|
Hi, I haven't tried on 5.1.0 since it has 5.1.1 was out to fix several major=20 issues with 5.1.0. BTW, I am building on a Linux platform. As I said, I=20 discovered that the zend_fetch_debug_stacktrace method signature had=20 changed, and introduced a new parameter called "skip_last" : ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_las= t,int provide_object TSRMLS_DC) Updating the bridge code line 1570 by adding this parameter did the trick= , and I was able to build the bridge. My problem now is about that 403 error with Tomcat when trying to do "PUT= " on the servlet... C=E9dric Jost Boekemeier a =E9crit : >Hi Cedric, > > =20 > >>I tried to update to the latest PHP version (5.1.1) >>since it was "highly=20 >>recommanded for all 5.0.x users" >> =20 >> > >do you have the same problems with 5.1.0, too? > >I am currently testing 3.0.0 and 2.0.9 (which is 2.0.8 >+ one bugfix) against 5.1.0, and it compiled fine. -- >There was one serialization problem, but that turned >out to be a problem with the backend running in the >GNU jvm. > >So if there's an issue with 5.1.1, then I think >there's something broken with 5.1.1.=20 > >BTW: I usually test the windows version on wine >because this catches most of the windows related >issues. Since 5.1.0 php runs scripts much faster but >crashes during shutdown. This happens all the time, so >I don't think it's related to our code. Maybe it is >possible to wait until Fedora Core 5 is available next >year. After some time these problems usually >disappear. :) > > >Regards, >Jost Boekemeier > > > >=09 > >=09 > =09 >___________________________________________________________=20 >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmel= den: http://mail.yahoo.de > > =20 > |
From: Jost B. <jos...@ya...> - 2005-11-30 19:13:29
|
Hi Cedric, > I tried to update to the latest PHP version (5.1.1) > since it was "highly > recommanded for all 5.0.x users" do you have the same problems with 5.1.0, too? I am currently testing 3.0.0 and 2.0.9 (which is 2.0.8 + one bugfix) against 5.1.0, and it compiled fine. -- There was one serialization problem, but that turned out to be a problem with the backend running in the GNU jvm. So if there's an issue with 5.1.1, then I think there's something broken with 5.1.1. BTW: I usually test the windows version on wine because this catches most of the windows related issues. Since 5.1.0 php runs scripts much faster but crashes during shutdown. This happens all the time, so I don't think it's related to our code. Maybe it is possible to wait until Fedora Core 5 is available next year. After some time these problems usually disappear. :) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <ced...@e-...> - 2005-11-30 15:06:47
|
Ok, it seems the zend_fetch_debug_backtrace method signature has changed = : it takes one more argument. ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int = skip_last, int provide_object TSRMLS_DC) I changed the corresponding line to the following : zend_fetch_debug_backtrace(trace, 0, 0 TSRMLS_CC); And it builds correctly. Now I'm facing another problem : the bridge = version 3 does not seem to work with my Tomcat server as it did. I'm getting "protocol violation" errors... =09 C=E9dric Champeau =20 > -----Message d'origine----- > De : php...@li...=20 > [mailto:php...@li...] De=20 > la part de C=E9dric CHAMPEAU > Envoy=E9 : mardi 29 novembre 2005 20:51 > =C0 : php...@li... > Objet : [Php-java-bridge-users] Building with PHP 5.1.1 >=20 > Hi, >=20 > I tried to update to the latest PHP version (5.1.1) since it=20 > was "highly=20 > recommanded for all 5.0.x users", but I'm facing a build problem when=20 > trying to compile php-java bridge : >=20 > /tmp/php-java-bridge-3.0.0rc/java.c: In function=20 > `create_exception_object': > /tmp/php-java-bridge-3.0.0rc/java.c:1570: error: too few arguments to=20 > function `zend_fetch_debug_backtrace' >=20 > Same goes with version 2.0.8. Any fix ? >=20 > Thanks, >=20 > C=E9dric >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep=20 > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. =20 > DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dick > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >=20 >=20 |
From: <ced...@e-...> - 2005-11-30 15:06:29
|
Hi, =20 I'm having troubles with running the bridge under Tomcat : the bridge = always dies with the following error : =20 Fatal error: php_mod_java(88): Protocol violation, please check that the backend (JavaBride.war) is deployed or please switch off the = java.servlet option. Dump of the recv_buf follows: HTTP/1.1 403 Interdit = Content-Type: text/html;charset=3Dutf-8 Content-Length: 968 Date: Wed, 30 Nov 2005 = 15:00:09 GMT Server: Apache-Coyote/1.1 =20 I've added some log to my server, and I found out that the problem is = with the request which is sent to the application server : =20 127.0.0.1 - - [30/Nov/2005:16:00:18 +0100] "PUT = /JavaBridge/PhpJavaServlet HTTP/1.1" 403 962=20 =20 It looks like Tomcat refuses the "PUT" method, but I cannot find where = to allow it. I'm definitely stuck ! =20 C=E9dric =20 |
From: <ced...@e-...> - 2005-11-29 19:51:46
|
Hi, I tried to update to the latest PHP version (5.1.1) since it was "highly=20 recommanded for all 5.0.x users", but I'm facing a build problem when=20 trying to compile php-java bridge : /tmp/php-java-bridge-3.0.0rc/java.c: In function `create_exception_object= ': /tmp/php-java-bridge-3.0.0rc/java.c:1570: error: too few arguments to=20 function `zend_fetch_debug_backtrace' Same goes with version 2.0.8. Any fix ? Thanks, C=E9dric |
From: Jost B. <jos...@ya...> - 2005-11-28 18:05:11
|
Hi Alan, I should have looked at this more carefully. This is indeed a bug in the PHP/Java Bridge code: when the list is empty, we may pass an uninitialized object to php. After that php may or may not crash, depending on the malloc() strategy and on the iterator implementation. I will prepare version 2.0.9 next week, which fixes this bug. In the meantime please add the following two lines to the get_iterator() in java.c: @@ -1237,6 +1237,8 @@ (*jenv)->writeInvokeEnd(jenv); if(Z_BVAL_P(presult)) init_current_data(iterator TSRMLS_CC); + else + iterator->current_object = NULL; zval_ptr_dtor((zval**)&presult); Thank you very much for this bug report! Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Alan P. <api...@ma...> - 2005-11-27 23:21:44
|
Thanks for the note. However, I am still a bit confused... I can confirm that switch from: foreach ($javaResultList as $i) to foreach (java_values($javaResultList) as $i) Does indeed avoid the bug. BTW I am on PHP 5.0.4... However, if the zend iterator interface is broken on empty lists, then converting the list from JAVA to PHP array shouldn't fix the problem, but it does... The difference is that if it's a java object, it's calling the zend_iterator from the bridge, otherwise calling the internal zend iterator. In both cases the list is empty and thus *should* crash if the zend iterators are externally calling "currentKey" on empty arrays. I certainly agree that it's nonsense for "currentKey" to get called on the iterator when hasMore returns false. Now I know that the Iterator interface hierarchy is big, so maybe the iterator type used on the PHP array is different from the one used / implemented by the bridge? It just seems that if the bug is that empty arrays cause crashes, then the bug shouldn't go away by converting the list to a PHP array. Maybe that you've "mixed" the hashmap and array iterators into a single one is screwing it up? I don't know too much about the zend iterator internals, just trying to make sense of the bug. See what I mean? Alan On Nov 27, 2005, at 6:06 PM, Jost Boekemeier wrote: > Hi Alan, > > problem confirmed. php > 5.0.3 simply crashes when you > pass an empty list. > > >> --> <I m="hasMore" p="I" i="46203008"></I> >> <-- <B v="F" i="46203008"/> >> --> <I v="5" m="currentKey" p="I" i="46194528"></I> > > > it seems that since version 5.0.5 the zend interator > advances one element too far when the list is empty. > According to your log you have passed an empty list. > The zend iterator asks us "hasMore", we return false. > After that it asks for the current key(!?!) which > doesn't exist, of course, we have returned false! > > What follows is that php becomes confused and crashes: > The currentKey() that java returns isn't valid and php > tries to examine the key len, which may or may not > result in a segmentation fault and a php crash. > > I will check the details tomorrow evening, in the > meantime please use the following workaround: > > $php_array = java_values($javaList); > // now you can iterate over php_array which checks for > > // the above invalid condition. > > Or please downgrade to php 5.0.3 or below. :(( > > > Regards, > Jost Boekemeier > > P.S.: My plan was to drop PHP4 support in PHP/Java > Bridge Version 3.0. I don't think this is possible > considering that every new php 5 release introduces > new bugs. (Since php 5.1 even the serialization > doesn't work anymore, which worked in the php5.1 pre > betas)... > > > > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier > anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-27 23:06:30
|
Hi Alan, problem confirmed. php > 5.0.3 simply crashes when you pass an empty list. > --> <I m="hasMore" p="I" i="46203008"></I> > <-- <B v="F" i="46203008"/> > --> <I v="5" m="currentKey" p="I" i="46194528"></I> it seems that since version 5.0.5 the zend interator advances one element too far when the list is empty. According to your log you have passed an empty list. The zend iterator asks us "hasMore", we return false. After that it asks for the current key(!?!) which doesn't exist, of course, we have returned false! What follows is that php becomes confused and crashes: The currentKey() that java returns isn't valid and php tries to examine the key len, which may or may not result in a segmentation fault and a php crash. I will check the details tomorrow evening, in the meantime please use the following workaround: $php_array = java_values($javaList); // now you can iterate over php_array which checks for // the above invalid condition. Or please downgrade to php 5.0.3 or below. :(( Regards, Jost Boekemeier P.S.: My plan was to drop PHP4 support in PHP/Java Bridge Version 3.0. I don't think this is possible considering that every new php 5 release introduces new bugs. (Since php 5.1 even the serialization doesn't work anymore, which worked in the php5.1 pre betas)... ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-27 20:13:51
|
Hi Marc, [please excuse the delay] > How can I compile the php-java-bridge? Please follow the INSTALL instructions as close as possible. If you're stuck please open a ticket, please use: http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Please attach the output of the config.status, config.log to that ticket. If there are compilation or configuration issues on IA86 or AMD64 Linux, Windows >= Win95, FreeBSD or Sparc/Solaris with Sun or IBM JDK please first check the INSTALL document again and follow the steps as close as possible before submitting a problem report. We know that the bridge compiles and runs without problems on these platforms. For other platforms please go ahead and open a problem report right away: There are known issues with the Macintosh JVM and with GNU JVM[1]. We're currently trying to find a workaround for these problems. Regards, Jost Boekemeier [1]The GNU jvm generates incorrect bytecode for our PhpMap.java, here's a test case: public abstract class bug { protected void kill() { System.out.println("okay"); } protected abstract void init(); public static bug getBug() { return new bug(){ protected void init() { kill(); /* generated: */ // 0 0:aload_0 // 1 1:getfield #12 <Field bug this$0> // 2 4:invokevirtual #19 <Method void bug.kill()> /* should be: */ // 0 0:aload_0 // 1 1:invokevirtual #2 <Method void kill()> } }; } public static void main(String s[]) { bug.getBug().init(); System.exit(0); } } /* The getfield is wrong: there's no bug.this: getBug() is static */ ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-27 19:54:51
|
Hi Michet, [please excuse the delay] > I am trying to share sessions between php and java. > > Now I would like my php repository to be independent > from the tomcat repository. Do you use the mod_jk adapter (see "Example#1: Apache/IIS/mod_jk connector" in the NEWS) or do you share the http server document root with the servlet engine's webapps directory (see Example#2 "Example: a shared document directory" in NEWS)? (-> http://php-java-bridge.sourceforge.net/NEWS) > I pass elements in the session from php to java and > it works fine. Depending on your setup the cookie PATH is "/", which is okay for a single-user setup. > But when I return to the php I loose my elements. If you check your cookies you'll probably see two cookies, one with PATH=/JavaBridge and one with PATH=/. Or you'll see only one cookie with PATH=/. Which means that you cannot access the /JavaBridge cookie anymore. This behaviour is intentional: In a multi-user setup script userA/sessionSharing.php should not be able to share the session values with script userB/sessionSharing.php. If you don't care about the PATH, I suggest to install the JavaBridge.war without a context (i.e. as context "/"). After that you need to change the java.servlet setting from "/JavaBridge/PhpJavaServlet" to: java.servlet = "/PhpJavaServlet" > When I look at the cookie (JsessionID) I have the > same cookie from php to java. Yes, but what about the PATH? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: MICHET S. <syl...@ca...> - 2005-11-24 16:24:41
|
Hello, =20 I am trying to share sessions between php and java. The installation of the javabridge.war works fine for the session sharing works fine. By the way thank your for your programming ! =20 Now I would like my php repository to be independent from the tomcat repository. I pass elements in the session from php to java and it works fine. But when I return to the php I loose my elements. =20 When I look at the cookie (JsessionID) I have the same cookie from php to java. But when I go back to the php file, a new cookie is created. =20 In advance thank you for your help. =20 Sylvain |
From: marc r. <mar...@ho...> - 2005-11-24 14:19:15
|
Hi, I just tried to compile the current release on debian sarge, but I got a weird error: ./configure --with-java=/usr/lib/jdk1.5.0_05 --disable-servlet creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429 checking for re2c... exit 0; checking for mawk... mawk ./configure: line 1294: syntax error near unexpected token `tests.m4/function_checks.m4' ./configure: line 1294: `m4_include(tests.m4/function_checks.m4)' I'm using gcc 3.3.5, php 4.3.11 and gnu make 3.80. How can I compile the php-java-bridge? _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
From: Alan P. <api...@ma...> - 2005-11-23 19:05:57
|
I am not sure which component dies. There are no messages left in any log files (apache's error_log, /var/run/php-java-bridge.log, etc). I have posted the bug, and added some more notes from research today. http://sourceforge.net/tracker/index.php? func=detail&aid=1364916&group_id=117793&atid=679233 Thanks, Alan On Nov 23, 2005, at 1:52 PM, Jost Boekemeier wrote: > Hi Alan, > >> I've gotten things working, but sometimes the bridge >> seems to die mid-request. > > Which component dies, the java.so or the java backend? > > We know that there are issues with Apple's jdk1.4, > which cannot run our bench.php for more than one hour. > But this is a known issue with the apple JVM, the > crash is reproduceable using a pure java test. (It > seems to be a combination of the class gc and the > apple JIT). Which JVM do you use? > > Can you please open a ticket for this and attach the > java trace log at the end of the ticket? > > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier > anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-11-23 18:53:17
|
Hi Alan, > I've gotten things working, but sometimes the bridge > seems to die mid-request. Which component dies, the java.so or the java backend? We know that there are issues with Apple's jdk1.4, which cannot run our bench.php for more than one hour. But this is a known issue with the apple JVM, the crash is reproduceable using a pure java test. (It seems to be a combination of the class gc and the apple JIT). Which JVM do you use? Can you please open a ticket for this and attach the java trace log at the end of the ticket? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Alan P. <api...@ma...> - 2005-11-23 07:41:01
|
Hello- I've gotten things working, but sometimes the bridge seems to die mid- request. The server doesn't have a chance to answer, and no data is returned. I've narrowed it down to the iterator interface over returned Java arrays. Here's the offending code: $facets = $facetGenerator->getList($this->value, $this->maxRows, $this->sortByFrequency, $this->maxHits); foreach ($facets as $facet) { // does nothing, but still crashes } getList() returns an array of java objects: public AttributeValue[] getList(java.lang.String attribute_id, int maxRows, boolean sortByFrequency, int maxHits) throws java.io.IOException, NotFoundException Here's a tcpflow dump of the bridge comm for that request: 127.000.000.001.56795-127.000.000.001.09267: . 127.000.000.001.56795-127.000.000.001.09267: <I v="0" m="setJarLibraryPath" p="I" i="45082768"><S v="/Applications/ dieselpoint-search/lib/diesel-3.5.1.jar;/Applications/dieselpoint- search/lib/javax.servlet.jar"/><S v="/"/></I> 127.000.000.001.09267-127.000.000.001.56795: <O v="" i="45082768"/> 127.000.000.001.56795-127.000.000.001.09267: <C v="com.dieselpoint.search.Index" p="C" i="45083920"></C> 127.000.000.001.09267-127.000.000.001.56795: <O v="1" i="45083920"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="1" m="getInstance" p="I" i="45077952"><S v="/Applications/dieselpoint-search/indexes/ showcase"/></I> 127.000.000.001.09267-127.000.000.001.56795: <O v="2" i="45077952"/> 127.000.000.001.56795-127.000.000.001.09267: <U v="1"/><I v="2" m="getItemCount" p="I" i="45075760"></I> 127.000.000.001.09267-127.000.000.001.56795: <L v="0" i="45075760"/> 127.000.000.001.56795-127.000.000.001.09267: <C v="com.dieselpoint.search.FacetGenerator" p="I" i="45004032"><O v="2"/ ></C> 127.000.000.001.09267-127.000.000.001.56795: <O v="3" i="45004032"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="3" m="setRangeCount" p="I" i="46194528"><S v="6"/></I> 127.000.000.001.09267-127.000.000.001.56795: <O v="" i="46194528"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="3" m="getList" p="I" i="46202032"><S v="price"/><L v="-1"/><B v="T"/><L v="1000000"/ ></I> 127.000.000.001.09267-127.000.000.001.56795: <O v="4" i="46202032"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="0" m="getPhpMap" p="I" i="46203008"><O v="4"/></I> 127.000.000.001.09267-127.000.000.001.56795: <O v="5" i="46203008"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="5" m="getType" p="I" i="46203008"></I> 127.000.000.001.09267-127.000.000.001.56795: <B v="F" i="46203008"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="5" m="hasMore" p="I" i="46203008"></I> 127.000.000.001.09267-127.000.000.001.56795: <B v="F" i="46203008"/> 127.000.000.001.56795-127.000.000.001.09267: <I v="5" m="currentKey" p="I" i="46194528"></I> 127.000.000.001.09267-127.000.000.001.56795: <O v="" i="46194528"/> So it seems to me it's somehow getting killed during the iterator. Now, it doesn't ALWAYS fail. Sometimes it works. I think maybe only when EMPTY lists are returned it fails, but I am not positive. Maybe that will help you? Thanks in advance for any thoughts. Please respond to me as well directly as I am not currently on the mailing list. Thanks, Alan |
From: Jost B. <jos...@ya...> - 2005-11-22 17:59:45
|
Hi Christoper, > I can't seem to get anything out of > HelloWorld2.class and HelloWorld.php. Which exceptions do you get? I've just tested it on SF, and it worked, at least HelloWorld.php, HelloWorld2 is difficult to test here. > engine.eval(new URLReader(new > URL("http://217.XX.XX.XX:80/test/demo/HelloWorld.php"))); > > The class is supposed to access Apache, right ? It accesses a web server[1] which should be able to run php scripts. The web server must be on the same machine, though, it isn't a good idea to allow users to allocate and call php instances from remote servers. In the current snapshot you can set System.setProperty("php.java.bridge.promiscuous", "true") to allow this. Regards, Jost Boekemeier [1} i.e. Apache/IIS running php as a module or a Tomcat or a java AS running PHP as a FastCGI or CGI binary. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Alan P. <api...@ma...> - 2005-11-22 17:58:55
|
I just got things working on my Mac OS X 10.4.3 box and figured I'd post my notes for posterity. I have a pretty common setup and ran into a few hiccups so hopefully this will save some others some time! Version used: php-java-bridge-2.0.8 PHP Version: 5.0.4 installed via fink Fink Setup Using libapache2-ssl-mod-php5 / php5-apache2-ssl Had to install php5-apache2-ssl-dev to get a working phpize command Build php-java-bridge as directed. Worked very well. Use --with-java= $JAVA_HOME to compile against Mac's JVM. The php-java-bridge script expects the "php" on the PATH to be the desired php. You may need to update the PHP path to /sw/bin/php5 PHP Setup php.ini setup: extension = /sw/lib/php5/20041030/java.so [java] java.log_level="3" java.log_file="/var/log/php-java-bridge.log" java.hosts=localhost:9267 #java.socketname="/var/run/.php-java-bridge_socket" NOTE: the default for php-java-bridge is to use unix sockets (java.socketname), but this doesn't work on Mac OS X. Switch to TCP by commenting out java.socketname and adding the java.hosts line. Copy php-java-bridge shell script to /usr/sbin/ and run it. That's it! After that, the test.php script worked. Enjoy, Alan |
From: Jost B. <jos...@ya...> - 2005-11-22 17:50:15
|
Hi Christopher, > I have an extensive framework I'd like to migrate > from PHP to JAVA (at > least on the back-end), but don't want to start at > the very bottom. The examples folder now contains a java-server-faces example. If you use JSF as your framework, the code should work "as is". For other frameworks you need to write a custom ScriptEngine, ScriptContext and Context, please see the PhpFacesScriptContext, PhpFacesScriptContextManager, PhpFacesScriptEngine and PhpFacesContext classes for a template. > May I attack by bits and pieces using php_closure > and java_enclosure ? Yes. Basically you open a URLConnection to the php instance running in the frontend (Apache/IIS/Servlet Engine) which triggers the: java_context()->call(java_closure()); After that your java code can call the functions or methods in allocated PHP closure. > If so, where may I download the javax.scripts The script-api.jar is now in the unsupported folder, I will check in the source, too. The code was written and (C) by Sanka Samaranayake (sa...@op...), licensed under the Apache License. The source is now in the php-java-bridge/server/javax folder. A snapshot of the current Version 3 source code is available at: http://sourceforge.net/project/showfiles.php?group_id=117793&package_id=170256 I will check that code into our CVS as soon as possible, but currently the SF cvs service seems to be broken, it rejects everything I commit. In the meantime please use the source snapshot above. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |