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
|
From: <php...@li...> - 2010-11-17 05:55:38
|
Hi I am unsure what you are referring to. The way to format a date with DateFormat is to call the format method. So is $dateformat->format($mydate); not a method call in PHP? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-11-16 20:03:21
|
Hi, please double check your php code. You access an attribute where you should have called a method. Php is an insane programming language, so you may run into unexpected errors if you aren't careful. Regards, Jost Bökemeier Am 16.11.2010 09:21 schrieb <php...@li...>: > Hi > > I have a java class that return a date. I would like to use the java > DateFormatter class to format the date, but it gives me an error. > > Sample: > > $hello= new java("mytest.services.MyService"); > $date=java_values($hello->mydate); > $df = new JavaClass('java.text.DateFormat'); > $formater = $df->getDateInstance($df->SHORT); > $echo("formater->format($date"); > > Result is: Uncaught [[o:Exception]:"java.lang.Exception: GetProperty > failed: [[o:SimpleDateFormat]]->format. Cause: > java.lang.NoSuchFieldException: format (with args:) > > But the DateFormat class does have a format method. > > > Hermod > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that the DnB NOR Group > cannot accept any payment orders or other legally binding correspondence with > customers as a part of an email. > > This email message has been virus checked by the anti virus programs used > in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-11-16 08:21:27
|
Hi I have a java class that return a date. I would like to use the java DateFormatter class to format the date, but it gives me an error. Sample: $hello= new java("mytest.services.MyService"); $date=java_values($hello->mydate); $df = new JavaClass('java.text.DateFormat'); $formater = $df->getDateInstance($df->SHORT); $echo("formater->format($date"); Result is: Uncaught [[o:Exception]:"java.lang.Exception: GetProperty failed: [[o:SimpleDateFormat]]->format. Cause: java.lang.NoSuchFieldException: format (with args:) But the DateFormat class does have a format method. Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-11-12 08:19:38
|
Hi My case was to have a php script that calls a servlet. The servlet is an existing one that emits html, and the purpose of the php is to emit ttat html. I am converting an exisiting Java/servlet/jsp based web to Joomla, and at the moment I just want to reuse existing logic from the servlets. I will port the gui logic to php in turn. I now have Joomla running in the same context as the old app. Regards Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-11-12 07:12:03
|
Well, if you bind your servlet to *.php, it will respond. But I guess all you want to do is to run php scripts from your servlet. Use RequestDispatcher or JSR223 API. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-11-12 06:40:59
|
Hi It is configured to handle the request - As I stated in my post, the servlet responds to the php script when the php script is run from the command line: "php test.php". It is when i access the script from the browser (http://localhost:8080/MyWebApp/test.php) that I get the NoSuchMethodException. Regards Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Thursday, November 11, 2010 6:17 PM To: php...@li... Subject: Re: [Php-java-bridge-users] Custom servlet sample works from command line but not from inside container Hi, your servlet should have been configured to respond to the request url. Please check your web.xml. Regards, Jost Bökemeier Am 11.11.2010 10:58 schrieb <php...@li...>: Hi I followed the Custom servlet sample, and when i run the test.php from the command line it does what it is supposed to do. If I howeever add the test.php to the MyWebApp and trys to access it via http://localhost:8080/MyWebApp/test.php I get a java.lang.NoSuchMethodException. I debuged and see that it is not my servlet that is beeing used, but the FastCGIServlet, which of course does not have the hello() method. So I conclude that there must be a different way of accessing the servlet from within the container - But how? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-11-11 17:17:17
|
Hi, your servlet should have been configured to respond to the request url. Please check your web.xml. Regards, Jost Bökemeier Am 11.11.2010 10:58 schrieb <php...@li...>: Hi I followed the Custom servlet sample, and when i run the test.php from the command line it does what it is supposed to do. If I howeever add the test.php to the MyWebApp and trys to access it via http://localhost:8080/MyWebApp/test.php I get a java.lang.NoSuchMethodException. I debuged and see that it is not my servlet that is beeing used, but the FastCGIServlet, which of course does not have the hello() method. So I conclude that there must be a different way of accessing the servlet from within the container - But how? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2010-11-11 09:57:55
|
Hi I followed the Custom servlet sample, and when i run the test.php from the command line it does what it is supposed to do. If I howeever add the test.php to the MyWebApp and trys to access it via http://localhost:8080/MyWebApp/test.php I get a java.lang.NoSuchMethodException. I debuged and see that it is not my servlet that is beeing used, but the FastCGIServlet, which of course does not have the hello() method. So I conclude that there must be a different way of accessing the servlet from within the container - But how? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
From: <php...@li...> - 2010-10-31 15:16:50
|
> It might be possible to work around this bug, I think we check the PHP > version during startup. Fixed in PHP/Java Bridge 6.2.1, which has been released today. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-27 17:34:24
|
Add this line before calling the method getBirtEngine java("org.eclipse.birt.php.birtengine.BirtEngine")->initBirtConfig(); That should take care of the log file if you added the properties to the BirtConfig.properties file As far as the error goes can you try adding this after you create the task $task = $birtReportEngine->createRunAndRenderTask($report); $mylocale = new java("java.util.Locale","en", "US"); $task->setLocale($mylocale); Jason ________________________________________ From: php...@li... [php...@li...] Sent: Wednesday, October 27, 2010 5:59 AM To: php...@li... Subject: [Php-java-bridge-users] Birt Report HTML rendering exception I get Exception while I try to render Birt report from PHP. Exception: [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:RunAndRenderTask]]->run. Cause: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report VM: 1.6.0_20@http://java.sun.com/" at: #-11 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:188) #-10 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:75) #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) #-6 java.lang.reflect.Method.invoke(Unknown Source) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1028) #-4 php.java.bridge.Request.handleRequest(Request.java:417) #-3 php.java.bridge.Request.handleRequests(Request.java:500) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 http://127.0.0.1:8080/JavaBridge/java/Java.inc(232): java_ThrowExceptionProxyFactory->getProxy(12, '@V', 'T', true) #1 http://127.0.0.1:8080/JavaBridge/java/Java.inc(360): java_Arg->getResult(true) #2 http://127.0.0.1:8080/JavaBridge/java/Java.inc(366): java_Client->getWrappedResult(true) #3 http://127.0.0.1:8080/JavaBridge/java/Java.inc(560): java_Client->getResult() #4 http://127.0.0.1:8080/JavaBridge/java/Java.inc(1752): java_Client->invokeMethod(7, 'run', Array) #5 http://127.0.0.1:8080/JavaBridge/java/Java.inc(1851): java_JavaProxy->__call('run', Array) #6 http://127.0.0.1:8080/JavaBridge/java/Java.inc(1999): java_AbstractJava->__call('run', Array) #7 [internal function]: Java->__call('run', Array) #8 C:\wamp\www\test\tst_birt.php(31): java_InternalJava->run() #9 {main}] PHP Code: <?php require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc"); session_start(); $here = getcwd(); $ctx = java_context()->getServletContext(); $birtReportEngine = java("org.eclipse.birt.php.birtengine.BirtEngine")->getBirtEngine($ctx); java_context()->onShutdown(java("org.eclipse.birt.php.birtengine.BirtEngine")->getShutdownHook()); try{ $report = $birtReportEngine->openReportDesign("${here}/ankieta.rptdesign"); $task = $birtReportEngine->createRunAndRenderTask($report); $taskOptions = new java("org.eclipse.birt.report.engine.api.HTMLRenderOption"); $outputStream = new java("java.io.ByteArrayOutputStream"); $taskOptions->setOutputStream($outputStream); $taskOptions->setOutputFormat("html"); $ih = new java( "org.eclipse.birt.report.engine.api.HTMLServerImageHandler"); $taskOptions->setImageHandler($ih); //$taskOptions->setBaseImageURL($imageURLPrefix . session_id()); $taskOptions->setImageDirectory($here . "/sessionChartImages/" . session_id()); $task->setRenderOption( $taskOptions ); //$task->setParameterValue("id_pracownik","85"); $task->run(); $task->close(); } catch (JavaException $e) { echo $e; //"Error Calling BIRT"; } echo java_values($outputStream->toByteArray()); Report renders to DOC, or PDF without any errors. I couldn't made it to log errors using properties file, so I have no idea how to made it to render it right. Report file enclosed to message, but it works fine in Birt Report Designer. |
From: <php...@li...> - 2010-10-27 10:00:04
|
I get Exception while I try to render Birt report from PHP. Exception: [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:RunAndRenderTask]]->run. Cause: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report VM: 1.6.0_20@http://java.sun.com/" at: #-11 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:188) #-10 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:75) #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) #-6 java.lang.reflect.Method.invoke(Unknown Source) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1028) #-4 php.java.bridge.Request.handleRequest(Request.java:417) #-3 php.java.bridge.Request.handleRequests(Request.java:500) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 http://127.0.0.1:8080/JavaBridge/java/Java.inc(232): java_ThrowExceptionProxyFactory->getProxy(12, '@V', 'T', true) #1 http://127.0.0.1:8080/JavaBridge/java/Java.inc(360): java_Arg->getResult(true) #2 http://127.0.0.1:8080/JavaBridge/java/Java.inc(366): java_Client->getWrappedResult(true) #3 http://127.0.0.1:8080/JavaBridge/java/Java.inc(560): java_Client->getResult() #4 http://127.0.0.1:8080/JavaBridge/java/Java.inc(1752): java_Client->invokeMethod(7, 'run', Array) #5 http://127.0.0.1:8080/JavaBridge/java/Java.inc(1851): java_JavaProxy->__call('run', Array) #6 http://127.0.0.1:8080/JavaBridge/java/Java.inc(1999): java_AbstractJava->__call('run', Array) #7 [internal function]: Java->__call('run', Array) #8 C:\wamp\www\test\tst_birt.php(31): java_InternalJava->run() #9 {main}] PHP Code: <?php require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc"); session_start(); $here = getcwd(); $ctx = java_context()->getServletContext(); $birtReportEngine = java("org.eclipse.birt.php.birtengine.BirtEngine")->getBirtEngine($ctx); java_context()->onShutdown(java("org.eclipse.birt.php.birtengine.BirtEngine")->getShutdownHook()); try{ $report = $birtReportEngine->openReportDesign("${here}/ankieta.rptdesign"); $task = $birtReportEngine->createRunAndRenderTask($report); $taskOptions = new java("org.eclipse.birt.report.engine.api.HTMLRenderOption"); $outputStream = new java("java.io.ByteArrayOutputStream"); $taskOptions->setOutputStream($outputStream); $taskOptions->setOutputFormat("html"); $ih = new java( "org.eclipse.birt.report.engine.api.HTMLServerImageHandler"); $taskOptions->setImageHandler($ih); //$taskOptions->setBaseImageURL($imageURLPrefix . session_id()); $taskOptions->setImageDirectory($here . "/sessionChartImages/" . session_id()); $task->setRenderOption( $taskOptions ); //$task->setParameterValue("id_pracownik","85"); $task->run(); $task->close(); } catch (JavaException $e) { echo $e; //"Error Calling BIRT"; } echo java_values($outputStream->toByteArray()); Report renders to DOC, or PDF without any errors. I couldn't made it to log errors using properties file, so I have no idea how to made it to render it right. Report file enclosed to message, but it works fine in Birt Report Designer. |
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 |
From: <php...@li...> - 2010-10-23 08:41:41
|
Hi, > We just need to be able to run their Java programs from a PHP script > that will be called from a web browser Please see http://php-java-bridge.sourceforge.net/pjb/installation.php > 1) . Can we just use JavaBridge for this purpose Sure. > 2) If yes, how do we do this exactly - Please see our FAQ entry "What do I need to communicate with Java?" and "Do I need a Java Application Server or Servlet Engine?" at http://php-java-bridge.sourceforge.net/pjb/FAQ.html > b) How do we run the JavaBridge app as a service/daemon in Linux that > can run in the background ? Both, Tomcat and Jetty run as a demon. Just type: yum install tomcat6 or yum install jetty to install it. > c) How do we call the java programs from PHP ? Use the PHP/Java Bridge protocol. Bindings for Python, Scheme, PHP 4 and higher are available. For PHP 5 just use the Java.inc class. Please see our FAQ entry "What do I need to communicate with Java?" and "Does it support PHP 4?" Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-20 07:14:06
|
We have a Linux / Apache 1.3 / PHP 5.3 web Server running multiple websites. We need to setup a Payment Gateway application that requires JavaBridge as it is coded in Java. We do have Java - with JDK 1.6 installed on the server. We just need to be able to run their Java programs from a PHP script that will be called from a web browser (Actually from WordPress - using the WP e-Commerce plugin) (there is no need to run PHP scripts from the Java app AFAIK) - So my questions are : 1) . Can we just use JavaBridge for this purpose - as the documentation shows that javabridge can be used as a servlet engine ? We do NOT want to install a separate Tomcat or other J2EE server. 2) If yes, how do we do this exactly - a) Which JavaBridge files do we need on the server and where do we copy these files ? To the Java /lib folder or to the Website's root (public_html) folder ? b) How do we run the JavaBridge app as a service/daemon in Linux that can run in the background ? ( We tried running it from a shell command but it runs in the foreground and would terminate once the shell was closed) c) How do we call the java programs from PHP ? Although I did go thru the documentation - it is quite confusing as there are so many options for the installation. Any help / advice or pointers to an existing document that describes this in detail would be great ! Thanks in advance for any help. - Ron |
From: <php...@li...> - 2010-10-18 18:38:29
|
> Any clue why 5.5.4.1 works in the same circumstances? The new code has been introduced in version 5.5.4 to prevent PHP from interpreting paths which contain special characters. Windows sometimes uses short paths which contain unusual characters. Since PHP/Java Bridge version 6.x we use it on Unix, too. > That's weird. It's hapenning in two different PHP versions, two different > Linux distribution and two different platforms (Intel and OS390-zLinux). I am sorry if this causes problems. But these issues appear as part of the "normal" PHP development process: It's a PHP problem, not a PHP/Java Bridge problem. It might be possible to work around this bug, I think we check the PHP version during startup. Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-17 20:52:29
|
Hello! <quote> [jostb@localhost ~]$ php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path session.save_path => /tmp => /tmp </quote> According to http://www.php.net/manual/en/configuration.file.php session.save_path="something"; is okay, but session.save_path="something"; is not. However: [Customization] custom.mode = "development" session.save_path="${custom.mode}"; php 5.3: session.save_path => development => development php 5.2: session.save_path => ${custom.mode} => ${custom.mode} So I'd say that using ' quotes is correct. Peter |
From: <php...@li...> - 2010-10-17 17:46:19
|
Thanks for your inputs. That's weird. It's hapenning in two different PHP versions, two different Linux distribution and two different platforms (Intel and OS390-zLinux). Any clue why 5.5.4.1 works in the same circumstances? On Sun, Oct 17, 2010 at 3:12 PM, < php...@li...> wrote: > Hi, > > then you've found a PHP bug, I think. > > [jostb@localhost ~]$ php -n -d 'session.save_path='\''/tmp'\''' -i > |fgrep session.save_path > session.save_path => /tmp => /tmp > > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 17:13:00
|
Hi, then you've found a PHP bug, I think. [jostb@localhost ~]$ php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path session.save_path => /tmp => /tmp Regards, Jost Bökemeier |
From: <php...@li...> - 2010-10-17 16:56:18
|
Oh Sorry about it. sovm105:~# php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path session.save_path => '/tmp' => '/tmp' If you need something else please let me know. On Sun, Oct 17, 2010 at 2:35 PM, < php...@li...> wrote: > > Infact, I'm using WebSphere CE (Geronimo) and it has a setting that > override > > 'sesion.path' statement. > > Since I cannot reproduce it, I can't fix it. > > What does > > php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path > > display on your system? > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 16:35:27
|
> Infact, I'm using WebSphere CE (Geronimo) and it has a setting that override > 'sesion.path' statement. Since I cannot reproduce it, I can't fix it. What does php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path display on your system? |
From: <php...@li...> - 2010-10-17 14:19:42
|
I already took a look on it. Infact, I'm using WebSphere CE (Geronimo) and it has a setting that override 'sesion.path' statement. session.path is fine, there is a bug in javabridge 6.1.5rc5 On Sun, Oct 17, 2010 at 12:10 PM, < php...@li...> wrote: > Then we have to look at PHP. > > What does > > php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path > > display on your system? > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |
From: <php...@li...> - 2010-10-17 14:10:30
|
Then we have to look at PHP. What does php -n -d 'session.save_path='\''/tmp'\''' -i |fgrep session.save_path display on your system? |
From: <php...@li...> - 2010-10-17 13:21:02
|
Confirmed. There is a bug in 6.2.1rc5 version. Worked fine with 5.5.4.1 version.\ Cheers. On Sun, Oct 17, 2010 at 10:04 AM, Garcia JR <gar...@gm...> wrote: > Here: > > ./test.sh 'arg 1' arg2 3 | od -c > 0000000 a r g 1 a r g 2 3 \n a r g > 0000020 1 a r g 2 3 \n > 0000032 > > > > On Sun, Oct 17, 2010 at 8:50 AM, < > php...@li...> wrote: > >> Hi, >> >> the argument appears to be quoted. >> >> The FastCGIServlet starts a FastCGI process pool through the operating >> system's /bin/sh, so I think we should find the bug there. >> >> What version of /bin/sh do you use, what does the following script: >> #!/bin/sh >> >> echo "$*" >> echo "$@" >> >> ./test.sh 'arg 1' arg2 3 | od -c >> >> display? >> >> >> >> Regards, >> Jost Bökemeier >> >> >> ------------------------------------------------------------------------------ >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today! >> http://p.sf.net/sfu/adobe-dev2dev >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > > > -- > Garcia > -- Garcia |
From: <php...@li...> - 2010-10-17 12:05:07
|
Here: ./test.sh 'arg 1' arg2 3 | od -c 0000000 a r g 1 a r g 2 3 \n a r g 0000020 1 a r g 2 3 \n 0000032 On Sun, Oct 17, 2010 at 8:50 AM, < php...@li...> wrote: > Hi, > > the argument appears to be quoted. > > The FastCGIServlet starts a FastCGI process pool through the operating > system's /bin/sh, so I think we should find the bug there. > > What version of /bin/sh do you use, what does the following script: > #!/bin/sh > > echo "$*" > echo "$@" > > ./test.sh 'arg 1' arg2 3 | od -c > > display? > > > > Regards, > Jost Bökemeier > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Garcia |