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
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
(2) |
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
(2) |
24
(8) |
25
(2) |
26
|
27
|
28
|
|
|
|
|
|
From: <php...@li...> - 2011-02-25 21:09:30
|
Hello! 1. function toString() {return "helloWorld";}; 2. $object = java_closure<http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure> (); 3. echo "Java says that PHP says: $object\n"; In this example, no arguments are passed in the java_closure() function. What does java_closure() transform? The current environment. 1. function hello() {return "hello";}; 2. echo (string)java_closure<http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure> (null, "hello"); In this example, I think the function hello() is transformed, The current environment, which all its procedures renamed to "hello". The manual talks about a keymap: maybe give an example? Why is the first argument null? java_closure(null, array("foo"=>"hello")); maps "foo" calls to "hello" procedures of the current environment. You are looking for: java_closure($phpObj, null, array(java("my.Interface1"), java("my.Interface2")...)); Peter |
From: <php...@li...> - 2011-02-25 20:12:42
|
Hi, java_closure reifies an environment for java. It needs a signature. It does not make attributes available. Those are availabe through methods declared in the interface. This explains the error message: You have tried to change a non-existent attribute. It failed. And the next set! tried to modify the failure report. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-02-24 23:06:07
|
Thanks for the answer. IMHI, the manual about java_closure() is not always obvious. ex: 1. function toString() {return "helloWorld";}; 2. $object = java_closure<http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure> (); 3. echo "Java says that PHP says: $object\n"; In this example, no arguments are passed in the java_closure() function. What does java_closure() transform? Only the last object? It is not clear in the manual. ex: 1. function hello() {return "hello";}; 2. echo (string)java_closure<http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure> (null, "hello"); In this example, I think the function hello() is transformed, because "hello" is the second argument. It is a good idea, to change the first line in ... return "helloWorld";}; to prevent confusion with the second argument of java_closure() (PHP developpers are KISS-thinkers :-)). The manual talks about a keymap: maybe give an example? Why is the first argument null? Now, for my case. What is $input? In PHP two classes are declared: class encodeRequest { /** * @var string */ public $applicationName; /** * @var array[1, unbounded] of (object)OriginalDataType */ public $originalData; } class OriginalDataType { /** * @var string */ public $id; /**&; * @var boolean */ public $randomize; /** * @var string */ public $inputData; } $data = new OriginalDataType(); $data->id = 1; $data->randomize= false; $data->inputData = "blabla"; $input = new encodeRequest(); $input->applicationName = "WWM"; $input->originalData = $data; So $input is an instance of the encodeRequest class. I want this PHP instance be transformed in a Java instance. I thought that $java_input = java_closure($input); would do the trick? Sincerely, Koen 2011/2/24 <php...@li...> > Hi, > > > 1. I don't understand the remark: > > "Your java object backed by a php > > instance doesn't have any public methods." > > It's a java.lang.Object which implements no interfaces. Not very > useful unless your library detects that it is a proxy and directly > calls its invocation handler. Please see the java_closure() API for > details at > http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure > > > public static Object[] encode(Object request) throws RuntimeException, > > Exception { > > > > -> I added static: that was logic > > -> I added RuntimeException, like in the FAQ. > > In this case your code will work and I have no explanation for this > issue either. > > But if your library is smart enough to call $java_input's invocation > handler, please have a look at your PHP code called from the > invocation handler. It probably calls a library method which throws an > unchecked exception. > > The problem is simply that an unchecked exception has been returned > from a Java call but not thrown. (You can get around this by setting > JAVA_PREFER_VALUES, but I think you know that). > > > Be it as it may, if you only want to add a sec header to your soap > request, you can do this in PHP as well. Or implement it in Java and > call the entire method from PHP. > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- *Koen Thomeer*, MD, MSc http://koen.thomeer.be |
From: <php...@li...> - 2011-02-24 21:43:33
|
Hi, > 1) Is it mandatory for the PHP script to be hosted on a web server? PHP uses a reference counter which cannot collect some cycles. So yes. PHP runs best when invoked from a WEB-Server or as a scriptlet from a Java application. > Can I pass a database connection to PHP Sure. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-02-24 21:40:03
|
Hi, > 1. I don't understand the remark: > "Your java object backed by a php > instance doesn't have any public methods." It's a java.lang.Object which implements no interfaces. Not very useful unless your library detects that it is a proxy and directly calls its invocation handler. Please see the java_closure() API for details at http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure > public static Object[] encode(Object request) throws RuntimeException, > Exception { > > -> I added static: that was logic > -> I added RuntimeException, like in the FAQ. In this case your code will work and I have no explanation for this issue either. But if your library is smart enough to call $java_input's invocation handler, please have a look at your PHP code called from the invocation handler. It probably calls a library method which throws an unchecked exception. The problem is simply that an unchecked exception has been returned from a Java call but not thrown. (You can get around this by setting JAVA_PREFER_VALUES, but I think you know that). Be it as it may, if you only want to add a sec header to your soap request, you can do this in PHP as well. Or implement it in Java and call the entire method from PHP. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-02-24 20:27:52
|
Hi, I'm brand new to the bridge and just exploring what my options. In my scenario, I would be using JSR223 to execute PHP script from within Java. I have two questions: 1) Is it mandatory for the PHP script to be hosted on a web server? Can I just load it from the file system and execute evaluate it? 2) Can I pass a database connection to PHP? With RhinoJS and JSR223, I can initiate a socket connection in Java and pass it to Javascript where it gets used without problem. Can I do the same with the Java/PHP bridge? Thanks, Muesli. |
From: <php...@li...> - 2011-02-24 20:24:03
|
Hi, please see our FAQ entry "Does it support PHP 4?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html Regards, Jost Bökemeier |
From: <php...@li...> - 2011-02-24 13:53:09
|
Many thanks for the help! 1. I don't understand the remark: "Your java object backed by a php instance doesn't have any public methods." => the method is public (but I did forget the 'static'). 2. I changed the code of java: public static Object[] encode(Object request) throws RuntimeException, Exception { -> I added static: that was logic -> I added RuntimeException, like in the FAQ. But the error stays the same... 2011/2/24 <php...@li...> > Hi, > > your java code has thrown an unchecked exception (error or runtime > exception). After that your php code has tried to set a non-existing > property on it. > > Any unchecked exception crossing the container boundary must be declared, > otherwise the behaviour is undefined. Please see our FAQ for details. > > Your code contains several problems. Your java object backed by a php > instance doesn't have any public methods. This may or may not be what you > want. And you call a method as if it were a procedure. Won't work, so I > assume that the code you have shown isn't the code you actually use. Either > encode is actually static or the php code you have posted is missing a new > statement. > > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- *Koen Thomeer*, MD, MSc http://koen.thomeer.be |
From: <php...@li...> - 2011-02-24 05:54:21
|
Hello All, I am facing issue with java bridge 4.1.8 for php 4.3.9 with jdk 1.5.0_15. It was working for PHP 5.x perfectly. The service is not getting initialized. Java is running. The Let me know how to fix it... Cheers, *Niju Mohan,* |
From: <php...@li...> - 2011-02-24 04:02:44
|
I am out of the office until 02/24/2011. Note: This is an automated response to your message "[Php-java-bridge-users] CXF webservice with PHP: Couldn't execute method java_InternalException" sent on 2/23/2011 3:26:18 PM. This is the only notification you will receive while this person is away. |
From: <php...@li...> - 2011-02-23 23:02:24
|
Hi, your java code has thrown an unchecked exception (error or runtime exception). After that your php code has tried to set a non-existing property on it. Any unchecked exception crossing the container boundary must be declared, otherwise the behaviour is undefined. Please see our FAQ for details. Your code contains several problems. Your java object backed by a php instance doesn't have any public methods. This may or may not be what you want. And you call a method as if it were a procedure. Won't work, so I assume that the code you have shown isn't the code you actually use. Either encode is actually static or the php code you have posted is missing a new statement. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-02-23 21:26:27
|
Hello, I'm new at php-java-bridge (and in java). I made a class in Java CXF to invoke a webservice with ws-security (something that is difficult in PHP). The class is the following in short: package be.icthealth.ehealth; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import org.apache.log4j.Level; import org.apache.ws.security.handler.WSHandlerConstants; import org.apache.cxf.endpoint.dynamic.DynamicClientFactory; import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor; import org.apache.cxf.endpoint.Client; import java.util.HashMap; import java.util.Map; import java.io.File; import java.net.URL; //import java.lang.reflect.Method; /** * * @author Koen Thomeer, MD, http://koen.thomeer.be */ public class Codage { /** * @param request the class EncodeRequest * @return response the class Response * @throws Exception */ public Object[] encode(Object request) throws Exception { //throw new Exception("test"); // configure logging BasicConfigurator.configure(); Logger.getLogger("org").setLevel(Level.WARN); java.util.logging.Logger.getLogger("").setLevel(java.util.logging.Level.WARNING); //code that I did leave out// // call the Codage Object[] response = client.invoke("encode", request); return response; } } The PHP code to call is the following (in short, it is nested in a function; $input is a PHP Instance): define("JAVA_PREFER_VALUES", false); require_once("http://localhost:8080/JavaBridgeWS/java/Java.inc"); try { $Codage = java("be.icthealth.ehealth.Codage"); $java_input = java_closure($input); $java_output = $Codage->encode($java_input); $output = java_values($java_output); print_r($output); } catch (JavaException $e) { // in case of an error, process the fault echo $e; } The error in the HTTPD log is the following: [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP Fatal error: Couldn't execute method java_InternalException::__set in Unknown on line 0 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP Stack trace: [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 1. {main}() /project/wmailer-test/www/secure/test/codage_test.php:0 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 2. EH_encode() /project/wmailer-test/www/secure/test/codage_test.php:5 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 3. JavaClass->encode() /project/wmailer-test/www/secure/test/codage5.php:219 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 4. Java->__call() http://localhost:8080/JavaBridgeWS/java/Java.inc:0 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 5. java_AbstractJava->__call() http://localhost:8080/JavaBridgeWS/java/Java.inc:1999 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 6. java_JavaProxy->__call() http://localhost:8080/JavaBridgeWS/java/Java.inc:1851 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 7. java_Client->invokeMethod() http://localhost:8080/JavaBridgeWS/java/Java.inc:1752 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 8. java_Client->getResult() http://localhost:8080/JavaBridgeWS/java/Java.inc:560 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 9. java_Client->getWrappedResult() http://localhost:8080/JavaBridgeWS/java/Java.inc:366 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 10. java_Arg->getResult() http://localhost:8080/JavaBridgeWS/java/Java.inc:360 [Wed Feb 23 22:17:37 2011] [error] [client 84.196.244.172] PHP 11. java_ThrowExceptionProxyFactory->checkResult() http://localhost:8080/JavaBridgeWS/java/Java.inc:235 Questions: 1. What I'm doing wrong? I don't understand the log. 2. Where I've to put the keystore, properties file, etc? Thx, Koen -- *Koen Thomeer*, MD, MSc http://koen.thomeer.be |
From: <php...@li...> - 2011-02-15 19:26:21
|
Hi John, it doesn't matter if you require Java.inc indirectly via Apache/Tomcat or directly from the ../JavaBridge/java/ directory. The result is all the same. Regards, Jost Bökemeier |
From: <php...@li...> - 2011-02-15 15:32:47
|
On Tue, Jan 25, 2011 at 1:58 AM, < php...@li...> wrote: > Hi, > > the cache-control HTTP header can be used to allow caching for a certain > time. > > Not sure why you think that require'ing a local php file may cause > problems. > Jost, My concern was that Java.inc wasn't just a static file, but rather had code generated dynamically via JSP or something like that. I don't know all the details of the Bridge's inner workings. I looked through the file and didn't see anything like that, so seemed pretty safe to me. > Regards, > Jost Bökemeier > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- John McGowan Lynch2 792 West Bartlett Road Bartlett, Illinois 60103 www.lynch2.com w:847-608-6900 Ext 4110 |