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: Jost B. <jos...@ya...> - 2005-09-19 21:04:57
|
The version 2.0.8 of the PHP/Java Bridge is now available. The binary for RedHat Enterprise Linux, RedHat Fedora 1, 2 and 3 (PHP4): http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge-2.0.8-1.RHEL.i386.rpm?download The binary for RedHat Fedora 4 (PHP5): http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge-2.0.8-1.FC4.i386.rpm?download Oracle 10g, IBM WebSphere 6, Tomcat backend: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download Source: http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_2.0.8.tar.bz2?download The following features were added: * JSP, PHP session sharing * Oracle 10g AS and WebSphere 6 AS support * GUI support * java_closure(): Calling PHP from java, see the examples/XML example. Changes: Changes since 2.0.8RC4 * 1286136 (Bridge crashing on FC4 (under GNU Java)) * 1291175 (servlet receives invalid context) Changes since 2.0.8RC3 * 1291191 (CGIServlet cannot handle POST requests) * 1286643 (widgetTest fails) * 1283154 (ISession documentation missing) * A bug which caused a crash in the XML parser has been fixed. The XML parser (parser.c) was not able to parse <c></c> correctly. This bug appeared when the parser had to parse a HTML error message from tomcat. The upper level now displays a protocol error in this case. * The "broken gcc" warning has been changed. Changes since 2.0.8RC2 * 1288025 (session sharing not working) * 1286139 (compilation problems on FC4) * 1283154 (ISession documentation added) * It is no longer possible to shut down the local channel by sending invalid bytes * When the local channel is available, the HTTP tunnel accepts only one statement and then uses the local channel, so it is no longer possible to remote control the java bridge backend by faking client requests. * On FC4 a Security Enhanced Linux policy was added which allows the bridge to create /var/log/php-java-bridge.log. This was missing in previous releases. Changes since 2.0.8RC1 The following bugs were fixed: * 1283148 (null values in session) * 1281189 (WinNT and above need system _env variable): Upon startup the code checks if c:/winnt or c:/windows exists. If both exist, c:/windows is used. After that we examine the environment variable SystemDir, then servlet config "Windows.SystemDir". In any case, if the VM was called with -DWindows.SystemDir=val, we use that value. Same tests on Unix/Linux, too (this might make sense when the user run a windows emulation layer, such as "Wine". Changes since 2.0.8RC The following bugs were fixed: * 1281189 (WinNT and above need system _env variable) * 1276889 (XML example not working) * 1275899 (negative inexact numbers) * 1274526, 1202896 (storing java values into $_SESSION) Changes since 2.0.8pre * Local channel re-directs work correctly now. This means that, when deployed in Apache/Tomcat, Apache/PHP and the PHP/Java Bridge 2.0.8 deliver content more than 50 times faster than version 2.0.7 and about 30% faster than tomcat's own engine via Apache/mod_jk: time for i in `seq 200`; do wget -o/dev/null -O/dev/null http://localhost:8000/JavaBridge/sessionSharing.jsp; done real 0m5.971s user 0m1.090s sys 0m0.420s time for i in `seq 200`; do wget -o/dev/null -O/dev/null http://localhost:8000/JavaBridge/sessionSharing.php; done real 0m4.351s user 0m1.140s sys 0m0.530s (RHEL3, kernel 2.4.21 on a 1.5GHZ amd32, latest versions of PHP/Java Bridge, Tomcat/mod_jk and Apache. * On windows: Starting the backend automatically should work correctly now when the path ends with a slash. * The CGI servlet has been rewritten and it delivers content much faster now. However, running PHP as a CGI from tomcat is not recommended. Please use Apache and the mod_jk connector instead of connecting tomcat directly to the internet. This is much faster and more secure. * Several other bugfixes, please see changelog. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-19 20:06:57
|
Hi, [please excuse the delay] the java.so for RH9/php4.4 is available at: http://php-java-bridge.sourceforge.net/php-java-bridge_2.0.8-RH9-php4.4.tar It contains java.so (version 2.0.8) and JavaBridge.jar (version 2.0.8). Please copy the java.so into the extension directory of you php 4.4 installation and please make sure that the php executable /usr/bin/php is indeed the php4.4 cgi binary. To compile the php-java-bridge on RH9, please follow the "Installation from source" instructions in the INSTALL document. binary or source RPM's cannot be used on RH9, this rpm distribution is too old, sorry. In case you don't want to install autoconf 2.57, automake 1.6.3 and libtool 1.4.3, please see the "Compiling the bridge without autoconf" section. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: SQUILLACE M. <msq...@so...> - 2005-09-19 17:19:01
|
Hi, =20 I am investigating php-java-bridge v.2.0.7 in order to assess its capability to integrate PHP with "Enterprise" (read expensive) products that only offer Java bindings, and elected to start by trying to connect PHP 5.0.3 to WebSphere MQ on a Linux RHEL3 platform. =20 I am NOT a Java programmer, and am facing several hurdles - gaining experience as I overcome them; but there are many things I still don't understand so maybe my questions are silly. =20 When installing the client Java bindings, WebSphere puts them in /opt/mqm/java/lib and I decided to "ln -s" all the jar files to /usr/share/java ; now the bridge finds them easily without needing a java_require() [I can't say I like this solution ... one would need to hunt down the libraries of any product installed and make symbolic links for all of them]. =20 Following the manual I wrote a first PHP program that should put a message in a queue and immediately retrieve it. =20 When I execute the script tough, after connecting to the Queue Manager it needs to invoke the method=20 accessQueue(java.lang.String,int) and whatever I try I keep getting an exception along the lines: =20 Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception: Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String, class java.lang.Long). Cause: java.lang.IllegalArgumentException: java.lang.ClassCastException@74c3aa] =20 Apparently the bridge keeps converting the second argument (an integer) to java.lang.Long while the method mandates an int. =20 Is there a way to overcome this problem? =20 Thank you Massimo |
From: Jost B. <jos...@ya...> - 2005-09-18 12:43:52
|
Hi Jim, > RH 9.0 > PHP 4.4.0 Well, PHP4.4 has a different ABI than 4.3.2, the java.so must be compiled against this ABI. So I guess the only remaining problem is that we cannot compile the bridge on RH9 because the autotools are too old. It is possible to compile the code without them, the windows binary is cross-compiled on a linux machine this way. The compile/link command used to create the windows .dll is: # compile source i386-pc-mingw32-gcc -w -I../include -I. -I../php-5.0.3/ -I../php-5.0.3/main -I../php-5 .0.3/Zend -I../php-5.0.3/TSRM \ -D"TSRM_EXPORTS" -D"LIBZEND_EXPORTS" -D"ZTS" -D"_MBCS" \ -DCOMPILE_DL_JAVA -DCFG_JAVA_SOCKET_INET -DEXTENSION_DIR=\"$EXTENSION_DIR\" \ -c bind.c client.c init_cfg.c java_bridge.c java.c parser.c protocol.c # link php-java.dll i386-pc-mingw32-dllwrap --enable-stdcall-fixup --export-all-symbols -k -o../php5/php_ java.dll *.o -L../lib -lphp5ts -lws2_32 The command to build the linux .so should look similar. I will test this and send you the instruction(s). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jim D. <jd...@ho...> - 2005-09-17 17:39:31
|
Jost, I tried you're directions below for extracting the "java.so" and "JavaBridge.jar" from RPM and copying them into the PHP extension folder(/usr/local/lib/php/ext). I get this error returned to the browser, #!/usr/bin/php Please permanently activate the extension. Loading java extension now... java extension not installed. I can't run test.php from a command line either, it can't load the java.so with similar error messages. I added the java.ini lines to the php.ini. PHP is running fine. The .so and .war file are located in - usr/local/lib/php/ext The contents of the php.ini file is below... RH 9.0 PHP 4.4.0 Thanks, Jim ---------------PHP INI FILE START---------------- . . . regula PHP.INI entries are ok... . . . The BELOW PORTION WAS ADDED TO THE PHP.INI file ;; -*- mode: Scheme; tab-width:4 -*- ;; Copy this file to the php ini directory (usually /etc/php.d) or ;; copy its content to the global php.ini (usually /etc/php.ini or ;; /usr/local/lib/php.ini). ;; ;; Use the java.socketname, java.hosts and java.servlet to ;; control the operation mode: ;; ;; 1) java.socketname and java.hosts off: local backend which ;; starts automatically. ;; ;; 2) java.socketname set: local system backend started by the ;; php-java-bridge service script. ;; ;; 3) java.hosts set: external backend(s) on a different server(s). ;; ;; 4) java.hosts and java.servlet set: external backend(s) ;; deployed in a j2ee application server or servlet engine. extension = java.so [java] ;; log level between 0 (log off) and 4 (log debug). The default "log ;; file" is the standard output. The default level is 2. java.log_level = 2 java.log_file = /var/log/php-java-bridge.log ;; Adjust the following options if the VM or its location have ;; changed since you ran the ./configure command. java.java_home = @JAVA_HOME@ java.java = @JAVA_JAVA@ ;; If you want to start the backend automatically as a sub-component ;; of your HTTP server, comment out _all the following options_. ;; If you don't have a servlet engine, double-click on JavaBridge.jar ;; or use the php-java-bridge service script to start and stop the ;; backend as a system service. Please see the RedHat RPM download ;; for an example how to start java as a system service. ;;POR took out ;;java.socketname = /var/run/.php-java-bridge_socket ;; If you have a servlet engine or an application server, deploy ;; JavaBridge.war and re-start the servlet engine or the application ;; server. Comment out the "java.socketname" option and uncomment ;; the following options. java.hosts = "127.0.0.1:8080" java.servlet = On ---------------PHP INI FILE FINISH---------------- >From: Jost Boekemeier <jos...@ya...> >To: William Lovaton ><wil...@co...>,php...@li... >Subject: Ant: [Php-java-bridge-users] Problem compiling version 2.0.7 on >RedHat 9 >Date: Sat, 17 Sep 2005 17:24:35 +0200 (CEST) > >Hi William, > >[please excuse the delay] > >to the best of my knowledge this problem should be >fixed in version 2.0.8RC5. Please see the updated >INSTALL document for details. > >Furthermore it should be possible to use the binary >RPM: > >* Extract the "java.so" and "JavaBridge.jar" from the >binary RPM with the command: > > rpm2cpio php-java-bridge*.rpm | cpio -iduv > >* Install PHP 4.3.2 or above and copy the "java.so" >and "JavaBridge.jar" into its extension folder. > >* run the test.php with: php test.php > > >Regards, >Jost Boekemeier > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: Jim D. <jd...@ho...> - 2005-09-17 16:31:41
|
I deployed the JavaBridge.war to a Tomcat/Apache server and when I browse the test page, numberguess.php, I get the following error message in the returned web page, java extension not installed. PHP is up and running OK and so are JSP pages. Where can I find a copy of the java.so? I can't it install it from the RPM because Red Hat 9.0 doesn't have a RPM for PHP 4.4, so I had to build and install PHP 4.0. By doing that when I go to install the java-bridge in tells me it can find a dependcy package php 4.3.*, even though PHP 4.0 is installed. How can I tell the bridge RPM install where to find the latest PHP install? OR How can I get this build to work? phpize && ./configure --with-java=/opt/IBMJava2-14 \ --disable-servlet I get an the following error message when trying to build with the above line, cp: cannot stat 'acinclude.m4' : No such file or directory Thanks, Jim |
From: <tec...@us...> - 2005-09-17 16:04:57
|
||*()*|| [\..konnichi wa, ogenki desu ka, Jost../] Monday, September 12, 2005, 6:29:49 PM, you wrote: >> 1. BUG. There is no PHP4 version of library in JB> The PHP/Java Bridge does not work on threaded HTTP JB> servers, e.g. IIS, unless ZTS is switched on. JB> ZTS is experimental in all versions below PHP 5 and I JB> know of at least 3 incompatible ABI's since 4.3.2. JB> So the question is: which version of PHP4 on windows JB> should we support? Isn't it possible to compile your JB> own php4 binary as described in the README? 4.4.0 - at least you can always ask new users to get latest version of PHP to avoid bugs introduced earlier. I've tried to compile PHP myself from CVS, but failed. And also I don't use any web-server - I want to try mix of Java and PHP in standalone application. >> 2. About 80% of windows distributive size is >> php5ts.dll >> Is it possible to make alternative -light version? JB> Yes, certainly. But is 3MB really too large these JB> days? Yes, sometimes. It will be nice if this application could detect presence of PHP and link it dynamically regardless of PHP5/PHP4 differences and without additional path setup. >> 3. Patch to make test run even if unzipped not in >> c:/php5 JB> Isn't it possible to adjust the php.ini accordingly? JB> One has to do this during the installation process JB> anyway. But the widgetTest.bat could be changed, of JB> course. I like things like unzip and run. Like any lazy user I hate doing things that could be automated or not intuitively setup by default. Especially test-cases. =) >> 4. JavaBridge.jar doesn't output any messages about >> it was started successfully JB> If you start it at log level 3 or above, as described JB> in the README, it will output to stdout or to a log JB> file. README is very long and contains a lot of information. Read 25k just to find command line options (especially if there are not any) is a waste of time. I thought it should be good for an application to react on help/unknown cmd parameters to be user-friendly. >> complete. Is there any ways to control running >> server? JB> "apachectl start" starts the apache server and the JB> bridge and "apachectl stop" stops both, please see the JB> README for details. Since version 2.0.8 this works on JB> windows, too. JB> However, the recommended way to run the backend is to JB> start it via the php-java-bridge.service script (on JB> Unix) or via tomcat (on windows). The bridge is not running under Tomcat or Apache - it is supposed to be used for standalone application in my case. And yes - it is windows. >> 6. It would be good to have a ToC in readme. JB> Yes. =) >> Q1. Is it possible to extend Java class with PHP? >> I.e. make PHP class, inherited from one of Java? JB> The java_closure() call currently accepts only JB> interfaces, not classes. It would be nice if the Sun's JB> dynamic proxy would accept a class, but it doesn't. If JB> we want this, we must write our own proxy compiler. I don't think it is easy, esp. for me. =) Probably It should be easier to create a proxy Java object, which will call invokable PHP functions where it needed. The problem is that I still unsure if I've got the whole picture of this bridge and how to plug it into Java application correctly. WBR.techtonik -- (B)uilding, (A)ntenna, (S)pan and (E)arth * terminal velocity - 54m/s, 305m * |
From: Michael E. <els...@gm...> - 2005-09-17 15:56:04
|
I'm an idiot :) Indeed, I simply forgot that I had PHP5 active on my Windows testing machine. Thanks, Jost! - Sorry I bothered you. Tank > -----Original Message----- > From: Jost Boekemeier [mailto:jos...@ya...] > Sent: Saturday, September 17, 2005 5:14 PM > To: Michael Elsdoerfer; php...@li... > Subject: Ant: [Php-java-bridge-users] Catch exceptions in PHP4 > > Hi, > > > Fatal error: Uncaught > > [o(Exception):"java.lang.Exception: > > In PHP4 the exception would be a warning which could > be suppressed with @ > > Example: > > $null = @new java("java.lang.String", null); > $ex = java_last_exception_get(); > echo "val: $null, ex: $ex\n"; > > The above code would display "val: , Object" in PHP4. > > > > So, is there anyway to handle those cases gracefully > > (except for upgrading > > to PHP 5)? > > The above exception message ("Uncaught...") makes me > believe that you already use PHP5 or above. > > > Regards, > Jost Boekemeier > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier > anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-17 15:34:21
|
Hi Peter, [please excuse the delay] > Still I think I haven't noticed this before: > -----------snipp---------------- > configure: WARNING: YOUR GCC INSTALLATION IS BROKEN. > It tries to link > with the same library for -m32 and -m64 builds. Well, your GCC installation uses two different static libraries for m32/64 but only one dynamic library. Depending on the processor architecture this may or may not be a problem. I have changed the message in 2.0.8RC5. > know if it would work with gcc-4.0. gcc4 should be able to compile the source. (other distributions such as RedHat use gcc4 for a long time now, so I don't think that this is an issue). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-17 15:24:42
|
Hi William, [please excuse the delay] to the best of my knowledge this problem should be fixed in version 2.0.8RC5. Please see the updated INSTALL document for details. Furthermore it should be possible to use the binary RPM: * Extract the "java.so" and "JavaBridge.jar" from the binary RPM with the command: rpm2cpio php-java-bridge*.rpm | cpio -iduv * Install PHP 4.3.2 or above and copy the "java.so" and "JavaBridge.jar" into its extension folder. * run the test.php with: php test.php Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-17 15:14:36
|
Hi, > Fatal error: Uncaught > [o(Exception):"java.lang.Exception: In PHP4 the exception would be a warning which could be suppressed with @ Example: $null = @new java("java.lang.String", null); $ex = java_last_exception_get(); echo "val: $null, ex: $ex\n"; The above code would display "val: , Object" in PHP4. > So, is there anyway to handle those cases gracefully > (except for upgrading > to PHP 5)? The above exception message ("Uncaught...") makes me believe that you already use PHP5 or above. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Michael E. <els...@gm...> - 2005-09-17 11:50:15
|
First of all, thanks for his cool extension. I got it running within 5 minutes, and it works like a charm. Except for one issue: I'm using it to run Lucene with PHP 4. Now, in certain cases Lucene throws an exception, for example when the query parser can't handle an invalid query. Then I get a message like Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [o(QueryParser):"org.apache.lucene.queryParser.QueryParser@1f8c6df"]->parse( (java.lang.String)o(String):"AND "). Cause: org.apache.lucene.queryParser.ParseException: Encountered "AND" at line 1, column 0. Was expecting one of: ... "+" ... "-" ... "(" ... ... ... ... ... "[" ... "{" ... ... "] thrown in {/path/name} on line 37 I know there is java_last_exception_get(), but the fatal error occurs on line 37, which is exactly where I call the (java) query parser, and then script execution is terminated. So, is there anyway to handle those cases gracefully (except for upgrading to PHP 5)? Thank you, Michael |
From: Jost B. <jos...@ya...> - 2005-09-14 17:57:34
|
Hi Bharath, you're right. The CGIServlet cannot handle post requests. The code is there, but it seems that nobody has tested this until now. Please excuse the inconvenience, I'll fix this asap. (The CGIServlet was copied from tomcat, which was probably a mistake...) Please see PR#1291191 (https://sourceforge.net/tracker/index.php?func=detail&aid=1291191&group_id=117793&atid=679233) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-14 17:48:36
|
Hi Bharath, first of all thank you very much for this bug report. Assuming that phpinfo shows that X_JAVABRIDGE_OVERRIDE_HOSTS 127.0.0.1:9980 X_JAVABRIDGE_CONTEXT 1 the null pointer means that the php_java.dll was not able to send back the X_JAVABRIDGE_CONTEXT and that the servlet has received the invalid context 0. I could not reproduce this problem, but I have created a ticket (#1291175) for this NP exception. Please see https://sourceforge.net/tracker/index.php?func=detail&aid=1291175&group_id=117793&atid=679233 Please attach the values for X_JAVABRIDGE_OVERRIDE_HOSTS and X_JAVABRIDGE_CONTEXT there and the method (POST or GET) there. If possible please also attach the php_java.dll and the php-cgi.exe you use. Please also check why the bridge uses port# 9568 and not 9567. Is it possible that you use an old version of the php_java.dll with a recent version of the JavaBridge.war backend? It might be that your php_java.dll still sends a 32 bit value for the context# and the backend always reads the 2 high bytes, which are 0. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Bharath T. <bh...@mv...> - 2005-09-14 05:29:42
|
Forgot to attach the file. Sorry Regards Bharath -----Original Message----- From: Bharath Thirunavukkarasu=20 Sent: Wednesday, September 14, 2005 1:21 AM To: 'php...@li...'; 'Jost Boekemeier' Subject: problem with Post I have the java bridge setup as a webapp on tomcat. When I post a request to a php bridge in the webapp, for some reason the post variables seem to be lost. Get variables are reaching correctly. To reproduce the problem drop the attached php file to the JavaBridge web app on tomcat. A session value is hard coded into the script. A GET value is also hardcoded. Enter text into the text box to simulate POST vars. The ideal output should be similiar to the one below:=20 POST Vars=20 Array ( [username] =3D> whateveryoutypedin )=20 GET Vars=20 Array ( [temp] =3D> 1 )=20 Session Vars=20 Array ( [tempvar] =3D> temp value ) I have also added phpinfo() to see what we get. Don't see a _POST var Any idea? Regards Bharath |
From: Bharath T. <bh...@mv...> - 2005-09-14 05:21:08
|
I have the java bridge setup as a webapp on tomcat. When I post a request to a php bridge in the webapp, for some reason the post variables seem to be lost. Get variables are reaching correctly. To reproduce the problem drop the attached php file to the JavaBridge web app on tomcat. A session value is hard coded into the script. A GET value is also hardcoded. Enter text into the text box to simulate POST vars. The ideal output should be similiar to the one below:=20 POST Vars=20 Array ( [username] =3D> whateveryoutypedin )=20 GET Vars=20 Array ( [temp] =3D> 1 )=20 Session Vars=20 Array ( [tempvar] =3D> temp value ) I have also added phpinfo() to see what we get. Don't see a _POST var Any idea? Regards Bharath |
From: Bharath T. <bh...@mv...> - 2005-09-13 20:15:23
|
More info JavaBridge DEBUG: @584294 first request (session is new). JavaBridge DEBUG: @584294 Client changed its request log level to: 4 JavaBridge DEBUG: @584294 --> <C v=3D"java.lang.System" p=3D"I" i=3D"10203232" > JavaBridge DEBUG: @584294 --> </C> JavaBridge DEBUG: @584294 <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @7b3b24 first request (session is new). JavaBridge DEBUG: @7b3b24 Client changed its request log level to: 4 JavaBridge DEBUG: @7b3b24 --> <I v=3D"1" m=3D"getProperties" p=3D"I" i=3D"10238128" > java.lang.NullPointerException at php.java.bridge.GlobalRef.get(GlobalRef.java:32) at php.java.bridge.Request.begin(Request.java:104) at php.java.bridge.Parser.CALL_BEGIN(Parser.java:98) at php.java.bridge.Parser.parse(Parser.java:159) at php.java.bridge.Request.handleRequests(Request.java:197) at php.java.servlet.PhpJavaServlet.handleHttpConnection(PhpJavaServlet.java :284) at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:356) at javax.servlet.http.HttpServlet.service(HttpServlet.java:712) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 20) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79 9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57 7) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Unknown Source) -----Original Message----- From: Bharath Thirunavukkarasu=20 Sent: Tuesday, September 13, 2005 4:13 PM To: 'php...@li...' Subject: RE: php-java-bridge-users digest, Vol 1 #90 - 1 msg When I try to browse to the test.php in the bridge deployed on tomcat I get the following error on and off on windows JavaBridge DEBUG: @f6e9d first request (session is new). JavaBridge DEBUG: @f6e9d Client changed its request log level to: 4 JavaBridge DEBUG: @f6e9d --> <C v=3D"java.lang.System" p=3D"I" = i=3D"10203232" > JavaBridge DEBUG: @f6e9d --> </C> JavaBridge DEBUG: @f6e9d <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @f6e9d re-directing to port# 9568 JavaBridge DEBUG: @f6e9d waiting for context: 1 JavaBridge DEBUG: @f6e9d context finished: 1 java.lang.NullPointerException at php.java.servlet.ContextRunner.init(ContextRunner.java:48) at php.java.servlet.SocketRunner.accept(SocketRunner.java:73) at php.java.servlet.SocketRunner.run(SocketRunner.java:95) at java.lang.Thread.run(Unknown Source) JavaBridge INFO : Socket runner stopped, the local channel is not available anymore. Any idea? Regards Bharath |
From: Bharath T. <bh...@mv...> - 2005-09-13 20:13:40
|
When I try to browse to the test.php in the bridge deployed on tomcat I get the following error on and off on windows JavaBridge DEBUG: @f6e9d first request (session is new). JavaBridge DEBUG: @f6e9d Client changed its request log level to: 4 JavaBridge DEBUG: @f6e9d --> <C v=3D"java.lang.System" p=3D"I" = i=3D"10203232" > JavaBridge DEBUG: @f6e9d --> </C> JavaBridge DEBUG: @f6e9d <-- <O v=3D"1" i=3D"10203232"/> JavaBridge DEBUG: @f6e9d re-directing to port# 9568 JavaBridge DEBUG: @f6e9d waiting for context: 1 JavaBridge DEBUG: @f6e9d context finished: 1 java.lang.NullPointerException at php.java.servlet.ContextRunner.init(ContextRunner.java:48) at php.java.servlet.SocketRunner.accept(SocketRunner.java:73) at php.java.servlet.SocketRunner.run(SocketRunner.java:95) at java.lang.Thread.run(Unknown Source) JavaBridge INFO : Socket runner stopped, the local channel is not available anymore. Any idea? Regards Bharath |
From: Jost B. <jos...@ya...> - 2005-09-13 15:45:31
|
Hi Shoan, Are you sure that JavaBridge.war is installed and the JavaBridge context is running? If the context is not running, the client receives a HTML error message which is similar to the bridge' XML protocol, it crashes or hangs after that. (It is difficult to catch this problem without validating the response.) What happens if you visit http://localhost:8080/JavaBridge and then click on test.php? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Shoan M. <lis...@sh...> - 2005-09-13 11:09:14
|
Hi, I installed the latest php-java bridge 2.0.8RC2 on windows XP. PHP 5.0.3.3 CGI/Fast CGI. I have set the required system variables viz. JAVA_HOME, CATALINA_HOME, PATH, SystemDir, SystemRoot. On executing test.bat after starting tomcat, I get an error window "CGI / FastCGI has encountered a problem and needs to close. We are sorry for the inconvenience." The result.html seems to be abruptly terminated and there are no java variables in it. Although, there is a new section for java as shown below: java support Enabled java bridge 2.0.8RC2 java.log_level 4 java.hosts 127.0.0.1:8080 java.servlet On java status running java server 127.0.0.1:8080 Please let me know if you need more information to troubleshoot the problem. Peace, Shoan. |
From: Jost B. <jos...@ya...> - 2005-09-12 16:29:58
|
Hi, > 1. BUG. There is no PHP4 version of library in The PHP/Java Bridge does not work on threaded HTTP servers, e.g. IIS, unless ZTS is switched on. ZTS is experimental in all versions below PHP 5 and I know of at least 3 incompatible ABI's since 4.3.2. So the question is: which version of PHP4 on windows should we support? Isn't it possible to compile your own php4 binary as described in the README? > 2. About 80% of windows distributive size is > php5ts.dll > Is it possible to make alternative -light version? Yes, certainly. But is 3MB really too large these days? > 3. Patch to make test run even if unzipped not in > c:/php5 Isn't it possible to adjust the php.ini accordingly? One has to do this during the installation process anyway. But the widgetTest.bat could be changed, of course. > 4. JavaBridge.jar doesn't output any messages about > it was started successfully If you start it at log level 3 or above, as described in the README, it will output to stdout or to a log file. > complete. Is there any ways to control running > server? "apachectl start" starts the apache server and the bridge and "apachectl stop" stops both, please see the README for details. Since version 2.0.8 this works on windows, too. However, the recommended way to run the backend is to start it via the php-java-bridge.service script (on Unix) or via tomcat (on windows). > 6. It would be good to have a ToC in readme. Yes. > Q1. Is it possible to extend Java class with PHP? > I.e. make PHP class, inherited from one of Java? The java_closure() call currently accepts only interfaces, not classes. It would be nice if the Sun's dynamic proxy would accept a class, but it doesn't. If we want this, we must write our own proxy compiler. Please see http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/lang/reflect/Proxy.java?rev=1.13.2.6&content-type=text/vnd.viewcvs-markup Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-11 21:22:41
|
Hi Raphael, all pages are generated through tomcat, only the content within the page is generated by php. Since you use the default value for java.servlet which is: java.servlet="/JavaBridge/PhpJavaServlet" tomcat has set the path value to the app directory, which is "/JavaBridge". The reason why the bridge component truncated the /JavaBridge to / was to disallow session sharing for PHP pages which are outside of the app directory. The current test is wrong, of course: /JavaBridge != JavaBridge, so the bridge has incorrectly changed the path. > not relevant. Unfortunately I can not do it by > myself because I don't > know if it is handled by the JavaBridge or in > Tomcat. You can remove the strncmp from line#198 in http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/protocol.c?annotate=1.29 I have created a bug report for this, please see PR1288025 (http://sourceforge.net/tracker/index.php?func=detail&aid=1288025&group_id=117793&atid=679233). I will prepare a 2.0.8RC3 tomorrow evening. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <tec...@us...> - 2005-09-10 13:58:22
|
||*()*|| Greetings, php-java-bridge-users.. Here is the list of proposals/enchantments I've come up with to increase overall first look expression from this bundle. 1. BUG. There is no PHP4 version of library in php-java-bridge_2.0.8RC2 windows distributuive. 2. About 80% of windows distributive size is php5ts.dll Is it possible to make alternative -light version? 3. Patch to make test run even if unzipped not in c:/php5 --- java.ini_old.windows Wed Sep 7 20:54:34 2005 +++ java.ini.windows Sat Sep 10 13:46:30 2005 @@ -7,7 +7,7 @@ ;; double-click on JavaBridge.jar or deploy JavaBridge.war into your ;; servlet engine/application server and re-start it. -extension_dir = "c:\php5" +extension_dir = "." extension = php_java.dll [java] 4. JavaBridge.jar doesn't output any messages about it was started successfully, doesn't respond to command-line parameters and works like invisible service (which is good to see optional) 5. Test could try to execute JavaBridge.jar and shut it down after complete. Is there any ways to control running server? 6. It would be good to have a ToC in readme. Questions about bridge (I'm total noob in Java programming): Q1. Is it possible to extend Java class with PHP? I.e. make PHP class, inherited from one of Java? .techtonik -- |
From: Raphael V. <rv_...@os...> - 2005-09-10 12:24:01
|
Hi, Jost, thanks for for answer. > Hi Raphael, > > >>http://localhost:8080/JavaBridge/sessionSharing.jsp >>http://localhost/JavaBridge/sessionSharing.php > > > interesting. I didn't think about this scenario. I > assume you use IIS, which cannot JkMount the tomcat > folder, and manually redirect all .jsp requests to a > different server. I use Apache 2.0.53. Perhaps it is not clear: Both server use different folders. The logical path is the same to avoid problems with the path value in the cookie. > >>Is this a bug in JavaBridge > > > If we want session sharing between different servers, > we must strip off the server part from PHP_SELF, > please see protocol.c, setResultWith_context() I wonder why it work in one direction but not the other way round. The only difference is the path value. A workaround could be to set the path always to / so the cookie is valid for the whole server. The port is imo not relevant. Unfortunately I can not do it by myself because I don't know if it is handled by the JavaBridge or in Tomcat. > This raises some security concerns, though. > > So before I change the code to strip away the server > part, I would like to see a use case. Can you please > explain why do need this? We have a pretty complex application written in PHP which we need to integrate into a Java Portal. The Portal runs in a OC4J and the PHP application on an seperate Apache Instance on the same machine. Both application have a own user management. If a user log in (the portal) and then goes to the PHP application it need to know which user is it. I thought the easiest way is to read the Java session and then map the user data to the user of the PHP Application. regards, Raphael |
From: Jost B. <jos...@ya...> - 2005-09-10 10:00:18
|
Hi Raphael, > http://localhost:8080/JavaBridge/sessionSharing.jsp > http://localhost/JavaBridge/sessionSharing.php interesting. I didn't think about this scenario. I assume you use IIS, which cannot JkMount the tomcat folder, and manually redirect all .jsp requests to a different server. > Is this a bug in JavaBridge If we want session sharing between different servers, we must strip off the server part from PHP_SELF, please see protocol.c, setResultWith_context() This raises some security concerns, though. So before I change the code to strip away the server part, I would like to see a use case. Can you please explain why do need this? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |