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-26 17:12:01
|
Hi folks ?
This may be out of scope of the PJB project, but I?m having some =20
trouble translating Java into PHP and this is because I?m rather new =20
at Java (it?s been a trial, to say the least!).
I?m trying to figure out why a string encoding function in Java would =20
return a different value as a seemingly logical reproduction in PHP. =20
It doesn?t make sense to me so I?m trying to see what the Java =20
function will return via PHP first, but I?m having issues. If this =20
isn?t too off-topic, please keep reading?
1: a java application takes the string ?admin? and turns it into a =20
hash via md5 and then encodes it via base64 ? and comes up with this:
ISMvKXpXpadDiUoOSoAfww=3D=3D
2: instructions from the developers of this application write ?There =20
are 2 parts to the password, one is the hash, the second is you need =20
to Base64 encode that hash.?
3: I ran the string ?admin? through md5() and then ran that through =20
base64_encode() functions in php. So base64_encode(md5(?admin)), =20
effectively. I receive this value: =20
MjEyMzJmMjk3YTU3YTVhNzQzODk0YTBlNGE4MDFmYzM=3D
4: The different return values are confusing me.
5: I have grabbed code provided as an example with their application =20
and it reads like this:
import java.io.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.mail.MessagingException;
import javax.mail.internet.MimeUtility;
? other stuff snipped
private static String encodePassword(String password) {
MessageDigest algorithm;
try {
algorithm =3D MessageDigest.getInstance(ENCRYPTION_TYPE);
algorithm.reset();
algorithm.update(password.getBytes());
byte[] encrypted =3D algorithm.digest();
ByteArrayOutputStream out =3D new ByteArrayOutputStream();
OutputStream encoder =3D MimeUtility.encode(out, ENCODING_TYPE)=
;
encoder.write(encrypted);
encoder.flush();
return new String(out.toByteArray());
} catch (NoSuchAlgorithmException e) {
return "Bad Encryption";
} catch (MessagingException e) {
return "Bad Encryption";
} catch (IOException e) {
return "Bad Encryption";
}
}
I translated this as:
$password =3D "admin";
print "encoded: ". encodePassword($password)."<br>";
function encodePassword($password) {
$message =3D new Java('java.security.MessageDigest');
$str =3D new Java('java.lang.String');
try {
$algorithm =3D $message->getInstance('md5');
$reset =3D $algorithm->reset();
$update =3D $algorithm->update($str->getBytes($password));
//$update =3D $algorithm->update($password);
$encrypted =3D $algorithm->digest();
$mu =3D new java('javax.mail.internet.MimeUtility');
$out =3D new Java('java.io.ByteArrayOutputStream');
$encoder =3D $mu->encode($out, 'base64');
$encoder->write($encrypted);
$encoder->flush();
return $out->toByteArray();
} catch (Exception $e) {
print_r($e); // for debugging purposes
return "<br>Bad Encryption";
}
}
And I get this in response:
JavaException Object ( [message:protected] =3D> [string:private] =3D> =20
[code:protected] =3D> 0 [file:protected] =3D> =20
/usr/java/tomcat-5.5/webapps/JavaBridge/test_class.php =20
[line:protected] =3D> 25 [trace:private] =3D> Array ( [0] =3D> Array ( =20
[file] =3D> /usr/java/tomcat-5.5/webapps/JavaBridge/test_class.php =20
[line] =3D> 25 [function] =3D> __call [class] =3D> Java [type] =3D> -> [args=
] =20
=3D> Array ( [0] =3D> getBytes [1] =3D> Array ( [0] =3D> admin ) ) ) [1] =3D=
> =20
Array ( [file] =3D> =20
/usr/java/tomcat-5.5/webapps/JavaBridge/test_class.php [line] =3D> 25 =20
[function] =3D> getBytes [class] =3D> Java [type] =3D> -> [args] =3D> Array =
( =20
[0] =3D> admin ) ) [2] =3D> Array ( [file] =3D> =20
/usr/java/tomcat-5.5/webapps/JavaBridge/test_class.php [line] =3D> 17 =20
[function] =3D> encodePassword [args] =3D> Array ( [0] =3D> admin ) ) ) ) =
=20
encoded:
Bad Encryption
What I think this is telling me is that on line 25 (which is this: =20
$update =3D $algorithm->update($str->getBytes($password));) something is =20
amiss. Line 17 is the print out the encoded password line (print =20
"encoded: ". encodePassword($password)."<br>";), which is, obviously, =20
having issues.
*Any* help as I?m trying to learn how to translate Java into PHP would =20
be smashingly appreciated. And please advise if this is totally out =20
of bounds for this forum.
TIA,
Kate
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|
|
From: <php...@li...> - 2007-04-26 08:48:12
|
Hi Jon,
which error message do you get?
> environment. Does the *.war also require PHP to be
> installed on the system
The war file contains a 32bit php executable. If your
CPU can execute 32 bit binaries, you can rename the
php-cgi-x86-windows.exe to php-cgi-XXX-windows.exe,
see the error message above.
However, if you have php-cgi.exe installed in the
%PATH%, the bridge will use this php executable
instead of the built-in binary.
> Also, once deploying the package it seems that
> logging from that point
> becomes disabled, e.g. no further server messages
> are shown - is this a
> default behaviour within the app itself?
The JavaBridge.war contains a log4j.jar library. This
library is responsible for this behaviour. I will
remove log4j from the war file.
Regards,
Jost Boekemeier
__________________________________ Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-04-26 00:12:37
|
Hi all, I'm just wondering if anybody had achieved successful results running PHP/Java Bridge on Windows 2003 server, 64-bit edition? I am able to very easily deploy the JavaBridge.war on my own XP (32-bit) machine, but I get a few startup errors when deploying to a live environment. Does the *.war also require PHP to be installed on the system outside of what's provided? Also, once deploying the package it seems that logging from that point becomes disabled, e.g. no further server messages are shown - is this a default behaviour within the app itself? Cheers, Jon -- t: +61 402 878 550 e: jo...@su... |