|
From: <php...@li...> - 2007-06-20 20:30:19
|
Thanks Jost for your email.
I guess we have not set up our cluster correclty for the =
php-java-bridge? We do have other applications that do not use php, =
those work correctly in the cluster. But the one that uses the =
php-java-bridge do not.Just the invocations to the php-java side does =
not seem to be working. I finally have been able to get an exception:
Fatal error: php_mod_java(88): Protocol violation at pos 155 while =
trying to connect to 127.0.0.1:80(/JavaBridge/test.phpjavabridge). =
Please check that the back-end (JavaBride.war) is deployed or please =
switch off the java.servlet option. Received bytes: HTTP/1.1 500 =
Internal Server Error??Date: Wed, 20 Jun 2007 20:14:17 =
GMT??Content-Type: text/html;charset=3Dutf-8??Content-Length: =
1593??Connection: close????<html><head><title>Apache Tomcat/5.5.17 - =
Error report</title><style><!--H1 =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76=
;font-size:22px;} H2 =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76=
;font-size:16px;} H3 =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76=
;font-size:14px;} BODY =
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}=
B =
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76=
;} P =
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-si=
ze:12px;}A {color : black;}A.name {color in =
E:\Tomcat5.5_2\webapps\JavaBridge\test.php on line 37
Does this sounds familiar to you or anyone?=20
Please let me know if you would like me to provide any other =
configuration information.
Thank you very much in advance.
|
|
From: <php...@li...> - 2007-06-21 16:27:44
|
Thank you very much for your suggestion to set the = -Dphp.java.bridge.promiscuous=3Dtrue I realized I was not setting that = parameter in the correct place in the windows service and that is why it = was not taking place. Now, it is still not working. When I attempt to access = Tomcat5.5\webapps\JavaBridge\test.php I get the following error: Warning: Invalid argument supplied for foreach() in = E:\Tomcat5.5\webapps\JavaBridge\test.php on line 46 Fatal error: Attempt to access a Java property on a non-Java object in = E:\Tomcat5.5\webapps\JavaBridge\test.php on line 51 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D And when I attempt to access our php - java web app. I got:=20 Warning: JavaException::__toString() must return a string in Unknown on = line 0 Fatal error: Uncaught thrown in = E:\Tomcat5.5_2\webapps\chapter\includes\inc_top.php on line 3 On all pages, after a bit of moving aroung the pages. I saw in the stdout.log the following line: INFO: 380f83@8f57a <-- <E v=3D"1" m=3D"java.lang.Exception: Invoke = failed: [o(JavaBridge)]->getSession((String)null, (boolean)o(Boolean), = (int)o(Integer)). Cause: java.lang.NullPointerException: This context = 2@E%3A%5CTomcat5.5%5Cwebapps%5Cchapter doesn't have a session proxy. = Respon... Jun 21, 2007 11:53:28 AM org.apache.catalina.core.ApplicationContext log Could some one gide me on how to enable the session proxy for a php web = app, or where to find info about this, please?=20 Thank you very much again. |
|
From: <php...@li...> - 2007-06-22 17:48:58
|
Thank you very much for your suggestion to set the = -Dphp.java.bridge.promiscuous=3Dtrue I realized I was not setting that = parameter in the correct place in the windows service and that is why it = was not taking place. Now, it is still not working. When I attempt to access = Tomcat5.5\webapps\JavaBridge\test.php I get the following error: Warning: Invalid argument supplied for foreach() in = E:\Tomcat5.5\webapps\JavaBridge\test.php on line 46 Fatal error: Attempt to access a Java property on a non-Java object in = E:\Tomcat5.5\webapps\JavaBridge\test.php on line 51 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D And when I attempt to access our php - java web app. I got:=20 Warning: JavaException::__toString() must return a string in Unknown on = line 0 Fatal error: Uncaught thrown in = E:\Tomcat5.5_2\webapps\chapter\includes\inc_top.php on line 3 On all pages, after a bit of moving aroung the pages. I saw in the stdout.log the following line: INFO: 380f83@8f57a <-- <E v=3D"1" m=3D"java.lang.Exception: Invoke = failed: [o(JavaBridge)]->getSession((String)null, (boolean)o(Boolean), = (int)o(Integer)). Cause: java.lang.NullPointerException: This context = 2@E%3A%5CTomcat5.5%5Cwebapps%5Cchapter doesn't have a session proxy. = Respon... Jun 21, 2007 11:53:28 AM org.apache.catalina.core.ApplicationContext log Could some one gide me on how to enable the session proxy for a php web = app, or where to find info about this, please?=20 Thank you very much again. |
|
From: <php...@li...> - 2007-06-21 10:19:56
|
Apache Tomcat/5.5.17 - Error reportFatal error: php_mod_java(88): Protocol violation at pos 155 while trying to connect to 127.0.0.1:80(/JavaBridge/test.phpjavabridge).
Did you start the nodes with -Dphp.java.bridge.promiscuous=true?
Without it the bridge will not be able to connect to the context runner's on the nodes.
In theory one can switch off the ContextRunner's and use a HTTP tunnel by setting an option in the web-inf/web.xml. If the C implementation doesn't receive a redirect from the servlet, it will continue to send all protocol requests via HTTP PUT using a session variable. But this will be very slow.
---------------------------------
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
|
|
From: <php...@li...> - 2007-06-21 13:52:42
|
Hi, > Does this sounds familiar to you or anyone? not really. But I assume that there's a problem with the servlet => ContextRunner context switch. This might be a simple setup problem. We will add a HOWTO to the PHP/Java Bridge 4.1.4 download which describes how to setup the bridge in a cluster environment: http://sourceforge.net/tracker/index.php?func=detail&atid=679233&aid=1740947&group_id=117793 Thank you very much for the bug report! Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |