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
(7) |
3
(1) |
|
4
(4) |
5
|
6
|
7
|
8
(1) |
9
(1) |
10
(4) |
|
11
|
12
(4) |
13
(3) |
14
|
15
|
16
(1) |
17
(1) |
|
18
(1) |
19
(2) |
20
(1) |
21
|
22
|
23
(1) |
24
|
|
25
|
26
(1) |
27
(1) |
28
(2) |
29
|
30
(3) |
31
(1) |
|
From: <php...@li...> - 2008-05-17 02:11:29
|
Thanks for your reply. We still can see the cause and the
"getMessage()" in the cause, however, when we go to access the method
directly, we get nothing.
Here's where we're at now:
**note, we tried to override Java_Exception_Proxy::getMessage()
directly, we received:
[16-May-2008 20:55:17] PHP Fatal error: Cannot override final method
Exception::getMessage() in .../java_exception_proxy.obj
classes implemented:
class Java_Exception_Proxy extends JavaException {
private $result;
public function __construct($result) { $this->result = $result; }
public function getExceptionMessage() {
return $this->result->getCause()->getMessage();
}
}
class Throw_Exception_Proxy_Factory extends java_ThrowExceptionProxyFactory {
public function checkResult($result) {
throw new Java_Exception_Proxy($result);
}
}
product side:
require_once("java/Java.inc");
$jbc=__javaproxy_Client_getClient();
$jbc->throwExceptionProxyFactory = new Throw_Exception_Proxy_Factory($jbc);
try {
// in types.EmailAddress we're throwing a message:
// throw new Exception("Sorry, your email address must contain a '@'.");
$email = new Java("types.EmailAddress", $_POST['email']);
} catch (Java_Exception_Proxy $ex) {
// this gives us empty-ness or empty string
echo $ex->getExceptionMessage();
}
Thanks,
Zach
__________________
Gulo Solutions
http://blog.gulosolutions.com
773.276.8066
-----Original Message-----
From: php...@li... <php...@li...>
To: php...@li...
Date: Friday, May 16, 2008, 10:41:52 AM
Subject: [Php-java-bridge-users] Handling Exceptions thrown from java on php side...
Hi,
[please excuse the delay]
> What I intended to say was, I was to get the
> Throwable::getMessage()
> from the php side. We'd like to be able to use that
> for some user
> level messaging. That method is giving us what we expect
> on the Java
> side, however, something seems to be lost in the php bridge
> translation.
It isn't lost. It's just stores the information in the cause.
Isn't it possible to delegate to the throwable which caused the exception? You need to write your own JavaException factory within your product, but this shouldn't be too hard to do. For example (in pseudo code):
class my_JavaExceptionProxy extends JavaException {
function $result;
function my_JavaExceptionProxy ($result) { $this->result = $result; }
function getMessage() {
return $this->result->getCause()->getMessage();
}
}
class my_ThrowExceptionProxyFactory extends java_ThrowExceptionProxyFactory {
function checkResult($result) {
throw new my_JavaException($result);
}
}
In your product:
require_once("java/Java.inc");
// set our own Java exception factory
$client = __java_client->getClient();
$client->throwExceptionProxyFactory =
new my_ThrowExceptionProxyFactory($client);
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.16/1445 - Release Date: 5/15/2008 7:25 PM
|