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-22 15:58:24
|
Hi, which operating system and which weblogic version do you use? Regards, Jost Boekemeier |
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-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 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 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 |