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...> - 2008-06-10 13:46:42
|
Hi,
well, the bridge works correctly under fedora 9.
However, since the LINUX instructions cause serious confusion, I will remove the LINUX folder from the binary download.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-06-10 13:28:58
|
Hi,
> But I thougt this class Java is provided by the extension
No, java.so doesn't contain a Java class. It only starts a Java VM as a sub process of the Apache or IIS Web-Server.
If you want to access the Java process, you need to use some Java class definition.
Please see our FAQ for details.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-06-10 12:39:42
|
Hi,
i've got one stupid problem that could surely be resolved very easyly
but I have no clue about the source of this problem. I compiled the
java.so extension and loaded it. The output of phpinfo() shows that
the extension is loaded properly and running. The test.php works fine
but it uses java/Java.inc. I want to use the extension itself but
everything I try failes with "Fatal error: Class 'Java' not found....".
But I thougt this class Java is provided by the extension so that it
can be called without including Java.inc?! What is the problem?
This is one of the many example lines I tried to execute:
$string = new Java("java.lang.String");
Thank you in advance.
felix
|
|
From: <php...@li...> - 2008-06-09 09:37:58
|
Issuing the following on Centos 4.5 x86_64:
[root@red-9 downloads]# rpmbuild -tb php-java-bridge_5.2.2.tar.gz
Make then stops on the following output:
...
cat JavaRaw.inc | sed -f append.sed | sed
's/JAVA/MONO/g;s/java/mono/g;s/Java/Mono/g;s/updateJarLibraryPath/update
LibraryPath/;s/^.*do not delete this line.*$/$name="cli.".$name;/;'
>META-INF/java/Mono.inc
gcj -w -ftarget=1.4 -classpath .:script-api.jar -C
php/java/bridge/*.java php/java/bridge/http/*.java
jc1: error: unrecognized command line option "-ftarget=1.4"
make[1]: *** [MonoBridge.exe] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/php-java-bridge-5.2.2/server'
make: *** [/usr/src/redhat/BUILD/php-java-bridge-5.2.2/modules/stamp]
Error 2
error: Bad exit status from /var/tmp/rpm-tmp.55406 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.55406 (%build)
[root@red-9 downloads]# gcj -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
...
About native compilation, I'm not sure that's the goal here. I've sort
of hijacked this thread so I don't know what the originator had in mind.
I do know that in some environments it may be necessary for reasons of
policy to install from packages only. Perhaps an rpm could be produced
which depends on one of the Sun jdk comptability packages available from
jpackage.org. I would say openjdk, but there are presently only three
distros maintaining packages for it and none of them are based on
Redhat.
Regards,
Matt
-----Original Message-----
From: php...@li...
[mailto:php...@li...] On Behalf
Of php...@li...
Sent: 06 June 2008 18:33
To: php...@li...
Subject: Re: [Php-java-bridge-users] Any support for fedora core 9
inthenearfuture?
Hi,
> rpmbuild -tb php-java-bridge*.tar.gz
which error message do you get when compiling the RPM?
> over the site but could only see Debian packages. The .spec file
> requires libgcj.
Sure. Without it native compilation isn't possible.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open
Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
|
|
From: <php...@li...> - 2008-06-06 17:33:16
|
Hi,
> rpmbuild -tb php-java-bridge*.tar.gz
which error message do you get when compiling the RPM?
> over the site but could only see Debian packages. The .spec
> file requires libgcj.
Sure. Without it native compilation isn't possible.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-06-02 08:55:42
|
Hi Jost,
I was just following the instructions in INSTALL.LINUX to see if this
was an option for the user who wishes to install rpms:
----%<----
Installation on RedHat, Fedora, CentOS ...
------------------------------------------
* Check if the Java libraries you're interested in are available as
native binaries. If not, you need to install Java and the J2EE
component, see the INSTALL.J2EE or INSTALL.J2SE document and the
Security Enhanced Linux secion in the README.
* Download and install the PHP/Java Bridge base and the libraries. For
example:
rpm -i php-java-bridge-x.y.z-1-i386.rpm
rpm -i lucene4php-x.y.z-1.i386.rpm
rpm -i itext4php-x.y.z-1.i386.rpm
* Each native library contains at least one PHP example in
/usr/share/doc/<libname>/example.
* To rebuild the RPM files, download the php-java-bridge*.tar.gz
archive and type (as root):
rpmbuild -tb php-java-bridge*.tar.gz
----%<----
Without doing this, I'm not sure where one obtains a file like
php-java-bridge-5.2.2-1.i386.rpm. I looked in the downloads area and all
over the site but could only see Debian packages. The .spec file
requires libgcj.
Regards,
Matt
-----Original Message-----
From: php...@li...
[mailto:php...@li...] On Behalf
Of php...@li...
Sent: 31 May 2008 17:38
To: php...@li...
Subject: Re: [Php-java-bridge-users] Any support for fedora core 9 in
thenearfuture?
Hi,
the PHP/Java Bridge is written in pure Java. It runs with all Java
versions >= Java 1.4.
> unrecognized gcj flag in the Makefile [...]
trying to compile Java to native code is a waste of time, imho.
Native code provides the same features as the pure Java implementation,
except that the gcj-compiled code runs 5 times slower than the JIT
compiled code from the OpenJDK.
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
This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
|
|
From: <php...@li...> - 2008-05-31 16:37:43
|
Hi,
the PHP/Java Bridge is written in pure Java. It runs with all Java versions >= Java 1.4.
> unrecognized gcj flag in the Makefile [...]
trying to compile Java to native code is a waste of time, imho.
Native code provides the same features as the pure Java implementation, except that the gcj-compiled code runs 5 times slower than the JIT compiled code from the OpenJDK.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-05-30 16:17:05
|
I don't know whether you've tried this already, but you might be able to rebuild the rpm file from source as explained in INSTALL.LINUX. This is not working for me at the moment on Centos 4.5 because of an unrecognized gcj flag in the Makefile which I'm trying to sort out, but it may well work for you with the more recent version of gcj you clearly have. If you can't create the rpm then you will probably have better luck with just building the source as explained in INSTALL. Hope this helps. Regards, Matt -----Original Message----- From: php...@li... [mailto:php...@li...] On Behalf Of php...@li... Sent: 30 May 2008 17:10 To: php...@li... Subject: [Php-java-bridge-users] Any support for fedora core 9 in the nearfuture? Is there any support in the near future for fedora core 9 Thanks again and keep up the good work -- globe <http://www.solutionbyte.com>Gianfranco Baggio gf...@so... ------------------------------------------------------------------------ - 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 This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system |
|
From: <php...@li...> - 2008-05-30 16:07:48
|
Is there any support in the near future for fedora core 9 Thanks again and keep up the good work -- globe <http://www.solutionbyte.com>Gianfranco Baggio gf...@so... |
|
From: <php...@li...> - 2008-05-30 14:10:03
|
I just updated to fedora 9 and I get an error message running php-java-bridge-5.2.2-1.i386.rpm missing dependency: libgcj.so.8rh is needed I checked and fedora 9 installs libgcj-4.3.0-8 which gives me an libgcj.so.9 Any solutions ???? I was thinking of uninstalling this package and try to install another package that would give me the right library but since I am new to fedora I am not sure if this is the right thing to do. Please some help is needed. -- globe <http://www.solutionbyte.com>Gianfranco Baggio gf...@so... |
|
From: <php...@li...> - 2008-05-28 14:23:07
|
Thanks for the reply. Fortunately this problem solved itself. I was not
getting an invocation on Request$PhpNull, but was actually getting an
invocation on JavaBridge, which my debugger confirmed. As you have
pointed out, I ought to have been seeing an attempt to call a method on
Request$PhpNull, because I already had a proper HttpServletContext (or
ought to have) and I was attempting to call getServletContext() on that,
which is not a defined method. The reason for the bad invocation seems
to have been that I failed to upgrade my client includes after upgrading
the backend to 5.2.2. Client was 4.3.3. Upgrading the client php include
files did the trick. Thanks for the tip about java_inspect(). Somehow I
missed that one :)
Matt
-----Original Message-----
From: php...@li...
[mailto:php...@li...] On Behalf
Of php...@li...
Sent: 28 May 2008 15:10
To: php...@li...
Subject: Re: [Php-java-bridge-users] trouble getting access to another
appcontext running as servlet
Hi,
you should be able to access the foreign context, provided that the
foreign context is accessible. PHP scripts don't behave different than
JSP's.
In particular the following code should work:
<?php require_once("java/Java.inc");
$request = java_context()->getHttpServletRequest();
echo java_inspect($request);
$response = java_context()->getHttpServletResponse();
$context = java_context()->getServletContext();
$otherContext = $context->getContext("/JavaBridge");
$dispatcher =
$otherContext->getServletContext()->getRequestDispatcher("/my.jsp");
$dispatcher->forward($request, $response); ?>
> the parser
> php.java.bridge.Parser seems to interpret this as an invocation on the
> JavaBridge instance, php.java.bridge.JavaBridge.
I think this is a misunderstanding. The Request$PhpNull means that you
invoke a Java method with a NULL value, obtained from the previous
method call. Either the "/other-context" doesn't exist or it is not
accessible.
> I'm encouraged by the following var_dump output:
You can also use: echo java_inspect($java_value) :)
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
This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
|
|
From: <php...@li...> - 2008-05-28 14:10:07
|
Hi,
you should be able to access the foreign context, provided that the foreign context is accessible. PHP scripts don't behave different than JSP's.
In particular the following code should work:
<?php require_once("java/Java.inc");
$request = java_context()->getHttpServletRequest();
echo java_inspect($request);
$response = java_context()->getHttpServletResponse();
$context = java_context()->getServletContext();
$otherContext = $context->getContext("/JavaBridge");
$dispatcher =
$otherContext->getServletContext()->getRequestDispatcher("/my.jsp");
$dispatcher->forward($request, $response);
?>
> the parser
> php.java.bridge.Parser seems to interpret this as an invocation on the
> JavaBridge instance, php.java.bridge.JavaBridge.
I think this is a misunderstanding. The Request$PhpNull means that you invoke a Java method with a NULL value, obtained from the previous method call. Either the "/other-context" doesn't exist or it is not accessible.
> I'm encouraged by the following var_dump output:
You can also use: echo java_inspect($java_value) :)
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-05-27 16:19:21
|
Hello list,
I'm running PHP-Java-Bridge as a web application within Tomcat 5.5 and
attempting to get a request dispatcher from the PHP side in order to
forward to another application. The PHP-Java-Bridge context has its
crossContext context attribute set to true, but I can only seem to get
the current context. I'm using PHP code like the following snippet:
----%<----
<?php
$request = java_context()->getHttpServletRequest();
$response = java_context()->getHttpServletResponse();
$context = java_context()->getServletContext();
$otherContext = $context->getContext("/other-context");
$dispatcher =
$otherContext->getServletContext()->getRequestDispatcher("/other-path");
$dispatcher->forward($request, $response);
?>
----%<----
In this simplified example, the client code is attempting to call
HttpServletContext.getContext(java.lang.String) on the native servlet
context, which in my case is an instance of
org.apache.catalina.core.ApplicationContextFacade; however, the parser
php.java.bridge.Parser seems to interpret this as an invocation on the
JavaBridge instance, php.java.bridge.JavaBridge. This invocation has the
argument stripped because php.java.bridge.JavaBridge only has
getContext() [no args]. I think this may be coming out of the method
cache, but it's difficult for me to see why this is happening as we are
reading and parsing an input stream inside a method that has many entry
points, making debugging quite cumbersome. Hopefully I've provided
enough information for someone to shed some light. The bridge
application runs fine and I get back a php.java.bridge.http.Context
instance from the java_context() call, which seems fine. As well, the
object returned from java_context()->getServletContext() appears to be
some kind of opaque reference to an
org.apache.catalina.core.ApplicationContextFacade. I'm encouraged by the
following var_dump output:
object(java_InternalJava)#1678 (6) {
...
...
...
["__signature"]=>
string(49) "org.apache.catalina.core.ApplicationContextFacade"
}
Any help would be appreciated. Thanks.
Regards,
Matt
This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
|
|
From: <php...@li...> - 2008-05-26 08:24:49
|
Hi,
the MONO.STANDALONE folder from the binary download contains three examples.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-05-23 00:53:04
|
Hey out there! Can please please someone give me an wee example on how I can access Mono .NET on Linux (ubuntu). Thx a lot in advance! -- Mit freundlichen Grüßen, Kevin Keller |
|
From: <php...@li...> - 2008-05-20 11:47:44
|
It's ok
Thanks for your help
-----Message d'origine-----
De : php...@li...
[mailto:php...@li...] De la part de
php...@li...
Envoyé : lundi 19 mai 2008 17:45
À : php...@li...
Objet : Re: [Php-java-bridge-users] Debian installation
Hi,
> Fatal error: Class 'Java' not found in
as I understand it, you need some Java class definition. Please see our FAQ
for details.
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
|
|
From: <php...@li...> - 2008-05-19 15:45:45
|
Hi,
> Fatal error: Class 'Java' not found in
as I understand it, you need some Java class definition. Please see our FAQ for details.
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
From: <php...@li...> - 2008-05-19 15:00:40
|
Hi, I install Php-Java-Bridge on 2 differents debian and have the same error in my php page : Fatal error: Class 'Java' not found in /var/www/java.php on line 3 Can someone help me to find where is the problem The first installation is with a debian package and the second one is from the tarball. The phpinfo page indicate that everything is ok : java support Enabled java bridge 5.2.2 java.java_home /usr/lib/jvm/java-6-sun java.java /usr/lib/jvm/java-6-sun/bin/java java.log_file /var/log/php-java-bridge.log java.log_level 50 java.security_policy Off java command JAVA_HOME=/usr/lib/jvm/java-6-sun LD_LIBRARY_PATH=/usr/lib/php5/20060613+lfs: /usr/lib/jvm/java-6-sun/bin/java -Djava.library.path=/usr/lib/php5/20060613+lfs -Djava.class.path=/usr/lib/php5/20060613+lfs/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib/php5/20060613+lfs php.java.bridge.Standalone LOCAL:@java-bridge-8ff 50 /var/log/php-java-bridge.log java server @java-bridge-8ff java status running Best regards, HG |
|
From: <php...@li...> - 2008-05-18 11:31:21
|
Hi,
> "getMessage()" in the cause, however, when we go
> to access the method
> directly, we get nothing.
that's because PHP's Exception::getMessage() shadows java.lang.Throwable.getMessage().
Please either use getLocalizedMessage() or access "message" directly (which invokes the Java Bean getter "getMessage") or pass the Java message to PHP's exception constructor.
> **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
That's why the bridge did not provide a resonable default for it.
However, if you extend from Exception, you can access the $message property directly. The following code creates a new Exception and fills PHP's exception property with the exception obtained from Java:
<?php
require_once("java/Java.inc");
class my_JavaException extends java_InternalException {
function __construct ($proxy, $message) {
$this->message = $message;
parent::__construct($proxy->__delegate);
}
}
class my_ThrowExceptionProxyFactory extends java_ThrowExceptionProxyFactory {
function checkResult($result) {
throw new my_JavaException ($result, $result->getCause()->message);
}
}
$client = __javaproxy_Client_getClient();
$client->throwExceptionProxyFactory =
new my_ThrowExceptionProxyFactory($client);
// test
java_autoload("/home/jost/Test.jar");
try {
$test = new Test(true);
} catch (Exception $e) {
echo $e->getMessage();
}
Regards,
Jost Boekemeier
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
|
|
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
|
|
From: <php...@li...> - 2008-05-16 15:51:20
|
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
|
|
From: <php...@li...> - 2008-05-13 17:22:33
|
Hi, > Fatal error: Cannot redeclare java_last_exception_get() in > http://localhost:8080/JavaBridge/java/Java.inc on line 1538 sounds like you use some other php to java bridge. Please either remove it or please contact your vendor. Please see our FAQ for details, please see: http://php-java-bridge.sourceforge.net/doc/faq.php Regards, Jost Boekemeier __________________________________________________________ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com |
|
From: <php...@li...> - 2008-05-13 11:53:45
|
I forgot to attach the error I got while trying to access the demo php page on Indivo(http://localhost/indivo-ui-php-3.1/login.php):
Fatal error: Cannot redeclare java_last_exception_get() in http://localhost:8080/JavaBridge/java/Java.inc on line 1538
|
|
From: <php...@li...> - 2008-05-13 01:28:04
|
Thanks for the quick replies.
One question though, I am working on this project just for demo first, it means that I may not want to alter the openIndivo src code, is that still possible I can work through that?
BTW, I am working on the window platform and have installed:
JDK 1.5.13
Tomcat5.5
Apache Webserver 2.2.8
PHP 5.2.5
PHP-Java Bridge 5.2.2
Thanks again for the help.
-Lin
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
|
|
From: <php...@li...> - 2008-05-12 15:03:59
|
Wow, that was a pretty poorly written sentence. Sorry about that.
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.
Throwable::getCause() is giving us what we would expect (see below):
PHP:
try{
$email_address_obj = new Java("type.Test", $email_address);
return $email_address_obj;
} catch (JavaException $ex)
{
echo "Cause: ".$ex->getCause()."\n"; // displaying a result
echo "Message: ".(string) $ex->getMessage()."\n"; // not displaying result
}
Thanks,
Zach
__________________
Gulo Solutions
http://blog.gulosolutions.com
773.276.8066
-----Original Message-----
From: php...@li... <php...@li...>
To: php...@li...
Date: Saturday, May 10, 2008, 2:38:31 PM
Subject: [Php-java-bridge-users] Handling Exceptions thrown from java on php side...
Hi,
> My issue is, I want to out the message Exception was instantiated
what do you mean with this? $exception->getCause() contains all information you need.
You could coerce the JavaException to that it prints a stack trace which is compatible with other
PHP exceptions, but this shouldn't be default, I think.
Nicht vergessen! Am Sonntag, den 11. Mai ist Muttertag
Geschenkideen, Gedichte & mehr: www.yahoo.de/muttertag
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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/1427 - Release Date: 5/11/2008 1:08 PM
|