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
(4) |
3
(10) |
4
(1) |
5
|
6
(1) |
|
7
|
8
(4) |
9
(3) |
10
(1) |
11
(1) |
12
|
13
(1) |
|
14
(2) |
15
|
16
|
17
|
18
(4) |
19
|
20
(1) |
|
21
|
22
(2) |
23
(2) |
24
(2) |
25
(2) |
26
(3) |
27
|
|
28
|
29
|
30
|
|
|
|
|
|
From: <php...@li...> - 2008-09-26 19:22:18
|
Hi,
> the 'thiz' object is null and this is why the proxy
> part fails.
this happens if the script could not call into the Java continuation.
"Invocable" scripts are evaluated in three parts:
part 1 load Java.inc/php_java.dll
part 2 is your script code
part 3 is the call back into Java (if your code did not call into Java)
The full script looks like this:
<?php require("http://<localhost>:dynamicPort/JavaBridge/java/Java.inc")?>
<?php ... your PHP code ... ?>
<?php java_context()->call(java_closure());
When a php_java.dll exists, part#1 will not be called. In this case we assume that your PHP installation already uses the PHP/Java Bridge.
If the asumption is false, and the php_java.dll does not export java_context(), part#3 will fail and Java will not be able to get- and call the PHP continuation.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2008-09-26 18:51:54
|
Hi,
> Java 1.6.0.6 with PHP 5.2.2 [..] bridge version 5.2.2
I am sorry, but I cannot reproduce this problem using the above software.
* downloaded PHP/Java Bridge version 5.2.2 and extracted it into c:\
* downloaded Java 1.6.0_06 and installed it
* downloaded PHP 5.2.2 and copied php-cgi.exe and php5ts.dll to
C:\php-java-bridge_5.2.2.4_j2ee\JAVA.STANDALONE
C:\php-java-bridge_5.2.2.4_j2ee\JAVA.STANDALONE>c:\programme\java\jdk1.6.0_06\bin\jrunscript -classpath JavaBridge.jar -l php-interactive
php-interactive> echo 1+2
3
php-interactive> java_autoload();
php-interactive> echo java_lang_System::type()->getProperty("java.version");
1.6.0_06
php-interactive> echo phpversion();
5.2.2
php-interactive> echo php_java_bridge_Util::type()->VERSION;
5.2.2.4
php-interactive>
> Exception in thread "main"
> java.lang.StackOverflowError
php.java.script.InteractivePhpScriptEngine.eval(InteractivePhpScriptEngine.java:89)
The StackOverflowError usually happens when a simple "<?php ?>" call fails.
Please check your PHP installation. Remove it, if necessary, and copy
the php-cgi.exe and php5ts.dll into the local working directory.
Check which extension breaks your system PHP installation. Most likely you use an old Java extension or the Java extension from Zend. Both don't work correctly (at least not with JSR223).
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2008-09-26 15:43:26
|
Hi,
For example:
>
> jrunscript -classpath JavaBridge.jar -l php-interactive
> > function toString() {return "hello Java, I am PHP";}
> > echo java_closure();
> => hello Java, I am PHP
>
> [to run the above example make sure that JavaBridge.jar and php-script.jar
> is in the current working directory and that jre/lib/ext does not contain
> JavaBridge.jar and php-script.jar -- Java doesn't have a module system,
> please
> see our README section Java Platform Issues for details. Use .NET or Mono
> if you
> don't like how Java works around that problem... ]
>
Removed the files from the jre/lib/ext directory. Ran the script. I get the
prompt. I enter the first line and hit enter. Result is a stack overflow
error traced back to line 89 of the InteractivePhpScriptEngine.java file (in
which the entered script is trimmed and a ';' is added as far as I can tell
by checking the source code):
Exception in thread "main" java.lang.StackOverflowError
at java.lang.String.<init>(String.java:216)
at java.lang.StringBuffer.toString(StringBuffer.java:585)
at
php.java.script.InteractivePhpScriptEngine.eval(InteractivePhpScriptEngine.java:89)
at
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
at
php.java.script.InvocablePhpScriptEngine.invoke(InvocablePhpScriptEngine.java:97)
at
php.java.script.InvocablePhpScriptEngine.invokeFunction(InvocablePhpScriptEngine.java:108)
at
php.java.script.InteractivePhpScriptEngine.eval(InteractivePhpScriptEngine.java:91)
at
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
at
php.java.script.InvocablePhpScriptEngine.invoke(InvocablePhpScriptEngine.java:97)
at
php.java.script.InvocablePhpScriptEngine.invokeFunction(InvocablePhpScriptEngine.java:108)
at
php.java.script.InteractivePhpScriptEngine.eval(InteractivePhpScriptEngine.java:91)
at
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
(this goes on for a while)
Looking at the code what is happening (as far as I can see) is that it
attempts an eval call in InteractivePhpScriptEngine:
try {o=((Invocable)this).invokeFunction("javabridge_eval", new
Object[]{script});}catch(NoSuchMethodException ex){/*ignore*/};
For this it calls invokeFunction in InvocablePhpScriptEngine, which calls
invoke(String methodName, Object[] args) in InvocablePhpScriptEngine. This
method attempts if(scriptClosure==null) eval("<?php ?>") in line 97. This
eval call then leads to a repeat of the cycle until at some point it fails
at line 89 of the InteractivePhpScriptEngine with the stackoverlfowexception
since the stack is full. So somehow the evaluation of any input script fails
(including the "<?php ?>) until the stack is full. Any thoughts on what
might be causing this?
===================================================================================================
I also tried your example via Netbeans by adding the jar files directly to
the project (not onto the overall classpath by putting them in the
jre/lib/ext directory).
Your example to which I added a few debug lines using System.out.println:
package test;
>
> import java.io.Reader;
> import java.io.StringReader;
>
> import javax.script.Invocable;
>
> import php.java.script.InvocablePhpScriptEngine;
>
> public class HelloWorld {
>
> public static void main(String[] args) {
>
> String l = "3";
> System.setProperty("php.java.bridge.default_log_level", l);
> System.setProperty("php.java.bridge.default_log_file", "");
> System.setProperty("php.java.bridge.php_exec", "php-cgi");
>
> try {
> InvocablePhpScriptEngine engine = new InvocablePhpScriptEngine();
> String s = "<?php echo 'HelloWorld!\n'; ?>";
> System.out.println("here");
> engine.eval(new StringReader(s));
> System.out.println("here2");
> String name = (String)
> ((Invocable)engine).invokeFunction("java_get_server_name", new Object[]{});
> System.out.println("PHP/Java communication port: " + name);
>
> engine.eval((Reader)null);
>
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
>
> The result:
>
> PHP/Java communication port: 127.0.0.1:9267
> HelloWorld!
My result:
here
here2
java.lang.NullPointerException
at java.lang.reflect.Proxy.getInvocationHandler(Proxy.java:636)
at
php.java.script.InvocablePhpScriptEngine.invoke(InvocablePhpScriptEngine.java:116)
at
php.java.script.InvocablePhpScriptEngine.invoke(InvocablePhpScriptEngine.java:100)
at
php.java.script.InvocablePhpScriptEngine.invokeFunction(InvocablePhpScriptEngine.java:108)
Here it seems the actual invoke is never reached in method invoke(Object
thiz, String methodName, Object[] args) as it fails while obtaining the
invocation handler through the Proxy class; and thus before calling the
invoke method on the phpscriptprocedure object. My best guess would be that
the 'thiz' object is null and this is why the proxy part fails.
InvokeFunction calls invoke(String methodName, Object[] args), which
contains the part
if(scriptClosure==null) eval("<?php ?>");
try {
return invoke(scriptClosure, methodName, args);
}
This call then invokes invoke(Object thiz, String methodName, Object[]
args), which leads to the null pointer exception at line 116. As you said
already, clearly also here the eval part either fails and returns null (just
like with the jrunscript test I did), or it is never performed.
The question is why. Any thoughts on why this is the case?
Kind regards,
Bart
p.s: thanks a lot for all your patience and efforts to help with this.
|