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-07-14 16:24:32
|
Hi, [loading impure java libraries] > anybody who knows how to do the trick? The native part should go into a VM specific library dir and the Java part into java.ext.dirs. <?php echo java("java.lang.System")->getProperties(); ?> should show the location of both directories. Regards, Jost Boekemeier __________________________________ Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-14 16:21:43
|
Hi, [protocol error] > Length parameter must be greater than 0 in You should find the reason why the back end has closed the connection in the log of the back end. Probably an OutOfMemoryError or something. Regards, Jost Boekemeier __________________________________ Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-07-14 16:19:45
|
Hi, tomcat looks for a JAVA_OPTS environment variable. Example for Unix/Linux which passes some options to the VM: export JAVA_OPTS="-Xmx1024M -Dphp.java.bridge.default_log_level=6" /opt/apache_tomcat6/bin/catalina.sh start Regards, Jost Boekemeier __________________________________ Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-14 16:16:57
|
Hi, > Will it be a version to which "ZEND API" is not > supported? any version is supported. Since version 4.1.8 the bridge uses only two C level API calls: zend_compile and zend_execute. > error: too few > arguments to function My fault, sorry. I forgot to add the TSRMLS_CC to the zend_compile call. So the bridge currently doesn't compile with TSRM. I will fix this in a future version of the C code. Until then please use the latest stable version 3.2.1 instead. Or please use the pure PHP implementation of the bridge. Regards, Jost Boekemeier __________________________________ Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-13 23:44:44
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've got troubles getting the bridge running over a local unix socket connection. I've installed the Debian package php-java-bridge_4.0.8a on my Ubunto PC and configured the module in many ways already - including autom. startup of a bridge-jvm with apache and also the standalone using the JavaBridge.jar. My question: * where do I set the classpath? When running the JavaBridge.jar? Or in the java.ini, or in both? * how can I enable local socket-only connections? Thanks! - -------------- Using the standalone JavaBridge.jar started with: java -Dphp.java.bridge.threads=10 - -Dphp.java.bridge.base=/usr/lib/php5/20060613+lfs/ - -Djava.classpath=[my-classpath] -jar JavaBridge.jar LOCAL:/tmp/php_java_sock 3 /var/log/php-java-bridge.log and my java.ini: extension = java.so [java] java.hosts = 127.0.0.1:9267 ;;does not work without this actually unused setting! - I only want to use the local socket! java.socketname = /tmp/php_java_sock the bridge doesn't use the socket. I also have troubles with the classpath. I tried to add the classpath in the java.ini with "java.classpath" and I tried to use -Djava.class.path instead of -Djava.classpath... when running the jvm. If I specify the classpath in the ini, phpinfo() shows it, but nevertheless I'm getting: java.lang.ClassNotFoundException: Could not find net.immofirst.maut.realestates.RealEstatesTest in java_require() path - I'm sure that the standalone JavaBridge.jar also requires the CP but has troubles getting it... Thanks. I would appreciate if you could help. Additionally I would interested in your setup concerning performance. I think sockets should be many times faster. How does persistent connections work? The initialisation is very slow - I measured ~300ms/request, 95% goes into connection init - the first java object instantiation is slow, a 2nd one is much faster... Cheers, Andy - -- - ---------------------------------------------------------------------- Dipl.-Ing.(FH) Andreas Langegger Institute for Applied Knowledge Processing Johannes Kepler University Linz A-4040 Linz, Altenberger Straße 69 > http://www.faw.at > http://www.langegger.at -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGmA5iKk9SuaNc5+IRAtboAJ4k35F0gMKyyMERZMIS5Aa64kEUugCg2DL1 m6TlYizpyhYStOzA0yCHLtE= =DlIT -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-07-13 22:51:17
|
Hello, i'm running into a little problem when i want to use a *.jar which requires a shared object. i registered the object and when i list all the registred objects with ldconfig it's there but when i run my code i get this: CreateInstance failed: new com.asprise.util.ocr.OCR. Cause: java.lang.UnsatisfiedLinkError: Native library AspriseOCR could not be found in java_require() path. anybody who knows how to do the trick? -- Gilbert Groenendijk |
From: <php...@li...> - 2007-07-12 19:13:30
|
I restarted my webserver (running WIMP) and suddenly I'm getting protocol errors when running an extremely simple java program: <?php session_start(); require_once("http://localhost:8080/JavaBridge/java/Java.inc"); $systemInfo = new Java("java.lang.System"); echo "Total seconds since January 1, 1970: ".$systemInfo->currentTimeMillis(); ?> This worked before I restarted my webserver so I know it's not an error in the code. I get the following php error: [12-Jul-2007 11:55:35] PHP Warning: fread() [<a href='function.fread'>function.fread</a>]: Length parameter must be greater than 0 in http://localhost:8080/JavaBridge/java/Java.inc on line 1313 and on-screen (in Firefox) the following: protocol error: , Invalid document end at col 1 I'm using a Java EE Platform with javabridge.war deployed. Any help would be appreciated. --Nathan Shaskin Compliance Publishing. --------------------------------- Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. |
From: <php...@li...> - 2007-07-12 18:42:16
|
hello, i'm currently running the php javabridge in combination with tomcat. I red somewhere that java uses 64mb by default. To speed up my app i want to use 256 mb. What would be the best approach to do that. I think i'll need to add the parameter -Xmx256 to the startup command but how? thanks in advance -- Gilbert Groenendijk |
From: <php...@li...> - 2007-07-12 07:08:40
|
Hi. php-java-bridge was not able to be installed. The error occurs when "make" command is executed. Will it be a version to which "ZEND API" is not supported? help me. my cmd: phpize ./configure --with-java=/usr/local/jdk,/usr/local/jdk/jre make -------------------------------- php-java-bridge: 4.1.8 OS : CentOS4.5 Apache : 2.0.55 PHP : 5.2.3 JAVA : Java1.5.0_06 -------------------------------- --- ERROR -------------------------------------------------------------- ------------------------------------ # phpize # ./configure --with-java=/usr/local/jdk,/usr/local/jdk/jre # make /usr/local/src/php-java-bridge-4.1.8/java.c: In function ` java_compile_string': /usr/local/src/php-java-bridge-4.1.8/java.c:118: error: too few arguments to function /usr/local/src/php-java-bridge-4.1.8/java.c:119: error: `tsrm_ls' undeclared (first use in this function) /usr/local/src/php-java-bridge-4.1.8/java.c:119: error: (Each undeclared identifier is reported only once /usr/local/src/php-java-bridge-4.1.8/java.c:119: error: for each function it appears in.) make: *** [java.lo] エラー 1 ------------------------------------------------------------------------ ------------------------------------ --- phpize ---------------------------- # phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 --------------------------------------- write JJ -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/ |
From: <php...@li...> - 2007-07-09 14:51:22
|
Hi, > the same exception error. We think we have this set > up: > > internet --- Apache LB -- J2EE node 1 -- PHP > .................|--------- J2EE node 2 -- PHP this setup doesn't use a remote context factory. Do you use a load balancer setup where the DNS server is changing the official name of the nodes? When the promiscuous option is enabled, the bridge uses the official name to connect to itself. > Is there a parameter that enables the > RemoteServletContextFactory? The remote factory is used when a PHP script running on a remote host accesses the back end. Either there's some problem with your setup or you (or the frame work you use) allocate this factory. But it is hard to tell, because you haven't raised the bridge log level. All I see is the exception message and the stack trace. Regards, Jost Boekemeier __________________________________ BE A BETTER MEDIZINMANN: Jetzt Frage stellen und einen von 44 iPods gewinnen! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-05 20:11:54
|
Hi Jost, We tested using the php implementation and we got the same exception = error. We think we have this set up: internet --- Apache LB -- J2EE node 1 -- PHP .................|--------- J2EE node 2 -- PHP .................|---------... Is there a parameter that enables the RemoteServletContextFactory? Or = how do we disable it? Please let us know, Thanks, |
From: <php...@li...> - 2007-07-04 15:03:25
|
Hi, the RemoteContextFactory doesn't initially store a session factory. Why is that a remote context factory anyway, do you run PHP on the Apache instance set up as the load balancer? This cannot work. The setup should look like: internet --- Apache LB -- J2EE node 1 -- PHP .................|--------- J2EE node 2 -- PHP .................|---------... or internet --- Apache LB -- Apache+PHP 1 - J2EE node 1 ...............|----------- Apache+PHP 2 - J2EE node 2 ...............|-----------.. Regards, Jost Boekemeier __________________________________ BE A BETTER WELTENBUMMLER: Jetzt Frage stellen und einen von 44 iPods gewinnen! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-03 20:28:21
|
Hi Jost, I've opened a new ticket # 1747304. I've added the information you = requested and an extract of the log files. (The upload form did not = allowed me to add a file > 256KB). We will run it using the php version = instead of the c one and let you know how it goes.=20 Please let me know if you need any other information. Thank you very much for looking into this. |
From: <php...@li...> - 2007-07-03 16:43:53
|
Thanks a LOT for the tip. We switched to 3.2.1, and have not been able to re-create the problem. Michael. > -----Original Message----- > From: php...@li... [mailto:php- > jav...@li...] On Behalf Of = php-java- > bri...@li... > Sent: Saturday, June 23, 2007 11:45 AM > To: php...@li... > Subject: Re: [Php-java-bridge-users] occassional blank screen >=20 > Hi, >=20 >=20 > > Using php-java-bridge v 4.1.1 >=20 > Please try version 4.1.2. Or use the latest stable > version, which is PHP/Java Bridge 3.2.1. >=20 > 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. >=20 >=20 > > 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 >=20 > Yes, version 4.1.1 had serious problems when used with > the C based extension (java.so or php_java.dll). >=20 > 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. >=20 > In versions 4.1.2 and above the C extension should > work again. >=20 >=20 > Regards, > Jost B=F6kemeier >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausragenden = Schutz > gegen Massenmails. > http://mail.yahoo.com >=20 > = -------------------------------------------------------------------------= > 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-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. |