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-07-30 09:08:53
|
Hi Philip, > Just a quick question -- you do recommend using > java_reset() after our PHP script is done calling Java > code, so as to release memory (for use by other This is neither documented nor recommended. It is only used to create a clean environment during the feature tests. java_reset() already displays a warning message. I think we should throw an non-catchable error in the next release if it is used outside of a test environment. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-07-30 09:02:41
|
Hi, > the bridge caches the first istance of Obj that i create without any > particular interface sort of. The cache algorithm applies before the dynamic proxy proxy is resolved; the cache sees a ProcedureProxy, not a DynamicProxy. > , and when i try to create a new istance of Obj > with IVisit interface, the bridge uses the cached version anyhow. Is > it right? Yes. However, I have attached a patch which solves this problem. Thank you very much for reporting this issue! Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-30 08:50:39
|
Just a quick question -- you do recommend using java_reset() after our PHP script is done calling Java code, so as to release memory (for use by other processes)? Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2007-07-30 08:48:47
|
Hi again, Jost! Just so you know, I still haven't tried out your suggestion to save the log and send it to you. Off the top of my head, it might have to do with the fact that there is a third-party application (MediaWiki) taking up memory that slows down PHP-Java bridge code. I'll keep you posted. Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2007-07-29 08:26:27
|
2007/7/28, php...@li... <php...@li...>: > it's the cache problem I've mentioned before. Is that really a problem in practice? > If so, I could prepare a version 3.2.1b, which switches off the cache when one of the arguments > is a proxy for a dynamic proxy. the bridge caches the first istance of Obj that i create without any particular interface, and when i try to create a new istance of Obj with IVisit interface, the bridge uses the cached version anyhow. Is it right? then, if i create the first istance with all the interfaces i need, i should have no caching problem. right? if i'm right, i don't need a new version. maybe, it would be nice to compare the proxy passed as argument and the cached one checking their interfaces too (i suppose the bridge checks the class only) thank you a lot for paying me attention! my best greeetings |
From: <php...@li...> - 2007-07-28 14:04:06
|
Hi, > are you sure that you call the right code? it's the cache problem I've mentioned before. Is that really a problem in practice? If so, I could prepare a version 3.2.1b, which switches off the cache when one of the arguments is a proxy for a dynamic proxy. Regards, Jost Boekemeier __________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-28 12:33:01
|
Hi Andres, [PHP did not display any error messages] > I have just activated the PHP/Java Bridge log in debug mode. I would > appreciate any help you can provide to help me on the troubleshooting. can you please append the log at the end of your ticket? Please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier __________________________________ Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-07-28 12:22:53
|
Hi, > Guys, I'm having serious memory leaking problems and I want to make sure I > have PHP/Java Brigde properly configured and that I'm using it correctly. can you please be more specific? Memory leaks in the back end or in PHP? The old C implementation[1] does have some memory leaks. But this isn't a problem since the Zend memory manager takes care of them. If there are memory leaks in the back end, please see our FAQ how to debug memory leaks in your code. Regards, Jost Boekemeier [1] The C implementation prior to 4.1.8. Since 4.1.8 the C implementation simply compiles the pure PHP implementation into obcode and uses that. __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-28 12:17:36
|
Hi, are you sure that you call the right code? According to your log java_get_closure() is called with only one argument: > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" > m="makeClosure" p="I" > > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <L v="1" p="O" /> > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Since the bridge doesn't have any information about the type, "Object" is assumed. Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-28 12:09:50
|
Hi Jörg, > [delete the] php.ini in the cgi folder. The same behavior. have you restarted tomcat? > Then i upgrade the bridge > from 3.2.1a to 4.2.1. But unfortunately i cant find the > java-x86-windows.dll for copy into the php/ext folder. You don't need a dll. The PHP/Java Bridge is written in pure PHP and pure Java. Please see the README for details. Only PHP 4 needs such a dll, because it implements certain features which were not available in PHP 4 and earlier versions. Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-27 23:46:19
|
2007/7/25, php...@li... <php...@li...>: > [please excuse the delay] no problem! thanks for your attention > your code is a little bit unusual if you can advice me a bettter solution, i will thank you! ^_^ > Can you please set the log level to 5 or above? The bridge should display the weight and why it > has selected the wrong method. .the log is at the end o this mail > Do you > have two java_require() calls in your code? i have only one: <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); java_require("/var/www/prove"); $o = new Obj(); $o->exec(); class Obj { var $a = 'pluto'; function __construct(){ $this->a='paperina';} function exec() { try { $obj = new Java('ObjPassing'); $a = java_Cast($obj->testMe(),'string'); $obj->visit(java_get_closure(new Obj())); $obj->visit2(java_get_closure(new Obj())); $obj->visit(java_get_closure($this)); $obj->visit(java_get_closure(new Obj(),null, new JavaClass("IVisit"))); } catch(JavaException $ex) { $exStr = java_cast($ex, "string"); echo "\nException occured; mixed trace: $exStr\n"; } } public function eccolo() { } } // suppress the warning message from the use of reset. @java_reset(); ?> PS: even if i don't know why, i've noticed that i manage to call the rigth method if the exec method of my class is only: function exec() { try { $obj = new Java('ObjPassing'); $obj->visit(java_get_closure(new Obj(),null, new JavaClass("IVisit"))); } catch(JavaException $ex) { $exStr = java_cast($ex, "string"); echo "\nException occured; mixed trace: $exStr\n"; } } =============== VERBOSE LOG ======================== Jul 28 01:41:49 JavaBridge DEBUG: Starting HTTP server thread from thread pool Jul 28 01:41:50 JavaBridge DEBUG: Socket connection accepted Jul 28 01:41:50 JavaBridge DEBUG: Starting HTTP server thread from thread pool Jul 28 01:41:50 JavaBridge DEBUG: end: Thread[JavaBridgeHttpServerThreadPool#1,5,JavaBridgeHttpServerThreadPool#1] Jul 28 01:41:50 JavaBridge DEBUG: new context: 1@, # of contexts: 1 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 --> <I v="0" m="updateJarLibraryPath" p="I" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 --> <S v="/var/www/prove" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 --> <S v="./" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].updateJarLibraryPath([Object 19456522 - Class: java.lang.String:ID17829242:LOADER-ID0],[Object 15006066 - Class: java.lang.String:ID17829242:LOADER-ID0]); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object null] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 <-- <N /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 re-directing to port# Socket:9267 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@1113708 waiting for context: 1@ Jul 28 01:41:50 JavaBridge DEBUG: end: Thread[JavaBridgeHttpServerThreadPool#2,5,JavaBridgeHttpServerThreadPool#2] Jul 28 01:41:50 JavaBridge DEBUG: starting a new ContextRunner php.java.bridge.http.ContextRunner@b4d3d5 Jul 28 01:41:50 JavaBridge DEBUG: Added LOADER-ID29315749 OrigPath: ;/var/www/prove Translated: file:/var/www/prove/ Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <C v="ObjPassing" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </C> Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: ObjPassing from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.Object from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 8843841 - Class: ObjPassing:ID25872184:LOADER-ID29315749].ObjPassing(); Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="1" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="1" m="testMe" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: IVisit from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.String from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 8843841 - Class: ObjPassing:ID25872184:LOADER-ID29315749].testMe(); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object 11546234 - Class: java.lang.String:ID17829242:LOADER-ID0] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="2" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" m="castToString" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="2" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].castToString([Object 11546234 - Class: java.lang.String:ID17829242:LOADER-ID0]); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object 11546234 - Class: java.lang.String:ID17829242:LOADER-ID0] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <S v="ZnVuemlvbm8= "/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="2" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" m="makeClosure" p="I" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <L v="1" p="O" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].makeClosure([Object 27432475 - Class: java.lang.Long:ID19727353:LOADER-ID0]); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object 6290200 - Class: php.java.bridge.PhpProcedureProxy:ID22936951:LOADER-ID11126876] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="3" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="1" m="visit" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="3" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 Selected: public void ObjPassing.visit(java.lang.Object) 0 Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 8843841 - Class: ObjPassing:ID25872184:LOADER-ID29315749].visit([Object 1026511 - Class: $Proxy0:ID24670264:LOADER-ID1088076]); Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.System from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.io.PrintStream from: LOADER-ID29315749 metodo visit, param obj Jul 28 01:41:50 JavaBridge DEBUG: Result [Object null] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <N /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="3" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" m="makeClosure" p="I" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <L v="2" p="O" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].makeClosure([Object 5592862 - Class: java.lang.Long:ID19727353:LOADER-ID0]); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object 13271847 - Class: php.java.bridge.PhpProcedureProxy:ID22936951:LOADER-ID11126876] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="4" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="1" m="visit2" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="4" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 8843841 - Class: ObjPassing:ID25872184:LOADER-ID29315749].visit2([Object 23631794 - Class: $Proxy0:ID24670264:LOADER-ID1088076]); metodo visit2 Jul 28 01:41:50 JavaBridge DEBUG: Result [Object null] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <N /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="4" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" m="makeClosure" p="I" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <L v="3" p="O" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].makeClosure([Object 29321072 - Class: java.lang.Long:ID19727353:LOADER-ID0]); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object 18881061 - Class: php.java.bridge.PhpProcedureProxy:ID22936951:LOADER-ID11126876] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="5" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="1" m="visit" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="5" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 8843841 - Class: ObjPassing:ID25872184:LOADER-ID29315749].visit([Object 9737354 - Class: $Proxy0:ID24670264:LOADER-ID1088076]); metodo visit, param obj Jul 28 01:41:50 JavaBridge DEBUG: Result [Object null] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <N /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="5" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <C v="IVisit" p="C" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </C> Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: IVisit from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="6" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" m="makeClosure" p="I" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <L v="4" p="O" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="6" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 weight long class php.java.bridge.PhpExactNumber: 0 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 weight interface java.util.Map null: 0 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 weight class [Ljava.lang.Class; interface IVisit: 9999 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 best: public java.lang.Object php.java.bridge.JavaBridge.makeClosure(long,java.util.Map,java.lang.Class[]) 9999 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 weight long class php.java.bridge.PhpExactNumber: 0 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 weight interface java.util.Map null: 0 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 weight class java.lang.Class interface IVisit: 0 Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 Selected: public java.lang.Object php.java.bridge.JavaBridge.makeClosure(long,java.util.Map,java.lang.Class) 0 Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].makeClosure([Object 24087760 - Class: java.lang.Long:ID19727353:LOADER-ID0],[Object null],[Object 8761216 - Class: java.lang.Class:ID10748354:LOADER-ID0]); Jul 28 01:41:50 JavaBridge DEBUG: Result [Object 12915541 - Class: php.java.bridge.PhpProcedureProxy:ID22936951:LOADER-ID11126876] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <O v="7" p="O"/> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="6" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="1" m="visit" p="I" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <O v="7" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.reflect.Proxy from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.Throwable from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.RuntimeException from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.Error from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.reflect.UndeclaredThrowableException from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.ClassNotFoundException from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.NoSuchMethodException from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.NoSuchMethodError from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.NoClassDefFoundError from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.reflect.InvocationHandler from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: trying to load class: java.lang.Class from: LOADER-ID29315749 Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 8843841 - Class: ObjPassing:ID25872184:LOADER-ID29315749].visit([Object 1333195 - Class: $Proxy1:ID23063136:LOADER-ID29315749]); metodo visit, param obj Jul 28 01:41:50 JavaBridge DEBUG: Result [Object null] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <N /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="7" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <U v="1" /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <I v="0" m="reset" p="I" > Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> </I> Jul 28 01:41:50 JavaBridge DEBUG: Invoking [Object 3341135 - Class: php.java.bridge.JavaBridge:ID783148:LOADER-ID11126876].reset(); Jul 28 01:41:50 JavaBridge WARNING: 32fb4f@10b9d04 Your PHP script has called the privileged procedure "reset()", which resets the backend to its initial state. Therefore all session variables and all caches are now gone. Jul 28 01:41:50 JavaBridge DEBUG: Result [Object null] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <N /> Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 --> <F p="A" /> Jul 28 01:41:50 JavaBridge DEBUG: end: Thread[JavaBridgeContextRunner#1,5,JavaBridgeContextRunner#1] Jul 28 01:41:50 JavaBridge DEBUG: 32fb4f@10b9d04 <-- <F p="A"/> Jul 28 01:41:50 JavaBridge DEBUG: context finished: 1@ Jul 28 01:41:50 JavaBridge DEBUG: removed context: Context# 1@, isInitialized: false, # of contexts: 0 Jul 28 01:41:50 JavaBridge DEBUG: end: Thread[JavaBridgeContextRunner#1,5,JavaBridgeContextRunner#1] |
From: <php...@li...> - 2007-07-27 20:09:22
|
BTW: I'm using the C implementation compiled on Solaris, running Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8d PHP/5.2.1 Server. If I wanted to use the Pure PHP Implementation I would need to install Tomcat, am I right? Regards, Andr=E9s Gattinoni On 7/27/07, Andr=E9s Gattinoni <and...@gm...> wrote: > > Guys, I'm having serious memory leaking problems and I want to make sure = I > have PHP/Java Brigde properly configured and that I'm using it correctly. > > I have just activated the PHP/Java Bridge log in debug mode. I would > appreciate any help you can provide to help me on the troubleshooting. > > If anyone can provide an MSN Messenger, YIM or GTalk contact so that we > can work live would be a great help. > > Thanks, > > Best regards, > > Andr=E9s Gattinoni > > On 7/25/07, php...@li... <php-java-bridge-= us...@li... > > wrote: > > > > Hi, > > > > PHP should display a clear error message. If it doesn't there's either = a > > bug in the > > bridge or in PHP. Which PHP/Java Bridge version do you use? I old C > > implementation or > > the pure PHP implementation? > > > > > > Regards, > > Jost Boekemeier > > > > > > > > __________________________________ Wissenswertes f=FCr Bastler u= nd > > Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever > > > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > |
From: <php...@li...> - 2007-07-27 19:57:35
|
Guys, I'm having serious memory leaking problems and I want to make sure I have PHP/Java Brigde properly configured and that I'm using it correctly. I have just activated the PHP/Java Bridge log in debug mode. I would appreciate any help you can provide to help me on the troubleshooting. If anyone can provide an MSN Messenger, YIM or GTalk contact so that we can work live would be a great help. Thanks, Best regards, Andr=E9s Gattinoni On 7/25/07, php...@li... < php...@li...> wrote: > > Hi, > > PHP should display a clear error message. If it doesn't there's either a > bug in the > bridge or in PHP. Which PHP/Java Bridge version do you use? I old C > implementation or > the pure PHP implementation? > > > Regards, > Jost Boekemeier > > > > __________________________________ Wissenswertes f=FCr Bastler und > Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-07-27 17:20:01
|
Hi Jost, thanks for all your answers. I follow your last answer and i delete the php.ini in the cgi folder. The same behavior. Then i upgrade the bridge from 3.2.1a to 4.2.1. But unfortunately i cant find the java-x86-windows.dll for copy into the php/ext folder. Then i take the php-4-java-x86-windows.dll and renamed it to php_java.dll. This is not working. I am afraid it is incorrect what i done. ok. >then you'll need to use the JSR223 interface to call your PHP scripts running in the web server. >This will not necessarily slower than a PHP FastCGI server attached to the web context, but >certainly much more inconvenient as it requires an external web server and >that the web server is configured to run PHP. > > > i dont know it is the best way. I see the php-webapp running in my apache. i see also a call into java. I thought, wow it is great. I'm afraid i need now help from professionals. I dont know it is ok i ask in this forum - Can you help me as professional-consultant to solve the problem? regards Jörg |
From: <php...@li...> - 2007-07-27 16:14:14
|
Hi Jörg, > unfortunately runs the php-app not in the tomcat then you'll need to use the JSR223 interface to call your PHP scripts running in the web server. This will not necessarily slower than a PHP FastCGI server attached to the web context, but certainly much more inconvenient as it requires an external web server and that the web server is configured to run PHP. Regards, Jost Boekemeier __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-27 16:05:02
|
Hi Filip, > - 0 to 2 seconds > a) For the first time - 12 to 18 seconds > b) Succeeding times - 1 to 4 seconds > (not 5 seconds as I reported to you last time) which statements are so slow? Is it possible to add echo java("java.lang.System")->currentTimeMillis(); echo "<br>\n"; at the beginning and the end of the script? Regards, Jost Boekemeier __________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-27 16:00:30
|
Hi Jörg, > 5.2.3 in C:\Programs\PHP\php. If i run php-info i see that > C:\Programs\PHP\php.ini is used, but the version is 5.1.3-dev I think > the version they be used is located in the cgi folder!? PHP > 5.2 now prefers the php.ini from the current ("cgi") folder over the system php.ini. Please remove this file from the cgi folder. Version 4.2.1 and above change the current working directory when the system php executable is used to avoid this problem. Regards, Jost Boekemeier __________________________________ Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-27 14:36:36
|
Hi Jost, one more info for the behavior. >If i configure as PHP5, PHP/Java Bridge & Tomcat on XP PRO + SP and >examples (http://www.dsl.uow.edu.au/~sk33/php5jsp.htm) >the bridge isnt running. In this case, i wondering the the php version >is 5.1.3-dev. why used this install not the installed version? > > > The php version they used issnt the same as i installed. I installed 5.2.3 in C:\Programs\PHP\php. If i run php-info i see that C:\Programs\PHP\php.ini is used, but the version is 5.1.3-dev I think the version they be used is located in the cgi folder!? But some librarys can`t loaded: may logfile: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Programs\PHP\ext\php_imagick.dll' - Die angegebene Prozedur wurde nicht gefunden. This dll is present and the folder is correct. (It works without the bridge) What is the reason? best regards Jörg |
From: <php...@li...> - 2007-07-27 11:50:31
|
Hi Jost! I got your message about sending you the debug log. I was kind of tied up today (and maybe tomorrow). Hopefully, I can send you the log by Monday at the latest. Btw, I forgot to tell you, I'm using an external application (MediaWiki). This calls a PHP script that calls Java code. Here is a rough time profile: 1) MediaWiki loads a new article (no PHP script) - 0 to 2 seconds 2) MediaWiki loads article that contains PHP script that calls Java code using PHP-Java Bridge a) For the first time - 12 to 18 seconds b) Succeeding times - 1 to 4 seconds (not 5 seconds as I reported to you last time) Meantime, could you point me out to websites that explain how Apache and PHP work together, and also the Java VM, so I can better understanding of PHP-Java Bridge? Thanks! Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2007-07-26 18:19:51
|
Hi Jost, thank a lot for your feedback. >I assumed that you wanted to connect your framework (typo3) with another, >java-based framework running in a different web context, but within the same >tomcat container. > > yes, >1) So you have typo3 running in the Apache front-end connected to an associated back-end >running in tomcat. > > yes >2) A second, unspecified application is running in tomcat, associated with the Apache >front-end via mod_jk. > > > yes >The second application should parse the request parameters and call the first application which >should generate the response. > >Isn't it possible to direct all requests to the second app and then use >requestDispatcher.forward(...) to let typo 3 generate the response? > >The call graph would be: > > apache --mod_jk-> tomcat app#2 --forward-> php/java bridge -> response > > > this is a great idea. i think this could be the solution. The prerequisite is that the php-webapp is correct running via the bridge in the tomcat. unfortunately runs the php-app not in the tomcat. I reduced my system to the absolutly mimimum. I installed php version 5.2.3. If i configure the system as you decribe in PHP5, PHP/Java Bridge & Apache on XP PRO + SP2 and examples (http://www.dsl.uow.edu.au/~sk33/php5java.htm) the Bridge is running and if i call phpinfo then i see the correct version 5.2.3 If i configure as PHP5, PHP/Java Bridge & Tomcat on XP PRO + SP and examples (http://www.dsl.uow.edu.au/~sk33/php5jsp.htm) the bridge isnt running. In this case, i wondering the the php version is 5.1.3-dev. why used this install not the installed version? A question to you, it is posible to get you as consultand to solve this case in our project? best regards Jörg >Regards, >Jost Boekemeier > > > > dddd > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. >Still grepping through log files to find problems? Stop. >Now Search log events and configuration files using AJAX and a browser. >Download your FREE copy of Splunk now >> http://get.splunk.com/ >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > |
From: <php...@li...> - 2007-07-26 10:33:59
|
Hi Jörg, first of all thank you very much for your feedback. > i dont know exacly what you mean with another web application. I assumed that you wanted to connect your framework (typo3) with another, java-based framework running in a different web context, but within the same tomcat container. > I have a > Apache / Tomcat (mod_jk). First webapp is a pure php-system (typo3 cms). > The requests is not forwarding via mod_jk to the tomcat. In this webapp > i install the bridge (WebInf Folder and java folder from the > JavaBridge.war). The second app is located in the tomcat. All requests > (/jsp) goes via mod_jk to the context in the tomcat. The second app > implements a HttpServlet. Every request from the first app (typo3 > cms) should be also call the doGet Method in the second Application. > This method retrieve the parameters and use it. But the response is > generated by the first app, the cms system. 1) So you have typo3 running in the Apache front-end connected to an associated back-end running in tomcat. 2) A second, unspecified application is running in tomcat, associated with the Apache front-end via mod_jk. The second application should parse the request parameters and call the first application which should generate the response. Isn't it possible to direct all requests to the second app and then use requestDispatcher.forward(...) to let typo 3 generate the response? The call graph would be: apache --mod_jk-> tomcat app#2 --forward-> php/java bridge -> response Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-26 09:28:21
|
Hi Philip, > I don't use CGI. Does that automatically mean my Apache can maintain a pool of instances? yes. Some other component must cause the delay. Do you load the Java libraries from a shared network folder so that the dynamic classloader doesn't cache the libraries? Can you please set the log level to 5, open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and append the log at the end of the ticket? We'll look at this issue asap. Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-26 09:23:29
|
Hi Jost, >do you want to call a servlet from another web application or a different container? > > i dont know exacly what you mean with another web application. I have a Apache / Tomcat (mod_jk). First webapp is a pure php-system (typo3 cms). The requests is not forwarding via mod_jk to the tomcat. In this webapp i install the bridge (WebInf Folder and java folder from the JavaBridge.war). The second app is located in the tomcat. All requests (/jsp) goes via mod_jk to the context in the tomcat. The second app implements a HttpServlet. Every request from the first app (typo3 cms) should be also call the doGet Method in the second Application. This method retrieve the parameters and use it. But the response is generated by the first app, the cms system. regards Jörg >The former is possible by using the RequestDispatcher, please see >http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatcher.html > > >Regards, >Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. >Still grepping through log files to find problems? Stop. >Now Search log events and configuration files using AJAX and a browser. >Download your FREE copy of Splunk now >> http://get.splunk.com/ >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > |
From: <php...@li...> - 2007-07-26 09:18:46
|
Hi Jost! Sorry, I forgot to give you information about my environment: 32-bit Intel Machine Windows XP + Service Pack 2 WAMP Version 1.6.5 which includes: * Apache 2.0.59 * PHP 5.1.6 (Using Apache 2.0 Handler as Server API) JDK 1.5.0.10 PHP-Java Bridge 3.2.1 J2EE > I assume you mean the DynamicClassLoader. (DynamicLoad may also mean > that you start the bridge and the JVM as a sub component for each incoming > request). Yes, I meant the DynamicClassLoader. > Do you start Java as a sub component of apache or IIS or as a separate > component, for example via the Tomcat servlet engine? I installed PHP-Java Bridge following instructions here: TITLE: PHP5, PHP/Java Bridge & Apache on XP PRO + SP2 and examples URL: http://www.dsl.uow.edu.au/~sk33/php5java.htm In that setup, I suppose I start Java as a sub component of Apache (?). >> 3) The system loads the Java Virtual Machine (JVM). > Only if the JVM is running as a sub component of Apache ... AND if Apache ... > cannot maintain a pool of PHP instances, which is usually the case with CGI. > (emphasis mine -- Filip) You mention two conditions: 1) the JVM is running as a sub component of Apache The answer appears to be YES. 2) Apache cannot maintain a pool of PHP instances, which is usually the case with CGI I don't use CGI. Does that automatically mean my Apache can maintain a pool of instances? If that is the case (i.e. the second condition is not met), then the system SHOULD NOT be loading the JVM every time a user requests for a PHP script. >> 4) The system loads all Java libraries needed by the PHP script. > Only if the JVM is running as a sub component OR Apache/IIS and PHP is > running in CGI mode. (emphasis mine -- Filip) Only if the JVM is running as a sub component --- TRUE Apache/IIS and PHP is running in CGI mode --- FALSE TRUE or FALSE = TRUE, the system does load all Java libraries needed (e.g. log4j, dom4j, etc.) per request unless they're already in the cache (?) >> What happens exactly with "static loading"? Is this sequence of events accurate? >> >> 0) User starts up the welcome page of a web application. >> The system loads all Java base classes (libraries) AND >> the Java Virtual Machine (JVM). > Well, the JVM is usually started as a separate component. Or in the MINIT > method invoked during the startup of Apache or IIS. This means that one VM > is usually attached to the web server. So do you think this is the solution to my problem (slow loading per request, esp. the first)? > The only exception are CGI or console scripts. By 'console scripts', do you mean command line scripting (that doesn't use a web server)? Thanks again! Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2007-07-26 07:31:02
|
Hi, > installed the Bridge on my Windows machine. I wrote PHP script that calls Java code using the > DYNAMIC LOAD method. I assume you mean the DynamicClassLoader. (DynamicLoad may also mean that you start the bridge and the JVM as a sub component for each incoming request). > It works but the web page that contains the PHP script loads very slowly > (15-20 seconds) the first time, but a bit faster the succeeding times (5 seconds). 5 seconds is too slow. This may mean that you are starting a new JVM for each invocation. Do you start Java as a sub component of apache or IIS or as a separate component, for example via the Tomcat servlet engine? > What the Java code does is supposedly simple, it reads a short string value from a relational > database, and passes it to PHP script to display. Oh, but the Java code requires a lot of > libraries like log4j, dom4j, asm, xom, etc. (more than 20 of them). Does't matter, the DynamicClassLoader caches them. > What happens exactly with "dynamic loading"? Is the sequence of events below accurate? [depends on what you mean with "dynamic loading". > 1) User requests for a web page that contains a PHP script that calls Java code. Apache/IIS keeps a pool of PHP instances. When the client browser requests a PHP page, the web server activates the PHP instance and passes it the script. The PHP/Java Bridge creates an XML document from the script and forwards it to the Java VM (usually started via a local Servlet Engine). > 2) The system loads all Java base classes (libraries). When your script contains a java_require(...) call, the DynamicClassLoader resolves and loads the Java libraries and caches them. > 3) The system loads the Java Virtual Machine (JVM). Only if the JVM is running as a sub component of Apache or IIS and if Apache or IIS cannot maintain a pool of PHP instances, which is usually the case with CGI. > 4) The system loads all Java libraries needed by the PHP script. Only if the JVM is running as a sub component or Apache/IIS and PHP is running in CGI mode. > What happens exactly with "static loading"? Is this sequence of events accurate? > > 0) User starts up the welcome page of a web application. > The system loads all Java base classes (libraries) AND > the Java Virtual Machine (JVM). Well, the JVM is usually started as a separate component. Or in the MINIT method invoked during the startup of Apache or IIS. This means that one VM is usually attached to the web server. The only exception are CGI or console scripts. If you use the C implementation, it will start a new JVM for each invocation. If you use the PHP implementation, it will throw an error if no persistent JVM is running on the given port#. Regards, Jost Boekemeier dddd |