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
(4) |
3
|
4
|
5
|
6
|
7
|
8
(1) |
9
|
10
(1) |
11
(1) |
12
(1) |
13
|
14
(1) |
15
|
16
|
17
(2) |
18
(9) |
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
(3) |
27
(2) |
28
(8) |
29
(3) |
30
(4) |
31
(5) |
|
|
|
|
|
From: <php...@li...> - 2010-05-31 20:21:52
|
It is now in CVS. From the NEWS file: Version 6.2.1 * $s = new java("java.lang.String", "hello"); $b = $s->getBytes("ASCII"); echo (string)$b; The (string) cast no longer converts the byte[] array to a java.lang.String using the encoding set with java_set_file_encoding() but returns the byte[] array as a PHP string without changing it. In previous versions one had to use java_cast($b, "string") to do a binary-safe conversion from byte[] to PHP string. * To support both x64 and 386 windows dll's, the layout has been changed: WEB-INF --- cgi | --- x86-windows --- conf.d --- mysql.ini [extension="php_mysql.dll"] | | | --- ext --- php_mysql.dll | --- php-cgi.exe <-- moved here | | | --- i386-linux --- conf.d --- mysql.ini [extension="mysql.so"] | --- ext --- mysql.so --- php-cgi <-- moved here |
From: <php...@li...> - 2010-05-31 15:13:33
|
[replying to myself] On 5/30/10, Jost Boekemeier <jos...@go...> wrote: > The api has two bugs: java_context()->call() invokeFunction(PhpProcedure) > should bring you back to where you came from. Doesn't work. Won't fix, at least not in version 6.1.2.x > And the wrapper for java_context()->call(), the > "java_call_with_continuation()" doesn't work Fixed in CVS head. => http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/php/java/script/InvocablePhpScriptEngine.java?r1=1.26&r2=1.27&sortby=date Regards, Jost Bökemeier |
From: <php...@li...> - 2010-05-31 15:00:48
|
Hi, >> you are calling procedures from the servlet package outside of a servlet >> environment. I am surprised that this works at all. > > I only attempted this so I could isolate the development of the Java to PHP > side from my servlet. Please use a servlet environment and use the methods from the EngineFactory to access the ScriptEngine. The JavaBridge.war example contains two examples: The http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/examples/php%2Bjsp/jsp%2Bphp.jsp show how to invoke methods in a (remote-) PHP application server. The other example http://php-java-bridge.cvs.sourceforge.net/viewvc/*checkout*/php-java-bridge/php-java-bridge/examples/php%2Bjsp/jsr223.jsp shows how to execute a PHP script in the current application server. > Why could I not reference an actual script file? What do you mean with this? When running in a servlet environment, you can. Please see the example above. > I tested the example you gave and it worked but the application hung. Is > that normal? I am sorry, but I cannot reproduce this problem using PHP/Java Bridge 6.1.2.1. >> Btw to avoid confusion: The engine key PhpProcedure is the environment >> that >> has been passed to the java continuation via java_context()->call(ENV) -- >> continuations are modeled as procedures, that's why it's called >> "PhpProcedure" > > I don't follow: is there some other key I should have used? I'm missing the > point here. None. You could have used invokeFunction() as well. > I'm now trying to get PHPJavaBridge deployed on my Jetty test server. I've > got the following setup: > > Jetty > lib > ext > JavaBridge.jar > php-script.jar > php-servlet.jar > script-api.jar > webapps > JavaBridge.war > java > Java.inc > > So when I try to browse http://localhost:8080/JavaBridge I get: > > Cannot access /java within the current web directory. Please ask the jetty maintainer for support. I am not going to support this setup. You have the same libraries deployed at two locations, within the web app and in the ext directory. Please either remove the .jar files from the ext folder and try again. Or please use Tomcat, which supports running our class files from a shared loader quite well. I think jetty fails to pass the web app root directory to the classes loaded from ext. But I am not going to debug this server, especially since I know that it has some issues. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-05-31 14:45:59
|
Hi, [please excuse the delay] $javaOutputStream = new java("java.io.ByteArrayOutputStream"); $exportManager->exportReportToPdfStream($jasperPrint, $javaOutputStream); java_set_file_encoding("UTF-8"); print ((string)$javaOutputStream->toByteArray()); The (string) cast above invokes a byte[] => String conversion using the file encoding UTF-8. Since cp1252 is the codepage used by java, the result is invalid PDF. Please either avoid the byte[] => String conversion by using java_cast() or please use java_set_file_encoding("cp1252") Please change your code to [...] print (java_cast($javaOutputStream->toByteArray(), "string")); Whether or not the (string) cast should avoid the conversion and behave like java_cast() is another question. I think it should. But before we change it, we'll have to check carefully if this won't break compatibility. -- The __toString() method for proxy objects appeared in PHP 5.2.0, so I think a change won't break too much code. Thank you very much for reporting this issue. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-05-31 13:24:52
|
Hi, > you are calling procedures from the servlet package outside of a servlet > environment. I am surprised that this works at all. I only attempted this so I could isolate the development of the Java to PHP side from my servlet. > Outside of a servlet env use: > > public static void main(String s[]) throws Exception { > ScriptEngine e = new ScriptEngineManager().getEngineByName("php-invocable"); > e.eval("<?php class X { public function f() {return 'hello';} } > java_context()->call(java_closure(new X())); ?>"); > System.out.println(((Invocable)e).invokeMethod(e.get("php.java.bridge.PhpProcedure"), > "f", new Object[]{})); > ((Closeable)e).close(); Why could I not reference an actual script file? I tested the example you gave and it worked but the application hung. Is that normal? > Btw to avoid confusion: The engine key PhpProcedure is the environment that > has been passed to the java continuation via java_context()->call(ENV) -- > continuations are modeled as procedures, that's why it's called > "PhpProcedure" I don't follow: is there some other key I should have used? I'm missing the point here. I'm now trying to get PHPJavaBridge deployed on my Jetty test server. I've got the following setup: Jetty lib ext JavaBridge.jar php-script.jar php-servlet.jar script-api.jar webapps JavaBridge.war java Java.inc So when I try to browse http://localhost:8080/JavaBridge I get: Cannot access /java within the current web directory. I have tried putting the java directory under Jetty, under lib and under ext but I get the same error. Any ideas? Thanks again, Bernard. _________________________________________________________________ View photos of singles in your area! Looking for a hot date? http://clk.atdmt.com/NMN/go/150855801/direct/01/ |