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
|
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. |
From: <php...@li...> - 2007-06-18 16:14:36
|
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: ph= p-j...@li...> From: php-java-bridge-users@list= s.sourceforge.net> Subject: Re: [Php-java-bridge-users] Protocol Invalid Do= cument 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,> Jo= st Boekemeier> > > __________________________________________________> Do Y= ou Yahoo!?> Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausra= genden Schutz gegen Massenmails. > http://mail.yahoo.com > > --------------= -----------------------------------------------------------> This SF.net em= ail 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 t= o get it now.> http://sourceforge.net/powerbar/db2/> ______________________= _________________________> php-java-bridge-users mailing list> php-java-bri= dge...@li...> https://lists.sourceforge.net/lists/listin= fo/php-java-bridge-users _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3DQ= BRE= |
From: <php...@li...> - 2007-06-18 12:13:49
|
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 |
From: <php...@li...> - 2007-06-18 12:09:31
|
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 |
From: <php...@li...> - 2007-06-18 12:07:50
|
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 |
From: <php...@li...> - 2007-06-18 06:12:55
|
Hello, I have to connect an existing PHP web-application with a new JSP-Part = but fail to get the MySQL connection within the existing PHP application = when I use the PHP-Java-Bridge. The development is under WinXP, the production environment is linux. a.. php-java-bridge-4.1.0a=20 b.. apache 2.0.55=20 c.. tomcat 5.5.2=20 d.. MySQL 5.0.18=20 The installation of JavaBridge as described by ACET was no problem. a.. downloading the war file=20 b.. unpacking the war file to get JavaBridge.jar and php-servlet.jar=20 c.. copying the JavaBridge.jar and php-servlet.jar, located under = WEB-INF/lib to $CATALINA_HOME/shared/lib=20 d.. copying JavaBridge.war to $CATALINA_HOME/webapps and startup = Tomcat Then http://localhost:8080/JavaBridge/ showed me the samples to execute. = Everything works so far, even the former PHP-application can be called = by localhost:8080/... =20 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. I thought an new line like extension=3Dphp_mysql.dll (and something similar for the = linux counterpart) in=20 $CATALINA_HOME/webapps/myapp/WEB-INF/cgi/php.ini would do the job but that try did not change anything. How can I use the formerly loaded extentions like MySQL with = PHP-Java-Bridge? Thanks in advance Joachim |
From: <php...@li...> - 2007-06-17 12:43:03
|
Hello list, Firstly, thank you to the php-java-bridge developers - this project has proven invaluable to me and has worked out of the box with little configuration. I recently have installed the JavaBridge.war into a JBoss/Tomcat configuration. JBoss uses log4j for all of its logging, and all of the other components for our web application thus use it as well. It looks like the JavaBridge.war resets the log4j configuration, when it finds log4j.jar on the class path and attempts to setup the ChainsawLogger. When this happens, all logging for any component in JBoss is disabled, and no more logging output occurs throughout my app server. A reference to how someone else got around this issue in the past: http://sourceforge.net/mailarchive/message.php?msg_id=20061014163030.20262.qmail%40web27908.mail.ukl.yahoo.com I've already modified the Java source files to just use the FileLogger class rather than reconfigure log4j (and thus lose the rest of my jboss logging). However, I am running into issues on the build process. I am a Java developer unfamiliar with autoconf/automake -- can someone point me at the steps necessary to recreate the JavaBridge.war file? I'd like to only modify the source for the 4.08a version I am using (or whatever the latest stable release is), right now I checked out the latest from CVS, but I'd rather not deploy it until the next stable release. Any thoughts on making the logging more configurable - or just changing the default detection scheme for log4j to make it not reset the entire logging configuration? Thanks for your help, -Mark |
From: <php...@li...> - 2007-06-16 23:47:59
|
Hello, I used an older version of the bridge with php_java.dll under windows. Now I have to use php5.2 and the latest release of the bridge doesn't have php_java.dll... As I read in the mailing list, I have to recompile the bridge extension, but I don't how how. Where are the sources ? is it possible to compile with mingw under windows ? Regards, Benjamin Fourticq |
From: <php...@li...> - 2007-06-16 08:56:43
|
Hi, > I could not reproduce this okay, I could reproduce this now. We actually have a feature test which checks if the current thread context class loader is out of sync with the java bridge class loader. But this problem happens only when persistent connections are used, not with a named pipe communication channel. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2007-06-16 08:52:58
|
Hi Jonathan, I could not reproduce this, but I think I see the problem: The classloaded referenced by the current thread context is out of sync with the classloader kept by the bridge. This may happen when persistent connections are used, but the bridge does not call recycle() at the end of the script. This happens when the pure PHP implementation is used, which uses a different path than the C implementation. As a workaround please modify your Java.inc and change the "pfsockopen" to "fsockopen" (all occurences). However, this problem should be fixed in version 4.1.1. (The current test version is 4.1.0b, please use the link http://sourceforge.net/project/downloading.php?group_id=117793&use_mirror=osdn&filename=php-java-bridge_4.1.0_j2ee.zip&15111070). > command line. Version 4.1.1 doesn't exist -- you > just released 4.1.0a yesterday, right? Yes, it is a test version, which is currently hidden. > java.lang.IllegalStateException: java_require() not That was a bug in 4.1.0a, the DynamicJavaBridgeClassLoader was switched off in 4.1.0a, so java_require() failed. It is enabled again in 4.1.0b. 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-16 08:42:00
|
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 |
From: <php...@li...> - 2007-06-15 18:59:43
|
HiIt is giving me a java.lang.IllegalStateException: java_require() not all= owed for the HTTP Tunnel. Use a context runner instead.My java_require sta= tement just has java_require("test.jar"); in itThanksJoshua> Date: Fri, 15 = Jun 2007 19:54:04 +0200> To: php...@li...> F= rom: php...@li...> Subject: Re: [Php-java-br= idge-users] Protocol Invalid Document End error> > Hi,> > > href=3D'functio= n.fwrite'>function.fwrite</a>]: send of> > 11 bytes> > failed with errno=3D= 10053 An established connection> > you should find the reason why the back = end has closed> the connection (e.g. OutOfMemoryError, ...) in the log> fil= e of the back end.> > If you can't find the reason, please open a ticket> (= please use> http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&at= id=3D679233),> set the log level to 4 and attach the log at the end> of the= ticket.> > (A google search for "windows error 10053 code"> reveiled some = problems with XP, however, we will see> the reason for the failure in the l= og file of the back> end.)> > > Regards,> Jost Boekemeier> > > ____________= ______________________________________> Do You Yahoo!?> Sie sind Spam leid?= Yahoo! Mail verf=FCgt =FCber 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> contro= l of your XML. No limits. Just data. Click to get it now.> http://sourcefor= ge.net/powerbar/db2/> _______________________________________________> php-= java-bridge-users mailing list> php...@li...= > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQBR= E= |