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) |
2
(1) |
|
3
(1) |
4
|
5
|
6
|
7
|
8
(2) |
9
(4) |
|
10
|
11
|
12
|
13
|
14
|
15
(3) |
16
|
|
17
(10) |
18
(1) |
19
|
20
(1) |
21
|
22
|
23
(1) |
|
24
|
25
|
26
(2) |
27
(2) |
28
|
29
|
30
|
|
31
(1) |
|
|
|
|
|
|
|
From: <php...@li...> - 2010-10-26 17:00:57
|
Hi, Please re-read http://php-java-bridge.sourceforge.net/pjb/installation.php The --daemon option is not meant to be used by end users. Install a jee server to run the bridge back end. Otherwise you won't get any support from us. Regards, Jost Bökemeier Am 26.10.2010 02:15 schrieb <php...@li...>: Hi all, I'm hoping someone can help me out with a problem I've been having. My aim is as follows: 1) browse to a page generated by a php script. This script starts the javabridge in the background like this: $port = 9200; $javaHosts = "localhost:" . $port; define("JAVA_HOSTS", $javaHosts); // define engine scope define("ENGINE_SCOPE", 100); // require Java.inc for handling JAVA/PHP bridge related matters require_once ("Java.inc"); $basePath = dirname($_SERVER["SCRIPT_FILENAME"]); $port = 9200; // check if bridge is running already if (!$file = @fsockopen("127.0.0.1", $port, $errno, $errstr, 2)) { // not running, so start bridge $baseCmd = "java -Dphp.java.bridge.base=" . $basePath . "/lib/javabridge -jar " . $basePath . "/lib/javabridge/JavaBridge.jar SERVLET_LOCAL:"; $endCmd = " 3 " . $basePath . "/lib/javabridge/JavaBridge.log"; $cmd = $baseCmd . $port . $endCmd; } 2) create a java class object through the bridge, e.g: $myobject = new java("myclass"); 3) store this in the java context so I can access this object again after the script is renewed. For that I am trying this: define("ENGINE_SCOPE", 100); java_context()->setAttribute("myobject", $myobject, ENGINE_SCOPE); 4) and then getting the object out again in the new script with: $myobject = java_values(java_context()->getAttribute("myobject")); But trying to access the java context after I started up the bridge gives me: *Warning*: fread() [function.fread <http://localhost/mmic/function.fread>]: Length parameter must be greater than 0 in * C:\MyPrograms\wamp\www\mmic\java\Java.inc* on line *1157* protocol error: , Invalid document end at col 1. Check the back end log for OutOfMemoryErrors. fread() [function.fread<http://localhost/mmic/function.fread>]: Length parameter must be greater than 0 With the backend log stating: Oct 25 17:11:09 JavaBridge ERROR: An exception occured: java.lang.IllegalStateException: Please use a JEE server or servlet engine. java.lang.IllegalStateException: Please use a JEE server or servlet engine. at php.java.bridge.JavaBridgeRunner.doPut(JavaBridgeRunner.java:198) at php.java.bridge.http.HttpServer.service(HttpServer.java:289) at php.java.bridge.http.HttpServer$Runner.run(HttpServer.java:205) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) So clearly this is not the way for me to accomplish what I want to accomplish. So my question is, what would be the correct way to keep a java object created in php from one php script execution to another? Thanks a lot in advance for any insights, suggestions! Bart ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2010-10-26 00:15:19
|
Hi all,
I'm hoping someone can help me out with a problem I've been having. My aim
is as follows:
1) browse to a page generated by a php script. This script starts the
javabridge in the background like this:
$port = 9200;
$javaHosts = "localhost:" . $port;
define("JAVA_HOSTS", $javaHosts);
// define engine scope
define("ENGINE_SCOPE", 100);
// require Java.inc for handling JAVA/PHP bridge related matters
require_once ("Java.inc");
$basePath = dirname($_SERVER["SCRIPT_FILENAME"]);
$port = 9200;
// check if bridge is running already
if (!$file = @fsockopen("127.0.0.1", $port, $errno, $errstr, 2)) {
// not running, so start bridge
$baseCmd = "java -Dphp.java.bridge.base=" . $basePath .
"/lib/javabridge -jar " . $basePath . "/lib/javabridge/JavaBridge.jar
SERVLET_LOCAL:";
$endCmd = " 3 " . $basePath .
"/lib/javabridge/JavaBridge.log";
$cmd = $baseCmd . $port . $endCmd;
}
2) create a java class object through the bridge, e.g:
$myobject = new java("myclass");
3) store this in the java context so I can access this object again after
the script is renewed. For that I am trying this:
define("ENGINE_SCOPE", 100);
java_context()->setAttribute("myobject", $myobject, ENGINE_SCOPE);
4) and then getting the object out again in the new script with:
$myobject = java_values(java_context()->getAttribute("myobject"));
But trying to access the java context after I started up the bridge gives
me:
*Warning*: fread() [function.fread <http://localhost/mmic/function.fread>]:
Length parameter must be greater than 0 in *
C:\MyPrograms\wamp\www\mmic\java\Java.inc* on line *1157*
protocol error: , Invalid document end at col 1. Check the back end log for
OutOfMemoryErrors. fread()
[function.fread<http://localhost/mmic/function.fread>]:
Length parameter must be greater than 0
With the backend log stating:
Oct 25 17:11:09 JavaBridge ERROR: An exception occured:
java.lang.IllegalStateException: Please use a JEE server or servlet engine.
java.lang.IllegalStateException: Please use a JEE server or servlet engine.
at php.java.bridge.JavaBridgeRunner.doPut(JavaBridgeRunner.java:198)
at php.java.bridge.http.HttpServer.service(HttpServer.java:289)
at php.java.bridge.http.HttpServer$Runner.run(HttpServer.java:205)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
So clearly this is not the way for me to accomplish what I want to
accomplish. So my question is, what would be the correct way to keep a java
object created in php from one php script execution to another?
Thanks a lot in advance for any insights, suggestions!
Bart
|