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-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. |