From: <php...@li...> - 2009-11-18 15:28:12
|
Just started using the JavaBridge this week and everything works when the applications are on the same server. I would like to move the PHP application to a different server but I am running into this error: Warning: pfsockopen() [function.pfsockopen]: unable to connect to webdev.mchs.com:9267 (Connection refused) in /web/htdocs/JavaBridge/java/Java.inc on line 1160 and java_RuntimeException: Could not connect to the context server webdev.mchs.com:9267. Error message: Connection refused (111) in /web/htdocs/JavaBridge/java/Java.inc on line 1161 What should I be looking for in troubleshooting this error? Is this just a "port" issue across the network? My setup is: Windows 2003 Server with Tomcat6 using Java 1.6.0_16 and PHP5.3 Kubuntu 9.10 with Tomcat6 using Java 1.6.0_16 and PHP5.3 thanks ~ jim |
From: <php...@li...> - 2009-11-18 15:32:48
|
afaik does the bridge only allow local access through 127.0.0.1 as after the first contact a local socket connection (pipes and that stuff) is established and all communication is done over this. Meaning: PHP + the Bridge (either directly with the jar or as tomcat-webapp) must be on the same server). Kind regards, Dominik On Wed, Nov 18, 2009 at 4:28 PM, <php...@li...> wrote: > Just started using the JavaBridge this week and everything works when > the applications are on the same server. I would like to move the PHP > application to a different server but I am running into this error: > > Warning: pfsockopen() [function.pfsockopen]: unable to connect to > webdev.mchs.com:9267 (Connection refused) in > /web/htdocs/JavaBridge/java/Java.inc on line 1160 > > and > > java_RuntimeException: Could not connect to the context server > webdev.mchs.com:9267. Error message: Connection refused (111) in > /web/htdocs/JavaBridge/java/Java.inc on line 1161 > > What should I be looking for in troubleshooting this error? Is this > just a "port" issue across the network? > > My setup is: > Windows 2003 Server with Tomcat6 using Java 1.6.0_16 and PHP5.3 > Kubuntu 9.10 with Tomcat6 using Java 1.6.0_16 and PHP5.3 > > thanks > ~ jim > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2009-11-18 15:54:07
|
I'm using the JavaBridge to manage/organize reports from a BIRT server. From this post on the Birt-Exchange it is reported to be possible. http://www.birt-exchange.org/forum/deploying-integrating-birt-report-engine-applications/15906-php-java-bridge.html So I am NOT able to access BIRT on a separate server using the JavaBridge ? ~jim On Wed, Nov 18, 2009 at 10:32 AM, <php...@li...> wrote: > afaik does the bridge only allow local access through 127.0.0.1 as > after the first contact > a local socket connection (pipes and that stuff) is established and > all communication is > done over this. > > Meaning: PHP + the Bridge (either directly with the jar or as > tomcat-webapp) must be > on the same server). > > Kind regards, > Dominik > > On Wed, Nov 18, 2009 at 4:28 PM, > <php...@li...> wrote: >> Just started using the JavaBridge this week and everything works when >> the applications are on the same server. I would like to move the PHP >> application to a different server but I am running into this error: >> >> Warning: pfsockopen() [function.pfsockopen]: unable to connect to >> webdev.mchs.com:9267 (Connection refused) in >> /web/htdocs/JavaBridge/java/Java.inc on line 1160 >> >> and >> >> java_RuntimeException: Could not connect to the context server >> webdev.mchs.com:9267. Error message: Connection refused (111) in >> /web/htdocs/JavaBridge/java/Java.inc on line 1161 >> >> What should I be looking for in troubleshooting this error? Is this >> just a "port" issue across the network? >> >> My setup is: >> Windows 2003 Server with Tomcat6 using Java 1.6.0_16 and PHP5.3 >> Kubuntu 9.10 with Tomcat6 using Java 1.6.0_16 and PHP5.3 >> >> thanks >> ~ jim >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2009-11-18 15:54:44
|
Hi Jim, which version of the bridge do you use? In PHP/JavaBridge < 5.5.4 you can set the promiscuous option in the WEB-INF/web.xml or in the System.properties (use: JAVA_OPTS="-Dphp.java.bridge.promiscuous=true" bin/catalina.sh run). Please see the INSTALL.J2EE document from your version's documentation download for details. Since version 5.5.4 the promiscuous option is obsolete, the bridge uses a HTTP/1.1 tunnel instead (chunked encoding). Please either set the promiscuous option or upgrade Java.inc and JavaBridge.war to version 5.5.4. Regards, Jost Bökemeier On 18 Nov 2009 16:29, <php...@li...> wrote: Just started using the JavaBridge this week and everything works when the applications are on the same server. I would like to move the PHP application to a different server but I am running into this error: Warning: pfsockopen() [function.pfsockopen]: unable to connect to webdev.mchs.com:9267 (Connection refused) in /web/htdocs/JavaBridge/java/Java.inc on line 1160 and java_RuntimeException: Could not connect to the context server webdev.mchs.com:9267. Error message: Connection refused (111) in /web/htdocs/JavaBridge/java/Java.inc on line 1161 What should I be looking for in troubleshooting this error? Is this just a "port" issue across the network? My setup is: Windows 2003 Server with Tomcat6 using Java 1.6.0_16 and PHP5.3 Kubuntu 9.10 with Tomcat6 using Java 1.6.0_16 and PHP5.3 thanks ~ jim ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-11-18 16:02:08
|
I am using 5.5.4 ~jim On Wed, Nov 18, 2009 at 10:54 AM, <php...@li...> wrote: > Hi Jim, > > which version of the bridge do you use? > > In PHP/JavaBridge < 5.5.4 you can set the promiscuous option in the > WEB-INF/web.xml or in the System.properties (use: > JAVA_OPTS="-Dphp.java.bridge.promiscuous=true" bin/catalina.sh run). > > Please see the INSTALL.J2EE document from your version's documentation > download for details. > > Since version 5.5.4 the promiscuous option is obsolete, the bridge uses a > HTTP/1.1 tunnel instead (chunked encoding). > > Please either set the promiscuous option or upgrade Java.inc and > JavaBridge.war to version 5.5.4. > > Regards, > Jost Bökemeier > > On 18 Nov 2009 16:29, <php...@li...> wrote: > > Just started using the JavaBridge this week and everything works when > the applications are on the same server. I would like to move the PHP > application to a different server but I am running into this error: > > Warning: pfsockopen() [function.pfsockopen]: unable to connect to > webdev.mchs.com:9267 (Connection refused) in > /web/htdocs/JavaBridge/java/Java.inc on line 1160 > > and > > java_RuntimeException: Could not connect to the context server > webdev.mchs.com:9267. Error message: Connection refused (111) in > /web/htdocs/JavaBridge/java/Java.inc on line 1161 > > What should I be looking for in troubleshooting this error? Is this > just a "port" issue across the network? > > My setup is: > Windows 2003 Server with Tomcat6 using Java 1.6.0_16 and PHP5.3 > Kubuntu 9.10 with Tomcat6 using Java 1.6.0_16 and PHP5.3 > > thanks > ~ jim > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2009-11-18 16:36:36
|
> I am using 5.5.4 Unlikely. Java.inc line 1160/1161 contain a var assignment, which cannot throw the error you have reported. Regards, Jost Boekemeier On 18 Nov 2009 17:02, <php...@li...> wrote: I am using 5.5.4 ~jim On Wed, Nov 18, 2009 at 10:54 AM, <php...@li...> wrote: > Hi Jim, > > which version of the bridge do yo... |
From: <php...@li...> - 2009-11-18 17:39:30
|
...my bad on the version, I confused it with the 5.4.3.3 demo from the BirtExchange. I'm running with 5.4.4 now and get this error: Warning: fread() [function.fread]: Length parameter must be greater than 0 in D:\web\htdocs\javabridge\java\Java.inc on line 1154 ~jim On Wed, Nov 18, 2009 at 11:36 AM, <php...@li...> wrote: >> I am using 5.5.4 > > Unlikely. Java.inc line 1160/1161 contain a var assignment, which cannot > throw the error you have reported. > > Regards, > Jost Boekemeier > > On 18 Nov 2009 17:02, <php...@li...> wrote: > > I am using 5.5.4 > > ~jim > > > > On Wed, Nov 18, 2009 at 10:54 AM, > > <php...@li...> wrote: > Hi Jim, > > which > version of the bridge do yo... > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2009-11-18 17:46:35
|
> D:\web\htdocs\javabridge\java\ Java.inc on line 115 Can you please fetch Java.inc directly from the back end (require_once("http://...");) to make sure that the Java.inc version matches the back end version? Regards, Jost Boekemeier On 18 Nov 2009 18:40, <php...@li...> wrote: ...my bad on the version, I confused it with the 5.4.3.3 demo from the BirtExchange. I'm running with 5.4.4 now and get this error: Warning: fread() [function.fread]: Length parameter must be greater than 0 in D:\web\htdocs\javabridge\java\Java.inc on line 1154 ~jim On Wed, Nov 18, 2009 at 11:36 AM, <php...@li...> wrote: >> I am using 5.5.4 > > Unlikely. Java.inc line... > ------------------------------------------------------------------------------ > Let Crystal Repor... > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ----------------------------... php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2009-11-18 18:32:50
|
... thank you for your patience, I cleaned up the demos and made sure the correct 5.5.4 versions were used on both the PHP and Tocat6 servers and the JavaBridge is working fine between two servers... thanks again! ~jim On Wed, Nov 18, 2009 at 12:46 PM, <php...@li...> wrote: >> D:\web\htdocs\javabridge\java\ Java.inc on line 115 > > Can you please fetch Java.inc directly from the back end > (require_once("http://...");) to make sure that the Java.inc version matches > the back end version? > > Regards, > Jost Boekemeier > > On 18 Nov 2009 18:40, <php...@li...> wrote: > > ...my bad on the version, I confused it with the 5.4.3.3 demo from the > BirtExchange. I'm running with 5.4.4 now and get this error: > > Warning: fread() [function.fread]: Length parameter must be greater > than 0 in D:\web\htdocs\javabridge\java\Java.inc on line 1154 > > ~jim > > > On Wed, Nov 18, 2009 at 11:36 AM, > > <php...@li...> wrote: >> I am using 5.5.4 > > > Unlikely. Java.inc line... > >> > ------------------------------------------------------------------------------ >> Let Crystal Repor... > >> php...@li... > >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ----------------------------... > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |