You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
|
2
(1) |
3
(1) |
4
(7) |
5
(1) |
6
|
7
|
|
8
|
9
|
10
(3) |
11
(1) |
12
(1) |
13
|
14
|
|
15
(1) |
16
(6) |
17
(6) |
18
(4) |
19
|
20
|
21
|
|
22
|
23
(2) |
24
|
25
|
26
(3) |
27
(6) |
28
(3) |
|
29
|
30
(3) |
|
|
|
|
|
|
From: <php...@li...> - 2007-04-30 17:44:41
|
Hi there --
Yes, I read and understand the function below and changed my script in
an attempt to utilize the JavaClass option as a test, but received the
same exception as a few days ago, which was that update() didn't exist:
function java($clazz) {
static $cache;
if(isset($cache)) return $cache;
return $cache=3Dnew JavaClass($clazz);
}
$algorithm =3D java("java.security.MessageDigest");
$algorithm->getInstance("md5");
$algorithm->reset();
$algorithm->update($password->getBytes());=20
In other various tests it would toss a "reset() doesn't exist"
exception, etc etc.=20
But rather than this as an issue, I think it's looking more like a
problem with my Bridge install.
I've removed the java.so from /etc/php.d/java.ini and now I'm receiving
the error that sent me in many different directions to get this to work
:)
"PHP 5.0.4 too old.
For PHP versions < 5.1.4 install the java.so or php_java.dll from the
php-java-bridge-legacy download.
Or set the path to the PHP executable, see php_exec in the
WEB-INF/web.xml"
I have set the path to my php executable in
/usr/java/tomcat-5.5/webapps/JavaBridge/WEB-INF/web.xml as follows:
<!-- Your php binary. Default is /usr/bin/php-cgi or -->
<!-- c:/php/php-cgi.exe -->
<!--
<init-param>
<param-name>php_exec</param-name>
<param-value>/usr/bin/php</param-value>
</init-param>
-->
I also tried /usr/bin/php-cgi as suggested in the file, though when I
read "php binary" I think of /usr/bin/php, not php-cgi. Please correct
me if I'm wrong. Both binaries exist and both paths toss the same
error.
When I run 'which php' I get '/usr/bin/php'
I cannot upgrade the php install.
>> When I try to run this on the command line:=20
>> java -jar JavaBridge.war --help
> In which documentation have you found the above
> command? The .war file is a web archive, not an
> executable jar file. We could change that in the
> future, though.
Sorry, was a typo on my part on the command line, though using .jar
affects the same response. The command doesn't even get far enough to
toss an error relative to the file type.
> The java.so contains code which could make the
> communication faster. But it is quite difficult to
> handle, especially for beginners.
And a beginner with Java I am, indeed. =20
Thanks for your help!
K
|
|
From: <php...@li...> - 2007-04-30 17:07:57
|
Hi,
> Hrm, this is frustrating. I put this together and
> received a "Call to
> undefined function java()" error (see full error
> below):
It is defined in Java.inc as:
function java($clazz) {
static $cache;
if(isset($cache)) return $cache;
return $cache=new JavaClass($clazz);
}
The function is handy because it hides the class
variable inside the function.
The code:
$System = new JavaClass("java.lang.System");
$systemProps = $System->getProperties();
is equivalent to:
$systemProps=java("java.lang.System")->getProperties();
but the latter is easier to read.
> It seems to not find the objects within Java.inc,
Hmm, when you use the java.so or php_java.dll, some
old versions of Java.inc don't define this function.
It may make sense to implement the function directly
in java.c.
> however it's including
> the file properly in the script so therefore I am
> considering that I
> don't have the Bridge installed properly.
Mea culpa. I thought that you use the pure PHP
implementation. Just remove the java.so and the script
will work.
> I've followed the j2ee instructions to install the
> bridge as I want
> Tomcat to run the JVM rather than a new JVM trying
> to run each request.
Correct.
> Is this incorrect? Does a JVM have to start every
> time anyway?
Well, you have two options, a) start Java as a sub
process of Apache or IIS (not recommended, needs
java.so) or b) start Java via a J2EE server or servlet
engine as a system service (recommended).
On Windows/Unix you can start tomcat as a service.
> running this on a Virtual Dedicated Hosting account
> and therefore it's
> not my own server to run as I please.
Hmm. Do you get a notification when the computer
boots? You can start a persistent java VM with
nohup java -jar JavaBridge.jar <port> 3 jb.log&
but the above VM will terminate when the computer
reboots.
> When I try to run this on the command line:
> java -jar JavaBridge.war --help
In which documentation have you found the above
command? The .war file is a web archive, not an
executable jar file. We could change that in the
future, though.
> I've saved java.so to the php-extension directory
-------
nak, nak, nak. Remove it, please. :)
The java.so contains code which could make the
communication faster. But it is quite difficult to
handle, especially for beginners.
Regards,
Jost Boekemeier
__________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-04-30 16:24:21
|
Hey Jost --
Thanks for your time on this.
Hrm, this is frustrating. I put this together and received a "Call to
undefined function java()" error (see full error below):
require_once("/usr/java/tomcat-5.5/webapps/JavaBridge/java/Java.inc");
$passwd=3D"admin";
try {
java_require("file:/usr/lib/php/modules/lib/mail.jar"); // mail.jar is
not part of the standard jdk
$password=3Dnew java("java.lang.String", "$passwd");
=20
$algorithm=3D java("java.security.MessageDigest")->getInstance("md5");
$algorithm->reset();
$algorithm->update($password->getBytes());
$encrypted =3D $algorithm->digest();
$out =3D new java("java.io.ByteArrayOutputStream");
$encoder =3D
java("javax.mail.internet.MimeUtility")->encode($out,"base64");
$encoder->write($encrypted);
$encoder->flush();
echo new java("java.lang.String",$out->toByteArray()); echo "\n";
exit(0);
} catch (Exception $e) {
echo "Echo invocation failed: $e\n";
print_r ($e->getTrace());
exit(1);
}
Error:=20
_________________________________
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: PHP Fatal error: Call to undefined
function java() in /usr/java/tomcat-5.5/webapps/JavaBridge/mytest.php on
line 3
php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:362)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
php.java.bridge.Util$ProcessWithErrorHandler$PhpException: PHP Fatal
error: Call to undefined function java() in
/usr/java/tomcat-5.5/webapps/JavaBridge/mytest.php on line 3
=09
php.java.bridge.Util$ProcessWithErrorHandler.destroy(Util.java:899)
=09
php.java.servlet.PhpCGIServlet$CGIRunner.run(PhpCGIServlet.java:284)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:463)
php.java.servlet.PhpCGIServlet.doGet(PhpCGIServlet.java:328)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
________________________________________
It seems to not find the objects within Java.inc, however it's including
the file properly in the script so therefore I am considering that I
don't have the Bridge installed properly. =20
I've followed the j2ee instructions to install the bridge as I want
Tomcat to run the JVM rather than a new JVM trying to run each request.
Is this incorrect? Does a JVM have to start every time anyway? I'm
running this on a Virtual Dedicated Hosting account and therefore it's
not my own server to run as I please. =20
When I try to run this on the command line:=20
java -jar JavaBridge.war --help
I get this error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I thought I installed the Bridge without the need to create a new JVM
each time, but again perhaps I'm not understanding how this works... :/
When first installing the bridge I struggled with attempting to increase
the amount of memory available to the JVM, but gave up and went what I
thought was the pure PHP installation.
I've got JavaBridge.war and the unpacked JavaBridge directory in my
tomcat webapps directory. I can run the test.php file and the examples
provided (the hello.php and numberguess.php scripts) by browsing here:
http://mydomain.com:9080/JavaBridge/hello.php or
http://mydomain:9080/JavaBridge/numberguess.php, respectively).
I've saved java.so to the php-extension directory and put a reference
(extension=3Djava.so) in the java.ini file in my /etc/php.d/ directory =
and
verified that php was looking in this directory for user-defined ini
settings.
Thanks for helping me with this...
--Kate
|