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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
|
2
(2) |
3
|
4
|
5
|
|
6
(2) |
7
(3) |
8
(4) |
9
|
10
|
11
(2) |
12
|
|
13
|
14
(2) |
15
(7) |
16
|
17
(3) |
18
(1) |
19
|
|
20
|
21
|
22
|
23
(2) |
24
(7) |
25
(1) |
26
(2) |
|
27
(3) |
28
(1) |
29
|
30
(2) |
|
|
|
|
From: <php...@li...> - 2008-04-30 17:12:24
|
Hi, please see the java_context (); description here: http://php-java-bridge.sourceforge.net/doc/extension_mappings.php#java_context The J2EE JavaBridge.war download contains an example which shows how to access the J2EE application and session variables. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
|
From: <php...@li...> - 2008-04-30 12:55:08
|
Hi,
I'm developing PHP application that uses Java in the background connected through PHP/Java Bridge. I have already used java_session variable to transfer java instances between different pages, but what I need is to provide different users to access java instances through the different pages, i.e. application variables.
Is it possible to provide it with PHP/Java bridge?
Zoran
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
|
|
From: <php...@li...> - 2008-04-28 08:01:29
|
Hi Antonio,
> 100% I am using JavaBridge 5.2.0. Never got the old bridge working
> with PHP 5.2.5 on Win32.
> but not when I do:
> $javaObject->javaMethod();
can you please set the client debug flag and run the script again? Please add the following to the
top of your script:
define ("JAVA_DEBUG", 1);
require_once ("java/Java.inc");
This might give the PHP developers additional information:
If you have access to the console, you might also run the script using the PHP cli component as
follows:
strace -ff -s 1024 php yourScriptCrashingPhp.php 2>error.log
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-04-27 20:02:15
|
Hi Jost, > at java.net.SocketInputStream.read(Unknown Source) > at php.java.bridge.Parser.read(Parser.java:86) > at php.java.bridge.Parser.parse(Parser.java:163) > at php.java.bridge.Request.handleRequest(Request.java:377) > at php.java.bridge.Request.handleRequests(Request.java:485) > at php.java.bridge.http.ContextRunner.run(ContextRunner.java:140) > at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) > > the above thread dump is missing the trace from Java.inc. Are you sure that you use the PHP/Java > Bridge? -- Or do you still use the java.so developed for PHP4? 100% I am using JavaBridge 5.2.0. Never got the old bridge working with PHP 5.2.5 on Win32. The dump was from the command screen, when I start the JavaBridge using: java -Xmx512m -Dphp.java.bridge.default_log_level=1 -Dphp.java.bridge.base=C:\JavaBridge\ -Djava.ext.dirs=C:\ext -jar C:\JavaBridge\JavaBridge.jar SERVLET_LOCAL:8080 There is no screen output to the browser because the http request dies. > Can you please remove any "[java]" entry from your php.ini file(s) and try again? There are no java entries in my php.ini. What is very strange is that it works fine when I do $dummy = $javaObject->javaMethod(); but not when I do: $javaObject->javaMethod(); I am suspecting it is a PHP bug. Cheers, Antonio > > > > > Regards, > Jost Boekemeier > > > > > > > > > __________________________________________________________ > Gesendet von Yahoo! Mail. > Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2008-04-27 00:09:07
|
Hello, I'm running PHP 5.2.5, php-java-bridge, and Jasperreports 2.0.5,
but with Win32. Your example looks fine, maybe a problem with your JRE.
Benjamin.
php...@li... a écrit :
> Hi everyone. I'm running the following code:
>
> compileReport("/alfweb/demo.jrxml");
> if (is_null (java_values ($jasperReport))) {echo "jasperReport is NULL\n";}
>
> $jasperPrintClass = new JavaClass("net.sf.jasperreports.engine.JasperFillManager");
> if (is_null (java_values ($jasperPrintClass))) {echo "jasperPrintClass is NULL\n";}
>
> $hMap = new Java("java.util.HashMap");
> if (is_null (java_values ($hMap))) {echo "hMap is NULL\n";}
>
> $dataSource = new Java("net.sf.jasperreports.engine.JREmptyDataSource");
> if (is_null (java_values ($dataSource))) {echo "dataSource is NULL\n";}
>
> $jasperPrint = $jasperPrintClass->fillReport($jasperReport, $hMap, $dataSource);
>
> $JasperExportManagerClass = new JavaClass("net.sf.jasperreports.engine.JasperExportManager");
> $JasperExportManagerClass->exportReportToPdfFile($jasperPrint, "/alfweb/simple_report_from_php.pdf");
>
> echo "End of phpjasper.php";
>
> } catch (JavaException $ex) {
> echo "An exception occured: "; echo $ex; echo "\n";
> }
>
> ?>
>
> >From a command prompt I run: php5 phpjasper.php
>
> And I get:
>
> Start of phpjasper.php
> An exception occured: [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:JRDataSource)[o:JREmptyDataSource]). Cause: java.lang.NullPointerException VM: 1.5.0@http://gcc.gnu.org/java/" at:
> #-26 java.awt.Font.getLineMetrics(Font.java:1024)
> #-25 java.awt.font.TextLayout.(TextLayout.java:195)
> #-24 java.awt.font.TextLayout.(TextLayout.java:257)
> #0 /usr/share/php5/java/Java.inc(265): java_ThrowExceptionProxyFactory->getProxy(6, 'net.sf.jasperre...', true)
> #1 /usr/share/php5/java/Java.inc(417): java_Arg->getResult(true)
> #2 /usr/share/php5/java/Java.inc(423): java_Client->getWrappedResult(true)
> #3 /usr/share/php5/java/Java.inc(627): java_Client->getResult()
> #4 /usr/share/php5/java/Java.inc(1753): java_Client->invokeMethod(3, 'fillReport', Array)
> #5 /usr/share/php5/java/Java.inc(1866): java_JavaProxy->__call('fillReport', Array)
> #6 /usr/share/php5/java/Java.inc(2041): java_AbstractJava->__call('fillReport', Array)
> #7 [internal function]: Java->__call('fillReport', Array)
> #8 /alfweb/phpjasper.php(28): JavaClass->fillReport(Object(java_InternalJava), Object(Java), Object(Java))
> #9 {main}]
>
> I'm running PHP 5.2.5, php-java-bridge 5.2.1, and Jasperreports 2.0.5
>
> I'm new to all of this :( and any help would be much appreciated.
>
> Tony
> _________________________________________________________________
> Find the job of your dreams before someone else does
> http://mycareer.com.au/?s_cid=596064
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2008-04-27 00:07:37
|
Hi everyone. I'm running the following code:
<?php require_once("java/Java.inc");
try { @java_reset(); echo "Start of phpjasper.php\n";
$jarLocn = '/usr/share/java/jasperreports-2.0.5.jar;' . '/usr/share/java/commons-digester-1.7.jar;' . '/usr/share/java/commons-collections-2.1.jar;' . '/usr/share/java/commons-logging-1.1.1.jar;' . '/usr/share/java/commons-logging-1.0.2.jar;' . '/usr/share/java/commons-logging-api-1.0.2.jar;' . '/usr/share/java/commons-beanutils-1.7.jar;' . '/usr/share/java/itext-1.3.1.jar';
java_require($jarLocn); $jasperReportClass = new JavaClass("net.sf.jasperreports.engine.JasperCompileManager"); $jasperReport = $jasperReportClass->compileReport("/alfweb/demo.jrxml"); if (is_null (java_values ($jasperReport))) {echo "jasperReport is NULL\n";}
$jasperPrintClass = new JavaClass("net.sf.jasperreports.engine.JasperFillManager"); if (is_null (java_values ($jasperPrintClass))) {echo "jasperPrintClass is NULL\n";}
$hMap = new Java("java.util.HashMap"); if (is_null (java_values ($hMap))) {echo "hMap is NULL\n";}
$dataSource = new Java("net.sf.jasperreports.engine.JREmptyDataSource"); if (is_null (java_values ($dataSource))) {echo "dataSource is NULL\n";}
$jasperPrint = $jasperPrintClass->fillReport($jasperReport, $hMap, $dataSource);
$JasperExportManagerClass = new JavaClass("net.sf.jasperreports.engine.JasperExportManager"); $JasperExportManagerClass->exportReportToPdfFile($jasperPrint, "/alfweb/simple_report_from_php.pdf"); echo "End of phpjasper.php";
} catch (JavaException $ex) { echo "An exception occured: "; echo $ex; echo "\n";}
?>
>From a command prompt I run: php5 phpjasper.php
And I get:
Start of phpjasper.phpAn exception occured: [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:JRDataSource)[o:JREmptyDataSource]). Cause: java.lang.NullPointerException VM: 1.5.0@http://gcc.gnu.org/java/" at:#-26 java.awt.Font.getLineMetrics(Font.java:1024)#-25 java.awt.font.TextLayout.<init>(TextLayout.java:195)#-24 java.awt.font.TextLayout.<init>(TextLayout.java:257)#0 /usr/share/php5/java/Java.inc(265): java_ThrowExceptionProxyFactory->getProxy(6, 'net.sf.jasperre...', true)#1 /usr/share/php5/java/Java.inc(417): java_Arg->getResult(true)#2 /usr/share/php5/java/Java.inc(423): java_Client->getWrappedResult(true)#3 /usr/share/php5/java/Java.inc(627): java_Client->getResult()#4 /usr/share/php5/java/Java.inc(1753): java_Client->invokeMethod(3, 'fillReport', Array)#5 /usr/share/php5/java/Java.inc(1866): java_JavaProxy->__call('fillReport', Array)#6 /usr/share/php5/java/Java.inc(2041): java_AbstractJava->__call('fillReport', Array)#7 [internal function]: Java->__call('fillReport', Array)#8 /alfweb/phpjasper.php(28): JavaClass->fillReport(Object(java_InternalJava), Object(Java), Object(Java))#9 {main}]
I'm running PHP 5.2.5, php-java-bridge 5.2.1, and Jasperreports 2.0.5
I'm new to all of this :( and any help would be much appreciated.
Tony
_________________________________________________________________
Find the job of your dreams before someone else does
http://mycareer.com.au/?s_cid=596064
|
|
From: <php...@li...> - 2008-04-26 23:47:43
|
Hi everyone. I'm running the following code:
<?php require_once("java/Java.inc");
try { @java_reset(); echo "Start of phpjasper.php\n";
$jarLocn = '/usr/share/java/jasperreports-2.0.5.jar;' . '/usr/share/java/commons-digester-1.7.jar;' . '/usr/share/java/commons-collections-2.1.jar;' . '/usr/share/java/commons-logging-1.1.1.jar;' . '/usr/share/java/commons-logging-1.0.2.jar;' . '/usr/share/java/commons-logging-api-1.0.2.jar;' . '/usr/share/java/commons-beanutils-1.7.jar;' . '/usr/share/java/itext-1.3.1.jar';
java_require($jarLocn); $jasperReportClass = new JavaClass("net.sf.jasperreports.engine.JasperCompileManager"); $jasperReport = $jasperReportClass->compileReport("/alfweb/demo.jrxml"); if (is_null (java_values ($jasperReport))) {echo "jasperReport is NULL\n";}
$jasperPrintClass = new JavaClass("net.sf.jasperreports.engine.JasperFillManager"); if (is_null (java_values ($jasperPrintClass))) {echo "jasperPrintClass is NULL\n";}
$hMap = new Java("java.util.HashMap"); if (is_null (java_values ($hMap))) {echo "hMap is NULL\n";}
$dataSource = new Java("net.sf.jasperreports.engine.JREmptyDataSource"); if (is_null (java_values ($dataSource))) {echo "dataSource is NULL\n";}
$jasperPrint = $jasperPrintClass->fillReport($jasperReport, $hMap, $dataSource);
$JasperExportManagerClass = new JavaClass("net.sf.jasperreports.engine.JasperExportManager"); $JasperExportManagerClass->exportReportToPdfFile($jasperPrint, "/alfweb/simple_report_from_php.pdf"); echo "End of phpjasper.php";
} catch (JavaException $ex) { echo "An exception occured: "; echo $ex; echo "\n";}
?>
>From a command prompt I run: php5 phpjasper.php
And I get:
Start of phpjasper.phpAn exception occured: [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:JRDataSource)[o:JREmptyDataSource]). Cause: java.lang.NullPointerException VM: 1.5.0@http://gcc.gnu.org/java/" at:#-26 java.awt.Font.getLineMetrics(Font.java:1024)#-25 java.awt.font.TextLayout.<init>(TextLayout.java:195)#-24 java.awt.font.TextLayout.<init>(TextLayout.java:257)#0 /usr/share/php5/java/Java.inc(265): java_ThrowExceptionProxyFactory->getProxy(6, 'net.sf.jasperre...', true)#1 /usr/share/php5/java/Java.inc(417): java_Arg->getResult(true)#2 /usr/share/php5/java/Java.inc(423): java_Client->getWrappedResult(true)#3 /usr/share/php5/java/Java.inc(627): java_Client->getResult()#4 /usr/share/php5/java/Java.inc(1753): java_Client->invokeMethod(3, 'fillReport', Array)#5 /usr/share/php5/java/Java.inc(1866): java_JavaProxy->__call('fillReport', Array)#6 /usr/share/php5/java/Java.inc(2041): java_AbstractJava->__call('fillReport', Array)#7 [internal function]: Java->__call('fillReport', Array)#8 /alfweb/phpjasper.php(28): JavaClass->fillReport(Object(java_InternalJava), Object(Java), Object(Java))#9 {main}]
I'm running PHP 5.2.5, php-java-bridge 5.2.1, and Jasperreports 2.0.5
I'm new to all of this :( and any help would be much appreciated.
Tony
_________________________________________________________________
It's simple! Sell your car for just $30 at CarPoint.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT
|
|
From: <php...@li...> - 2008-04-26 23:41:01
|
Hi everyone. I'm running the following code:
compileReport("/alfweb/demo.jrxml");
if (is_null (java_values ($jasperReport))) {echo "jasperReport is NULL\n";}
$jasperPrintClass = new JavaClass("net.sf.jasperreports.engine.JasperFillManager");
if (is_null (java_values ($jasperPrintClass))) {echo "jasperPrintClass is NULL\n";}
$hMap = new Java("java.util.HashMap");
if (is_null (java_values ($hMap))) {echo "hMap is NULL\n";}
$dataSource = new Java("net.sf.jasperreports.engine.JREmptyDataSource");
if (is_null (java_values ($dataSource))) {echo "dataSource is NULL\n";}
$jasperPrint = $jasperPrintClass->fillReport($jasperReport, $hMap, $dataSource);
$JasperExportManagerClass = new JavaClass("net.sf.jasperreports.engine.JasperExportManager");
$JasperExportManagerClass->exportReportToPdfFile($jasperPrint, "/alfweb/simple_report_from_php.pdf");
echo "End of phpjasper.php";
} catch (JavaException $ex) {
echo "An exception occured: "; echo $ex; echo "\n";
}
?>
>From a command prompt I run: php5 phpjasper.php
And I get:
Start of phpjasper.php
An exception occured: [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:JRDataSource)[o:JREmptyDataSource]). Cause: java.lang.NullPointerException VM: 1.5.0@http://gcc.gnu.org/java/" at:
#-26 java.awt.Font.getLineMetrics(Font.java:1024)
#-25 java.awt.font.TextLayout.(TextLayout.java:195)
#-24 java.awt.font.TextLayout.(TextLayout.java:257)
#0 /usr/share/php5/java/Java.inc(265): java_ThrowExceptionProxyFactory->getProxy(6, 'net.sf.jasperre...', true)
#1 /usr/share/php5/java/Java.inc(417): java_Arg->getResult(true)
#2 /usr/share/php5/java/Java.inc(423): java_Client->getWrappedResult(true)
#3 /usr/share/php5/java/Java.inc(627): java_Client->getResult()
#4 /usr/share/php5/java/Java.inc(1753): java_Client->invokeMethod(3, 'fillReport', Array)
#5 /usr/share/php5/java/Java.inc(1866): java_JavaProxy->__call('fillReport', Array)
#6 /usr/share/php5/java/Java.inc(2041): java_AbstractJava->__call('fillReport', Array)
#7 [internal function]: Java->__call('fillReport', Array)
#8 /alfweb/phpjasper.php(28): JavaClass->fillReport(Object(java_InternalJava), Object(Java), Object(Java))
#9 {main}]
I'm running PHP 5.2.5, php-java-bridge 5.2.1, and Jasperreports 2.0.5
I'm new to all of this :( and any help would be much appreciated.
Tony
_________________________________________________________________
Find the job of your dreams before someone else does
http://mycareer.com.au/?s_cid=596064
|
|
From: <php...@li...> - 2008-04-25 14:16:35
|
Hello, Sorry for the delay. I suffered a serious eye illness and was away from computers and daily work. At May 2nd I will be back to work and hope to update *some* days after the php-java-bridge Debian packages. A two months backlog waits for me. So I ask for a bit more of patience. Regards. Andre Felipe Machado |
|
From: <php...@li...> - 2008-04-24 19:10:41
|
> Can you please remove any "[java]" entry from your php.ini file(s) and try again?
I meant: please remove all java entries. :)
__________________________________________________________
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-04-24 19:07:21
|
Hi,
> require_once('Java.inc');
at java.net.SocketInputStream.read(Unknown Source)
at php.java.bridge.Parser.read(Parser.java:86)
at php.java.bridge.Parser.parse(Parser.java:163)
at php.java.bridge.Request.handleRequest(Request.java:377)
at php.java.bridge.Request.handleRequests(Request.java:485)
at php.java.bridge.http.ContextRunner.run(ContextRunner.java:140)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
the above thread dump is missing the trace from Java.inc. Are you sure that you use the PHP/Java
Bridge? -- Or do you still use the java.so developed for PHP4?
Can you please remove any "[java]" entry from your php.ini file(s) and try again?
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-04-24 16:19:31
|
Hi Jost, > [PHP crashes on some installations] > > > //WHEN THE FOLLOWING LINE IS ACTIVATED, THE BRIDGE OR PHP CRASHES > > //$batchQuery->addStationData( $stationData ); > > please check if those installations have the PHP 4 compatibility flag set (please see > http://sourceforge.net/tracker/index.php?func=detail&aid=1942948&group_id=117793&atid=679233) and > switch if off at run time, if necessary. It is off, per php.ini: zend.ze1_compatibility_mode = Off > Please check if those installations use a PHP version >= 5.1.4. All earlier PHP 5 versions have a > bug in the zend engine (in the object overloading code) which may cause random PHP crashes. We're using PHP 5.2.5 with Bridge 5.2.0. But we have found a weird hack/fix for the problem. If we do: $batchQuery->addStationData( $stationData ); it crashes. But when we do: $dummy = $batchQuery->addStationData( $stationData ); unset($dummy); It does not crash. Strange! Antonio |
|
From: <php...@li...> - 2008-04-24 12:55:46
|
Hi Antonio, [PHP crashes on some installations] > //WHEN THE FOLLOWING LINE IS ACTIVATED, THE BRIDGE OR PHP CRASHES > //$batchQuery->addStationData( $stationData ); please check if those installations have the PHP 4 compatibility flag set (please see http://sourceforge.net/tracker/index.php?func=detail&aid=1942948&group_id=117793&atid=679233) and switch if off at run time, if necessary. Please check if those installations use a PHP version >= 5.1.4. All earlier PHP 5 versions have a bug in the zend engine (in the object overloading code) which may cause random PHP crashes. Regards, Jost Boekemeier __________________________________________________________ Gesendet von Yahoo! Mail. Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com |
|
From: <php...@li...> - 2008-04-24 11:27:27
|
I am having a strange problem on certain boxes with the JavaBridge. It
works fine on others. The following is logged:
---------------------------
Apr 24 11:57:00 VMBridge ERROR: An exception occured:
java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at php.java.bridge.Parser.read(Parser.java:86)
at php.java.bridge.Parser.parse(Parser.java:163)
at php.java.bridge.Request.handleRequest(Request.java:377)
at php.java.bridge.Request.handleRequests(Request.java:485)
at php.java.bridge.http.ContextRunner.run(ContextRunner.java:140)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
Apr 24 11:57:00 VMBridge DEBUG: contextfactory: context destroyed
(remove context factory): ContextFactory: Context# 29@, credentials:
[no credentials], SimpleContextFactory: class
php.java.bridge.http.SimpleContextFactory, current loader:
sun.misc.Launcher$AppClassLoader@11b86e7
Apr 24 11:57:00 VMBridge DEBUG: contextfactory: removed context:
ContextFactory: Context# 29@, credentials: [no credentials],
SimpleContextFactory: class php.java.bridge.http.SimpleContextFactory,
current loader: sun.misc.Launcher$AppClassLoader@11b86e7, # of
contexts: 0
Apr 24 11:57:00 VMBridge DEBUG: contextfactory: servlet done waiting
for ContextFactory 13480046 for 30000 ms
Apr 24 11:57:00 VMBridge DEBUG: end (thread returned to pool):
Thread[VMBridgeHttpServerThreadPool#1,5,VMBridgeHttpServerThreadPool#1]
Apr 24 11:57:00 VMBridge DEBUG: end (thread returned to pool):
Thread[JavaBridgeContextRunner#1,5,JavaBridgeContextRunner#1]
---------------------------
The PHP code is pretty simple and straightforward. When the line
$batchQuery->addStationData( $stationData ); is activated, the bridge
(or PHP) crashes (and the http request from the Browser is killed, so
it might be PHP/Apache dying). On other machines (even with older
JavaBridge), it works fine.
<?php
$class_path = null;
$class_path .= 'jet-upload-shared.jar;';
$class_path .= 'jet-log-loader-client.jar;';
$class_path .= 'mediatel-utils.jar;';
$class_path .= 'jbossall-client.jar;';
$class_path .= 'jboss-aop-jdk50-client.jar;';
$class_path .= 'jboss-aspect-jdk50-client.jar;';
$class_path .= 'jboss-ejb3-client.jar;';
$class_path .= 'jnp-client.jar;';
$class_path .= 'deml-client.jar;';
$class_path .= 'de-client.jar;';
$class_path .= 'mtier-client.jar;';
$class_path .= 'log4j.jar';
require_once('Java.inc');
java_require( $class_path );
$batchList = new Java( "java.util.ArrayList" );
$indexValue = 1;
$station['rajar_wave'] = 141;
$station['rajar_wavelength'] = 6;
$station['audience_id'] = 1149;
$station['rsl'] = 95;
$batchQuery = new Java( "uk.mediatel.de.wrappers.BatchQuery",
$indexValue,
'impacts',
(int)$station['rajar_wave'],
(int)$station['rajar_wavelength'],
(int)$station['audience_id']
);
// Specify the RSL codes for the stations we are dealing with
$stationData = new Java(
"uk.mediatel.de.wrappers.StationData", (int)$station['rsl'] );
echo 'indexValue = ' . $indexValue.'<hr>';
echo 'rajar_wavelength = '.(int)$station['rajar_wavelength'].'<hr>';
echo 'rajar_wave = '.(int)$station['rajar_wave'].'<hr>';
echo 'audience_id = '.(int)$station['audience_id'].'<hr>';
echo 'rsl = '.$station['rsl'].'<hr>';
//WHEN THE FOLLOWING LINE IS ACTIVATED, THE BRIDGE OR PHP CRASHES
//$batchQuery->addStationData( $stationData );
echo "ok";
exit;
?>
Any suggestions are welcome!
Cheers,
Antonio
|
|
From: <php...@li...> - 2008-04-24 09:39:07
|
Hi,
> Apache+PHP ran
> stable before for months and it crashes when i try a simple bridge
> example.
You must know what you do. If you include some experimental C extension into your PHP code
(sometimes called php_java.dll or java.so), the C extension might crash your PHP and HTTP server.
However, this has nothing to do with the PHP/Java Bridge, as the bridge is written in pure Java.
It requires a Java back end and uses PHP's fopen()/fread()/fwrite() to communicate with it.
If PHP's fopen/fread/fwrite cause a segmentation fault, please report this bug to the PHP
developers, not to us.
> bridge is masked
> unstable on gentoo since more people report segmentation faults with it.
There is no native PHP/Java Bridge port available for gentoo. The native (GCC compiled) bridge is
only available for RedHat/Fedora Linux. On all other operating systems you need a tomcat or J2EE
back end. Please see Andre's Debian/Ubuntu port for an example.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-04-24 08:36:45
|
php...@li... schrieb: > Since Java runs in a separate process, and PHP communicates with Java using plain > fopen()/fwrite()/fread() calls, the Bridge cannot crash PHP or the Apache process, regardless of > how badly it behaves. > > > If Apache crashes, there's either a bug in PHP or Apache itself. Well, thanks. This of course doesn't help me at all. Apache+PHP ran stable before for months and it crashes when i try a simple bridge example. And i'm not the only one having problems - the bridge is masked unstable on gentoo since more people report segmentation faults with it. Even if it is not directly a bug in the bridge, maybe it's a side effect with some other component of PHP/Apache. Obviously something the bridge does, leads to an unstable condition that needs further investigation. To be honest i feel quite left alone with my problem. So if that's all help i can get here unfortunately the bridge is not an option for me - and obviously many others. Mike |
|
From: <php...@li...> - 2008-04-23 13:54:33
|
Hi, the PHP/Java Bridge is written in pure Java. Since Java runs in a separate process, and PHP communicates with Java using plain fopen()/fwrite()/fread() calls, the Bridge cannot crash PHP or the Apache process, regardless of how badly it behaves. If Apache crashes, there's either a bug in PHP or Apache itself. > The other thing i tried: The docs say, you can convert .jar's to native > PHP. Not sure how this should work, but this feature doesn't seem to The documentation on php-java-bridge.sf.net is a little bit outdated. The convert is no longer necessary, the standard PHP library is now part of PHP. You can use java_autoload() instead. Example: <?php require_once("java/Java.inc"); java_autoload(); $props = java_lang_System::type()->getProperties(); foreach ($props as $k=>$v) { echo "($k . $v)\n"; } ?> __________________________________________________________ Gesendet von Yahoo! Mail. Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com |
|
From: <php...@li...> - 2008-04-23 11:57:00
|
Hi, i'm a longtime PHP/Linux user and found php-java-bridge on my search for a good PDF solution in PHP: I'd like to use iText in one of my PHP projects. Therefore i tried to install the bridge V5.2.1. After some initial problems i finally managed to get the extension to work with default settings. My setup: PHP-5.2.6 Apache-2.0.58 JDK-1.6.0.05 Linux Kernel 2.6.22 on AMD Athlon 64 The test.php works fine, giving a Hello world from Java. But when i try the iText example (examples/office/itext_pdf.php) Apache segfaults. I activated Loglevel 7 in the bridge. You can find it's output below. The other thing i tried: The docs say, you can convert .jar's to native PHP. Not sure how this should work, but this feature doesn't seem to work at all (no matter which .jar i try to convert), i always get this: ------------------------------------------------------ [examples/]# java -jar /usr/lib64/php5/lib/php/extensions/no-debug-non-zts-20060613/JavaBridge.jar --convert /tmp/ /usr/share/itext/lib/iText.jar PHP/Java Bridge version 5.2.1 Copyright (C) 2003, 2006 Jost Boekemeier and others. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Usage: java -jar JavaBridge.jar [SOCKETNAME LOGLEVEL LOGFILE] SOCKETNAME is one of LOCAL, INET_LOCAL, INET, SERVLET_LOCAL, SERVLET Example: java -jar JavaBridge.jar Example: LD_LIBRARY_PATH=/usr/lib/php/modules/ java -jar JavaBridge.jar LOCAL:/tmp/javabridge_native.socket 3 /var/log/php-java-bridge.log Example: java -jar JavaBridge.jar SERVLET_LOCAL:8080 3 JavaBridge.log Influential system properties: threads, ext_java_compatibility, php_exec, default_log_file, default_log_level, base. Example: java -Djava.awt.headless="true" -Dphp.java.bridge.threads=50 -Dphp.java.bridge.base=/usr/lib/php/modules -Dphp.java.bridge.php_exec=/usr/local/bin/php-cgi -Dphp.java.bridge.default_log_file= -Dphp.java.bridge.default_log_level=5 -jar JavaBridge.jar ------------------------------------------------------ I also tried with "-convert" instead - also no luck. I'd apreciate any recommendation, on what is the best way to use iText.jar in PHP (i would need it only sporadic, so a slim solution would be great). Thanks! Mike Output of debug log when opening itext_pdf.php: ------------------------------------------------------ Apr 23 10:38:03 VMBridge DEBUG: Socket connection accepted Apr 23 10:38:03 VMBridge DEBUG: Starting bridge thread from thread pool Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 START: JavaBridge.run() Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 Request from client with uid/gid -1/-1 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="updateJarLibraryPath" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="/usr/share/itext/lib/iText.jar" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="/usr/lib64/php5/lib/php/extensions/no-debug-non-zts-20060613" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="/www/igor.emiga.de/htdocs" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v=".:/usr/share/php5:/usr/share/php" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].updateJarLibraryPath([Object 2040919865 - Class: java.lang.String:ID1295986757:LOADER-ID0],[Object 2131361171 - Class: java.lang.String:ID1295986757:LOADE R-ID0],[Object 1759969037 - Class: java.lang.String:ID1295986757:LOADER-ID0],[Object 359851081 - Class: java.lang.String:ID12 95986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).realAddURLs(";/usr/share/itext/lib/iText.jar",file:/usr/share/i text/lib/iText.jar) Apr 23 10:38:03 VMBridge DEBUG: Result [Object null] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <V n="T"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="com.lowagie.text.Document" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 549041464 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(com.lowagie.text.Document) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 2654289 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="1" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="1" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <K p="1" v="com.lowagie.text.Document" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </K> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 1660962283 - Class: com.lowagie.text.Document:ID569616903:LOADER-ID2091111631].com.lowagie.text.Document(); Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="2" m="com.lowagie.text.Document" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="java.io.ByteArrayOutputStream" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 653163028 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(java.io.ByteArrayOutputStream) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 1922091779 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="3" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="3" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <K p="1" v="java.io.ByteArrayOutputStream" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </K> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 27832 - Class: java.io.ByteArrayOutputStream:ID1517791225:LOADER-ID0].java.io.ByteArrayOutputStream(); Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="4" m="java.io.ByteArrayOutputStream" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="com.lowagie.text.pdf.PdfWriter" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 467772424 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(com.lowagie.text.pdf.PdfWriter) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 2060982148 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="5" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="5" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <H p="1" v="com.lowagie.text.pdf.PdfWriter" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </H> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="6" m="com.lowagie.text.pdf.PdfWriter" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="6" m="getInstance" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="2" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="4" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 1306606930 - Class: java.lang.Class:ID413536612:LOADER-ID0].getInstance([Object 1660962283 - Class: com.lowa gie.text.Document:ID569616903:LOADER-ID2091111631],[Object 27832 - Class: java.io.ByteArrayOutputStream:ID1517791225:LOADER-I D0]); Apr 23 10:38:03 VMBridge DEBUG: Result [Object 15735326 - Class: com.lowagie.text.pdf.PdfWriter:ID1306606930:LOADER-ID2091111631] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="7" m="com.lowagie.text.pdf.PdfWriter" p="O" n="T"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="2" m="open" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 1660962283 - Class: com.lowagie.text.Document:ID569616903:LOADER-ID2091111631].open(); Apr 23 10:38:03 VMBridge DEBUG: Result [Object null] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <V n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="com.lowagie.text.FontFactory" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 323135501 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(com.lowagie.text.FontFactory) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 2099705691 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="8" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="8" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <H p="1" v="com.lowagie.text.FontFactory" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </H> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="9" m="com.lowagie.text.FontFactory" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <G p="1" v="9" m="HELVETICA" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </G> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="a" m="java.lang.String" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="com.lowagie.text.Font" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 154777486 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(com.lowagie.text.Font) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 742510685 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="b" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="b" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <H p="1" v="com.lowagie.text.Font" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </H> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="c" m="com.lowagie.text.Font" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <G p="1" v="c" m="BOLDITALIC" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </G> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="d" m="java.lang.Integer" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="java.awt.Color" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 349610078 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(java.awt.Color) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 381322754 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="e" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="e" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <K p="1" v="java.awt.Color" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <L v="0" p="O" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <L v="0" p="O" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <L v="ff" p="O" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </K> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight int class php.java.bridge.PhpExactNumber: 1 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight int class php.java.bridge.PhpExactNumber: 1 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight int class php.java.bridge.PhpExactNumber: 1 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 best: public java.awt.Color(int,int,int) 3 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class php.java.bridge.PhpExactNumber: 256 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class php.java.bridge.PhpExactNumber: 256 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class php.java.bridge.PhpExactNumber: 256 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 skip: public java.awt.Color(float,float,float) 768 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.awt.color.ColorSpace class php.java.bridge.PhpExactNumber : 9999 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class [F class php.java.bridge.PhpExactNumber: 9999 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class php.java.bridge.PhpExactNumber: 256 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 skip: public java.awt.Color(java.awt.color.ColorSpace,float[],float) 20254 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 Selected: public java.awt.Color(int,int,int) 3 Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 800323830 - Class: java.awt.Color:ID10969598:LOADER-ID0].java.awt.Color([Object 1352529649 - Class: java.lan g.Integer:ID1412485250:LOADER-ID0],[Object 851407248 - Class: java.lang.Integer:ID1412485250:LOADER-ID0],[Object 918077175 - Class: java.lang.Integer:ID1412485250:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="f" m="java.awt.Color" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="9" m="getFont" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="a" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <L v="18" p="O" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="d" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="f" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.lang.String class java.lang.String: 0 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.lang.String class php.java.bridge.PhpExactNumber: 8000 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight boolean class java.lang.Integer: 5 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class java.awt.Color: 9999 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 best: public static com.lowagie.text.Font com.lowagie.text.FontFactory.getF ont(java.lang.String,java.lang.String,boolean,float) 18004 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.lang.String class java.lang.String: 0 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.lang.String class php.java.bridge.PhpExactNumber: 8000 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class java.lang.Integer: 256 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight int class java.awt.Color: 9999 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 skip: public static com.lowagie.text.Font com.lowagie.text.FontFactory.getF ont(java.lang.String,java.lang.String,float,int) 18255 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.lang.String class java.lang.String: 0 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class php.java.bridge.PhpExactNumber: 256 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight int class java.lang.Integer: 1 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.awt.Color class java.awt.Color: 0 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 best: public static com.lowagie.text.Font com.lowagie.text.FontFactory.getF ont(java.lang.String,float,int,java.awt.Color) 257 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 Selected: public static com.lowagie.text.Font com.lowagie.text.FontFactory. getFont(java.lang.String,float,int,java.awt.Color) 257 Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 1145892402 - Class: java.lang.Class:ID413536612:LOADER-ID0].getFont([Object 906199566 - Class: java.lang.Str ing:ID1295986757:LOADER-ID0],[Object 453076530 - Class: java.lang.Float:ID1133736492:LOADER-ID0],[Object 2027711095 - Class: java.lang.Integer:ID1412485250:LOADER-ID0],[Object 800323830 - Class: java.awt.Color:ID10969598:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: Result [Object 1322379422 - Class: com.lowagie.text.Font:ID2064721795:LOADER-ID2091111631] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="10" m="com.lowagie.text.Font" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="f" /> Apr 23 10:38:03 VMBridge DEBUG: unref: java.awt.Color[r=0,g=0,b=255] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="d" /> Apr 23 10:38:03 VMBridge DEBUG: unref: 3 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="a" /> Apr 23 10:38:03 VMBridge DEBUG: unref: Helvetica Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="0" m="typeExists" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="com.lowagie.text.Paragraph" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 2066473405 - Class: php.java.bridge.JavaBridge:ID304933128:LOADER-ID685731021].typeExists([Object 922682751 - Class: java.lang.String:ID1295986757:LOADER-ID0]); Apr 23 10:38:03 VMBridge DEBUG: DynamicClassLoader(703168415).loadClass(com.lowagie.text.Paragraph) Apr 23 10:38:03 VMBridge DEBUG: Trying parent Apr 23 10:38:03 VMBridge DEBUG: Trying 2091111631 Apr 23 10:38:03 VMBridge DEBUG: Result [Object 1270708296 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="11" m="java.lang.Boolean" p="O" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <U v="11" /> Apr 23 10:38:03 VMBridge DEBUG: unref: true Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <K p="1" v="com.lowagie.text.Paragraph" > Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <S v="Hello World" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="10" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </K> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight float class php.java.bridge.PhpParserString: 64 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class com.lowagie.text.Chunk class com.lowagie.text.Font: 9999 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 best: public com.lowagie.text.Paragraph(float,com.lowagie.text.Chunk) 10063 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class java.lang.String class php.java.bridge.PhpParserString: 0 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 weight class com.lowagie.text.Font class com.lowagie.text.Font: 0 Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 Selected: public com.lowagie.text.Paragraph(java.lang.String,com.lowagie.te xt.Font) 0 Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 69461457 - Class: com.lowagie.text.Paragraph:ID1362875764:LOADER-ID2091111631]: { [Object 1355087478 - Class: com.lowagie.text.Chunk:ID1096264275:LOADER-ID2091111631] }.com.lowagie.text.Paragraph([Object 891166311 - Class: java.lang.String:ID1295986757:LOADER-ID0],[Object 1322379422 - Class: com.lowagie.text.Font:ID2064721795:LOADER-ID2091111631]); Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="12" m="com.lowagie.text.Paragraph" p="A" n="F"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <Y p="1" v="2" m="add" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> <O v="12" /> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 --> </Y> Apr 23 10:38:03 VMBridge DEBUG: Invoking [Object 1660962283 - Class: com.lowagie.text.Document:ID569616903:LOADER-ID2091111631].add([Object 69461457 - Class: com.lowagie.text.Paragraph:ID1362875764:LOADER-ID2091111631]: { [Object 1355087478 - Class: com.lowagie.text.Chunk:ID1096264275:LOADER-ID2091111631] }); Apr 23 10:38:03 VMBridge DEBUG: Result [Object 1281234799 - Class: java.lang.Boolean:ID1144967167:LOADER-ID0] Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 <-- <O v="13" m="java.lang.Boolean" p="O" n="T"/> Apr 23 10:38:03 VMBridge DEBUG: 7b2be1bd@32c8f6f8 END: JavaBridge.run() Apr 23 10:38:03 VMBridge DEBUG: end (thread returned to pool): Thread[VMBridgeThreadPool#2,5,VMBridgeThreadPool#2] ------------------------------------------------------ |
|
From: <php...@li...> - 2008-04-18 11:22:31
|
Here => http://sourceforge.net/project/showfiles.php?group_id=117793 Marcel php...@li... a écrit : > Oh man, I must have been blind ;-) > > Thanks a lot and have a nice weekend! > > Felix > > Zitat von php...@li...: > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2008-04-17 18:36:51
|
Oh man, I must have been blind ;-) Thanks a lot and have a nice weekend! Felix Zitat von php...@li...: |
|
From: <php...@li...> - 2008-04-17 17:50:40
|
Hi,
there's the PROTOCOL.TXT included in the source download archive.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Der Mailbox mit unbegrenztem Speicher.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-04-17 11:56:19
|
Hello! I am a student of computer science in Germany and the topic of my diploma thesis (that I am about to write) has to do with php-java-interaction (from the view of a php-programmer). Therefor I am very interested in the php/java bridge, which is a great piece of work! My question is: Where can I find the full specification of the bridge protocol? Would be nice to show the spec in my thesis to make it easier (for me an the readers of my work) to understand the way the bridge works. I would be very happy about help :) Thank you very much in advance, best regards felix |
|
From: <php...@li...> - 2008-04-15 12:45:56
|
Hi Orion,
> manually. Can you give me some insight into that life cycle?
When a PHP object is released, its __destruct() Method is called. The PHP Java class implements
this callback. It sends a "<U $this->proxyID />" to the back end, when Java::__destruct() is
called. You can see the protocol requests, if you set the log level to 4.
However, calling
unset (varname)
does not necessarily mean that a PHP object is immediately reclaimed (it depends on the version of
the Zend engine).
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Der Lieblings-Mailbox der Welt.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-04-15 12:39:04
|
Ah, so you're saying a call to
unset($myJavaObj);
within PHP will cause the object to be deallocated on the Java side. If so, that's awesome! Is this the case when using either the all-PHP bridge code or the C-based DLL/so? Right now we are using the all-PHP bridge code because of another error (Apache crashing) when trying to load the DLL.
Thanks again,
Orion
----- Original Message ----
From: "php...@li..." <php...@li...>
To: php...@li...
Sent: Tuesday, April 15, 2008 8:34:20 AM
Subject: Re: [Php-java-bridge-users] OutOfMemory Exception
Hi,
> 1. Any way to release an object after finished with it on the PHP side?
PHP doesn't have a garbage collector. It uses a reference counter which cannot free certain
objects (and its associated Java peers).
However, this isn't a problem because each PHP script cannot run for more than 30 seconds. If the
PHP script terminates, all cycles are released automatically.
> 2. Any ini flags (java.persistent_connections=Off, for example) that could help clear the
> JavaBridge cache?
On protocol level you could send a <U objectID /> to the back end. But PHP reference counter does
this automatically.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Der Lieblings-Mailbox der Welt.
http://de.overview.mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-04-15 12:34:27
|
Thanks Jost for the quick response.
We have no threads on the Java side, so I can't see how we could be holding onto a reference... other than in objects that are being returned through the bridge layer. Our code is very simple - a request comes in, calculation happens, and an object gets created and returned. No background threads, etc.
I guess my question is - when do those returned objects get de-referenced by the bridge layer? Ideally it would be when the PHP side deferences it (using unset($myJavaObj) or similar), but I'm guessing that's unlikely. Given that, it doesn't look like there is any dereference(), free(), recycle(), etc. function that can be called from the PHP side to release the object manually. Can you give me some insight into that life cycle?
Thanks,
Orion
----- Original Message ----
From: "php...@li..." <php...@li...>
To: php...@li...
Sent: Tuesday, April 15, 2008 8:10:04 AM
Subject: Re: [Php-java-bridge-users] OutOfMemory Exception
Hi,
first of all, this is a out of memory error. An error is not a exception and it shouldn't be
handled as such.
This error means that there's some bug in your application code, probably a thread permanently
referencing your object graph. Please see our FAQ for details/tips how to debug your code.
> @java_reset();
The above construct is used in our release tests, it should never ever be used in client code.
Please see our API documentation for details.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Der Lieblings-Mailbox der Welt.
http://de.overview.mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|