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...> - 2008-12-30 02:03:43
|
Try with new JavaClass and not new Java -Ajit Sent via BlackBerry by AT&T -----Original Message----- From: php...@li... Date: Mon, 29 Dec 2008 22:41:52 To: <php...@li...> Subject: Re: [Php-java-bridge-users] Urgent: Jasper report problem Sorry but Class has method. See in http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/JRRtfExporter.html The method is inherited from another class I try with to java("your.class.com")->ATTRIBUTE And it still error persist and it's the same :( I found some people with this error in Google and with no success in solution. 2008/12/29 <php...@li...> > > > *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT > > STATIC ATTRIBUTE IN PHP > > JAVA BRIDGE???* > > With: > > java("your.class.com")->ATTRIBUTE > > > Please see the PHP/Java Bridge documentation for details. > > > > > > > ------------------------------------------------------------------------------ >_______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Saludos afectuosos, Israel González S --------------- Gerente General Better Choice Ltda - Software Estratégico a Medida Ingenieria Civil Industrial en Tecnologias de Información UC. ------------------------ Office: (56-2) 551 59 04 Cel: (56- 099) 381 40 58 skype: igonzals http://www.betterchoice.cl ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-12-30 01:53:54
|
Sorry but Class has method. See in http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/JRRtfExporter.html The method is inherited from another class I try with to java("your.class.com")->ATTRIBUTE And it still error persist and it's the same :( I found some people with this error in Google and with no success in solution. 2008/12/29 <php...@li...> > > > *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT > > STATIC ATTRIBUTE IN PHP > > JAVA BRIDGE???* > > With: > > java("your.class.com")->ATTRIBUTE > > > Please see the PHP/Java Bridge documentation for details. > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Saludos afectuosos, Israel González S --------------- Gerente General Better Choice Ltda - Software Estratégico a Medida Ingenieria Civil Industrial en Tecnologias de Información UC. ------------------------ Office: (56-2) 551 59 04 Cel: (56- 099) 381 40 58 skype: igonzals http://www.betterchoice.cl |
|
From: <php...@li...> - 2008-12-29 22:46:29
|
> *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT
> STATIC ATTRIBUTE IN PHP
> JAVA BRIDGE???*
With:
java("your.class.com")->ATTRIBUTE
Please see the PHP/Java Bridge documentation for details.
|
|
From: <php...@li...> - 2008-12-29 22:38:16
|
> [[c:JRRtfExporter]]->setParameter([o:JRExporterParameter], [o:JasperPrint]).
> Cause: java.lang.NoSuchMethodException:
The class JRRtfExporter (note the "c:...") doesn't contain a procedure with the name "setParameter". You probably want to invoke a setParameter method on a JRRtfExporter instance.
|
|
From: <php...@li...> - 2008-12-29 22:29:27
|
Im trying to get that in php:
/*JAVA CODE*/
JRRtfExporter exporter = new JRRtfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, masterPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sPathRTF);
exporter.exportReport();
/*MY PHP JAVA BRIDGE IMPLEMENTATION*/
$exportManager = new
JavaClass("net.sf.jasperreports.engine.export.JRRtfExporter");
$exportManagerParam = new
JavaClass("net.sf.jasperreports.engine.JRExporterParameter");
$outputPath = realpath(".")."/"."informe.rtf";
$exportManager->setParameter($exportManagerParam->JASPER_PRINT,$jasperPrint);
$exportManager->setParameter($exportManagerParam->OUPUT_FILE_NAME,$outputPath);
$exportManager->exportReport();
/*output*/
*Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed:
[[c:JRRtfExporter]]->setParameter([o:JRExporterParameter], [o:JasperPrint]).
Cause: java.lang.NoSuchMethodException:
setParameter([o:JRExporterParameter], [o:JasperPrint]). Candidates: [] VM:
1.6.0_07@http://java.sun.com/" at: #-5
php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1059) #-4
php.java.bridge.Request.handleRequest(Request.java:405) #-3
php.java.bridge.Request.handleRequests(Request.java:481) #0
C:\wamp\www\pruebas\jasper\java\Java.inc(337):
java_ThrowExceptionProxyFactory->getProxy(24, 'net.sf.jasperre...',
'setParameter([o...', true) #1
C:\wamp\www\pruebas\jasper\java\Java.inc(494): java_Arg->getResult(true) #2
C:\wamp\www\pruebas\jasper\java\Java.inc(500):
java_Client->getWrappedResult(true) #3
C:\wamp\www\pruebas\jasper\java\Java.inc(704): java_Client->getResult() #4
C:\wamp\www\pruebas\jasper\java\Java.inc(1889):
java_Client->invokeMethod(21, 'setParameter', Array) #5
C:\wamp\www\pruebas\jasper\java\Java.inc(2007): java_JavaProxy->_ in
C:\wamp\www\pruebas\jasper\java\Java.inc on line 300*
*¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT STATIC ATTRIBUTE IN PHP
JAVA BRIDGE???*
Thanks for your guide and help
|
|
From: <php...@li...> - 2008-12-28 13:06:52
|
Sounds like a bug/problem in gcc/gcj ("GNU Java").
Here's the relevant part from Sam Ruby's coerce/select:
else if (c == Integer.TYPE) result[i]=new Integer(s);
When methods are invoked through reflection, Java automatically coerces an Integer to a primitive int. The code is more than 6 years old, so that I am pretty sure that it worked with Java 1.4. Since 1.5 Java this behaviour is documented (autoboxing/-unboxing).
Please either use a real Java VM or compile your Java classes with GNU gcc >= 4.2, which implements the Java 1.5 spec.
I will add this requirement (gcc >= 4.2) to the README.GCJ.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2008-12-26 17:45:09
|
Hi, > look please on this page what I found to compile the > javabridge: > [link to personal web site deleted] the PHP/Java Bridge install instructions are here: http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Bökemeier |
|
From: <php...@li...> - 2008-12-25 18:03:28
|
I'm trying to resolve this for 3 days, and I found solution just after I have submitted an email. The problem was I have used 192.168.1.5 (that is my pc address) instead of localhost.
Zoran
--- On Thu, 12/25/08, php...@li... <php...@li...> wrote:
From: php...@li... <php...@li...>
Subject: Re: [Php-java-bridge-users] problem with java_session() method
To: php...@li...
Date: Thursday, December 25, 2008, 9:52 AM
Hi,
I found that this test.php
<?php
require_once('http://192.168.1.5/JavaBridge/java/Java.inc');
$session=java_session();
?>
works fine if I call it from JavaBridge application in tomcat only if
I change to:
<?php
require_once('java/Java.inc');
$session=java_session();
?>
but I need to use it from my application.
Could somebody help me what did I miss to do here?
Thanks,
Zoran
--- On Wed, 12/24/08, php...@li...
<php...@li...> wrote:
From: php...@li...
<php...@li...>
Subject: [Php-java-bridge-users] problem with java_session() method
To: php...@li...
Date: Wednesday, December 24, 2008, 1:28 PM
Hi,
I have the problem to execute this simple php file:
<?php
require_once('http://192.168.1.5/JavaBridge/java/Java.inc');
$session=java_session();
?>
The problem have started when I have preinstalled my OS. Everything used to
work fine before. The error log is shown bellow. Could you indicate what is the
problem here.
Thanks,
Zoran
Dec 24, 2008 10:15:56 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception
java.lang.RuntimeException: PHP Warning: pfsockopen(): unable to connect to
192.168.1.5:9267 (A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection failed
because connected host has failed to respond.
) in http://192.168.1.5/JavaBridge/java/Java.inc on line 1045
PHP Fatal error: Uncaught exception 'java_RuntimeException' with
message 'Could not connect to the context server 192.168.1.5:9267. Error
message: A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed
because connected host has failed to respond.
(10060)
' in http://192.168.1.5/JavaBridge/java/Java.inc:1046
Stack trace:
#0 http://192.168.1.5/JavaBridge/java/Java.inc(1063):
java_HttpHandler->getChannel('9267')
#1 http://192.168.1.5/JavaBridge/java/Java.inc(1174):
java_HttpHandler->redirect()
#2 http://192.168.1.5/JavaBridge/java/Java.inc(1201):
java_Protocol->redirect()
#3 http://192.168.1.5/JavaBridge/java/Java.inc(1264):
java_Protocol->finish()
#4 http://192.168.1.5/JavaBridge/java/Java.inc(620):
java_Protocol->invokeEnd()
#5 http://192.168.1.5/JavaBridge/java/Java.inc(677):
java_Client->invokeMethod(0, 'getSession', Array)
#6 http://192.168.1.5/JavaBridge/java/Java.inc(1644):
java_Client->getSession(Array)
#7 http://192.168.1.5/JavaBridge/ in
http://192.168.1.5/JavaBridge/java/Java.inc on line 1046
at
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473)
at
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368)
at
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376)
at php.java.servlet.CGIServlet.handle(CGIServlet.java:400)
at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:356)
at php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-12-25 17:52:51
|
Hi,
I found that this test.php
<?php
require_once('http://192.168.1.5/JavaBridge/java/Java.inc');
$session=java_session();
?>
works fine if I call it from JavaBridge application in tomcat only if
I change to:
<?php
require_once('java/Java.inc');
$session=java_session();
?>
but I need to use it from my application.
Could somebody help me what did I miss to do here?
Thanks,
Zoran
--- On Wed, 12/24/08, php...@li... <php...@li...> wrote:
From: php...@li... <php...@li...>
Subject: [Php-java-bridge-users] problem with java_session() method
To: php...@li...
Date: Wednesday, December 24, 2008, 1:28 PM
Hi,
I have the problem to execute this simple php file:
<?php
require_once('http://192.168.1.5/JavaBridge/java/Java.inc');
$session=java_session();
?>
The problem have started when I have preinstalled my OS. Everything used to
work fine before. The error log is shown bellow. Could you indicate what is the
problem here.
Thanks,
Zoran
Dec 24, 2008 10:15:56 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception
java.lang.RuntimeException: PHP Warning: pfsockopen(): unable to connect to
192.168.1.5:9267 (A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection failed
because connected host has failed to respond.
) in http://192.168.1.5/JavaBridge/java/Java.inc on line 1045
PHP Fatal error: Uncaught exception 'java_RuntimeException' with
message 'Could not connect to the context server 192.168.1.5:9267. Error
message: A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed
because connected host has failed to respond.
(10060)
' in http://192.168.1.5/JavaBridge/java/Java.inc:1046
Stack trace:
#0 http://192.168.1.5/JavaBridge/java/Java.inc(1063):
java_HttpHandler->getChannel('9267')
#1 http://192.168.1.5/JavaBridge/java/Java.inc(1174):
java_HttpHandler->redirect()
#2 http://192.168.1.5/JavaBridge/java/Java.inc(1201):
java_Protocol->redirect()
#3 http://192.168.1.5/JavaBridge/java/Java.inc(1264):
java_Protocol->finish()
#4 http://192.168.1.5/JavaBridge/java/Java.inc(620):
java_Protocol->invokeEnd()
#5 http://192.168.1.5/JavaBridge/java/Java.inc(677):
java_Client->invokeMethod(0, 'getSession', Array)
#6 http://192.168.1.5/JavaBridge/java/Java.inc(1644):
java_Client->getSession(Array)
#7 http://192.168.1.5/JavaBridge/ in
http://192.168.1.5/JavaBridge/java/Java.inc on line 1046
at
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473)
at
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368)
at
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376)
at php.java.servlet.CGIServlet.handle(CGIServlet.java:400)
at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:356)
at php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-12-24 21:28:51
|
Hi,
I have the problem to execute this simple php file:
<?php
require_once('http://192.168.1.5/JavaBridge/java/Java.inc');
$session=java_session();
?>
The problem have started when I have preinstalled my OS. Everything used to work fine before. The error log is shown bellow. Could you indicate what is the problem here.
Thanks,
Zoran
Dec 24, 2008 10:15:56 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception
java.lang.RuntimeException: PHP Warning: pfsockopen(): unable to connect to 192.168.1.5:9267 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
) in http://192.168.1.5/JavaBridge/java/Java.inc on line 1045
PHP Fatal error: Uncaught exception 'java_RuntimeException' with message 'Could not connect to the context server 192.168.1.5:9267. Error message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(10060)
' in http://192.168.1.5/JavaBridge/java/Java.inc:1046
Stack trace:
#0 http://192.168.1.5/JavaBridge/java/Java.inc(1063): java_HttpHandler->getChannel('9267')
#1 http://192.168.1.5/JavaBridge/java/Java.inc(1174): java_HttpHandler->redirect()
#2 http://192.168.1.5/JavaBridge/java/Java.inc(1201): java_Protocol->redirect()
#3 http://192.168.1.5/JavaBridge/java/Java.inc(1264): java_Protocol->finish()
#4 http://192.168.1.5/JavaBridge/java/Java.inc(620): java_Protocol->invokeEnd()
#5 http://192.168.1.5/JavaBridge/java/Java.inc(677): java_Client->invokeMethod(0, 'getSession', Array)
#6 http://192.168.1.5/JavaBridge/java/Java.inc(1644): java_Client->getSession(Array)
#7 http://192.168.1.5/JavaBridge/ in http://192.168.1.5/JavaBridge/java/Java.inc on line 1046
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473)
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368)
at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376)
at php.java.servlet.CGIServlet.handle(CGIServlet.java:400)
at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:356)
at php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
|
|
From: <php...@li...> - 2008-12-24 09:57:52
|
Hello, first of all thank you for your response ... but I wanted to compile the javabridge to have the library "java.so" I will use as a module in PHP , look please on this page what I found to compile the javabridge: http://www.micromegastudio.com/index.php?id=10, 30,0,0,1,0 . Otherwise compile the source code? thank you in advance |
|
From: <php...@li...> - 2008-12-23 18:56:01
|
Hi,
> Linux, but when execute phpize to compile javaBridge I got
Too bad, but this will stay that way. -- Please report this problem to your OS vendor, not to us.
If rpmbuild -tb php-java-bridge*.tar.gz or the debian build instructions fail, you can report this problem on this mailing list.
Please note that the PHP/Java Bridge is pure Java, it doesn't need to be compiled against your OS or your PHP version.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-12-23 10:30:28
|
Hello; I tried to install the javaBridge (version: php-java-bridge_5.2.2.tar.gz) on Linux, but when execute phpize to compile javaBridge I got an error message: ro...@lo...: / usr/src/php-java-bridge-5.2.2 phpize # Configuring for: PHP API Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 Can not find autoconf. Please check your autoconf facility and the $ PHP_AUTOCONF environment variable is set correctly and then rerun this script. But yet I exported $ PHP_AUTOCONF: # Export PHP_AUTOCONF = / usr/src/autoconf-2.57 # Echo $ PHP_AUTOCONF # / Usr/src/autoconf-2.57 In the directory / usr / local / bin /, I checked the file exists autoconf. ro...@lo...: / usr / local / bin # ll Total 17,016 -rwxrwxrwx 1 root root 7681 Dec 23 10:01 autoconf * -rwxrwxrwx 1 root root 7953 Dec 23 10:01 autoheader * -rwxr-xr-x 1 root root 33544 Dec 23 10:01 autom4te * -rwxr-xr-x 1 root root 17603 Dec 23 10:01 autoreconf * -rwxr-xr-x 1 root root 16051 Dec 23 10:01 autoscan * -rwxr-xr-x 1 root root 32872 Dec 23 10:01 autoupdate * -rwxr-xr-x 1 root root 3604 Dec 23 10:01 ifname * -rwxr-xr-x 1 root root 700 Feb 28 2007 pear * -rwxr-xr-x 1 root root 721 Feb 28 2007 peardev * -rwxr-xr-x 1 root root 684 Feb 28 2007 * pecl -rwxr-xr-x 1 root root 17243659 Feb 28 2007 php * -rwxr-xr-x 1 root root 1519 Feb 28 2007 php-config * -rwxr-xr-x 1 root root 4165 Dec 23 09:57 phpize * help please. Thank you |
|
From: <php...@li...> - 2008-12-21 21:04:16
|
> $session = java_session();
> $session->put("param1", someJavaObject);
So you add a new object to the session store in each request and(!) keep the old objects referenced from a thread outside of the scope of the bridge?
> So, on the first page I am doing
> $sessionid=session_id();
> $myBackendHodler.storeParam1($sessionid, someJavaObject);
>
> On the second page I am doing
> $sessionid=session_id();
> $someJavaObject = $myBackendHodler.getParam1($sessionid);
someJavaObject should have been garbage collected, i.e. getParam1() should have returned null. If not, you have found the reason for the OOM.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2008-12-21 18:08:31
|
>>then you've written a bug, I think.
Maybe!
But the only code I have is
$session = java_session();
$session->put("param1", someJavaObject);
On the other page I am doing
$someJavaObject = $session->get("param1");
That is all I have. 2 lines of code for the session in php and one line in
the second php.
BTW, $someJavaObject would be temporarily referenced by many threads on the
backend in the subsequent calls. Could that be the source of the problem?
>>It is not possible to keep the state w/o using java_session(), at least
not reliably.
As I mentioned earlier, I have apache http server and tomcat. Instead of
using java_session, I am using the session_id() within the apache server and
against that id I am storing a data structure in the backend.
So, on the first page I am doing
$sessionid=session_id();
$myBackendHodler.storeParam1($sessionid, someJavaObject);
On the second page I am doing
$sessionid=session_id();
$someJavaObject = $myBackendHodler.getParam1($sessionid);
Let me know if you think that is reliable.
>> Please see our FAQ entry "How does the bridge handle OutOfMemoryErrors?"
for details.
I have gone through it but will go over it one more time.
Thanks
-Ajit
----------------------------------------------------------------------------
--
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-12-21 16:20:10
|
Hi Ajit,
> java_session(). In that case
> the memory on the Tomcat server kept increasing with every
> hit on the page.
then you've written a bug, I think.
> go up that much. I have found a way to get my work done
> without using java_session.
It is not possible to keep the state w/o using java_session(), at least not reliably.
> Do you know why using a java_session() could create such
> problem?
Please see our FAQ entry "How does the bridge handle OutOfMemoryErrors?" for details.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2008-12-21 16:13:08
|
Hi Nathan, > it, I'll install a sniffer and send the report. not necessary. Your bug report is here: http://bugs.php.net/bug.php?id=46917 Regards, Jost Bökemeier |
|
From: <php...@li...> - 2008-12-20 19:54:14
|
Hi Jost,
Really appreciate you taking time to write lengthy replies.
Another thing that I observed was I was using java_session(). In that case
the memory on the Tomcat server kept increasing with every hit on the page.
Because of that the tomcat server went out of memory very quickly.
I stopped using the java_session to verify that and found that memory didn't
go up that much. I have found a way to get my work done without using
java_session.
Do you know why using a java_session() could create such problem?
Thanks
-Ajit
-----Original Message-----
From: php...@li...
[mailto:php...@li...]
Sent: Saturday, December 20, 2008 2:40 PM
To: php...@li...
Subject: Re: [Php-java-bridge-users] protocol error: ,Invalid document end
at col 16. Check the back end logforOutOfMemoryErrors
Hi Nathan,
I am afraid but this problem cannot be fixed on application level.
PHP/windows contains code to detect a broken connection, but it fails to
detect it if the back end has destroyed the channel w/o waiting for the
client. If the front end doesn't explicitly close the connection, the
connection goes back to the pool and PHP/windows returns it the next time
pfsockopen() is called.
The PHP/Java Bridge back end destroys a channel only if it has to recover
from a java.lang.OutOfMemoryError.
Unfortunately this means that the bridge cannot recover from an OutOfMemory
condition automatically, which is certainly not what we want.
PHP/Java Bridge version 5.4.1 contains code which explicitly destroys a
persistent connection if a protocol error occurred (it calls
"dieWithPersistentConnection(errorCode)" instead of simply "die(errorCode)")
>From the NEWS file:
Version 5.4.1
* If PHP is used within a J2EE server or servlet engine the option
JAVA_PERSISTENT_SERVLET_CONNECTIONS is set. This means that the
servlet option fcgi_children (see WEB-INF/web.xml) must be less than
or equal to the servlet engine's thread pool size. It defaults to
5. The smallest thread pool we've seen is the thread pool of the Sun
J2EE server version 9, with 5 entries.
* If PHP is used within Apache or IIS via the java.so or
php_java.dll the option JAVA_PERSISTENT_SERVLET_CONNECTIONS is
set. This means that Apache/IIS "maxChilds" must be less than or
equal to the servlet engine or J2EE server's "maxThreads" value,
otherwise the additional PHP executables will hang. On Fedora and
RedHat Linux we have verified that Tomcat's maxThreads == Apache
maxChilds. If you're unsure, do not use the php_java.dll/java.so.
* If a windows Java back end is destroyed via the task manager, a
PHP/windows front end keeps using the old persistent connections to
the back end. If your Java back end requires a reboot (usually
because new software has been installed), reboot the entire windows
machine to avoid problems with old resources. Or use a unix machine
as the HTTP server front end instead.
* All options can now be set on the command line. Example:
php-cgi -djava.persistent_servlet_connections=On test.php
However, the fundamental problem, that PHP cannot detect broken connections
on windows, still exists. Please report this problem to the PHP maintainers.
Regards,
Jost Bökemeier
----------------------------------------------------------------------------
--
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-12-20 19:40:27
|
Hi Nathan,
I am afraid but this problem cannot be fixed on application level.
PHP/windows contains code to detect a broken connection, but it fails to detect it if the back end has destroyed the channel w/o waiting for the client. If the front end doesn't explicitly close the connection, the connection goes back to the pool and PHP/windows returns it the next time pfsockopen() is called.
The PHP/Java Bridge back end destroys a channel only if it has to recover from a java.lang.OutOfMemoryError.
Unfortunately this means that the bridge cannot recover from an OutOfMemory condition automatically, which is certainly not what we want.
PHP/Java Bridge version 5.4.1 contains code which explicitly destroys a persistent connection if a protocol error occurred (it calls "dieWithPersistentConnection(errorCode)" instead of simply "die(errorCode)") From the NEWS file:
Version 5.4.1
* If PHP is used within a J2EE server or servlet engine the option
JAVA_PERSISTENT_SERVLET_CONNECTIONS is set. This means that the
servlet option fcgi_children (see WEB-INF/web.xml) must be less than
or equal to the servlet engine's thread pool size. It defaults to
5. The smallest thread pool we've seen is the thread pool of the Sun
J2EE server version 9, with 5 entries.
* If PHP is used within Apache or IIS via the java.so or
php_java.dll the option JAVA_PERSISTENT_SERVLET_CONNECTIONS is
set. This means that Apache/IIS "maxChilds" must be less than or
equal to the servlet engine or J2EE server's "maxThreads" value,
otherwise the additional PHP executables will hang. On Fedora and
RedHat Linux we have verified that Tomcat's maxThreads == Apache
maxChilds. If you're unsure, do not use the php_java.dll/java.so.
* If a windows Java back end is destroyed via the task manager, a
PHP/windows front end keeps using the old persistent connections to
the back end. If your Java back end requires a reboot (usually
because new software has been installed), reboot the entire windows
machine to avoid problems with old resources. Or use a unix machine
as the HTTP server front end instead.
* All options can now be set on the command line. Example:
php-cgi -djava.persistent_servlet_connections=On test.php
However, the fundamental problem, that PHP cannot detect broken connections on windows, still exists. Please report this problem to the PHP maintainers.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2008-12-18 22:36:21
|
OS: Windows Server 2003 PHP: 5.2.3 I have not used a packet sniffer. If I get time to work on it, I'll install a sniffer and send the report. Thank you for your assistance. --Nathan --- On Thu, 12/18/08, php...@li... <php...@li...> wrote: > From: php...@li... <php...@li...> > Subject: Re: [Php-java-bridge-users] protocol error: , Invalid document end at col 16. Check the back end log forOutOfMemoryErrors > To: php...@li... > Date: Thursday, December 18, 2008, 12:50 PM > Hi, > > > Restarting Tomcat and Apache separately didn't fix > the > > sounds like PHP's pfsockopen() cannot detect a broken > connection on some operating systems. A workaround is to use > fsockopen() instead (open java/Java.inc and replace all > pfsockopen() occurences). > > Which operating system and which PHP version are you using? > > Do you have a packet sniffer installed to debug this > problem? If so, please file a bug report to the PHP > maintainers (=>fbugs.php.net) and attach the network > packets to that bug report. > > > Regards, > Jost Boekemeier > > > > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in > Las Vegas, Nevada. > The future of the web can't happen without you. Join > us at MIX09 to help > pave the way to the Next Web now. Learn more and register > at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-12-18 19:58:42
|
Hi,
> The operating system is Windows Server 2003 R2. PHP version
> is 5.2.6.
I have tested the releases on WinXP and WS 2008 with the PHP version included in the .war file, and I am quite sure that these versions reopen the connection after the back end has been restarted.
> Unfortunately I do not have a packet sniffer.
Can you please add
define ("JAVA_DEBUG", true);
before including java/Java.inc and post the result html page?
> If I replace all pfsockopen with fsockopen, what is the
> downside of it? What potential problems could I run into?
It will increase the latency; opening a new connection for each request costs a few hundred microseconds.
Regards,
Jost Bökemeier
|
|
From: <php...@li...> - 2008-12-18 19:36:32
|
Hi Jost, The operating system is Windows Server 2003 R2. PHP version is 5.2.6. Unfortunately I do not have a packet sniffer. If I replace all pfsockopen with fsockopen, what is the downside of it? What potential problems could I run into? Once again, thanks for taking the time to reply. Regards, -Ajit -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, December 18, 2008 1:51 PM To: php...@li... Subject: Re: [Php-java-bridge-users] protocol error: ,Invalid document end at col 16. Check the back end logforOutOfMemoryErrors Hi, > Restarting Tomcat and Apache separately didn't fix the sounds like PHP's pfsockopen() cannot detect a broken connection on some operating systems. A workaround is to use fsockopen() instead (open java/Java.inc and replace all pfsockopen() occurences). Which operating system and which PHP version are you using? Do you have a packet sniffer installed to debug this problem? If so, please file a bug report to the PHP maintainers (=>fbugs.php.net) and attach the network packets to that bug report. Regards, Jost Boekemeier ---------------------------------------------------------------------------- -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-12-18 18:50:59
|
Hi, > Restarting Tomcat and Apache separately didn't fix the sounds like PHP's pfsockopen() cannot detect a broken connection on some operating systems. A workaround is to use fsockopen() instead (open java/Java.inc and replace all pfsockopen() occurences). Which operating system and which PHP version are you using? Do you have a packet sniffer installed to debug this problem? If so, please file a bug report to the PHP maintainers (=>fbugs.php.net) and attach the network packets to that bug report. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2008-12-17 22:13:48
|
I've had this same problem. (protocol error when either Tomcat or Apache is restarted and no errors on the back end) Basically, what I end up having to do is restart the whole server whenever I change anything related to Java. Restarting Tomcat and Apache separately didn't fix the problem for me. Thankfully, I rarely have to add or modify java classes. It would be nice not to have to bring the server down though. It takes about 7 minutes for the server to boot and everything to come back up. It's workable, but definitely less than ideal. --- On Wed, 12/17/08, php...@li... <php...@li...> wrote: > From: php...@li... <php...@li...> > Subject: Re: [Php-java-bridge-users] protocol error: , Invalid document end at col 16. Check the back end log forOutOfMemoryErrors > To: php...@li... > Date: Wednesday, December 17, 2008, 3:30 PM > Hi Jost, > > Thanks for taking the time to reply. > > I did read the FAQ before and I looked in my Tomcat, there > were no errors. > Another thing I noted is that this problem goes away just > by restarting > Apache http server. If it were a tomcat issue how would > restarting Apache > HTTP server help? > > One more thing I noted is that if I restart Tomcat, then I > have to restart > Apache HTTP server as well otherwise I keep getting this > error. > > Last point - This problem is more observed when Apache HTTP > servers are > running on separate boxes. When they run on the same box > the problem happens > less frequently. > > Again, any insight is appreciated. > > Thanks > -Ajit > > -----Original Message----- > From: php...@li... > [mailto:php...@li...] > Sent: Wednesday, December 17, 2008 3:52 PM > To: php...@li... > Subject: Re: [Php-java-bridge-users] protocol error: > ,Invalid document end > at col 16. Check the back end log forOutOfMemoryErrors > > Hi, > > > protocol error: , Invalid document end at col 16. > Check the > > back end log for OutOfMemoryErrors... > > this error message means that your .NET or Java VM has > problems. > Please see our FAQ "What does a "protocol error > ..." mean?" for details. > > > Regards, > Jost Boekemeier > > > > > > ---------------------------------------------------------------------------- > -- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in > Las Vegas, Nevada. > The future of the web can't happen without you. Join > us at MIX09 to help > pave the way to the Next Web now. Learn more and register > at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in > Las Vegas, Nevada. > The future of the web can't happen without you. Join > us at MIX09 to help > pave the way to the Next Web now. Learn more and register > at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-12-17 22:01:33
|
Hi Jost,
Thanks for taking the time to reply.
I did read the FAQ before and I looked in my Tomcat, there were no errors.
Another thing I noted is that this problem goes away just by restarting
Apache http server. If it were a tomcat issue how would restarting Apache
HTTP server help?
One more thing I noted is that if I restart Tomcat, then I have to restart
Apache HTTP server as well otherwise I keep getting this error.
Last point - This problem is more observed when Apache HTTP servers are
running on separate boxes. When they run on the same box the problem happens
less frequently.
Again, any insight is appreciated.
Thanks
-Ajit
-----Original Message-----
From: php...@li...
[mailto:php...@li...]
Sent: Wednesday, December 17, 2008 3:52 PM
To: php...@li...
Subject: Re: [Php-java-bridge-users] protocol error: ,Invalid document end
at col 16. Check the back end log forOutOfMemoryErrors
Hi,
> protocol error: , Invalid document end at col 16. Check the
> back end log for OutOfMemoryErrors...
this error message means that your .NET or Java VM has problems.
Please see our FAQ "What does a "protocol error ..." mean?" for details.
Regards,
Jost Boekemeier
----------------------------------------------------------------------------
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|