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
|
2
(1) |
3
|
4
(2) |
5
(3) |
6
(1) |
7
|
8
(3) |
9
|
10
(1) |
11
|
12
|
13
(4) |
14
(6) |
15
(3) |
16
(4) |
17
(1) |
18
(6) |
19
(2) |
20
(7) |
21
(7) |
22
(1) |
23
(2) |
24
|
25
(1) |
26
|
27
(2) |
28
(1) |
29
|
30
(1) |
From: <php...@li...> - 2007-06-30 23:53:14
|
php...@li... wrote: > >> purposes). How do I enable >> HTTP tunneling? As far as my knowledge goes, I >> cannot use sockets to a >> remote server. > > if you switch off both, the Pipe- and the > SocketContextServer, the C implementation will > continue to send HTTP PUT requests. > > However, this path is quite old. It still works, but > it is slow. Isn't it possible to use standard web > services to access a remote service? Thank you for your answer. We have a Java J2EE backend and in front of it we use a PHP based CMS. We used to use simple HTTP requests to transfer the HTML from our backend to the PHP frontend (both on the same server). After some tests with the PHP-Java bridge it was clear that this solution is much faster. As I understand the HTTP tunnel is deprecated and in the future may even stop working in the development version. For testing the frontend on a local computer, I have created a mockup, so the problem has been solved already. Rob Juurlink |
From: <php...@li...> - 2007-06-28 15:56:53
|
Hi, [please excuse the delay] > of tomcat are running within 15 to 30 min one of the > tomcat instances stops responding and a browser I could reproduce something like this when running 2700 instances of the sessionSharing.jsp. The reason for the failure was an OutOfMemoryError in the session replicator. > We have not found exception in the log files I have started both instances with catalina.sh run, the error message appeared in the console window. However, I have attached the proposed tomcat cluster howto that someone has asked for: ---------------------------------------------- Ho do I set up a tomcat cluster? Download tomcat 5 or higher, a Java JRE 5 or higher and the PHP/Java Bridge 4.1.5 or higher. The following example uses two nodes running on two machines called "carlos" and "diego". The web server is running on a third machine which has full access to both nodes (at least it needs access to the ports from the range [9267, [9367). On all nodes: Extract the tomcat distribution into a directory. On "diego" add the following to conf/server.xml: <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8"> <Manager className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/> <Channel className="org.apache.catalina.tribes.group.GroupChannel"> <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver" address="diego" port="4000" autoBind="100" selectorTimeout="5000" maxThreads="6"/> </Channel> </Cluster> On "carlos" add the following to conf/server.xml: <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8"> <Manager className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/> <Channel className="org.apache.catalina.tribes.group.GroupChannel"> <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver" address="carlos" port="4000" autoBind="100" selectorTimeout="5000" maxThreads="6"/> </Channel> </Cluster> Copy the "JavaBridge.war" into the "webapps" directory on "diego" and "carlos" and start both nodes. For example with the command: JAVA_OPTS="-Dphp.java.bridge.promiscuous=true" JAVA_HOME=/opt/jdk1.5 bin/catalina.sh run Start the web server on the third computer "timon". For example with the command: apachectl restart Create a PHP script called "sessionSharing-diego.php" and copy it into the web server document root (usually "/var/www/html" or "~/public_html") on "timon": <?php require_once("http://diego:8080/JavaBridge/java/Java.inc"); $session = java_session(); if(is_null($session->get("counter"))) $session->put("counter", new Java("java.lang.Integer", 1)); $counter = java_values($session->get("counter")); print "HttpSession variable \"counter\": $counter<br>\n"; $next = new Java("java.lang.Integer", $counter+1); $session->put("counter", $next); ?> Create a PHP script called "sessionSharing-carlos.php" and copy it into the web server document root (usually "/var/www/html" or "~/public_html") on "timon": <?php require_once("http://carlos:8080/JavaBridge/java/Java.inc"); $session = java_session(); if(is_null($session->get("counter"))) $session->put("counter", new Java("java.lang.Integer", 1)); $counter = java_values($session->get("counter")); print "HttpSession variable \"counter\": $counter<br>\n"; $next = new Java("java.lang.Integer", $counter+1); $session->put("counter", $next); ?> Start a web brower and remove all cookies Browse to http://timon/sessionSharing-carlos.php and check the generated cookie. It should have the key "JSESSIONID", host attribute "timon" and the path attribute "/". The value should be "1". Click on the browser refresh button to increase the value. Use the same browser window and navigate to http://timon/sessionSharing-diego.php and check if there is still only one cookie with the same attributes as before. The value should be "3" Use the same browser window and navigate to http://timon/sessionSharing-carlos.php and check if there is still only one cookie with the same attributes as before. The value should be "4". Switch off "diego" and start it again. Use the same browser window and navigate to http://timon/sessionSharing-diego.php and check if there is still only one cookie with the same attributes as before. The value should be "5" Switch off "carlos". Use the same browser window and navigate to http://timon/sessionSharing-carlos.php and check if you get an exception. Start "carlos". Use the same browser window and navigate to http://timon/sessionSharing-carlos.php and check if there is still only one cookie with the same attributes as before. The value should be "6" Please see your HTTP server documentation how to set it up as a load balancer. This differs from the architecture described above in that the load balancer forwards the requests to the nodes and the nodes run PHP using the FastCGI mechanism. --------------------------------------------------- Regards, Jost Boekemeier __________________________________ Die besten Tipps und Tricks fürs Grillen. BE A BETTER GRILLMEISTER! www.yahoo.de/clever |
From: <php...@li...> - 2007-06-27 11:49:52
|
Hi, > purposes). How do I enable > HTTP tunneling? As far as my knowledge goes, I > cannot use sockets to a > remote server. if you switch off both, the Pipe- and the SocketContextServer, the C implementation will continue to send HTTP PUT requests. However, this path is quite old. It still works, but it is slow. Isn't it possible to use standard web services to access a remote service? Regards, Jost Boekemeier __________________________________ BE A BETTER INTERNET-GURU: Jetzt Frage stellen und einen von 44 iPods gewinnen! www.yahoo.de/clever |
From: <php...@li...> - 2007-06-27 11:36:03
|
Hi, [please excuse the delay] which implementation of the PHP/Java Bridge do you use? I have tested the pure PHP implementation and could not reproduce this problem when running two cluster nodes on the same machine. Can you please open a problem report and attach the following information to the ticket: * which implementation do you use (C or PHP) * if C: are persistent connections enabled * if C: which PHP version * the log from the back end (please start the nodes with -Dphp.java.bridge.log_level=5) We'll look at this issue asap. > 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? Your scripts must contain a statement: $session = java_session() at the beginning of your scripts (as usual). If you use the pure PHP implementation, the PHP client will first contact the servlet, obtain a session from there and then switch to a (persistent-) Pipe- or SocketContextServer . The C implementation currently does not support a cluster environment. As a workaround please use the pure PHP implementation. Or, if you must use PHP4, switch off java.persistent_connections in the php.ini file and make sure that either the Pipe- or SocketContextServer can be reached: The C implementation uses HTTP PUT requests if it doesn't receive a Servlet -> ContextRunner redirect. This code is broken since version 2.0.8 and might be removed from the C implementation. Regards, Jost Boekemeier __________________________________ BE A BETTER INTERNET-GURU: Jetzt Frage stellen und einen von 44 iPods gewinnen! www.yahoo.de/clever |
From: <php...@li...> - 2007-06-25 13:31:30
|
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-23 17:25:19
|
Hi, since version 4.1.4 the bridge doesn't use a JarURLConnection anymore. This means that the DynamicClassLoader can now track changes in remote jar files. The problem was that, in order to load classes from a remote jar file, java had to copy it into a local temp directory and use the copy for all further operations. The standard jar loader creates a temporary copy and deletes it when the VM terminates. This behaviour makes the DynamicClassLoader unusable for remote files. I have added a connection class which fetches the remote jar file and caches it until the associated URL is finalized. Please see http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/server/php/java/bridge/DynamicJarURLConnection.java?view=markup&sortby=date for details. (I haven't tested it very much, but the algorithm should work). Furthermore the bridge now contains a full-featured HTTP server which gets started by double-clicking on JavaBridge.jar. It cannot handle JSP pages, but it can handle server-side scripts, including python, php, bean shell and jscript. The server uses the standard discovery mechanism to load the script implementation. This means that you can add further script implementations by adding them to java ext dirs. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-06-23 16:45:14
|
Hi, > Using php-java-bridge v 4.1.1 Please try version 4.1.2. Or use the latest stable version, which is PHP/Java Bridge 3.2.1. Version 4.1.1 had problems with persistent connections; We have rewritten the C extension so that it uses the same path as the pure PHP implementation. > Occassionally, when I load a page that actually uses > php-java-bridge on > Firefox, I get a blank page. I can reload, and it > comes up fine. When I Yes, version 4.1.1 had serious problems when used with the C based extension (java.so or php_java.dll). The C extension is really hard to maintain, but we have decided to keep it. The pure PHP implementation is a little bit slower as it always connects to the servlet to obtain a context factory and then switches to one of the ContextRunners. But its logic is easy to understand and very robust. In versions 4.1.2 and above the C extension should work again. Regards, Jost Bökemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
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 23:02:17
|
Hello, I'm using php-java-bridge 4.1.2 (downloaded the binary release). Then I copied both PhpJavaServlet.jar and php_servlet.jar to the lib directory in my J2EE WAR, I also copied the PHP resources from the /java directory (for the pure PHP implementation). I'm using JBoss 4.0.4 as application server together with Java 1.5_11. I modified my web.xml to expose the PhpJavaServlet. This all works really great and very fast using PHP4 with the (legacy) java.so module and also with PHP5 and the pure PHP implementation. But now I want to connect to the same PhpJavaServlet from my local computer to this remote server (for testing purposes). How do I enable HTTP tunneling? As far as my knowledge goes, I cannot use sockets to a remote server. I tried to use "promiscuous" and also messed around with "php.java.bridge.no_pipe_server", but this didn't work out. Looking at the source code I also cannot tell when HTTP tunneling is used. It should call the method named "handleHttpConnection()", but it is never called. My question, is it possible to connect to my remote server from my local computer? (I do not care about the speed, just for testing). Any ideas? |
From: <php...@li...> - 2007-06-21 16:59:23
|
Using php-java-bridge v 4.1.1 built from source on a 64-bit SUSE 9 Linux box. Running PHP 4.3.4, Apache 2.0.52. JRE is 1.4.2_11, from SuSE (which I'm pretty sure is Sun Java). Just started using php-java-bridge, and so far have had mostly success, except for one annoying problem that could be a deal-breaker. Occassionally, when I load a page that actually uses php-java-bridge on Firefox, I get a blank page. I can reload, and it comes up fine. When I get the blank page, I can view source and see all of the source for the page I requested is there. I don't have this problem on IE6. First thought is that this is a Firefox problem, what does php-java-bridge have to do with it? Well, I never saw the problem before, and I can load pages using php that do not actually use any of the php-java-bridge functionality, and they NEVER fail. My thought is that the process does not exit cleanly during some of the clean-up, and that Firefox chooses to not display the information it has so far whereas IE does. I've heard some reports of crashes/segfaults during the clean-up process, but always PHP 5, and we're using PHP 4. Looked in the logs and found some segfaults in the apache logs, but often I see the failure behavior without a segfault. The only thing I see happening regularly when there is a failure are some Samba warnings (have no idea why this would be using Samba at all-it doesn't access any files off of the local fs). However, those warnings also occur when it does NOT fail (though not when I load a page that does not use php-java-bridge), and we have been seeing those warnings come up in various contexts for years without any manifest problem. So, I think the segfault and the samba warnings may be red herrings. Any ideas? Michael. |
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-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 |
From: <php...@li...> - 2007-06-21 13:39:01
|
Hi Jim, > have to > completely restart Apache before it'll find any new PHP doesn't keep any state, so you don't need to restart apache. The cache, if any, is in the back end. > methods? Is this the > same for running the Java side in it's own VM via > tomcat? Well, it is a URLClassLoader problem, which caches the loaded classes using an associated cache in the sun JVM. It'd be interesting if the GNU VM has the same problem. There are certainly ways to workaround this, but how much sense does it make to pull java libraries from a http:// URL during development, anyway? Due to the caching in the URLClassLoader's associated VM cache you'll need to restart the VM to see the new code. Why don't you simply use load local jar files instead? Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-06-21 11:08:27
|
Hi, the following code may show the problem. It is written in PHP, but it could have been written in Java as well, as it demonstrates a problem with Java's URLClassLoader: xtest.java: public class xtest { public static String f() { return "12"; } } xtest.php: <?php // The following code shows a bug in Java's URLClassLoader // While running this script, modify xtest.jar, so that f() returns // "123" instead of "12". // You will see that the jar file is fetched (its size changes) // but the URLClassLoader discards it and uses the cached // jar file from the previous request. require_once("http://localhost:8080/JavaBridge/java/Java.inc"); while(true) { $url = new java("java.net.URL", "http://localhost/xtest.jar"); $conn = $url->openConnection(); echo $conn->getContentLength(); echo "->"; $conn->disconnect(); $loader = java("java.net.URLClassLoader")->newInstance(array($url)); $clazz = $loader->loadClass("xtest"); echo $clazz->f(); echo "<br>\n"; sleep(1); } ?> --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. |
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-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-20 14:43:40
|
Well, even in other examples where I have everything spelled correctly, I still get this problem. It seems that I have to completely restart Apache before it'll find any new Java methods but even then, it doesn't find certain methods in my Java classes. Is this always true though, where I have to restart Apache to allow the php-java-bridge to find any newly added Java methods? Is this the same for running the Java side in it's own VM via tomcat? Thanks, Jim On Jun 20, 2007, at 7:09 AM, php-java-bridge-users- re...@li... wrote: > Send php-java-bridge-users mailing list submissions to > php...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > or, via email, send a message with subject or body 'help' to > php...@li... > > You can reach the person managing the list at > php...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of php-java-bridge-users digest..." > > > Today's Topics: > > 1. Re: Windows Extension > (php...@li...) > 2. Re: jboss/tomcat, JavaBridge.war, log4j configuration reset > (php...@li...) > 3. Re: MySQL Connection (php-java-bridge- > us...@li...) > 4. Re: Protocol Invalid Document End error > (php...@li...) > 5. php-java-bridge and tomcat cluster > (php...@li...) > 6. Re: php-java-bridge and tomcat cluster > (php...@li...) > 7. Troubles calling a simple Java app > (php...@li...) > 8. Re: Troubles calling a simple Java app > (php...@li...) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 18 Jun 2007 14:07:44 +0200 (CEST) > From: php...@li... > Subject: Re: [Php-java-bridge-users] Windows Extension > To: php...@li..., > php...@li... > Message-ID: <880...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Hi Benjamin, > >> I used an older version of the bridge with >> php_java.dll under windows. > > The php_java.dll and java.so is available in the > legacy download. Since PHP version 5.1.4 these are not > needed anymore. > > >> I have to recompile the bridge extension > > You may compile a php_java.dll on windows (if you know > how to do this and if you have the right tools). But > you don't need to. > > >> , but I don't how how. > > Use the pure PHP implementation, then. > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden > Schutz gegen Massenmails. > http://mail.yahoo.com > > > > ------------------------------ > > Message: 2 > Date: Mon, 18 Jun 2007 14:09:25 +0200 (CEST) > From: php...@li... > Subject: Re: [Php-java-bridge-users] jboss/tomcat, JavaBridge.war, > log4j configuration reset > To: php...@li... > Message-ID: <141...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Hi, > > I agree that this behaviour is annoying. We will > change this in version 4.1.3. > > > Regards, > Jost Boekemeier > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http:// > messenger.yahoo.de > > > > ------------------------------ > > Message: 3 > Date: Mon, 18 Jun 2007 14:13:43 +0200 (CEST) > From: php...@li... > Subject: Re: [Php-java-bridge-users] MySQL Connection > To: php...@li... > Message-ID: <473...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Hi, > >> Except that that the php-info example and the >> existing PHP web application which heavily depend on >> using MySQL are signaling that the MySQL extention >> is not included in the compilation and therefore no >> MySQL statements are processed. > > This has been fixed in version 4.1.2. Please use this > version instead. > > The bridge contains a php.exe and a php.ini file in > the WEB-INF/cgi directory. In previous versions the > system php executable used to read the local php.ini, > even though the option prefer_system_php_exec is set > to On in the web-inf/web.xml. > > As a immediate workaround please delete the php.ini > from the WEB-INF/web.xml directory. > > > Regards, > Jost Boekemeier > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http:// > messenger.yahoo.de > > > > ------------------------------ > > Message: 4 > Date: Mon, 18 Jun 2007 10:14:07 -0600 > From: php...@li... > Subject: Re: [Php-java-bridge-users] Protocol Invalid Document End > error > To: <php...@li...> > Message-ID: <BAY...@ph...l> > Content-Type: text/plain; charset="iso-8859-1" > > I was using 4.1.0aI have updated to 4.1.2, and it appears to have > fixed the problemThanks for your help> Date: Sat, 16 Jun 2007 > 10:41:54 +0200> To: php...@li...> > From: php...@li...> Subject: Re: > [Php-java-bridge-users] Protocol Invalid Document End error> > Hi,> > > > java_require() not allowed for the HTTP Tunnel. Use> > a > context runner instead.> > which version of the PHP/Java Bridge do > you use?> The latest stable version is version 3.2.1.> > > > Regards,> Jost Boekemeier> > > > __________________________________________________> Do You Yahoo!?> > Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden > Schutz gegen Massenmails. > http://mail.yahoo.com > > > ---------------------------------------------------------------------- > ---> This SF.net email is sponsored by DB2 Express> Download DB2 > Express C - the FREE version of DB2 express and take> control of > your XML. No limits. Just data. Click to get it now.> http > ://sourceforge.net/powerbar/db2/> > _______________________________________________> php-java-bridge- > users mailing list> php...@li...> > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en- > US&form=QBRE > > ------------------------------ > > Message: 5 > Date: Mon, 18 Jun 2007 16:56:27 -0400 > From: php...@li... > Subject: [Php-java-bridge-users] php-java-bridge and tomcat cluster > To: <php...@li...> > Message-ID: > <072...@sw...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > There is something you could possibly help us with. We have a > cluster with two machines that have (tomcat 5.5.17), jdk1.5.0_06 > and php 5.1.2 each. Our web application uses php-java-bridge. We > have noticed a weird behavior though. When both instances of tomcat > are running within 15 to 30 min one of the tomcat instances stops > responding and a browser window where we are accessing our php > application blacks out. Has anyone experience a similar problem? We > have not found exception in the log files, so we have no clue what > could be going on. Please let me know if you need me to provide > more information to help me find out what could be causing the > failure in the tomcat cluster. > > Thank you very much in advance. > > > ------------------------------ > > Message: 6 > Date: Tue, 19 Jun 2007 10:52:07 +0200 (CEST) > From: php...@li... > Subject: Re: [Php-java-bridge-users] php-java-bridge and tomcat > cluster > To: php...@li... > Message-ID: <984...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Hi, > > I assume your setup is like this: > > http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html > > If I understand this correctly, the management node > must detect the failure of one of the cluster nodes > and switch it off. > > I haven't tested the bridge in a cluster environment > (we should do this, though); the bridge is a standard > web application so that the operation mode of the J2EE > environment should be completely transparent. > > Which cluster algorithm do you use? Do you use > sessions? How do you store the sessions? > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden > Schutz gegen Massenmails. > http://mail.yahoo.com > > > > ------------------------------ > > Message: 7 > Date: Tue, 19 Jun 2007 13:14:19 -0400 > From: php...@li... > Subject: [Php-java-bridge-users] Troubles calling a simple Java app > To: php...@li... > Message-ID: <E1F...@e-...> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > I am new to the php-java-bridge and am experimenting with it. There > is probably something obvious that I am not seeing, but I cannot get > a simple example Java to PHP application bridge working. I used the > latest Debian packages which are using version 4.0.8a of the php-java- > bridge. I can see via phpinfo() that php-java-bridge is installed and > running via Apache2.2 right now. The following application works fine > (I got it from the examples page): > > Java: > > public class HelloWorld { > private String hw = "Hello World"; > > public String getHelloWorld() { > return hw; > } > } > > PHP: > > <?php > > java_require('http://192.168.1.128/java/HelloWorld.jar'); > $myObj = new Java('HelloWorld'); > > // display Hello World > echo (String) $myObj->getHelloWorld(); > > ?> > > > However, if I change the Java and PHP to the following, then I get > the following exception output: > > Hello World > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke > failed: [[o:HelloWorld]]->setHellowWorld([o:PhpParserString]). Cause: > java.lang.NoSuchMethodException: setHellowWorld([o:PhpParserString]). > Candidates: [] Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-5 > php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1106) #-4 > php.java.bridge.Request.handleRequest(Request.java:342) #-3 > php.java.bridge.Request.handleRequests(Request.java:388) #0 [internal > function]: Java->__call('setHellowWorld', Array) #1 /home/jhodapp/ > projects/java_bridge/HelloWorld.php(9): Java->setHellowWorld('Hello > world, on...') #2 {main}] thrown in /home/jhodapp/projects/ > java_bridge/HelloWorld.php on line 9 > > > Changed Java (throws exception): > > public class HelloWorld { > private String hw = "Hello World"; > > public String getHelloWorld() { > return hw; > } > > public void setHelloWorld(String incoming) { > hw = incoming; > } > } > > Changed PHP (throws exception): > > <?php > > java_require('http://192.168.1.128/java/HelloWorld.jar'); > $myObj = new Java('HelloWorld'); > > // display Hello World > echo (String) $myObj->getHelloWorld(); > > $myObj->setHellowWorld((String) "Hello world, once again."); > > ?> > > > Once I add my own method in the Java source, it no longer seems to > work. I'm compiling this via "javac HelloWorld.java" and making a jar > via: "jar cvf HelloWorld.jar HelloWorld.class" > > Is there something wrong with my setup? The site seems to be good at > helping you get setup with php-java-bridge for your OS environment, > but lacks good documentation from that point. > > Thanks, > > Jim Hodapp > > > ------------------------------ > > Message: 8 > Date: Wed, 20 Jun 2007 07:07:20 -0400 > From: php...@li... > Subject: Re: [Php-java-bridge-users] Troubles calling a simple Java > app > To: php...@li... > Message-ID: > <215...@CH...> > Content-Type: text/plain; charset="iso-8859-1" > > Umm, you just spelled your method name wrong: > > public void setHelloWorld(String incoming) { > hw = incoming; > } > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke > failed: [[o:HelloWorld]]->setHellowWorld([o:PhpParserString]). Cause: > java.lang.NoSuchMethodException: setHellowWorld([o:PhpParserString]). > Candidates: [] Responsible VM: 1.5.0_11@http://java.sun.com/ > <http://java.sun.com/> " at: #-5 > > There's an extra "w" in there. > > ________________________________ > > From: php...@li... on behalf > of php...@li... > Sent: Tue 6/19/2007 1:14 PM > To: php...@li... > Subject: [Php-java-bridge-users] Troubles calling a simple Java app > > > > I am new to the php-java-bridge and am experimenting with it. There > is probably something obvious that I am not seeing, but I cannot get > a simple example Java to PHP application bridge working. I used the > latest Debian packages which are using version 4.0.8a of the php-java- > bridge. I can see via phpinfo() that php-java-bridge is installed and > running via Apache2.2 right now. The following application works fine > (I got it from the examples page): > > Java: > > public class HelloWorld { > private String hw = "Hello World"; > > public String getHelloWorld() { > return hw; > } > } > > PHP: > > <?php > > java_require('http://192.168.1.128/java/HelloWorld.jar'); > $myObj = new Java('HelloWorld'); > > // display Hello World > echo (String) $myObj->getHelloWorld(); > > ?> > > > However, if I change the Java and PHP to the following, then I get > the following exception output: > > Hello World > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke > failed: [[o:HelloWorld]]->setHellowWorld([o:PhpParserString]). Cause: > java.lang.NoSuchMethodException: setHellowWorld([o:PhpParserString]). > Candidates: [] Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-5 > php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1106) #-4 > php.java.bridge.Request.handleRequest(Request.java:342) #-3 > php.java.bridge.Request.handleRequests(Request.java:388) #0 [internal > function]: Java->__call('setHellowWorld', Array) #1 /home/jhodapp/ > projects/java_bridge/HelloWorld.php(9): Java->setHellowWorld('Hello > world, on...') #2 {main}] thrown in /home/jhodapp/projects/ > java_bridge/HelloWorld.php on line 9 > > > Changed Java (throws exception): > > public class HelloWorld { > private String hw = "Hello World"; > > public String getHelloWorld() { > return hw; > } > > public void setHelloWorld(String incoming) { > hw = incoming; > } > } > > Changed PHP (throws exception): > > <?php > > java_require('http://192.168.1.128/java/HelloWorld.jar'); > $myObj = new Java('HelloWorld'); > > // display Hello World > echo (String) $myObj->getHelloWorld(); > > $myObj->setHellowWorld((String) "Hello world, once again."); > > ?> > > > Once I add my own method in the Java source, it no longer seems to > work. I'm compiling this via "javac HelloWorld.java" and making a jar > via: "jar cvf HelloWorld.jar HelloWorld.class" > > Is there something wrong with my setup? The site seems to be good at > helping you get setup with php-java-bridge for your OS environment, > but lacks good documentation from that point. > > Thanks, > > Jim Hodapp > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > > ------------------------------ > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > ------------------------------ > > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > End of php-java-bridge-users Digest, Vol 13, Issue 5 > **************************************************** |
From: <php...@li...> - 2007-06-20 14:01:11
|
Just tried it -- works great! All the log4j logging from jboss works fine - the configuration is no longer reset. I don't have chainsaw setup on 445 (I only use log4j to log to files and the console), but log4j is on my global classpath for jboss. Thanks for the quick fix, much appreciated, -Mark On 6/20/07, Mark Mitchell <ma...@gm...> wrote: > Thanks! > > I will test this out today. > > -Mark > > On 6/20/07, php...@li... > <php...@li...> wrote: > > Hi, > > > > I have created a hidden download which fixes this > > problem: > > > > http://sourceforge.net/project/downloading.php?group_id=3D117793&use_mi= rror=3Dosdn&filename=3Dphp-java-bridge_4.1.3_j2ee.zip&8337726 > > > > > > >From 4.1.2 to 4.1.3: > > > > The bridge doesn't assume ownership of log4j.jar if it > > came from the global classpath. In particular it > > doesn't reset the global log4j configuration anymore > > when it detects a log4j back end listening on port > > @445 > > > > > > Regards, > > Jost Boekemeier > > > > __________________________________________________ > > Do You Yahoo!? > > Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausragenden S= chutz gegen Massenmails. > > http://mail.yahoo.com > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > |
From: <php...@li...> - 2007-06-20 13:32:52
|
Thanks! I will test this out today. -Mark On 6/20/07, php...@li... <php...@li...> wrote: > Hi, > > I have created a hidden download which fixes this > problem: > > http://sourceforge.net/project/downloading.php?group_id=3D117793&use_mirr= or=3Dosdn&filename=3Dphp-java-bridge_4.1.3_j2ee.zip&8337726 > > > >From 4.1.2 to 4.1.3: > > The bridge doesn't assume ownership of log4j.jar if it > came from the global classpath. In particular it > doesn't reset the global log4j configuration anymore > when it detects a log4j back end listening on port > @445 > > > Regards, > Jost Boekemeier > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausragenden Sch= utz gegen Massenmails. > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-06-20 13:28:39
|
Hi, [bridge class loader uses cached classes even though a jar file fetched from a remote URL has been changed] I think Martin's DynamicJavaBridgeClassLoader cannot check the modification time for remote jar files. Please use a local jar file instead. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-06-20 13:24:59
|
Hi, I have created a hidden download which fixes this problem: http://sourceforge.net/project/downloading.php?group_id=117793&use_mirror=osdn&filename=php-java-bridge_4.1.3_j2ee.zip&8337726 >From 4.1.2 to 4.1.3: The bridge doesn't assume ownership of log4j.jar if it came from the global classpath. In particular it doesn't reset the global log4j configuration anymore when it detects a log4j back end listening on port @445 Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-06-20 11:09:11
|
Umm, you just spelled your method name wrong: =20 public void setHelloWorld(String incoming) { hw =3D incoming; } =20 Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke=20 failed: [[o:HelloWorld]]->setHellowWorld([o:PhpParserString]). Cause:=20 java.lang.NoSuchMethodException: setHellowWorld([o:PhpParserString]).=20 Candidates: [] Responsible VM: 1.5.0_11@http://java.sun.com/ = <http://java.sun.com/> " at: #-5=20 There's an extra "w" in there. ________________________________ From: php...@li... on behalf of = php...@li... Sent: Tue 6/19/2007 1:14 PM To: php...@li... Subject: [Php-java-bridge-users] Troubles calling a simple Java app I am new to the php-java-bridge and am experimenting with it. There=20 is probably something obvious that I am not seeing, but I cannot get=20 a simple example Java to PHP application bridge working. I used the=20 latest Debian packages which are using version 4.0.8a of the php-java- bridge. I can see via phpinfo() that php-java-bridge is installed and=20 running via Apache2.2 right now. The following application works fine=20 (I got it from the examples page): Java: public class HelloWorld { private String hw =3D "Hello World"; public String getHelloWorld() { return hw; } } PHP: <?php java_require('http://192.168.1.128/java/HelloWorld.jar'); $myObj =3D new Java('HelloWorld'); // display Hello World echo (String) $myObj->getHelloWorld(); ?> However, if I change the Java and PHP to the following, then I get=20 the following exception output: Hello World Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke=20 failed: [[o:HelloWorld]]->setHellowWorld([o:PhpParserString]). Cause:=20 java.lang.NoSuchMethodException: setHellowWorld([o:PhpParserString]).=20 Candidates: [] Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-5=20 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1106) #-4=20 php.java.bridge.Request.handleRequest(Request.java:342) #-3=20 php.java.bridge.Request.handleRequests(Request.java:388) #0 [internal=20 function]: Java->__call('setHellowWorld', Array) #1 /home/jhodapp/ projects/java_bridge/HelloWorld.php(9): Java->setHellowWorld('Hello=20 world, on...') #2 {main}] thrown in /home/jhodapp/projects/ java_bridge/HelloWorld.php on line 9 Changed Java (throws exception): public class HelloWorld { private String hw =3D "Hello World"; public String getHelloWorld() { return hw; } public void setHelloWorld(String incoming) { hw =3D incoming; } } Changed PHP (throws exception): <?php java_require('http://192.168.1.128/java/HelloWorld.jar'); $myObj =3D new Java('HelloWorld'); // display Hello World echo (String) $myObj->getHelloWorld(); $myObj->setHellowWorld((String) "Hello world, once again."); ?> Once I add my own method in the Java source, it no longer seems to=20 work. I'm compiling this via "javac HelloWorld.java" and making a jar=20 via: "jar cvf HelloWorld.jar HelloWorld.class" Is there something wrong with my setup? The site seems to be good at=20 helping you get setup with php-java-bridge for your OS environment,=20 but lacks good documentation from that point. Thanks, Jim Hodapp -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2007-06-19 17:14:27
|
I am new to the php-java-bridge and am experimenting with it. There is probably something obvious that I am not seeing, but I cannot get a simple example Java to PHP application bridge working. I used the latest Debian packages which are using version 4.0.8a of the php-java- bridge. I can see via phpinfo() that php-java-bridge is installed and running via Apache2.2 right now. The following application works fine (I got it from the examples page): Java: public class HelloWorld { private String hw = "Hello World"; public String getHelloWorld() { return hw; } } PHP: <?php java_require('http://192.168.1.128/java/HelloWorld.jar'); $myObj = new Java('HelloWorld'); // display Hello World echo (String) $myObj->getHelloWorld(); ?> However, if I change the Java and PHP to the following, then I get the following exception output: Hello World Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:HelloWorld]]->setHellowWorld([o:PhpParserString]). Cause: java.lang.NoSuchMethodException: setHellowWorld([o:PhpParserString]). Candidates: [] Responsible VM: 1.5.0_11@http://java.sun.com/" at: #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1106) #-4 php.java.bridge.Request.handleRequest(Request.java:342) #-3 php.java.bridge.Request.handleRequests(Request.java:388) #0 [internal function]: Java->__call('setHellowWorld', Array) #1 /home/jhodapp/ projects/java_bridge/HelloWorld.php(9): Java->setHellowWorld('Hello world, on...') #2 {main}] thrown in /home/jhodapp/projects/ java_bridge/HelloWorld.php on line 9 Changed Java (throws exception): public class HelloWorld { private String hw = "Hello World"; public String getHelloWorld() { return hw; } public void setHelloWorld(String incoming) { hw = incoming; } } Changed PHP (throws exception): <?php java_require('http://192.168.1.128/java/HelloWorld.jar'); $myObj = new Java('HelloWorld'); // display Hello World echo (String) $myObj->getHelloWorld(); $myObj->setHellowWorld((String) "Hello world, once again."); ?> Once I add my own method in the Java source, it no longer seems to work. I'm compiling this via "javac HelloWorld.java" and making a jar via: "jar cvf HelloWorld.jar HelloWorld.class" Is there something wrong with my setup? The site seems to be good at helping you get setup with php-java-bridge for your OS environment, but lacks good documentation from that point. Thanks, Jim Hodapp |
From: <php...@li...> - 2007-06-19 08:52:13
|
Hi, I assume your setup is like this: http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html If I understand this correctly, the management node must detect the failure of one of the cluster nodes and switch it off. I haven't tested the bridge in a cluster environment (we should do this, though); the bridge is a standard web application so that the operation mode of the J2EE environment should be completely transparent. Which cluster algorithm do you use? Do you use sessions? How do you store the sessions? Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-06-18 20:55:38
|
Hi, =20 There is something you could possibly help us with. We have a cluster = with two machines that have (tomcat 5.5.17), jdk1.5.0_06 and php 5.1.2 = each. Our web application uses php-java-bridge. We have noticed a weird = behavior though. When both instances of tomcat are running within 15 to = 30 min one of the tomcat instances stops responding and a browser window = where we are accessing our php application blacks out. Has anyone = experience a similar problem? We have not found exception in the log = files, so we have no clue what could be going on. Please let me know if = you need me to provide more information to help me find out what could = be causing the failure in the tomcat cluster. =20 Thank you very much in advance. |