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
(1) |
2
|
3
(1) |
4
(1) |
5
(4) |
|
6
|
7
(3) |
8
(2) |
9
(4) |
10
(4) |
11
(2) |
12
(3) |
|
13
(4) |
14
(2) |
15
(3) |
16
(3) |
17
(3) |
18
(3) |
19
(4) |
|
20
(3) |
21
(2) |
22
(5) |
23
(3) |
24
(2) |
25
|
26
|
|
27
(4) |
28
(1) |
29
(1) |
30
(4) |
|
|
|
|
From: Michael E. <els...@gm...> - 2005-11-11 15:35:49
|
The service script shipped with the archive does not work on my debian machine. I don't have as much knowledge of linux as I'd like, so could anybody give me some advice? The "deamon" command used by the script is not available on my machine, and neither is /etc/rc.d/init.d/functions. Has anybody on the list already written a startup script for debian? Thanks, Michael |
|
From: Michael E. <els...@gm...> - 2005-11-11 15:33:02
|
When running the bridge with in internal java process started by the web server (Apache2/PHP5), I get these messages a lot. PHP Notice: php_mod_java(57): waiting for server another 14 seconds in Unknown on line 0 For example, every time I run the php executable on the command line. Is there something wrong? Everything seems to be working fine. What can be done to suppress these messages? Any help is appreciated. Thanks, Michael |
|
From: Abbett, J. <Jon...@ch...> - 2005-11-10 20:55:07
|
Your suggested solution worked after I put quotes around my numeric
parameter -- the BigInteger constructor doesn't take Longs, but it does
take Strings!
$docRef->setVersion(new java("java.lang.BigInteger","1"));
Thanks for your help,
--Jon
-----Original Message-----
From: Jost Boekemeier [mailto:jos...@ya...]=20
Sent: Thursday, November 10, 2005 2:25 PM
To: Abbett, Jonathan; php...@li...
Subject: Ant: [Php-java-bridge-users] Bridge turns BigInteger into a
double?
Hi Jonathan,
please always create a java value explicitly instead
of relying on auto-conversions for php values[1]:
Instead of
$obj->method($phpVal);
use
$obj->method(new java("<param-class>", $phpVal));
So your example would read:
$docRef->setVersion(new java("java.lang.BigInteger",
1));
> It looks like the PHP-Java Bridge is transforming my
> BigInteger=20
When possible a java value is represented as a php
value. "Possible" means: All sub-types of
java.lang.Number are represented as a php exact or
inexact number and all java strings are represented as
a UTF-8 encoded[2] php string. Everything else is
represented as a opaque object handle.
To create an object handle for such a php value one
has to invoke the constructor as shown above.
Regards,
Jost Boekemeier
[1] all instances of java.lang.Number and all
instances of java.lang.String
[2] encoding can be changed with e.g.: java_set_file_encoding("ASCII").
=09
=09
=09
___________________________________________________________=20
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier
anmelden: http://mail.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-11-10 19:24:58
|
Hi Jonathan,
please always create a java value explicitly instead
of relying on auto-conversions for php values[1]:
Instead of
$obj->method($phpVal);
use
$obj->method(new java("<param-class>", $phpVal));
So your example would read:
$docRef->setVersion(new java("java.lang.BigInteger",
1));
> It looks like the PHP-Java Bridge is transforming my
> BigInteger
When possible a java value is represented as a php
value. "Possible" means: All sub-types of
java.lang.Number are represented as a php exact or
inexact number and all java strings are represented as
a UTF-8 encoded[2] php string. Everything else is
represented as a opaque object handle.
To create an object handle for such a php value one
has to invoke the constructor as shown above.
Regards,
Jost Boekemeier
[1] all instances of java.lang.Number and all
instances of java.lang.String
[2] encoding can be changed with e.g.: java_set_file_encoding("ASCII").
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|
|
From: Abbett, J. <Jon...@ch...> - 2005-11-10 16:24:54
|
I have a method that takes a BigInteger as input, but I can't seem to
get a BigInteger in there. A code fragment:
=20
$docRef =3D $factory->createDocumentReferenceType();
$bigint =3D new java_class("java.math.BigInteger");
$docRef->setVersion($bigint->valueOf(1));
=20
I get an exception on that last line, which is reported in the PHP error
log:
=20
PHP Fatal error: Uncaught [class java.lang.Exception:
java.lang.Exception: Invoke failed:
[org.chip.ping.xml.annotation.impl.DocumentReferenceTypeImpl@15b44d6]->s
etVersion(class java.lang.Double). Cause:
java.lang.IllegalArgumentException: argument type mismatch]
...
=20
It looks like the PHP-Java Bridge is transforming my BigInteger into a
java.lang.Double. How do I prevent this from happening? What
alternatives do I have?
=20
Thanks,
Jon Abbett
=20
=20
=20
=20
|
|
From: Adam C. <ada...@gm...> - 2005-11-10 16:07:41
|
Does anyone know how to create a java two-dimensional array
and set its value of each element in php-code?
Thanks for your attention and help.
For example: one-dimensional array
<?php
$Array =3D new JavaClass("java.lang.reflect.Array");
$String =3D new JavaClass("java.lang.String");
$entries =3D $Array->newInstance($String, 3);
$entries[0] =3D"a";
$entries[1] =3D"b";
$entries[2] =3D"c";
?>
|
|
From: Jost B. <jos...@ya...> - 2005-11-09 18:43:05
|
Hi, security concerns aside[1], please see PR1235199 (http://sourceforge.net/tracker/index.php?func=detail&aid=1235199&group_id=117793&atid=679233), it contains a description how to pass additional options to the JVM. Regards, Jost Boekemeier [1] Setting java.awt.headless=false would allow php scripts to access the graphics display, at least on windows (on unix the attacker needs permission to access the display, e.g. via xhost +). This would enable php scripts to log key events: passwords etc. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-11-09 18:32:09
|
Hi Victor, the easiest way is to install the j2ee backend (http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge.j2ee_2.0.8.zip?download). It allows you to convert your jsp files to php step by step. Assuming that your web application is called myApp and you want to run php files: * copy webapps/JavaBridge/WEB-INF/lib/JavaBridge.jar and the controller servlet classes from JavaBridge/WEB-INF/classes/ to webapps/myApp/WEB-INF/ * add the servlet mapping to your WEB-INF/web.xml, please see JavaBridge/WEB-INF/web.xml for a template. Please set the init-param "override_hosts" to Off and set the correct hosts and servlet in your php.ini: * use the following lines in your php.ini [java] java.hosts="127.0.0.1:8080" java.servlet="/myApp/PhpJavaServlet" If you browse to http://localhost:8080/myApp, you should be able to develop and invoke your php files. For a production system please start Apache and browse to http://yourHost.com/myApp. The php modules will call to the java backend as neccesary. In case you have a distribution where the tomcat webapps and the apache htdocs directories are not shared, please either use a symlink or use mod jk to "JkMount" the tomcat webapps directory into apache (please see the readme for details). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Simon A. <ch...@mi...> - 2005-11-09 08:26:21
|
I have a situation where I'm running Java under the PJB and it needs access to the X server. In this case, the flag normally passed in to Java "-Djava.awt.headless=true" causes my application not to work right. I had to change the file bind.c and recompile to change the parameter to "-Djava.awt.headless=false" so that my software could work. It would be nice if this were a configurable option. |
|
From: Victor L. <vic...@ya...> - 2005-11-09 00:28:02
|
Hi, I have some JSP code, and I want to convert them to PHP by using php-java-bridge. Is there a easy way to do it? Many thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Jost B. <jos...@ya...> - 2005-11-08 16:57:55
|
Hi Victor, [I assume that you want to use PHP scripts from java projects like tapestry, java server faces, etc.] > where can I find more tutorial about how to use this > bridge? A tutorial doesn't exist at the moment. However, it is planned for version 3.0 and 2.0.9. > I also need more code examples that use this > bridge. At the moment only the php API functions are documented (->http://php-java-bridge.sf.net). If you want to use the bridge from java code, I suggest to use the script API, which will be available with jdk1.6, please see http://download.java.net/jdk6/docs/api/javax/script/package-summary.html and http://sourceforge.net/mailarchive/forum.php?thread_id=8895955&forum_id=42415 > The documentation is not that detail. I don't know > what many of the functions do even after I read the > documentation come with the code itself. Which functions do you mean specifically? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-11-08 16:46:21
|
Hi Corey, please excuse the delay. > I running PHP Version 4.3.4 [...] > Warning: dl(): Unable to load dynamic library > '/usr/lib/php/extensions/java.so' - > /usr/lib/php/extensions/java.so: > undefined symbol: zend_ce_arrayaccess in > /srv/www/htdocs/test.php on line 12 This sounds similar to PR1181710 (please see http://sourceforge.net/tracker/index.php?func=detail&aid=1181710&group_id=117793&atid=679233). Are you shure that you have created the java.so against the php 4.3.4 ABI -- or have you copied the java.so from somwhere else? Can you please create a ticket for this (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the java.so to this ticket? I will check this asap. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Victor L. <vic...@ya...> - 2005-11-07 19:38:47
|
Hi, I am new in this php-java-bridge. Do you know where can I find more tutorial about how to use this bridge? I also need more code examples that use this bridge. The documentation is not that detail. I don't know what many of the functions do even after I read the documentation come with the code itself. Many thanks. __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com |
|
From: Jost B. <jos...@ya...> - 2005-11-07 17:45:37
|
[resent]
Hi,
a URLConnection is used to connect to the frontend
(Apache). The php instance in turn connects to our
java backend (the current vm) using the following
code:
(java_context()->getAttribute("X_JAVABRIDGE_CONTINUATION"))->call(java_closure());
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|
|
From: Kai L. <K.L...@li...> - 2005-11-07 11:39:51
|
Just out of curiosity - do you use php as a usual cgi binary, or do you use the fastcgi interface when invoking PHP Code from Java .. best regards, Kai Londenberg ------------------------------- librics GmbH & Co. KG G=F6ttinger Chaussee 115 D-30459 Hannover Tel. +49 511 - 473 88 77 =46ax +49 511 - 473 88 78 mailto: K.L...@li... |
|
From: Corey B. <cor...@ho...> - 2005-11-05 23:18:59
|
Greetings. I am having trouble with the installation on loading the extension. When the 'java.so' extension load is attempted I get the following error: Warning: dl(): Unable to load dynamic library '/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so: undefined symbol: zend_ce_arrayaccess in /srv/www/htdocs/test.php on line 12 I running PHP Version 4.3.4 Any help would be appreciated. Thanks. |
|
From: Jost B. <jos...@ya...> - 2005-11-05 13:54:37
|
Hi Kevin, > I'm attempting to set up the php-java-bridge in the > "load balancing > and failover" approach. What access does Apache > need to have to the > .php files in my project? It should work if you symlink the tomcat webapps directory into the apache document root or if you "jk mount" it. It's just that apache must be able to allocate and to invoke a php instance from its pool. > *install warfile > *access http://myhost/JavaBridge/numberguess.php Yes. If /var/www/html/JavaBridge/numberguess.php exists. > Or do I need to grant apache access to that > directory, and map > JavaBridge/**.php to the webcontent/JavaBridge > directory? jk mounting it is is also possible, but slower. When you mount a file or directory using mod_jk, the adapter "copies" the content of the file or directory from the tomcat dir to the apache dir at run-time. So I would just symlink the $CATALINA_HOME/webapps/JavaBridge to /var/www/html/htdocs/. BTW: If you have RedHat FC4, the tomcat webapps and the apache htdocs are shared by default, mod_jk is not needed anymore. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Jost B. <jos...@ya...> - 2005-11-05 13:36:43
|
Hi Guillaume,
> $Array = new JavaClass("java.lang.reflect.Array");
> $String = new JavaClass("java.lang.String");
> $entries = $Array->newInstance($String, 2);
[...]
> $req->ProcessFunction($Array);
[...]
>...(([Ljava.lang.String;)c:java.lang.reflect.Array)
if I understand this correctly, you want to pass the
created String[] instance to ProcessFunction, not the
$Array class.
Does
$req->ProcessFunction($entries)
solve the problem?
BTW: The above error message indicates that the
ProcessFunction2 accepts a [Ljava.Lang.String], i.e. a
String[] but it is called with an argument which is a
class java.lang.reflect.Array. I agree that this is
difficult to read, but if I make the message more
verbose, php may cut off the rest of the message.
Maybe the full message should go to the PHP/Java
Bridge log.
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|
|
From: Jost B. <jos...@ya...> - 2005-11-05 12:46:04
|
Hi, a number of people have asked how to invoke php scripts from a java servlet or from a java application. Instead of answering these questions individually I have created a demo. The ~4MB linux tar file can be downloaded at -> php-java-bridge.sf.net/php-java-bridge-3.0-demo.tar It contains: * JavaBridge.jar version 3.0 * java.so version 3.0, intel/linux 386 binary * php version 5.0.5, intel/linux 386 binary * php-script.jar (new since version 3.0) * HelloWorld1.java: Allocates a script from the build-in CGI pool using a local FileReader, calls the local (CGI-) php continuation and invokes php script methods. * HelloWorld2.java: Allocates the script from an external HTTP pool using a URLReader, calls the remote php continuation and invokes php methods. For older java versions (<1.6) it also contains: * script-api.jar ((C) by Sanka Samaranayake, distributed under the Apache license) Extract the php-java-bridge-3.0-demo.tar in /tmp, for example with the command: cd /tmp tar xvf php-java-bridge-3.0-demo.tar And run the sample, for example with: sh runHello.sh To run the second demo, move the HelloWorld.php to your web server, make sure that the PHP/Java Bridge is installed on this web server and check that its php.ini contains _only_ the following entry: [java] # enable the http tunnel java.servlet=On After activating the new .ini (re-start the web-server), you can run the second example, which is similar to the first one except that it uses a URLReader to allocate and to call out to a php instance running on a remote http server. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
|
From: Guillaume D. <gui...@po...> - 2005-11-04 09:57:06
|
Hello,
we're having problems passing a string array to a constructor. We construct
the array in PHP as follows :
$Array = new JavaClass("java.lang.reflect.Array");
$String = new JavaClass("java.lang.String");
$entries = $Array->newInstance($String, 2);
$entries[0] = 'hello';
$entries[1] = 'world';
and we call the constructor as follows :
try {
$req = new javaClass('MyApp');
$req->ProcessFunction($Array);
} catch(JavaException $ex) {
print "$ex";
}
The error message we get is:
[o(Exception):"java.lang.Exception: Invoke failed:
[c:MyApp]->ProcessFunction2(([Ljava.lang.String;)c:java.lang.reflect.Array).
Cause: java.lang.IllegalArgumentException: argument type mismatch"]
The constructor expects a String[] parameter.
Any clues on how to create a Java String[] from PHP?
I can create Integer, Date, Vector or String objects but arrays ...
I tried:
$String = new JavaClass("java.lang.String[]"); // silly but hey, that's what
debugging is all about :)
Any help would be much appreciated.
Thanks in advance!!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.733 / Virus Database: 487 - Release Date: 02/08/2004
|
|
From: Kevin K. <zi...@gm...> - 2005-11-03 19:11:45
|
I'm attempting to set up the php-java-bridge in the "load balancing and failover" approach. What access does Apache need to have to the .php files in my project? Should I expect the following to work unchanged? *install warfile *access http://myhost/JavaBridge/numberguess.php Or do I need to grant apache access to that directory, and map JavaBridge/**.php to the webcontent/JavaBridge directory? -Kevin |
|
From: Jost B. <jos...@ya...> - 2005-11-01 17:45:01
|
Hi Kevin, > I've configured the mod_jk differently I think we can ignore mod_jk for this discussion, because it is not essential for the PHP/Java Bridge. -- Unless you forward everything to tomcat, which would render Apache, PHP and PHP/Java Bridge useless. > Regardless of that, I'm confused about the request > method. The > request is a Get request, as defined by the browser > makeing the > request. Where and why would it be translated to a > Put? It's an internal operation of the bridge. Essentially you have two pools, the HTTP/PHP pool (usually at :80) and the Tomcat (JavaThread) pool (usually at tcp port :8080). For each php instance request with java code in it, the bridge allocates an instance from each pool. The instances communicate using a cps style (they pass each other's continuation). To make this work, the two pools must be accessible to the bridge, of course. "Accessible" means that they must listen on TCP ports. (The bridge also supports unix domain sockets for the local backend, but this requires that you inject a JNI library called "natcJavaBridge.so" into the java VM). > First: I don't want to run apache on port 80, > surely this port isn't hardcoded anywhere? No, of course not. > Second: What do you mean that "java cannot drop > privileges"? Privilege dropping means that one part of the server runs with suid rights while other parts run with lower privileges. POSIX requires that, when a thread changes its uid, all other threads change their id, too. After that tomcat cannot accept connections on the privileged port 80 anymore. > quite possible to configure Tomcat to answer > requests on port 80, If one wants to expose /etc/passwd and /etc/shadow to everyone on the internet, yes... > Apache is running on port 8080, though, and it leads > me to the problem I'm having. So the apache pool listens on 8080 (I thought that's the tomcat pool). On which TCP port does tomcat listen? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |