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: <php...@li...> - 2006-09-10 23:26:22
|
Hi all, First off, my knowledge of Java is very limited (thus the need for the PHP/Java bridge). I have compiled and successfully installed the bridge for PHP 5.1.6 for Mac OS X and wanted to install the PEAR class that represents a sample java class I have called HelloData (which simply prints "Hello the date is: mm/dd/yyyy"). I used the following command as per the instructions: [PROMPT] sudo java -jar /usr/local/php5/lib/php/extensions/no-debug- non-zts-20050922/JavaBridge.jar --convert /usr/local/php5/lib/php HelloDate.jar This ran for about 4 minutes before completing. I was astonished that it would take so long. After it completed I looked in the PEAR directory (/urs/local/php5/lib/php) and found several new directories: drwxr-xr-x 5 root wheel 170 Sep 10 14:19 HelloDate drwxr-xr-x 416 root wheel 14144 Sep 10 14:19 charsets drwxr-xr-x 9200 root wheel 312800 Sep 10 14:19 classes drwxr-xr-x 46 root wheel 1564 Sep 10 14:19 jce drwxr-xr-x 82 root wheel 2788 Sep 10 14:19 jsse drwxr-xr-x 119 root wheel 4046 Sep 10 14:19 laf drwxr-xr-x 106 root wheel 3604 Sep 10 14:19 ui The first extra item makes sense, since it is the Java class I asked to be created in that command. But the rest are a mystery to me (isse? laf? ui?). And the "classes" directory is HUGE. It looks like it has thousands of items (are these classes too)? My questions are: 1) What are all those other directories for when I only asked for my sample class to be made into a PEAR class? Thanks for the assistance. |
From: <php...@li...> - 2006-09-09 17:35:17
|
Hi, > aclocal: configure.in: 20: macro `AM_PROG_GCJ' not > found in library > aclocal: configure.in most likely autoconf is not correctly installed on your operating system or some development files are missing or maybe the debian people have finally patched it to death... :) AM gcj must be defined either to the gcj program or to /bin/false. The scripts use gcj to compile java to native code or they don't do anything, if gcj is not installed. The autoconf scripts work correctly on other OS, so we will not add a workaround for this problem. Please use the original autoconf, automake and libtool programs, not the programs that came with your operating system. The exact procedure is described in the INSTALL document. However, on Ubuntu you don't need to compile the bridge. You can either install the RPM with alien or open it with a file manager and drag and drop the content of the lib directory to your your php installation and restart apache. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-09-08 12:55:15
|
Hi Folks, I encounter an error when compiling JavaBridge: ./configure --with-java=3D$JAVA_HOME,$JRE_HOME ends up with http://phpfi.com/150294 Kind regards, Matthias Quade Here are my versions: -------- # echo $JAVA_HOME && echo $JAVA_JRE /usr/lib/jvm/java-1.5.0-sun /usr/lib/jvm/java-1.5.0-sun/jre They are correct: # $JAVA_HOME/bin/javac -version javac 1.5.0_06 # $JAVA_JRE/bin/java -version java version "1.5.0_06" -------- # java -version && gcc --version && apache2ctl -version && libtool = --version && automake --version && make null --version && autoconf --version && php-config --version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5) Copyright (C) 2006 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht f=C3=BCr VERKAUFBARKEIT oder F=C3R = SPEZIELLE ZWECKE. Server version: Apache/2.0.55 Server built: Jul 26 2006 17:59:52 ltmain.sh (GNU libtool) 1.5.22 Debian 1.5.22-2 (1.1220.2.365 2005/12/18 22:14:06) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is = NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR = PURPOSE. automake (GNU automake) 1.4-p6 Copyright (C) 1999, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is = NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR = PURPOSE. Written by Tom Tromey <tr...@re...> GNU Make 3.81beta4 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i486-pc-linux-gnu autoconf (GNU Autoconf) 2.59 Written by David J. MacKenzie and Akim Demaille. Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is = NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR = PURPOSE. 5.1.2 |
From: <php...@li...> - 2006-09-08 04:14:13
|
Hi Jost, Thank you very much for replying. Actually XAMPP is not an app server but its installer which install php,mysql and apache web server. My php path is /opt/lampp/lib/php And extension dir is /opt/lampp/lib/php/extensions/where is kept javabridge.jar=20 Thanks again for kind reply. Chirayu Bhatt V2Solutions A New Vision to Solutions India: +91-22-56733201 Ext. 642 http://www.v2solutions.com =20 =20 -----Original Message----- From: php...@li... [mailto:php...@li...] On Behalf Of php...@li... Sent: Thursday, September 07, 2006 11:27 PM To: php...@li... Subject: Re: [Php-java-bridge-users] Problem with start of javabridge onlinux Hi, > grep: /opt/lampp/include/php/main/php.h: No such file or directory if you can't compile the C code yourself, the binary download contains a php-cgi and java.so which you can copy into your application server (I assume XAMPP is an application server). Another possibility is to use the pure PHP implementation (http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bri dge/java/README?revision=3D1.2&view=3Dmarkup) or to simply use fopen/fwrite/fread to talk to your Java server: http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-brid ge/examples/clients/sample.php?view=3Dmarkup Regards, Jost Boekemeier =09 ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-09-07 17:56:47
|
Hi, > grep: /opt/lampp/include/php/main/php.h: No such > file or directory if you can't compile the C code yourself, the binary download contains a php-cgi and java.so which you can copy into your application server (I assume XAMPP is an application server). Another possibility is to use the pure PHP implementation (http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/java/README?revision=1.2&view=markup) or to simply use fopen/fwrite/fread to talk to your Java server: http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/examples/clients/sample.php?view=markup Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-09-06 12:02:41
|
Hi, I have installed php with xampp version 1.5.1 on linux provided by apachefriends. Location of that installation is /opt/lampp/. I wanted to install php javabridge with this so I used php-java-bridge-3.0.8-1.src.rpm I extracted it into /usr/src/redhat/SOURCES/php-java-bridge-3.0.8 as it asked to do so. My phpize is in /opt/lampp/bin. So I gave command=20 # phpize && //usr/src/redhat/SOURCES/php-java-bridge-3.0.8/configure --with-java=3D/home/cherry/j2sdk1.4.2_04 && make=20 Copying command [root@localhost bin]# phpize && /usr/src/redhat/SOURCES/php-java-bridge-3.0.8/configure --with-java=3D/home/trkastar/j2sdk1.4.2_04 && make Response is=20 grep: /opt/lampp/include/php/main/php.h: No such file or directory grep: /opt/lampp/include/php/Zend/zend_modules.h: No such file or directory grep: /opt/lampp/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: -bash: /usr/src/redhat/SOURCES/php-java-bridge-3.0.8/configure: No such file or directory How can I achieve java support in this case. Chirayu Bhatt V2Solutions A New Vision to Solutions India: +91-22-56733201 Ext. 642 http://www.v2solutions.com =20 =20 |
From: <php...@li...> - 2006-09-05 20:24:25
|
Hi Brent, in version 3.1.4 the autoconf script doesn't check if the Java VM can really use JNI and always compiles the java.so against unix domain sockets. You can test this with the following command: /usr/java/jdk1.5.0_08/bin/java -jar /usr/local/lib/php/extensions/no-debug-non-zts-20050922/JavaBridge.jar LOCAL:@dummy 3 "" If the above command displays an error message, please configure the bridge to use TCP sockets (or use the J2EE/Tomcat back end) instead: Please either set: java.hosts = 127.0.0.1:9267 java.servlet = Off and start Java manually with the command: java -jar JavaBridge.jar Or start Java via a J2EE server or the Tomcat servlet engine, copy JavaBridge.war to the J2EE autodeploy folder, e.g.: /opt/tomcat/webapps, wait 10 seconds while the Java server starts the bridge and set the following options: java.hosts = 127.0.0.1:8080 java.servlet = On After that please restart the http server, for example with: apachectl restart. The test.php should now run without errors. However, can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the output of the following command: strace -s 1024 /usr/java/jdk1.5.0_08/bin/java -jar /usr/local/lib/php/extensions/no-debug-non-zts-20050922/JavaBridge.jar LOCAL:@dummy 1 "" 2>error.log The error log should display the reason why Java could not be started automatically. This will help us to improve the latest version, which already contains code for channel negotiation during startup. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-09-05 15:22:31
|
To Whom It May Concern: We are not able to get the Java Bridge to run properly, we are getting the following errors: Error: The PHP/Java Bridge back-end is not running. Please start it and/or check if the directory /usr/local/lib/php/extensions/no-debug-non-zts-20050922 contains "java.so" and "JavaBridge.jar". Check if the following values are correct: java.java_home = java.java = If you want to start the back-end automatically, disable: java.socketname = java.hosts = java.servlet = If that still doesn't work, please check the "java command" above and report this problem to: php...@li.... At the top of the test page with php_info it says: #!/bin/env php Please permanently activate the extension. Loading java extension java.so now... The Java section of the same page looks like this: java java support Enabled java bridge 3.1.4 java.java_home /usr/java/jdk1.5.0_08 java.java /usr/java/jdk1.5.0_08/bin/java java.log_file <stderr> java.log_level no value (use back-end's default level) java.ext_java_compatibility Off java.persistent_connections On java.security_policy Off java command JAVA_HOME=/usr/java/jdk1.5.0_08 LD_LIBRARY_PATH=/usr/local/lib/php/extensions/no-debug-non-zts-20050922:/srv/apache-2058/apache/lib: /usr/java/jdk1.5.0_08/bin/java -Djava.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20050922 -Djava.class.path=/usr/local/lib/php/extensions/no-debug-non-zts-20050922/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/local/lib/php/extensions/no-debug-non-zts-20050922 php.java.bridge.JavaBridge INET_LOCAL:0 1 java status not running java server localhost Our Environment and PHP variables look like this: Environment Variable Value LESSKEY /etc/lesskey.bin NNTPSERVER news INFODIR /usr/local/info:/usr/share/info:/usr/info MANPATH /usr/local/man:/usr/share/man:/usr/X11R6/man HOSTNAME etmdweb1 XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB HOST etmdweb1 TERM xterm SHELL /bin/bash PROFILEREAD true HISTSIZE 1000 SSH_CLIENT 10.26.117.100 1320 22 SSH_TTY /dev/pts/0 USER hb23991 LD_LIBRARY_PATH /srv/apache-2058/apache/lib: LS_COLORS no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: XNLSPATH /usr/X11R6/lib/X11/nls HOSTTYPE i386 PAGER less MINICOM -c on MAIL /var/mail/hb23991 PATH /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/java/jdk1.5.0_08/bin CPU i686 JAVA /usr/java/jdk1.5.0_08/jre/bin/java INPUTRC /etc/inputrc PWD /srv/apache-2058/apache JAVA_HOME /usr/java/jdk1.5.0_08 LANG en_US.UTF-8 TEXINPUTS :/home/hb23991/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX SHLVL 3 HOME /root LESS_ADVANCED_PREPROCESSOR no OSTYPE linux LS_OPTIONS -a -N --color=tty -T 0 no_proxy localhost WINDOWMANAGER /usr/X11R6/bin/kde LESS -M -I MACHTYPE i686-suse-linux LOGNAME hb23991 SSH_CONNECTION 10.26.117.100 1320 10.27.71.17 22 CLASSPATH /usr/java/jdk1.5.0_08/jre/bin LESSOPEN lessopen.sh %s INFOPATH /usr/local/info:/usr/share/info:/usr/info LESSCLOSE lessclose.sh %s %s COLORTERM 1 _ /srv/apache-2058/apache/bin/httpd PHP Variables Variable Value _SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) _SERVER["HTTP_HOST"] etmdweb1 _SERVER["HTTP_CONNECTION"] Keep-Alive _SERVER["PATH"] /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/java/jdk1.5.0_08/bin _SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.58 (Unix) PHP/5.1.4 Server at etmdweb1 Port 80</address> _SERVER["SERVER_SOFTWARE"] Apache/2.0.58 (Unix) PHP/5.1.4 _SERVER["SERVER_NAME"] etmdweb1 _SERVER["SERVER_ADDR"] 10.27.71.17 _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] 10.26.117.100 _SERVER["DOCUMENT_ROOT"] /srv/apache-2058/apache/htdocs _SERVER["SERVER_ADMIN"] bre...@hu... _SERVER["SCRIPT_FILENAME"] /srv/apache-2058/apache/htdocs/test.php _SERVER["REMOTE_PORT"] 1993 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /test.php _SERVER["SCRIPT_NAME"] /test.php _SERVER["PHP_SELF"] /test.php _SERVER["REQUEST_TIME"] 1157517064 _SERVER["argv"] Array _SERVER["argc"] 0 _ENV["LESSKEY"] /etc/lesskey.bin _ENV["NNTPSERVER"] news _ENV["INFODIR"] /usr/local/info:/usr/share/info:/usr/info _ENV["MANPATH"] /usr/local/man:/usr/share/man:/usr/X11R6/man _ENV["HOSTNAME"] etmdweb1 _ENV["XKEYSYMDB"] /usr/X11R6/lib/X11/XKeysymDB _ENV["HOST"] etmdweb1 _ENV["TERM"] xterm _ENV["SHELL"] /bin/bash _ENV["PROFILEREAD"] true _ENV["HISTSIZE"] 1000 _ENV["SSH_CLIENT"] 10.26.117.100 1320 22 _ENV["SSH_TTY"] /dev/pts/0 _ENV["USER"] hb23991 _ENV["LD_LIBRARY_PATH"] /srv/apache-2058/apache/lib: _ENV["LS_COLORS"] no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: _ENV["XNLSPATH"] /usr/X11R6/lib/X11/nls _ENV["HOSTTYPE"] i386 _ENV["PAGER"] less _ENV["MINICOM"] -c on _ENV["MAIL"] /var/mail/hb23991 _ENV["PATH"] /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/java/jdk1.5.0_08/bin _ENV["CPU"] i686 _ENV["JAVA"] /usr/java/jdk1.5.0_08/jre/bin/java _ENV["INPUTRC"] /etc/inputrc _ENV["PWD"] /srv/apache-2058/apache _ENV["JAVA_HOME"] /usr/java/jdk1.5.0_08 _ENV["LANG"] en_US.UTF-8 _ENV["TEXINPUTS"] :/home/hb23991/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX _ENV["SHLVL"] 3 _ENV["HOME"] /root _ENV["LESS_ADVANCED_PREPROCESSOR"] no _ENV["OSTYPE"] linux _ENV["LS_OPTIONS"] -a -N --color=tty -T 0 _ENV["no_proxy"] localhost _ENV["WINDOWMANAGER"] /usr/X11R6/bin/kde _ENV["LESS"] -M -I _ENV["MACHTYPE"] i686-suse-linux _ENV["LOGNAME"] hb23991 _ENV["SSH_CONNECTION"] 10.26.117.100 1320 10.27.71.17 22 _ENV["CLASSPATH"] /usr/java/jdk1.5.0_08/jre/bin _ENV["LESSOPEN"] lessopen.sh %s _ENV["INFOPATH"] /usr/local/info:/usr/share/info:/usr/info _ENV["LESSCLOSE"] lessclose.sh %s %s _ENV["COLORTERM"] 1 _ENV["_"] /srv/apache-2058/apache/bin/httpd Please let us know what we are doing incorrectly. Thank you, Brent Halsey Business Systems Analyst 2 Enterprise Services Development The Huntington National Bank 7 Easton Oval (EA3C22) Columbus, OH 43219 Phone: 614/331-9575 Email: bre...@hu... |
From: <php...@li...> - 2006-08-29 19:59:54
|
Hoy en la tarde, php...@li... dijo: > Ayer en la tarde, php...@li... dijo: >> Hi, >> >> do you use the dynamic loader to load the classes? >> >> We've had two tickets with similar problems (class >> cast exception because the proxies were assignment >> incompatible to each other). Both of them were closed >> because the users provided no feedback. -- One user >> reported that the suggested workaround (to move the >> libraries to the global classpath) worked, after that >> he was unable to reproduce the original problem. [...] > I'll try with the workaround and report back. No crahes after one hour of requests (w/ 1-minute delays). Seems pretty rock solid to me :) I'll go that route for now. Thanks! -- Guti Real Programmers don't comment their code. If it was hard to write, it should be hard to understand and even harder to modify. |
From: <php...@li...> - 2006-08-29 18:12:26
|
Hi Jonathan, > with Java. After some time passes, with zero > activity on the server, > javaw's CPU usage holds steady at a consistent 50%+. do you run javaw as a sub process of apache? If so, can you please change the php.ini entry java.java=javaw to java.java=java and then open the services dialog and allow the apache service to open a console window. The procedure is described here: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18120 When you restart the apache service, a console window appears. When the CPU usage jumps to 50% please type Ctrl+Break simultaneously. It will create the thread dump in a file called {server-name}-out.log or {server-name}-err.log file, depending on the version of JDK/JRE you are using. The thread dump will show the thread name which causes the trouble. My guess is that the thread is some Java manager thread which tries to respond to some unexpected events. -- Apache sometime has the habit to send out a signal to all of its children. If that's the case starting Java outside of the Apache domain should solve the problem. Anyway, when you have the thread dump please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the dump to this ticket. Thank you very much for reporting this problem! Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-08-29 18:04:29
|
Ayer en la tarde, php...@li... dijo: > Hi, > > do you use the dynamic loader to load the classes? > > We've had two tickets with similar problems (class > cast exception because the proxies were assignment > incompatible to each other). Both of them were closed > because the users provided no feedback. -- One user > reported that the suggested workaround (to move the > libraries to the global classpath) worked, after that > he was unable to reproduce the original problem. > > However, I am quite sure there's still a bug in our > dynamic loader when dynamic proxies are used. Yes, as a matter of fact I load jar files on demand; this is the relevant part of the code (removed for brevity on previous post): ,---- | $cwd = dirname(__FILE__); | | $jars = array( | "$cwd/SpringDemo/", | "$cwd/jars/spring-aop.jar", | "$cwd/jars/spring-beans.jar", | "$cwd/jars/spring-context.jar", | "$cwd/jars/spring-core.jar", | "$cwd/jars/spring-dao.jar", | "$cwd/jars/spring.jar", | "$cwd/jars/spring-jdbc.jar", | "$cwd/jars/spring-remoting.jar", | "$cwd/jars/spring-web.jar", | "/home/staff/crgutier/jars/lib/j2ee/servlet-api.jar", | "$cwd/jars/lib/jakarta-commons/commons-logging.jar", | "$cwd/jars/lib/jakarta-commons/commons-httpclient.jar", | "$cwd/jars/lib/log4j/log4j-1.2.9.jar", | ); | | | java_require(join(";", $jars)); `---- I'll try with the workaround and report back. > Can you please run the server with: > > -Dphp.java.bridge.default_log_file=/tmp/javabridge.log > -Dphp.java.bridge.default_log_level=6 > > open a ticket (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and attach the full log at the end of the ticket? > > The log file will be large, but it should contain > information why our dynamic loader has dropped the > proxy even though spring still keeps a reference to > it. Just did. Thanks for your help. -- Guti cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose > /dev/keyboard |
From: <php...@li...> - 2006-08-29 14:45:21
|
I've noticed some strange performance issues on my development machine while using the JavaBridge... specs: Windows XP Professional Apache 2.0.55 PHP 5.1.2 PHP-Java Bridge 3.0.7a Java JDK 1.5.0_01 When I start Apache up fresh, the javaw process that's spawned stays at ~0% CPU usage, spiking momentarily whenever my PHP code does something with Java. After some time passes, with zero activity on the server, javaw's CPU usage holds steady at a consistent 50%+. I haven't the foggiest idea where to begin looking for answers, so any help is appreciated. (I'm happy to provide additional detail if needed!) Best, Jonathan =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jonathan Abbett Children's Hospital Informatics Program 1 Autumn Street, Fifth Floor Boston, MA 02215 617-355-8334 jon...@ch... http://www.chip.org |
From: <php...@li...> - 2006-08-28 18:35:38
|
Hi, do you use the dynamic loader to load the classes? We've had two tickets with similar problems (class cast exception because the proxies were assignment incompatible to each other). Both of them were closed because the users provided no feedback. -- One user reported that the suggested workaround (to move the libraries to the global classpath) worked, after that he was unable to reproduce the original problem. However, I am quite sure there's still a bug in our dynamic loader when dynamic proxies are used. Can you please run the server with: -Dphp.java.bridge.default_log_file=/tmp/javabridge.log -Dphp.java.bridge.default_log_level=6 open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the full log at the end of the ticket? The log file will be large, but it should contain information why our dynamic loader has dropped the proxy even though spring still keeps a reference to it. Thank you very much for the bug report! Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-08-28 03:10:45
|
Hello all, First of all, thanks a lot for this amazing piece of work to everyone involved. PHP on the frontend and Java in the backend is making a lot of sense (a lot more than PHP-or-Java all the way 'round) over here :) Now, my problem is the following: I have setup a Spring-based RMI service, which works as expected the first times you try it from PHP. After several times hitting the `refresh' button on the browser, the proxy of the remote service "falls back" to the proxy factory object. My PHP code (without jar files and debug methods boilerplate): ,---- | $multService = null; | try { | $classpathResource = new Java("org.springframework.core.io.ClassPathResource", | "beans.xml"); | $beanFactory = new Java("org.springframework.beans.factory.xml.XmlBeanFactory", | $classpathResource); | | $multService = $beanFactory->getBean("multService"); | | $xval = (int) rand(0,100); | $yval = (int) rand(0,100); | | $x = new Java("java.lang.Integer", $xval); | $y = new Java("java.lang.Integer", $yval); | | $ret = $multService->operate($x, $y); | | if ($ret == $xval * $yval) | print "OK<br/>"; | else | print "ERR<br/>"; | | my_java_debug($multService); | } | catch(JavaException $ex) | { | my_java_print_stacktrace($ex); | my_java_debug($multService); | } `---- When everything is ok, the output is: ,---- | OK | <==== begin class debug ====> | [class $Proxy1: | Constructors: | public $Proxy1(java.lang.reflect.InvocationHandler) | | Fields: | | Methods: | public final java.lang.Integer $Proxy1.operate(java.lang.Integer,java.lang.Integer) | public final void $Proxy1.addAdvice(int,org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException | public final void $Proxy1.addAdvice(org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException | public final void $Proxy1.setTargetSource(org.springframework.aop.TargetSource) | public final org.springframework.aop.TargetSource $Proxy1.getTargetSource() | public final java.lang.Class[] $Proxy1.getProxiedInterfaces() | public final boolean $Proxy1.isInterfaceProxied(java.lang.Class) | public final boolean $Proxy1.removeAdvice(org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException | public final boolean $Proxy1.removeAdvisor(org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException | public final void $Proxy1.removeAdvisor(int) throws org.springframework.aop.framework.AopConfigException | public final void $Proxy1.addAdvisor(org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException | public final void $Proxy1.addAdvisor(int,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException | public final org.springframework.aop.Advisor[] $Proxy1.getAdvisors() | public final boolean $Proxy1.replaceAdvisor(org.springframework.aop.Advisor,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException | public final java.lang.String $Proxy1.toProxyConfigString() | public final boolean $Proxy1.isFrozen() | public final void $Proxy1.setExposeProxy(boolean) | public final boolean $Proxy1.isExposeProxy() | public final boolean $Proxy1.isProxyTargetClass() | public final int $Proxy1.hashCode() | public final int $Proxy1.indexOf(org.springframework.aop.Advisor) | public final boolean $Proxy1.equals(java.lang.Object) | public final java.lang.String $Proxy1.toString() | public static boolean java.lang.reflect.Proxy.isProxyClass(java.lang.Class) | public static transient java.lang.Class java.lang.reflect.Proxy.getProxyClass(java.lang.ClassLoader,java.lang.Class[]) throws java.lang.IllegalArgumentException | public static java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.getInvocationHandler(java.lang.Object) throws java.lang.IllegalArgumentException | public static java.lang.Object java.lang.reflect.Proxy.newProxyInstance(java.lang.ClassLoader,java.lang.Class[],java.lang.reflect.InvocationHandler) throws java.lang.IllegalArgumentException | public final native java.lang.Class java.lang.Object.getClass() | public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException | public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException | public final void java.lang.Object.wait() throws java.lang.InterruptedException | public final native void java.lang.Object.notify() | public final native void java.lang.Object.notifyAll() | | Classes: | ] | <==== end class debug ====> `---- And after a while it all goes *boink*: ,---- | <==== begin stack trace ====> | java.lang.Exception: Invoke failed: [o(RmiProxyFactoryBean)]->operate(o(Integer), o(Integer)). Cause: java.lang.NoSuchMethodException: operate(o(Integer), o(Integer)). Candidates: [] Responsible VM: 1.5.0_06@http://java.sun.com/ | at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1055) | at php.java.bridge.Request.handleRequest(Request.java:499) | at php.java.bridge.Request.handleRequests(Request.java:544) | at php.java.bridge.JavaBridge.run(JavaBridge.java:178) | at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) | Caused by: java.lang.NoSuchMethodException: operate(o(Integer), o(Integer)). Candidates: [] | ... 5 more | | <==== end stack trace ====> | <==== begin class debug ====> | [class org.springframework.remoting.rmi.RmiProxyFactoryBean: | Constructors: | public org.springframework.remoting.rmi.RmiProxyFactoryBean() | | Fields: | | Methods: | public boolean org.springframework.remoting.rmi.RmiProxyFactoryBean.isSingleton() | public void org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet() throws java.lang.Exception | public java.lang.Class org.springframework.remoting.rmi.RmiProxyFactoryBean.getObjectType() | public java.lang.Object org.springframework.remoting.rmi.RmiProxyFactoryBean.getObject() | public void org.springframework.remoting.rmi.RmiClientInterceptor.setLookupStubOnStartup(boolean) | public void org.springframework.remoting.rmi.RmiClientInterceptor.setCacheStub(boolean) | public void org.springframework.remoting.rmi.RmiClientInterceptor.setRefreshStubOnConnectFailure(boolean) | public java.lang.Object org.springframework.remoting.rmi.RmiClientInterceptor.invoke(org.aopalliance.intercept.MethodInvocation) throws java.lang.Throwable | public void org.springframework.remoting.rmi.RmiClientInterceptor.prepare() throws java.lang.Exception | public void org.springframework.remoting.support.RemoteInvocationBasedAccessor.setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory) | public org.springframework.remoting.support.RemoteInvocationFactory org.springframework.remoting.support.RemoteInvocationBasedAccessor.getRemoteInvocationFactory() | public java.lang.String org.springframework.remoting.support.UrlBasedRemoteAccessor.getServiceUrl() | public void org.springframework.remoting.support.UrlBasedRemoteAccessor.setServiceUrl(java.lang.String) | public java.lang.Class org.springframework.remoting.support.RemoteAccessor.getServiceInterface() | public void org.springframework.remoting.support.RemoteAccessor.setServiceInterface(java.lang.Class) | public native int java.lang.Object.hashCode() | public final native java.lang.Class java.lang.Object.getClass() | public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException | public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException | public final void java.lang.Object.wait() throws java.lang.InterruptedException | public boolean java.lang.Object.equals(java.lang.Object) | public final native void java.lang.Object.notify() | public final native void java.lang.Object.notifyAll() | public java.lang.String java.lang.Object.toString() | | Classes: | ] | <==== end class debug ====> `---- (Note that the dumped classes are not the same in both outputs) Some things I observed: * When it's still good, proxy instances are numbered $Proxy0, $Proxy1, ... etc., but the number doesn't change if there is a small time lapse between requests (a few seconds). I guess that's a normal behaviour, anyway. * Given that the InvocationHandler object starts being replaced by a RmiProxyFactoryBean object, I tried to consecutively call $multService->getBean("multService") until I got the object I was waiting for (just in case some weird bug in Spring could be returning "this" from inside the Factory). It worked for a few tries, and then I got a null object and couldn't go forward. * I tried with various RMI-recovering options for Spring's remote factory (cacheStub, refreshStubOnConnectFailure and lookupStubOnStartup), but to no avail. * A restart of the web server solves (if we can call that a "solution") the problem. * I couldn't find a pattern that would predict when RMI would fail. I thought that perhaps a run of System.gc() could trigger it, but a line like this didn't: $sys = new Java("java.lang.System"); $sys->gc(); These are the gory details: * Web server is Apache 2.0 w/PHP 5.1.4 from Debian Sarge backports. * JVM is 1.5.0_06 from Sun. * PHP-Java Bridge is 3.1.7 (for FC4). Thanks in advance for any insights. -- Guti Chuck Norris dont need to catch an Exception because Java is afraid of the "flying tornado kick" at the moment it throws |
From: <php...@li...> - 2006-08-27 14:23:24
|
Hi, > So my question is - how do I decide what are the > latest and greatest > versions of php/apache that will work? well, the PHP/Java Bridge is only the XML protocol, as such it should run with any PHP version >= 4.3.2. I.e with any PHP version which has a working version of fsockopen. We publish PECL and PEAR extensions for convenience, but these extensions aren't necessary to call out to Java libraries. The following example demonstrates how easy it is to call out to Java libraries with nothing but fsockopen, fread and fwrite: <? class Protocol { var $c; function __construct() { $this->c=fsockopen("127.0.0.1",9267); fwrite($this->c, chr(0100)); // mode 0 0, see PROTOCOL.TXT } function createBegin($s) { fwrite($this->c,sprintf("<C v=\"%s\" p=\"I\">", $s)); } function createEnd() { fwrite($this->c, "</C>"); } function invokeBegin($o, $m) { fwrite($this->c, sprintf("<I v=\"%d\" m=\"%s\" p=\"I\">", $o, $m)); } function invokeEnd() { fwrite($this->c, "</I>"); } function writeString($s) { fwrite($this->c, sprintf("<S v=\"%s\"/>", $s)); } function writeInt($s) { $p="O"; if($s<0) { $p="A"; $s*=-1; } fwrite($this->c, sprintf("<L v=\"%d\" p=\"%s\"/>", $s, $p)); } function writeObject($s) { fwrite($this->c, sprintf("<O v=\"%d\"/>", $s->java)); } function writeVal($s) { if(is_string($s)) { $this->writeString($s); } else if(is_int($s)) { $this->writeInt($s); } else { $this->writeObject($s); } } function getResult() { $res = fread($this->c, 8192); $ar = sscanf($res, "%s v=\"%s"); return substr($ar[1], 0, strpos($ar[1], "\"")); } } function getProtocol() { static $protocol; if(!isset($protocol)) $protocol=new Protocol(); return $protocol; } class J/*ava*/ { var $java; function __construct() { if(!func_num_args()) return; $protocol=getProtocol(); $ar = func_get_args(); $protocol->createBegin(array_shift($ar)); foreach($ar as $arg) { $protocol->writeVal($arg); } $protocol->createEnd(); $ar = sscanf($protocol->getResult(), "%d"); $this->java=$ar[0]; } function __call($method, $args) { $protocol=getProtocol(); $protocol->invokeBegin($this->java, $method); foreach($args as $arg) { $protocol->writeVal($arg); } $protocol->invokeEnd(); $proxy = new J(); $ar = sscanf($protocol->getResult(), "%d"); $proxy->java=$ar[0]; return $proxy; } function toString() { $protocol=getProtocol(); $protocol->invokeBegin("", "castToString"); $protocol->writeVal($this); $protocol->invokeEnd(); return $protocol->getResult(); } } // Test $i1 = new J("java.math.BigInteger", "1", 2); $i2 = new J("java.math.BigInteger", "11", 2); $i3 = $i1->add($i2); echo $i3->toString() . "\n"; ?> To run the above example start the JavaBridge.jar, for example by double-clicking on it or with: java -jar JavaBridge.jar INET:0 4 JavaBridge.log Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-08-22 16:39:36
|
Hi, I'm installing the php-java bridge on a windows2003 server with apache. I got it running on a dev machine already, and after some initial compatibility problems down to my version of php/apache it seems to be working fine. I have a few simple lines in php.ini and JDK 1.4 and I'm up and running with a java process starting at the same time as apache. extension=php_java.dll ... java.log_level=3 java.classpath="c:/php/ext/JavaBridge.jar;c:/htdocs/mysite/myjar.jar" I got it running on php 5.0.4 and apache 2.0.55 I'd like to use the "latest and greatest" PHP/Apache if at all possible. So my question is - how do I decide what are the latest and greatest versions of php/apache that will work? thanks, andyh |
From: <php...@li...> - 2006-08-11 13:11:39
|
Hi Jost, Well thanks a lot for your explanation, and sorry for my misunderstanding of the documentation (in fact if $ex->getCause() was returning the error message, it was because it automatically invoked the toString() java method of the Exception object - I just didn't realize I had to test the $ex->getCause()'s type and not the type of $ex itself). Many thanks! Etienne > Hi Etienne, > > > invoked function's returned exception's type is > > lost. > > $ex->getCause() returns the wrapped exception: > > function getMyException() { > static $MyException = new JavaClass("MyException"); > return $MyException; > } > > try { > ... > } catch (JavaException $ex) { > > if(java_instanceof($ex->getCause(),getMyException())) > { > ... > } > } > > > I'll fix the documentation. > > > Regards, > Jost Boekemeier |
From: <php...@li...> - 2006-08-10 15:54:39
|
Hi Etienne, > invoked function's returned exception's type is > lost. $ex->getCause() returns the wrapped exception: function getMyException() { static $MyException = new JavaClass("MyException"); return $MyException; } try { ... } catch (JavaException $ex) { if(java_instanceof($ex->getCause(),getMyException())) { ... } } I'll fix the documentation. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-08-10 15:46:17
|
Hi Paul, > implementation with ehcache. thanks for the pointer. Especially its multicast features sound interesting. > Now I need to upgrade the bridge to 3.1.7 and > install it in a J2EE > server (still running the bridge with a stand-alone > JVM) I hope this isn't a big problem. But it was difficult to maintain two separate implementations, the standalone component and the J2EE component. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-08-10 15:41:34
|
Hi Paul, > Will the requirements on PHP versions change? the PHP code will work with all PHP versions > 4.3.1 and the Java based PHP implementation which is currently beeing developed. However, PHP4 may need a native extension module for full backward compatibility. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-08-10 10:01:48
|
Hello guys, I have an EJB container, which is JBoss, and I access the EJB's via this wonderful PHP / Java Bridge OS Project. In my Java code I use exceptions all the time to detect errors, but most importantly error types, and hence I have customized exceptions (as everyone has) to detect what error happened. They also contain text messages but I do not want to rely on this, since they can change anytime. Well the problem is that in ususal Java code I would check for errors this way : ---------------------------------------------------- try { loginUser(login, password); } catch (BadLoginException ble) { // ... } catch (BadPasswordException bpe) { // ... } ---------------------------------------------------- And so I would determine what failed and choose what to do on this basis. Apparently the only possible thing via the bridge is to use the JavaException type : ---------------------------------------------------- try { $myremoteBean->loginUser($login, $password); } catch (JavaException $je) { // ... } ---------------------------------------------------- So how can I determine which error appeared, without checking the error message (which is - I think - a bad practice) ? I tried with the "java_instanceof" function but it seems that the returned exception is just a "JavaException" object, and that the invoked function's returned exception's type is lost. Thanks for your help!! Etienne Janot |
From: <php...@li...> - 2006-08-09 19:23:15
|
Hi Jost After some tests I went for a java cache implementation with ehcache. In this way I did not have to write Java, but more importantly it is easier to to cache dynamically generated java objects (like query filters which are different for each user) -- even persistent if I use the disk cache when the JVM stops. Now I need to upgrade the bridge to 3.1.7 and install it in a J2EE server (still running the bridge with a stand-alone JVM) Best regards Paul -- http://walhalla.wordpress.com |
From: <php...@li...> - 2006-08-09 18:52:10
|
Hi Jost On 8/9/06, php...@li... <php...@li...> wrote: > Hi Michael, > > this problem sounds similar to the autoconf problem > that was reported earlier. -- In the next version > (4.0) the java.so and php_java.dll will be removed and > we'll use a pure PHP implementation instead. This > means that you don't have to compile and install a > non-standard PHP extension anymore to call out to Java > or .NET classes. Will the requirements on PHP versions change? I mean, will PHP4 still be supported with a pure PHP implementation in 4.0? Best regards Paul -- http://walhalla.wordpress.com |
From: <php...@li...> - 2006-08-09 17:41:51
|
Hi Michael, this problem sounds similar to the autoconf problem that was reported earlier. -- In the next version (4.0) the java.so and php_java.dll will be removed and we'll use a pure PHP implementation instead. This means that you don't have to compile and install a non-standard PHP extension anymore to call out to Java or .NET classes. As a workaround please recompile the java.so with CFLAGS="-DCFG_JAVA_SOCKET_INET". > could not create > socket: Local:@java-bridge-2c9. Can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the result of the command: strace -s 1024 -ff php test.php 2>error.log at the end of the ticket? Please also attach the config.log there. > BTW, does J2SDK works with PHP > JavaBridge? I see the manual mention J2EE. Technically yes. But I usually recommend to install the JavaBridge.war into a servlet engine or J2EE server. The 3.1.6 download already contains a simple servlet engine implementation which can be started with: java -classpath JavaBridge.jar php.java.bridge.JavaBridgeRunner It currently can't handle session requests. But when it's ready, we'll use a real servlet engine or the JavaBridgeRunner as a fall back and the standalone socket listener will vanish. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-08-08 22:37:07
|
Hi, I installed PHP JAVABridge3.1.6 in a Redhat Enterprise Linux 4 with Apache Http Server 2.2, PHP 5.1.4 and J2SDK1.4.2. When I start test.php from the command line, it shows: Please permanently activate the extension. Loading java extension java.so now ... java.lang.RuntimeException: java.lang.Exception: could not create socket: Local:@java-bridge-2c9. ... Error: The PHP/Java Bridge back-end is not running. But I have started the backend JavaBridge.jar and the output is: JavaBridge version: 3.1.6.1 JavaBridge logFile: JavaBridge default logLevel: 3 JavaBridge socket: INET:9267 JavaBridge thread pool size: 20. It seems the client can't connect to the JavaBridge socket or connect to a wrong socket. Anyone can give me some idea. I am new to this. So any help would be greatly appreciated. BTW, does J2SDK works with PHP JavaBridge? I see the manual mention J2EE. Thanks a lot. Michael Zhou |