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-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 |
From: <php...@li...> - 2008-05-12 12:40:17
|
Hi, you could replace those instructions with these: 1) Install tomcat: http://apache.atviraskodas.com/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.exe 2.) Copy JavaBridge.war (from the JavaBridge binary download) to tomcat's webapps directory 3.) Add the Java class definition (from "Java.inc") to OpenIndivio or use your own Java class, for example this one: http://php-java-bridge.sourceforge.net/doc/faq.php#simple-java-class-definition. Regards, Jost Boekemeier Nicht vergessen! Am Sonntag, den 11. Mai ist Muttertag Geschenkideen, Gedichte & mehr: www.yahoo.de/muttertag |
From: <php...@li...> - 2008-05-12 12:19:08
|
Hi, the Java extension for PHP 4 doesn't exist anymore. Please use the pure Java PHP/Java Bridge instead. Please see our documentation at http://php-java-bridge.sf.net for details. Regards, Jost Boekemeier Nicht vergessen! Am Sonntag, den 11. Mai ist Muttertag Geschenkideen, Gedichte & mehr: www.yahoo.de/muttertag |
From: <php...@li...> - 2008-05-12 12:16:33
|
> Both files, the one that calls function and function itself have: > java_requre($mylib.jar); I still think we should deprecate java_require() to avoid a misunderstanding like yours. -- Dynamic class loading is not really possible in Java. However, we've decided to keep java_require() and to recomment standard Java class loading instead. > Do you mean that this causes problem here? The above code doesn't do what you think it does. Please re-read the java_require() documentation: http://php-java-bridge.sourceforge.net/doc/faq.php#java-require > Do I have to delete this statement from called > function? Please remove the java_require() and copy your libraries to your J2EE server or copy them to Java's global repository. Regards, Jost Boekemeier Nicht vergessen! Am Sonntag, den 11. Mai ist Muttertag Geschenkideen, Gedichte & mehr: www.yahoo.de/muttertag |
From: <php...@li...> - 2008-05-10 23:54:57
|
Hi, I am new for this user group, I have tried to install Indivo (opensource for Health Records). I have followed up the instruction from: http://wiki.indivohealth.org/index.php/Setting_Up_Your_UI_Server#Configuring_PHP_to_run_the_Bridge and can't come up with the view: Confirming Your Installation Open phpinfo.php (included with the UI) in your browser. You should find a "java" section which notes that "java support" is "enabled" and that "java status" is "running". instead I only keep getting: java Directive Local Value Master Value java.class.path no value no value java.home no value no value java.library jvm.dll jvm.dll java.library.path no value no value What could be wrong with what I have done? I followed all steps what the instruction describes, please help! Thanks, -Lin --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
From: <php...@li...> - 2008-05-10 20:46:32
|
Hi, >In other words, you >have more than one such library in your class path(s). The code that causes problem here calls function from another file which create an instance $projectFact=new Java("depths.moodle.ProjectsFactory",$sesame); Both files, the one that calls function and function itself have: java_requre($mylib.jar); Do you mean that this causes problem here? Do I have to delete this statement from called function? Zoran php...@li... wrote: > it seems that this is not an instance of this class. > Can you give me any suggestions? Moodle@ClassLoader1 is not assignment compatible with Moodle@ClassLoader2. In other words, you have more than one such library in your class path(s). Please see our class loading FAQ for details. 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 --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
From: <php...@li...> - 2008-05-10 19:39:36
|
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 |