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
(4) |
2
|
3
(1) |
4
(4) |
5
(3) |
6
|
7
(2) |
8
|
9
(3) |
10
(1) |
11
|
12
(5) |
13
(5) |
14
(1) |
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
(4) |
23
(6) |
24
|
25
|
26
|
27
(1) |
28
(1) |
29
(4) |
30
(3) |
|
From: <php...@li...> - 2010-04-30 10:41:56
|
Hi Hameed, > php.java.servlet.fastcgi.ConnectionException this usually means that PHP crashed with a core dump. This should not happen[1], you might want to report this PHP bug to the PHP developers. If you define ("JAVA_LOG_LEVEL", 4) before including Java.inc, you should be able to see the last statements before the crash. Or you may try the current PHPDebugger to debug your code: http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/server/META-INF/java/PHPDebugger.php Regards, Jost Bökemeier [1] Not necessarily a PHP bug. The following script will crash every stack-based script engine unless it can handle tail calls or uses David Baker's algorithm:http://home.pipeline.com/~hbaker1/CheneyMTA.html function f() { g(); } function g() { f(); } f(); |
From: <php...@li...> - 2010-04-30 07:08:50
|
Hi there, When I try to run the /JavaBridge from the Tomcat Application Manager I get the below error: ======================================================================================================================== javax.servlet.ServletException: PHP FastCGI instance failed. php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:423) php.java.servlet.CGIServlet.handle(CGIServlet.java:401) php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:427) php.java.servlet.CGIServlet.doGet(CGIServlet.java:474) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause php.java.servlet.fastcgi.ConnectionException php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:55) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:474) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:402) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:410) php.java.servlet.CGIServlet.handle(CGIServlet.java:401) php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:427) php.java.servlet.CGIServlet.doGet(CGIServlet.java:474) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.io.IOException: Protocol error php.java.servlet.fastcgi.FastCGIInputStream.doRead(FastCGIInputStream.java:64) php.java.servlet.fastcgi.FastCGIInputStream.read(FastCGIInputStream.java:51) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:474) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:402) php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:410) php.java.servlet.CGIServlet.handle(CGIServlet.java:401) php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:427) php.java.servlet.CGIServlet.doGet(CGIServlet.java:474) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) ======================================================================================================================== I am using JavaBridge to run Jasper Reports (java package) from PHP. I remember recently I have upgraded to php 5.32 Please help. Thanks a lot, Hameed |
From: <php...@li...> - 2010-04-30 04:13:54
|
I got it working now. I wasn't creating the jar file properly. I used the instructions from http://php-java-bridge.sourceforge.net/pjb/desktop-apps.php to create the jar and copied it in WEB-INF/lib like Jost said and it worked!! Thanks a lot Jost! On Thu, Apr 29, 2010 at 10:43 PM, < php...@li...> wrote: > Hi, > > > $systemInfo = new Java("Test"); > > print $systemInfo->foo(); > > Please create a simple JSP: > > <% > out.println(new Test()); > %> > > Once you get this JSP working, your PHP code will be able to access > your Test class, too. Please contact a Java developer if you need any > further help. This is a Java issue, not a PHP/Java Bridge issue. > > > > please tell me how to set the allow_url_include = On option > > If you don't know how to enable it, you'd better leave it off and copy > the Java.inc file to the appropriate place. allow_url_include has > several security issues. > > You can set this option in your PHP ini file. Please see the output of > the phpinfo() function for the location of this file. > > > Regards, > Jost Bökemeier > > > On 4/29/10, php...@li... > <php...@li...> wrote: > > I tried it but it didn't help. I am getting the same error. Also can you > > please tell me how to set the allow_url_include = On option. I tried > writing > > it in the php.ini file but it didn't work > > > > On Thu, Apr 29, 2010 at 9:30 PM, < > > php...@li...> wrote: > > > >> Hi, > >> > >> please create a java archive from your java classes, put the java > >> archive into the WEB-INF/lib directory of your web application file > >> and re-deploy it. > >> > >> Please see http://php-java-bridge.sourceforge.net/pjb/webapp.php or > >> this video > >> > http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif > >> for an example. > >> > >> > >> Regards, > >> Jost Bökemeier > >> > >> > >> On 4/29/10, php...@li... > >> <php...@li...> wrote: > >> > I am working on windows. I am running PHP (5.1.3) scripts on Tomcat > >> > using > >> > PHP/Java bridge. Here is my simple code > >> > > >> > //test.php > >> > <?php > >> > > >> > require_once("java\Java.inc"); > >> > > >> > $systemInfo = new Java("Test"); > >> > print $systemInfo->foo(); > >> > ?> > >> > > >> > Test.class is in the same folder as test.php. But the php file is not > >> able > >> > to locate the test class and I get the following error - > >> > > >> > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: > >> > CreateInstance failed: new Test. > >> > > >> > If I use a standard class like below. It works - > >> > > >> > > >> > <?php > >> > require_once("java\Java.inc"); > >> > $systemInfo = new Java("java.lang.System"); > >> > print "Total seconds since January 1, 1970: > >> > ".$systemInfo->currentTimeMillis(); > >> > ?> > >> > > >> > What should I do? > >> > > >> > 1)Should I copy my class to the standard location where all Java > classes > >> are > >> > kept. (What is this location?) > >> > > >> > 2) Do some changes in the php.ini file > >> > > >> > ------------------------------------------------------------------------------ > >> > _______________________________________________ > >> > 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 > >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > 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...> - 2010-04-29 17:13:42
|
Hi, > $systemInfo = new Java("Test"); > print $systemInfo->foo(); Please create a simple JSP: <% out.println(new Test()); %> Once you get this JSP working, your PHP code will be able to access your Test class, too. Please contact a Java developer if you need any further help. This is a Java issue, not a PHP/Java Bridge issue. > please tell me how to set the allow_url_include = On option If you don't know how to enable it, you'd better leave it off and copy the Java.inc file to the appropriate place. allow_url_include has several security issues. You can set this option in your PHP ini file. Please see the output of the phpinfo() function for the location of this file. Regards, Jost Bökemeier On 4/29/10, php...@li... <php...@li...> wrote: > I tried it but it didn't help. I am getting the same error. Also can you > please tell me how to set the allow_url_include = On option. I tried writing > it in the php.ini file but it didn't work > > On Thu, Apr 29, 2010 at 9:30 PM, < > php...@li...> wrote: > >> Hi, >> >> please create a java archive from your java classes, put the java >> archive into the WEB-INF/lib directory of your web application file >> and re-deploy it. >> >> Please see http://php-java-bridge.sourceforge.net/pjb/webapp.php or >> this video >> http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif >> for an example. >> >> >> Regards, >> Jost Bökemeier >> >> >> On 4/29/10, php...@li... >> <php...@li...> wrote: >> > I am working on windows. I am running PHP (5.1.3) scripts on Tomcat >> > using >> > PHP/Java bridge. Here is my simple code >> > >> > //test.php >> > <?php >> > >> > require_once("java\Java.inc"); >> > >> > $systemInfo = new Java("Test"); >> > print $systemInfo->foo(); >> > ?> >> > >> > Test.class is in the same folder as test.php. But the php file is not >> able >> > to locate the test class and I get the following error - >> > >> > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: >> > CreateInstance failed: new Test. >> > >> > If I use a standard class like below. It works - >> > >> > >> > <?php >> > require_once("java\Java.inc"); >> > $systemInfo = new Java("java.lang.System"); >> > print "Total seconds since January 1, 1970: >> > ".$systemInfo->currentTimeMillis(); >> > ?> >> > >> > What should I do? >> > >> > 1)Should I copy my class to the standard location where all Java classes >> are >> > kept. (What is this location?) >> > >> > 2) Do some changes in the php.ini file >> > >> ------------------------------------------------------------------------------ >> > _______________________________________________ >> > 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 >> > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-04-29 16:51:52
|
I tried it but it didn't help. I am getting the same error. Also can you please tell me how to set the allow_url_include = On option. I tried writing it in the php.ini file but it didn't work On Thu, Apr 29, 2010 at 9:30 PM, < php...@li...> wrote: > Hi, > > please create a java archive from your java classes, put the java > archive into the WEB-INF/lib directory of your web application file > and re-deploy it. > > Please see http://php-java-bridge.sourceforge.net/pjb/webapp.php or > this video > http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif > for an example. > > > Regards, > Jost Bökemeier > > > On 4/29/10, php...@li... > <php...@li...> wrote: > > I am working on windows. I am running PHP (5.1.3) scripts on Tomcat using > > PHP/Java bridge. Here is my simple code > > > > //test.php > > <?php > > > > require_once("java\Java.inc"); > > > > $systemInfo = new Java("Test"); > > print $systemInfo->foo(); > > ?> > > > > Test.class is in the same folder as test.php. But the php file is not > able > > to locate the test class and I get the following error - > > > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: > > CreateInstance failed: new Test. > > > > If I use a standard class like below. It works - > > > > > > <?php > > require_once("java\Java.inc"); > > $systemInfo = new Java("java.lang.System"); > > print "Total seconds since January 1, 1970: > > ".$systemInfo->currentTimeMillis(); > > ?> > > > > What should I do? > > > > 1)Should I copy my class to the standard location where all Java classes > are > > kept. (What is this location?) > > > > 2) Do some changes in the php.ini file > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > 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...> - 2010-04-29 16:00:56
|
Hi, please create a java archive from your java classes, put the java archive into the WEB-INF/lib directory of your web application file and re-deploy it. Please see http://php-java-bridge.sourceforge.net/pjb/webapp.php or this video http://php-java-bridge.sourceforge.net/pjb/user-contributed/JavaEchoServer.gif for an example. Regards, Jost Bökemeier On 4/29/10, php...@li... <php...@li...> wrote: > I am working on windows. I am running PHP (5.1.3) scripts on Tomcat using > PHP/Java bridge. Here is my simple code > > //test.php > <?php > > require_once("java\Java.inc"); > > $systemInfo = new Java("Test"); > print $systemInfo->foo(); > ?> > > Test.class is in the same folder as test.php. But the php file is not able > to locate the test class and I get the following error - > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: > CreateInstance failed: new Test. > > If I use a standard class like below. It works - > > > <?php > require_once("java\Java.inc"); > $systemInfo = new Java("java.lang.System"); > print "Total seconds since January 1, 1970: > ".$systemInfo->currentTimeMillis(); > ?> > > What should I do? > > 1)Should I copy my class to the standard location where all Java classes are > kept. (What is this location?) > > 2) Do some changes in the php.ini file > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2010-04-29 05:45:34
|
I am working on windows. I am running PHP (5.1.3) scripts on Tomcat using PHP/Java bridge. Here is my simple code //test.php <?php require_once("java\Java.inc"); $systemInfo = new Java("Test"); print $systemInfo->foo(); ?> Test.class is in the same folder as test.php. But the php file is not able to locate the test class and I get the following error - Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new Test. If I use a standard class like below. It works - <?php require_once("java\Java.inc"); $systemInfo = new Java("java.lang.System"); print "Total seconds since January 1, 1970: ".$systemInfo->currentTimeMillis(); ?> What should I do? 1)Should I copy my class to the standard location where all Java classes are kept. (What is this location?) 2) Do some changes in the php.ini file |
From: <php...@li...> - 2010-04-28 03:25:32
|
Hi, PHP/Java Bridge 6 does support PHP 4 and other languages such as Scheme or even Python. A simple Java class for PHP 4 is: <?php // The following is the "Java" class definition, stripped down to fit // into one line. To use this sample start Java with: java -jar // JavaBridge.jar INET:9267. Then type: php sample.php // class P{var$Pc="<C v=\"%s\" p=\"I\">",$PC="</C>",$Pi="<I v=\"%d\" m=\"%s \" p=\"I\">",$PI="</I>",$Ps="<S v=\"%s\"/>",$Pl="<L v=\"%d\" p=\"%s \"/>",$Po="<O v=\"%d\"/>",$c;function str($s){fwrite($this->c,sprintf($this->Ps,$s));}function obj($s){fwrite($this->c,sprintf($this->Po,$s->j));}function P(){$this->c=fsockopen("127.0.0.1",9267);}function cB($s){fwrite($this->c,sprintf($this->Pc,$s));}function cE(){fwrite($this->c,$this->PC);}function iB($o, $m){fwrite($this->c,sprintf($this->Pi,$o,$m));}function iE(){fwrite($this->c,$this->PI);}function v($s){if(is_object($s))$this->obj($s);else $this->str((string)$s);}function res(){$r=sscanf(fread($this->c,8192),"% s v=\"%[^\"]\"");return$r[1];}}function gP(){static$p;if(!$p)$p=new P();return$p;}class Java{var$j,$p;function Java(){if(! func_num_args())return;$this->p=gP();$ar=func_get_args(); $this->p->cB(array_shift($ar));foreach($ar as$arg)$this->p->v($arg); $this->p->cE();$ar=sscanf($this->p->res(),"%d");$this->j= $ar[0];}function __call($m,$a,&$rv){$this->p->iB($this->j,$m);foreach($a as$arg)$this->p->v($arg);$this->p->iE();$p=new Java(); $ar=sscanf($this->p->res(),"%d");$p->j=$ar[0];$p->p=$this->p;$rv= $p;return true;}function toString(){$this->p->iB("","castToString"); $this->p->v($this);$this->p->iE();return base64_decode($this->p->res());}}overload("Java"); // Test $i1 = new Java("java.math.BigInteger", "1"); $i2 = new Java("java.math.BigInteger", "2"); $i3 = $i1->add($i2); echo $i3->toString() . "\n"; ?> Please see our FAQ and the examples/clients folder from the documentation download for details. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-27 15:26:23
|
Hi, I am writing because I can't find a useful forum, and under the contact/support page of the PHP/Java bridge site it says I should use this mailing list for support enquiries. Our production server runs PHP 4.3.1, and due to compatibility with an existing applicaton we can't upgrade to PHP5. I have no influence over this decision. In the change log it states that PHP4 has not been supported for a while; I don't blame you, but is there anywhere I can download a version of PHP/Java Bridge that is compatible with PHP4? 5.5.2 is the oldest non-debian version I can see on sourceforge (we use win32, XP/Server 2003). Sorry to ask, I bet you are tired of silly questions like this! Any pointers would be greatly appreciated. Kind Regards, Rich |
From: <php...@li...> - 2010-04-23 16:13:36
|
Success! Thank you very much. Nicholas Ochoa Account and Reference Data Analyst JP Morgan Network Implementations Phone: 312-732-8624 | nic...@jp... -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Friday, April 23, 2010 11:03 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Weblogic, PHP/Java bridge, and an extra LF character in every file Hi Nicholas, thank you very much for this bug report. This is a regression. Please edit your JEE application WEB-INF/web.xml and remove the "php_include_java" option: "<!-- the following line conveniently adds require_once("java/Java.inc") to each PHP script. Remove the line, if you don't need this feature. -->" "<init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param>" Or please edit java/JavaProxy.php and remove the trailing newline from it. The JavaProxy.php file should end with: ?> [newline] not with: ?> [newline] [newline] This is a typical PHP problem. Other projects omit the trailing ?> altogether. We can't do this because the JavaProxy.php may be used to build larger PHP files: <?php // code from JavaProxy.php ?> <?php // code from another PHP file ?> The bug is in the new build system. Line #17 should be removed from http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/buildJavaProxy.php?revision=1.1&view=markup I will fix this bug and re-release version 6.1.2 as 6.1.2.1 next week. 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...> - 2010-04-23 16:03:37
|
Hi Nicholas, thank you very much for this bug report. This is a regression. Please edit your JEE application WEB-INF/web.xml and remove the "php_include_java" option: "<!-- the following line conveniently adds require_once("java/Java.inc") to each PHP script. Remove the line, if you don't need this feature. -->" "<init-param><param-name>php_include_java</param-name><param-value>On</param-value></init-param>" Or please edit java/JavaProxy.php and remove the trailing newline from it. The JavaProxy.php file should end with: ?> [newline] not with: ?> [newline] [newline] This is a typical PHP problem. Other projects omit the trailing ?> altogether. We can't do this because the JavaProxy.php may be used to build larger PHP files: <?php // code from JavaProxy.php ?> <?php // code from another PHP file ?> The bug is in the new build system. Line #17 should be removed from http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/buildJavaProxy.php?revision=1.1&view=markup I will fix this bug and re-release version 6.1.2 as 6.1.2.1 next week. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-23 15:57:37
|
I just attempted to upgrade to the latest PHP in the hopes that it would resolve the problem, but it still persists. [root@vsidn0vl002 php]# php -v PHP 5.3.2 (cli) (built: Apr 6 2010 18:13:45) [root@vsidn0vl002 php]# php-cgi -v PHP 5.3.2 (cgi-fcgi) (built: Apr 6 2010 18:13:07) Nicholas Ochoa -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, April 22, 2010 11:04 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Weblogic, PHP/Java bridge, and an extra LF character in every file RedHat Enterprise 5 on kernel 2.6.18, x86_64 build WebLogic Server Version: 10.3.2.0 PHP 5.2.13 Latest php/java bridge (just downloaded it yesterday) Nicholas Ochoa Account and Reference Data Analyst JP Morgan Network Implementations Phone: 312-732-8624 | nic...@jp... -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, April 22, 2010 10:58 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Weblogic, PHP/Java bridge, and an extra LF character in every file Hi, which operating system and which weblogic version do you use? Regards, Jost Boekemeier ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities. ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities. |
From: <php...@li...> - 2010-04-23 13:10:21
|
>> spij couldnt verify the certificate from java to payment gateway so i f u r gonna use any payment gateway on >> javabridge on centos dont choose centos but choose any Fedora core version which is good. Mirza. Thanks for the info. Won't be accessing any payment gateways in my situation. Strictly using the Bridge to provide a connection to backend databases. Everything is inside our private network. Charles Shaffer Senior Analyst NTN-Bower Corporation |
From: <php...@li...> - 2010-04-23 10:39:47
|
Dear,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, i have centos 5.2 and i successfully install javabridge all examples are running fine now. now i have to config a payment gateway, payment gateway which is SPIj store payment interface on java. they give u to files one is SPI.jar which is cimplied in jdk1.4+ versions and they give other file SPIj.properties ,we have to copy these files in javahome/jre/lib/ext for SPI.jar and javahome/jre/lib for SPIj.properties after copying these files i edit SPIj.properties and set the path to locate the certificates provided by Payment gateway. those certificates are demo merchant.pfx or jks format...... this is the text SPIj.properties contain below #SPIj # Connection is SSL(Secure) or non-SSL ConnectionSecure=true # Address of the payment gateway. It can be a domain name as well(demo-ipg.comtrust.ae) ConnectionAddress=demo-ipg.comtrust.ae # The port of the payment gateway ConnectionPort=2443 #Connection timeout in milliseconds ConnectionTimeout=120000 #The location of the merchant user certificate on the merchant hard drive MerchantKeystore=/home/SPIj/Certificates/Demo Merchant (for Java).pfx # The certificate password as entered by the merchant while requesting the certificate MerchantKeystorePassword=Comtrust #The location of the trusted certificate certificate on the merchant hard drive TrustedKeystore=/home/SPIj/Certificates/SPIMTrust #The password of the trusted certificate TrustedKeystorePassword=password now when i m sending a request from a php script i m having this error Error code: 9106 Description: SSL Certificate error: java.security.cert.CertificateParsingException: signed overrun, bytes = 142 i did the same config on my local fedora machine and i can see demo merchange page its successfull on my local fedora machine ,but not on my online dedicated centos ,,,,,any help?????????????????????????????? wasim Mirza Wasim Baig _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 |
From: <php...@li...> - 2010-04-23 10:26:50
|
Dear ,,,,,,,,I had a problem in Centos after installing javaBridge that spij couldnt verify the certificate from java to payment gateway so i f u r gonna use any payment gateway on javabridge on centos dont choose centos but choose any Fedora core version which is good. i just moved from Centos to Fedora and problem has solved now i cant see any ssl 9106 java.cert.security.certificate error now,which was coming on centos dedicated server...... Mirza Wasim Baig > To: php...@li... > Date: Thu, 22 Apr 2010 16:03:28 -0500 > From: php...@li... > Subject: [Php-java-bridge-users] Best Practice > > Hello. I've been developing web apps using the Jva Bridge for a few years > and the organization I work for has become dependant on them to the point > that we want to upgrade to a bigger and more secure server. I recall that > Red Hat is preferred to debian(Ubuntu). > > Is CENTOS a good choice and what is the atest stable version you would > recommend? > > Any issues with virtualization? > > Any issues with secure edition? > > Thanks. > > Charles Shaffer > Senior Analyst > NTN-Bower Corporation > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 |
From: <php...@li...> - 2010-04-22 21:05:45
|
Hello. I've been developing web apps using the Jva Bridge for a few years and the organization I work for has become dependant on them to the point that we want to upgrade to a bigger and more secure server. I recall that Red Hat is preferred to debian(Ubuntu). Is CENTOS a good choice and what is the atest stable version you would recommend? Any issues with virtualization? Any issues with secure edition? Thanks. Charles Shaffer Senior Analyst NTN-Bower Corporation |
From: <php...@li...> - 2010-04-22 16:02:40
|
RedHat Enterprise 5 on kernel 2.6.18, x86_64 build WebLogic Server Version: 10.3.2.0 PHP 5.2.13 Latest php/java bridge (just downloaded it yesterday) Nicholas Ochoa Account and Reference Data Analyst JP Morgan Network Implementations Phone: 312-732-8624 | nic...@jp... -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, April 22, 2010 10:58 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Weblogic, PHP/Java bridge, and an extra LF character in every file Hi, which operating system and which weblogic version do you use? Regards, Jost Boekemeier ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities. |
From: <php...@li...> - 2010-04-22 15:58:24
|
Hi, which operating system and which weblogic version do you use? Regards, Jost Boekemeier |
From: <php...@li...> - 2010-04-22 15:14:39
|
I recently was able to get the php/java bridge working in Weblogic in order to support some backend PHP scripts used by an Oracle APEX installation I have running on the same weblogic server. One thing I noticed during testing however was an extra "0A" or line feed character inserted at the beginning of every PHP script executed. If I attempt to access a plain HTML file, I don't get the extra LF character. The same installation of PHP is used by a Lighttpd server running on the same box (this is currently how the PHP scripts are accessed) and works fine - the same exact code works without adding the extra 0A to the beginning of each file. In most usage, the extra line feed is not a problem. However when downloading files from our database, the extra character is appended to every binary that is processed through PHP, meaning all the files that are downloaded are corrupt. I also noticed the same corruption when uploading files, but haven't verified that it is the same issue. Has anyone experienced this problem? Is it at all related to running the php/java bridge under weblogic? I'm still trying to figured out if this is a weblogic or a php/java bridge issue, or even if it's simply a configuration problem somewhere. Any help would definitely be appreciated, though. Thanks! Nicholas Ochoa This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities. |
From: <php...@li...> - 2010-04-14 15:30:11
|
Fixed in CVS head ( http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/META-INF/java/Protocol.inc?r1=1.43&r2=1.44&sortby=date ) and in the current 6.1.2 download. You should now see the Tomcat HTTP error message in your PHP page. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-13 22:38:20
|
yes but the teacher asked that challenge. I think he does not want to teach (laughs). I think the solution would be a web service that []s _________________________________________________________________ Mude seu visual no Messenger e divirta-se com seus amigos online. Clique e veja como http://ilm.windowslive.com.br/?ocid=ILM:ILM:Hotmail:Tagline:1x1:Tagline |
From: <php...@li...> - 2010-04-13 17:15:29
|
Hi again, please forget what I've said. The PHP/Java Bridge code is correct. Java.inc is difficult to read because it doesn't contain any indentation. Here's the code from Protocol.inc: function read($size) { if(is_null($this->headers)) $this->parseHeaders(); if (isset($this->headers["http_error"])) { $len = $this->headers['content_length']; for($str=fread($this->socket, $len); strlen($str)<$len; $str.=fread($this->socket,$len-strlen($str))); $this->shutdownBrokenConnection($str); } return $this->fread(JAVA_RECV_SIZE); } Error messages are reported with Content-Length set: send(3, "PUT /JavaBridge/JavaBridge.phpjavabridge HTTP/1.1\r\nHost: 127.0.0.1:8080\r\nCache-Control: no-cache\r\nPragma: no-cache\r \nTransfer-Encoding: chunked\r\n\r\n24\r\n\177C<H p=\"1\" v= \"java.lang.System\"></H>\r\n", 188, 0) = 188 poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, -1) = 1 ([{fd=3, revents=POLLIN}]) recv(3, "HTTP/1.1 404 Not Found\r\nServer: Apache-Coyote/1.1\r \nContent-Type: text/html;charset=utf-8\r\nContent-Length: 952 But the back end response would be interesting nevertheless. Can you please edit the Java.inc read function as follows and send the output? function read($size) { if(is_null($this->headers)) $this->parseHeaders(); if (isset($this->headers["http_error"])) { //$len = $this->headers['content_length']; //for($str=fread($this->socket, $len); strlen($str)<$len; $str.=fread($this->socket,$len-strlen($str))); $str = fread($this->socket, JAVA_RECV_SIZE); $this->shutdownBrokenConnection($str); } return $this->fread(JAVA_RECV_SIZE); } Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-13 15:56:54
|
Olga, Have you considered using Javascript for the client-side coding? >>I would like to help with a project I'm implementing at the college where I need to integrate java and php. The >>system consists of a form that is the php backend and java would be the frontend. >>Is it possible? Well after spending hours reading and rereading the information the site could not positively >>identified a clear way to do it. Charles Shaffer Senior Analyst NTN-Bower Corporation |
From: <php...@li...> - 2010-04-13 15:49:23
|
Hi, > C:\wamp\www\JavaBridge\java\Java.inc* on line *1027* thank you very much for the bug report. This is a regression. Since PHP/Java Bridge 6 the bridge requires HTTP/1.1 chunked connections. So the code in line 1026ff is now completely wrong: Line 1027 is: $len=$this->headers['content_length']; for($str=fread($this->socket,$len); strlen($str)<$len; $str.=fread($this->socket,$len-strlen($str))); I guess we've tested the code against servers which send both, the CONTENT_LENGTH and Transfer-Encoding: chunked header fields. I will fix this for the upcoming version 6.1.2. Thanks again for this bug report. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-04-13 13:40:54
|
Hi all i have been trying to use the php java bridge and I am getting this error can any one help. *Warning*: fread() [function.fread<http://localhost/JavaBridge/function.fread>]: Length parameter must be greater than 0 in * C:\wamp\www\JavaBridge\java\Java.inc* on line *1027* *Fatal error*: in *C:\wamp\www\JavaBridge\java\Java.inc* on line *869* -- Nyika Alex +254716398997 "The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvelous structure of reality. It is enough if one tries merely to comprehend a little of this mystery every day. Never lose a holy curiosity." - Albert Einstein |