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...> - 2007-03-01 20:13:20
|
Hi Sky, > Would you care to elaborate on the sandbox and on > how i could possibly get > the bridge to access the paths i require, btw i have > disabled SEL so i > assume the rules are not active... I'd expect that a chown root:root /usr/lib/php/modules/RunJavaBridge chmod 111 /usr/lib/php/modules/RunJavaBridge setenforce Permissive should run Java as root with all permissions. Or you start Java manually, for example with java -jar JavaBridge.jar SERVLET:8080 or via tomcat for example. And use the pure PHP implementation (require_once("http://localhost:8080/JavaBridge/java/Java.inc") or the following php.ini setting: [java] java.servlet=On java.hosts=127.0.0.1:8080 If the problem persists please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-01 20:06:17
|
Ho Wilfrid, > $cb = $writer->getDirectContent(); > $bf = new Java("com.lowagie.text.pdf.BaseFont"); > $bf->createFont("Helvetica", "Cp1252", false); > $cb->setFontAndSize( $bf , 12); > ... > I got this error: > Fatal error: Uncaught > [o(Exception):"java.lang.Exception: Invoke failed: > [o(PdfContentByte)]->setFontAndSize((BaseFont)c(BaseFont), > (float)o(Float)). > Cause: java.lang.IllegalArgumentException: argument > type mismatch [...] Shouldn't be BaseFont an instance? My guess is that $bf = $bf->createFont(...) should correct this problem. BTW: For backward compatibility the bridge allows sloppy coding: new Java("com.lowagie.text.pdf.BaseFont"); is valid even though the above code should immediately throw an exception. If you set the log level to 3 (which is default), you should see a warning message in the JavaBridge.log file. > It seems '12' is considerated as an Object Float and > not a primitive type > float. It's more likely that the problem is the first argument, not the second. float is autoconverted into a Float, so this shouldn't be the problem. But you're right, the "illegal argument exception" should state which argument is illegal, and why! At the moment we simply pass the exception we've obtained from Java. In the next version, 4.0.2 we should change this: wrap the obtained exception and pass more information to the client. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-03-01 10:33:47
|
Hi Jost. I dont know if you had followed my previous post here http://sourceforge.net/mailarchive/forum.php?thread_id=3D31573703&forum_id= =3D42415, but i assume you would have. Would you care to elaborate on the sandbox and on how i could possibly get the bridge to access the paths i require, btw i have disabled SEL so i assume the rules are not active... Regards, Sky On 2/10/07, php...@li... < php...@li...> wrote: > > > > This leads me to believe that apache doesn't have > > rights to access certain > > paths on my box. > > It runs in a sand box (uid/gid: apache/apache). > > Furthermore, if you use RedHat Linux (or any > compatible Linux version, Fedora, Centos, ...), the > Security Enhanced Linux rules shipped with the > JavaBridge RPM deny all socket, file, ... access > except files tagged with tmp_t. > > > Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > Der fr=FChe Vogel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Ma= il: > http://mail.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 Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-03-01 08:28:35
|
Hi everyone, I'd like to use com.lowagie.text.pdf.PdfContentByte setFontAndSize and showTextAligned functions but I have a problem in passing them a float. Here is my code: ... $cb = $writer->getDirectContent(); $bf = new Java("com.lowagie.text.pdf.BaseFont"); $bf->createFont("Helvetica", "Cp1252", false); $cb->setFontAndSize( $bf , 12); ... I got this error: Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [o(PdfContentByte)]->setFontAndSize((BaseFont)c(BaseFont), (float)o(Float)). Cause: java.lang.IllegalArgumentException: argument type mismatch [...] It seems '12' is considerated as an Object Float and not a primitive type float. I had try different things like making an instance of a Float and call the floatValue() or parseFloat() functions in order to get the float type value but can't make it works. How could I get the real primitive float type value? I use PHP 5.1.1, JRE 1.5.0 Update 11 and iText-1.3.1 jar on Windows XP. Help would be greatly appreciated! Wilfrid |
From: <php...@li...> - 2007-02-28 12:23:59
|
Hi Thomas, > it runs fine when executing it from the shell Well, the kernel call "execv" needs an executable binary. Furthermore, if you use Security Enhanced Linux, the binary *must* be an ELF binary and be tagged appropriately, see the Security Enhanced Linux section from the README. The source distribution creates a default wrapper "RunJavaBridge" from the file server/RunJavaBridge.c: http://php-java-bridge.sourceforge.net/OLD/server/RunJavaBridge.c.in (the above command contains instructions how to set the SEL context for the binary) > : Exec format error in > It looks like it still uses all the old settings as > my script > /root/wrapper.sh is right in the middle of the > entire command. The command looks all right. The only problem is that the kernel cannot execute /root/wrapper.sh. 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...> - 2007-02-28 01:06:59
|
Hi, I have been trying use a shell script as a wrapper. java -Xmx32m -Xms32m -Djava.library.path=/etc/appWeb/extensions -Djava.class.path=/etc/appWeb/extensions/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/etc/appWeb/extensions php.java.bridge.Standalone it runs fine when executing it from the shell, but when I added it to the php.ini property "java.wrapper" and try to start the web server then it doesn't work. The error message that I get is: default:0 main phpModule: PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/jvm LD_LIBRARY_PATH=/etc/appWeb/extensions:/etc/appWeb/extensions:/lib:/usr/lib: /usr/X11R6/lib:usr/lib/perl5/5.8.4 /root/wrapper.sh /usr/java/jvm/bin/java -Djava.library.path=/etc/appWeb/extensions -Djava.class.path=/etc/appWeb/extensions/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/etc/appWeb/extensions php.java.bridge.Standalone LOCAL:@java-bridge-33a 1 : Exec format error in Unknown on line 0 It looks like it still uses all the old settings as my script /root/wrapper.sh is right in the middle of the entire command. What am I doing wrong? Thanks Thomas |
From: <php...@li...> - 2007-02-23 17:33:02
|
For those who have asked for more information on installing the bridge on Mac OSX, here is a quick guide that I have used for my own installations on OSX client and OSX Server version 10.4.x Tiger. We have installed versions from 3.1.6 through 3.2.1. A little background... We use the bridge in a production environment to "bridge" our PHP application with a back-end credit card processing framework that only has libraries written for Windows, Linux, or Java. Since our servers are Xserve's running OSX Server we, of course, chose the Java libraries. Not knowing Java became trivial after discovering Jost's great project! As soon as the shell services are repaired on Sourceforge.net I will start working on a more complete guide on the php/Java bridge project Web site with accompanying FAQ's. Download the Guide here: http://www.spladow.com/install_and_config.rtf I hope this helps. If you have followup questions, please post to the php/Java bridge mailing list. Jon Koerber Project and Site Admin |
From: <php...@li...> - 2007-02-22 12:11:04
|
Hi Kevin, > I am using Apache 2.2, PHP 5.2.1, Tomcat 5.2.20 and > php-java-bridge_4.0.1_j2ee on Windows Vista. we could not reproduce this problem. The bridge runs fine in the above environment. Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and, set the log level to 5 and attach the log at the end of the ticket? Please first check if both, Apache and Tomcat run on the same machine and that the SocketContextServer isn't accidently switched off (-Dphp.java.bridge.no_socket_server). -- If you run Tomcat on a different machine than the web server, remember to start the bridge in promiscuous mode (see the INSTALL document for details). I will change the above error message so that it mentiones that the default SocketContextServer binds itself only to the local interface so that the bridge cannot be accessed remotely. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-21 19:23:28
|
Hi, > I'm unable to install the java bridge 4.0.1 with php > 5.2(.2). What happens if you click on test.sh or test.bat? > I miss the php_java.dll that was included in What is a php_java.dll and why do you need it? > Where is it? No idea what you're talking about. Have you looked at the INSTALL document that's part of the download? > resulting html page reads > that the java extension installed isn't the one from I thought about launching the installation test with -c to ignore whatever people have done to their php.ini. But if we ignore a garbled php.ini, the installation test will complete, but we'll get support requests later when users try run php/java scripts from within their web server. I think it's better to catch problems like these as early as possible. > Where is the extension? Sorry, I really don't understand the problem. You simply double-click on JavaBridge.jar to start a Java VM once and then use Java as follows: require_once("http://localhost:8080/JavaBridge/java/Java.inc"); $s = new Java("java.lang.String", "hello"); echo $s; 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...> - 2007-02-21 13:32:22
|
Take a look in the archives for Clark Freifield's post re installation on Mac OSX. On 20-Feb-07, at 7:20 PM, php...@li... wrote: > Hi to everyone, > I need to use the bridge on a MacOsX system.. > To help myself with the installation i used Mamp application (which > autoconfigures PHP5, Apache and MySql). But now i really don't know > how > to install the bridge: where i have to put the java.so and all the > other > *.so files in order to make the bridge working? > Anyone else had to use it on MacOsX? > > Thanks in advance, > > Jack > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-02-21 13:24:56
|
Hello! I'm unable to install the java bridge 4.0.1 with php 5.2(.2). I miss the php_java.dll that was included in versions prior to 4.0.1. Where is it? When I launch the test.bat, the resulting html page reads that the java extension installed isn't the one from the java bridge. Where is the extension? Without extension no Java functions can be used (class not found). Any hint? Thanks, Michael -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. |
From: <php...@li...> - 2007-02-21 09:56:23
|
Hi, primitive types are wrapped by associated Java classes. Please see our FAQ "How do I create a primitive array?" for details: $Byte = new JavaClass("java.lang.Byte"); $byte = $Byte->TYPE; $Array = new JavaClass("java.lang.reflect.Array"); $byteArray = $Array->newInstance($byte, 255); 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...> - 2007-02-21 08:01:43
|
I'm trying for hours to rewrite this: byte[] bytes = new byte[(int)file.length()]; the $file->length() is not the problem, but the new byte is. Anyone got an idea. And how about statics? What is the way to use them? Thanks in advance Gilbert |
From: <php...@li...> - 2007-02-21 02:02:57
|
Jack, I've installed the bridge on OSX Client and OSX Server several times and it really is pretty easy (I'm no UNIX guru) thanks to the great work Jost has done on this project. I have been working on an installation guide for OSX to publish on the project site, but have been busy with other projects and Sourceforge.net has been having shell problems for a couple weeks now (thus no way to work on the Web site). I'll post a basics guide later tonight or tomorrow, via this email list, to get you started; and then post my full guide online once the Sourceforge.net shell is back up online. Look for a post here soon... Jon Koerber On Feb 20, 2007, at 4:20 PM, php-java-bridge- us...@li... wrote: > Hi to everyone, > I need to use the bridge on a MacOsX system.. > To help myself with the installation i used Mamp application (which > autoconfigures PHP5, Apache and MySql). But now i really don't know > how > to install the bridge: where i have to put the java.so and all the > other > *.so files in order to make the bridge working? > Anyone else had to use it on MacOsX? > > Thanks in advance, > > Jack > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-02-21 00:20:43
|
Hi to everyone, I need to use the bridge on a MacOsX system.. To help myself with the installation i used Mamp application (which autoconfigures PHP5, Apache and MySql). But now i really don't know how to install the bridge: where i have to put the java.so and all the other *.so files in order to make the bridge working? Anyone else had to use it on MacOsX? Thanks in advance, Jack |
From: <php...@li...> - 2007-02-20 23:02:55
|
I'm trying for hours to rewrite this: byte[] bytes = new byte[(int)file.length()]; the $file->length() is not the problem, but the new byte is. Anyone got an idea. And how about statics? What is the way to use them? Thanks in advance -- Gilbert Groenendijk __________________________________________________ |
From: <php...@li...> - 2007-02-20 09:39:18
|
Hi, this error message means that the java front end could not connect to the back end because the SocketContextServer is not usable. This usually happens when running the JavaBridge.war within a J2EE server which does not allow creating local TCP sockets. On Unix the bridge uses named pipes instead, but these are not available on windows. Either change the security policy or use a Unix machine instead. Please see the README for details. If this problem persists please open a problem report, please see http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-19 23:54:53
|
I am trying to use the php-java-bridge. I am currently receiving the error below when trying to access java. [Mon Feb 19 06:55:23 2007] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'java_RuntimeException' with message 'named-pipe communication not implemented in Protocol.php; write to php...@li... if you want to implement it. Please create and copy the "java.so" or "php_java.dll" to your PHP extension directory. Or allow your J2EE server to accept/resolve socket connections on the local interface.' in http://localhost:8080/JavaBridge/java/Protocol.inc:201\nStack trace:\n#0 http://localhost:8080/JavaBridge/java/Protocol.inc(204): java_HttpHandler->parseHeaders()\n#1 http://localhost:8080/JavaBridge/java/Protocol.inc(297): java_HttpHandler->read(8192)\n#2 http://localhost:8080/JavaBridge/java/Client.inc(290): java_Protocol->read(8192)\n#3 http://localhost:8080/JavaBridge/java/NativeParser.inc(79): java_Client->read(8192)\n#4 http://localhost:8080/JavaBridge/java/Parser.inc(61): java_NativeParser->parse()\n#5 http://localhost:8080/JavaBridge/java/Client.inc(210): java_Parser->parse()\n#6 http://localhost:8080/JavaBridge/java/Client.inc(307): java_H in http://localhost:8080/JavaBridge/java/Protocol.inc on line 201 I am using Apache 2.2, PHP 5.2.1, Tomcat 5.2.20 and php-java-bridge_4.0.1_j2ee on Windows Vista. Can anybody provide any advice on how to resolve this? Thaks, Kevin |
From: <php...@li...> - 2007-02-19 21:54:01
|
Ok. Just to follow up on this issue. I discovered that there was actually a leak coming from failure to close a lucene searcher object at the right time, which seemed to be causing the main problem. We have seen only one crash since that was fixed. We got logging working by removing this line: java.log_file="/tmp/bridgelog" and only specifying: java.log_level="4" Apparently, specifying the filename is causing a problem with logging, but just letting it log to the apache error log is working. We are continuing to monitor the situation with the log and waiting to see if we have any more problems. Thanks for your reply, Lee Feistel On Tuesday 13 February 2007 06:25, php...@li... wrote: > Hi, > > it's unlikely that there's a memory leak in the java > back end (assuming you run the back end as a sub > process of Apache or IIS). > > The legacy binaries for PHP called "java.so" and > "php_java.dll" do have some leaks, but they are > harmless because the zend engine takes care of them. > > So we must find the reason why apache stops > responding. > > Can you please open a bug report (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and attach the following information: > > - Ppease set the log level to 4 and run the test again > (log levels >5 enable special test code for the > maintainers and should not be used, please see the > LogLevel documentation from the README for details) > > - if possible please provide some code so that we can > reproduce this problem. > > - if you see an OutOfMemoryError in the javabridge log > file, please create a memory dump, if possible. Please > see the FAQ how to bridge handles Java > OutOfMemoryErrors and how to create a memory dump. > > > Regards, > Jost Boekemeier > > > > > ___________________________________________________________ > 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=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- Lee Feistel Lone Star Internet, Inc. (512) 708-8006 |
From: <php...@li...> - 2007-02-18 09:21:41
|
Hi, we're currently testing PHP/Java Bridge version 4.0.1, which will be released in march or april (the exact release date depends on the state of the cf compile farm). The 4.0.1 JavaBridge.war currently requires an external launcher.exe written by IBM (as part of the PHPIntKitForWindows.zip). Since this external dependency causes problems to certain people (license terms are unclear, etc.), we have decided to include our own launcher.exe. If you have experience developing windows applications in C and you want to contribute code, please let us know. The launcher.exe shall spawn <PHP_FCGI_CHILDREN> fast cgi sub processes ("php-cgi.exe") and re-start each child after PHP_FCGI_MAX_REQUESTS. The code must not use external libraries and should be available under the PHP license, because we want to contribute this code to the PHP folks. 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...> - 2007-02-13 12:25:36
|
Hi, it's unlikely that there's a memory leak in the java back end (assuming you run the back end as a sub process of Apache or IIS). The legacy binaries for PHP called "java.so" and "php_java.dll" do have some leaks, but they are harmless because the zend engine takes care of them. So we must find the reason why apache stops responding. Can you please open a bug report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the following information: - Ppease set the log level to 4 and run the test again (log levels >5 enable special test code for the maintainers and should not be used, please see the LogLevel documentation from the README for details) - if possible please provide some code so that we can reproduce this problem. - if you see an OutOfMemoryError in the javabridge log file, please create a memory dump, if possible. Please see the FAQ how to bridge handles Java OutOfMemoryErrors and how to create a memory dump. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-13 01:09:35
|
Hello, First have been really impressed with PHP/Java Bridge. It is fast and pretty easy to use. I am using version 4.0.1 with PHP 5.0.5, IBMJava2-142, and Lucene 1.4.3. I am suffering from what appears to be a memory leak happening somewhere in the java bridge. The symptoms are that system memory resources gradually drop over several hours until Apache quits responding and has to be restarted. At this point there is usually a single instance of apache that must be kill -9'ed. I am trying to enable logging to see if this sheds any light on the problem by adding: java.log_file="/tmp/bridgelog" java.log_level="6" to the php.ini file. This does result in information being placed in the log but when this setting is turned on I get this in the log: Feb 12 15:26:00 JavaBridge DEBUG: 169c14a7@5c2554a7 Request from client with uid/gid -1/-1 Feb 12 15:26:00 JavaBridge DEBUG: 169c14a7@5c2554a7 --> <C v="org.apache.lucene.search.IndexSearcher" p="I" i="a48a0ec" > Feb 12 15:26:00 JavaBridge DEBUG: 169c14a7@5c2554a7 --> <S v="/home/httpd/port8095/www.utcle.org/www/htdocs/../../../lucene_index" /> Feb 12 15:26:00 JavaBridge DEBUG: 169c14a7@5c2554a7 --> </C> Feb 12 15:26:00 JavaBridge DEBUG: DynamicClassLoader(1545786535).loadClass(org.apache.lucene.search.IndexSearcher) Feb 12 15:26:00 JavaBridge DEBUG: Trying parent Feb 12 15:26:00 JavaBridge ERROR: An exception occured: java.lang.ClassNotFoundException: Could not find org.apache.lucene.search.IndexSearcher in java_require() path. Please check the path and the SEL and File permissions. java.lang.ClassNotFoundException: Could not find org.apache.lucene.search.IndexSearcher in java_require() path. Please check the path and the SEL and File permissions. at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:293) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:260) at php.java.bridge.SimpleJavaBridgeClassLoader.forName(SimpleJavaBridgeClassLoader.java:188) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495) at php.java.bridge.Request.handleRequest(Request.java:353) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.JavaBridge.run(JavaBridge.java:200) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:66) Caused by: java.lang.ClassNotFoundException: Class org.apache.lucene.search.IndexSearcher not found at php.java.bridge.DynamicClassLoader.loadClass(DynamicClassLoader.java:418) at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(DynamicJavaBridgeClassLoader.java:291) ... 8 more Feb 12 15:26:00 JavaBridge DEBUG: 169c14a7@5c2554a7 <-- <E v="1" m="java.lang.Exception: CreateInstance failed: new org.apache.lucene.search.IndexSearcher(o(PhpParserString)). Cause: java.lang.ClassNotFoundException: Could not find org.apache.lucene.search.IndexSearcher in java_require() path. Please check the ... When I rem out the logging lines in php.ini and restart, Lucene works again. I don't understand why apparently my class path is wrong or maybe the ClassLoader is malfunctioning only when logging is enabled. Any suggestions? -- Lee Feistel Lone Star Internet, Inc. (512) 708-8006 |
From: <php...@li...> - 2007-02-11 18:52:34
|
Hi, those who want to run the PHP/Java Bridge on the WebLogic application server need to implement their own getRealPath(). The WebLogic getRealPath() API is broken and always returns null. The following is a getRealPath() emulation which uses the getResource() API on WebLogic: /** * Identical to context2.getRealPath(pathInfoCGI). On BEA * WebLogic, which has a broken getRealPath() implementation, we * use context2.getResource(pathInfoCGI)) instead. * @param context2 The servlet context. * @param pathInfoCGI may be "" or "/" for example. * @return a valid path or null */ public static String getRealPath(ServletContext context2, String pathInfoCGI) { String ret = context2.getRealPath(pathInfoCGI); if(ret!=null) return ret; // The following is the workaround for BEA WebLogic boolean stripSlash=false; if(!pathInfoCGI.endsWith("/")) { stripSlash=true; if("".equals(pathInfoCGI)) pathInfoCGI = "/"; } URL url = null; try { url = context2.getResource(pathInfoCGI); } catch (MalformedURLException e) { Util.printStackTrace(e); return null; } if(!"file".equals(url.getProtocol())) return null; ret = url.getPath(); if(stripSlash&&ret.endsWith("/")) ret = ret.substring(0, ret.length()-1); return ret.replace('/', File.separatorChar); } ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-02-10 18:02:26
|
Jost, This holds promise, thanks for digging it up. md -----Original Message----- From: php...@li... [mailto:php...@li...] On Behalf Of php...@li... Sent: Saturday, February 10, 2007 5:37 AM To: php...@li... Subject: [Php-java-bridge-users] Using taglibs from PHP (Was: Re: Mixing jspand php in the same file?) Hi, those who want to use taglibs from PHP might find the following link useful: http://www.alexander-merz.com/27.html The author uses the abandoned PHP4 tomcat binding, but the examples should work with the PHP/Java Bridge, too. Regards, Jost Boekemeier |
From: <php...@li...> - 2007-02-10 17:31:17
|
As I mentioned in the first email we have taglibs,etc that we'd like to continue using md -----Original Message----- From: php...@li... [mailto:php...@li...] On Behalf Of php...@li... Sent: Saturday, February 10, 2007 4:01 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Mixing jsp and php in the same file? > Is it possible to mix jsp and php on the same page? No. Why do you need it? Regards, Jost Boekemeier ___________________________________________________________ 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=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |