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...> - 2009-08-18 10:46:06
|
Hi Jost,
> You are right, when calling fopen("php://input", "r") PHP
> version 5 may crash or hang. Please do not use it until this
> PHP5 bug is fixed.
> ...
> Do you report this bug to the PHP maintainers?
Using PHP 5.2.9 here, but function php_stream_input_read() in
php_fopen_wrapper.c is identical to the 5.2.5 one.
Before opening a bug (been there, done that) I should carefully check
what you say, but I cannot do so right now - leaving for vacation
tomorrow next and lots of loose ends to fix here at work.
Anyway I modified the Swing application to redirect the JSON-RPC call to
a "standard" Apache + mod_php 5.2.9 configuration (no Jetty no Java) and
php://input works perfectly - as well it should, since we are using that
machine as a SOAP services endpoint, consuming RAW POST data all the
time.
Will need to double check the C dode ...
Bye,
Massimo
|
|
From: <php...@li...> - 2009-08-18 10:23:40
|
Hi Massimo, I will add a jsr223 tutorial to our web site. The bindings are complete. The reason for the new script-api.jar was a degression in version 5.4.4.2; I have cleaned up a little bit too much, leaving the standalone script engine w/o a urlreader path, even though it has been documented in the api doc. The path was re-introduced in 5.5.1. Please see the jsr223 api documentation for details. The X_ headers and the java_getHeader() are internal and shouldn't be used in general. The line I have given is an exception. You can wrap it in a function and use 'if called_from_java() java_context()-call(java_closure())' if you want. > I still don't quite grasp how to use java_closure( That's the core idea of the bridge. These calls never return but call others ad infinitum. Regards, Jost Boekemeier 18. Aug 2009 11:48 vorm. schrieb am < php...@li...>: Hi Jost, > Sure, you could use json or even invent your own text-based > communication protocol, but why not use the php java bridge > to handle the communication? > > Here's a simple php script which acts as a receiver. Thank for the advice, I will try your code. It may be me, but I would never have tried what you suggest; I can't find documentation about the several X_JAVABRIDGE_* constants and their intended usage, nor was I aware of the java_getHeader() function. Moreover, I still don't quite grasp how to use java_closure() and lastly, I believe several methods of the ScriptEngine API are still to be implemented ... is this correct? Massimo ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-08-18 09:47:55
|
Hi Jost, > Sure, you could use json or even invent your own text-based > communication protocol, but why not use the php java bridge > to handle the communication? > > Here's a simple php script which acts as a receiver. Thank for the advice, I will try your code. It may be me, but I would never have tried what you suggest; I can't find documentation about the several X_JAVABRIDGE_* constants and their intended usage, nor was I aware of the java_getHeader() function. Moreover, I still don't quite grasp how to use java_closure() and lastly, I believe several methods of the ScriptEngine API are still to be implemented ... is this correct? Massimo |
|
From: <php...@li...> - 2009-08-18 06:56:28
|
Hi, We can only support original software[1]. Please download tomcat from apache org and try again. Regards, Jost Boekemeier [1] Debian and RedHat patched/hacked/whatever variants are also supported via packages. 17. Aug 2009 10:15 nachm. schrieb am < php...@li...>: Hi, i have a problem with the JavaBridge installation. When i point my browser to: http://127.0.0.1:8080/JavaBridge/ i get: Servlet PhpCGIServlet is not available i tested the install as explained on the website via: java -classpath JavaBridge.war TestInstallation which gave me no errors. Then i deployed it to the tomcat webapps folder. The tomcat examples and a simple hello world example are working. This is probably a trivial issue, but i am not sure what i am missing. I also googled it and found nothing that helped me. thanks matt ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-08-18 06:56:25
|
Hi Massimo,
You are right, when calling fopen("php://input", "r") PHP version 5 may
crash or hang. Please do not use it until this PHP5 bug is fixed.
I have looked at php 5.2.5. In php_fopen_wrapper.c line 81 it reads the
raw_post_data and then increments the SG(read_post_bytes) even though it
hasn't read anything. The result is that SG(read_post_bytes) is twice the
CONTENT_LENGTH size, causing all sorts of strage side effects later on.
In your particular case it calls SAPI.c sapi_read_post_data() which reads
the input up to CONTENT_LENGTH bytes. Then you call php_fopen_wrapper.c
php_stream_input_read() which reads nothing but increments
SG(read_post_bytes) again. And finally sapi_cgi_read_post() is called from
sapi_deactivate() to consume any remaining input. The remaining input is
calculated as (unsigned)(CONTENT_LENGTH-SG(read_post_bytes)) which is
4294967296-CONTENT_LENGTH due to an overflow.
If you post that much data, it will work, I guess... :)
Do you report this bug to the PHP maintainers?
Regards,
Jost Boekemeier
17. Aug 2009 4:44 nachm. schrieb am <
php...@li...>:
Hi Jost,
thank you for the reply.
> Is it a standalone web- or desktop application?
It is a standalone desktop application, but several tasks will also
interface a remote Web server, if/when a network connection is
available.
> Why do you need jetty for a desktop application?
I found it helps a lot to give structure and order to the
application(s). It takes care of potential CLASSPATH issues, it's easy
to setup and start/stop, and has a small footprint. Last but not least,
it keeps a door open for more advanced functionality I may need in the
future - this is just the first of (hopefully) several applications.
> If you want to use PHP as a plugin only, use the JSR 223 API.
I am currently trying to connect the Swing application with Jetty-hosted
PHP scripts via JSON-RPC, since the (RAW POST based) protocol is quite
efficient and easy to implement, both in PHP and in Java.
Sadly though, while I can readily access the RAW POST data via
php://input and can also write the JSON string received from Java to a
file, I see the fastcgi is unable to output the response ... looks like
the communication channel is corrupted somehow as soon as I fopen it for
reading.
On the grounds that I may be violating the standard way of interacting
with a servlet, I've been struggling the past few days to solve the
problem by using java_context() methods and properties, but without
success so far ... I'd appreciate some advice.
Massimo
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-08-17 20:15:28
|
Hi, i have a problem with the JavaBridge installation. When i point my browser to: http://127.0.0.1:8080/JavaBridge/ i get: Servlet PhpCGIServlet is not available i tested the install as explained on the website via: java -classpath JavaBridge.war TestInstallation which gave me no errors. Then i deployed it to the tomcat webapps folder. The tomcat examples and a simple hello world example are working. This is probably a trivial issue, but i am not sure what i am missing. I also googled it and found nothing that helped me. thanks matt |
|
From: <php...@li...> - 2009-08-17 17:00:48
|
You'll also need the php-script.jar from http://php-java-bridge.sourceforge.net/pjb/java/php-script.jar 17. Aug 2009 4:44 nachm. schrieb am < php...@li...>: > > > Hi Jost, > > thank you for the reply. > > > Is it a standalone web- or desktop application? ... |
|
From: <php...@li...> - 2009-08-17 16:45:29
|
Hi Massimo,
The servlet can handle POST, but I haven't tried to open the input stream.
However, if I understand you correctly, you want to invoke PHP application
methods from a java desktop application. Sure, you could use json or even
invent your own text-based communication protocol, but why not use the php
java bridge to handle the communication?
Here's a simple php script which acts as a receiver. It waits for java
requests and invokes methods from the closed-over environment:
<?php require_once("java/Java.inc");
class MyClass {
function hello() { return "hello"; }
function world() { return "world"; }
}
if (java_getHeader("X_JAVABRIDGE_INCLUDE", $_SERVER))
java_context()->call(java_closure(new MyClass()));
?>
And this is the Java part, which uses the jsr223 API to call the remote
methods:
import java.io.*;
import java.net.*;
import javax.script.*;
public class JsrTest {
public static void main(String s[]) throws Exception {
ScriptEngine e = new ScriptEngineManager().getEngineByName("php-invocable");
e.eval (new php.java.script.URLReader(new URL("http://localhost/jsrtest.php
")));
System.out.println(((Invocable)e).invokeFunction("hello", new Object[]{}));
System.out.println(((Invocable)e).invokeFunction("world", new Object[]{}));
((Closeable)e).close();
}
}
I have tested the above code using Java.inc from
http://php-java-bridge.sourceforge.net/pjb/java/Java.inc and JavaBridge.jar
from http://php-java-bridge.sourceforge.net/pjb/java/JavaBridge.jar.
Regards,
Jost Boekemeier
17. Aug 2009 4:44 nachm. schrieb am <
php...@li...>:
Hi Jost,
thank you for the reply.
> Is it a standalone web- or desktop application?
It is a standalone desktop application, but several tasks will also
interface a remote Web server, if/when a network connection is
available.
> Why do you need jetty for a desktop application?
I found it helps a lot to give structure and order to the
application(s). It takes care of potential CLASSPATH issues, it's easy
to setup and start/stop, and has a small footprint. Last but not least,
it keeps a door open for more advanced functionality I may need in the
future - this is just the first of (hopefully) several applications.
> If you want to use PHP as a plugin only, use the JSR 223 API.
I am currently trying to connect the Swing application with Jetty-hosted
PHP scripts via JSON-RPC, since the (RAW POST based) protocol is quite
efficient and easy to implement, both in PHP and in Java.
Sadly though, while I can readily access the RAW POST data via
php://input and can also write the JSON string received from Java to a
file, I see the fastcgi is unable to output the response ... looks like
the communication channel is corrupted somehow as soon as I fopen it for
reading.
On the grounds that I may be violating the standard way of interacting
with a servlet, I've been struggling the past few days to solve the
problem by using java_context() methods and properties, but without
success so far ... I'd appreciate some advice.
Massimo
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-08-17 14:43:58
|
Hi Jost, thank you for the reply. > Is it a standalone web- or desktop application? It is a standalone desktop application, but several tasks will also interface a remote Web server, if/when a network connection is available. > Why do you need jetty for a desktop application? I found it helps a lot to give structure and order to the application(s). It takes care of potential CLASSPATH issues, it's easy to setup and start/stop, and has a small footprint. Last but not least, it keeps a door open for more advanced functionality I may need in the future - this is just the first of (hopefully) several applications. > If you want to use PHP as a plugin only, use the JSR 223 API. I am currently trying to connect the Swing application with Jetty-hosted PHP scripts via JSON-RPC, since the (RAW POST based) protocol is quite efficient and easy to implement, both in PHP and in Java. Sadly though, while I can readily access the RAW POST data via php://input and can also write the JSON string received from Java to a file, I see the fastcgi is unable to output the response ... looks like the communication channel is corrupted somehow as soon as I fopen it for reading. On the grounds that I may be violating the standard way of interacting with a servlet, I've been struggling the past few days to solve the problem by using java_context() methods and properties, but without success so far ... I'd appreciate some advice. Massimo |
|
From: <php...@li...> - 2009-08-12 18:13:01
|
Hi,
older versions used to support unix-domain socket communication on certain
operating systems. Since version 5.4.4.2 this path is broken:
>From PROTOCOL.TXT:
*" It is possible to send the header even though the connection has
already been established. The bridge will ignore the header if the
second byte is not 0xFF."
*
However, 0xFF seems be uses to implement a short path for the
Servlet/JEE/Tomcat container now (btw: the buf[1] should really be buf[c+1],
but that doesn't matter, as c is guaranteed to be 0 at the beginning of the
communication). In order to support unix domain socket communicationn again,
we need to add a method "parseHeader()" to the IDocHandler interface, so
that we can move the code implementation below to the servlet context and
use the old code implementation from the cvs in the standalone context. Oh,
and PROTOCOL.TXT should document this properly.
235 case 0177: if(in_dquote) {APPEND(ch); break;}
236 // the header used to be binary encoded
238 bridge.out.write(0); bridge.out.flush(); // dummy write:
avoid ack delay
239 int len =(0xFF&buf[c+2]) | (0xFF00&(buf[c+3]<<8));
244 byte shortPathHeader = (byte) (0xFF&(buf[1]));
245 if(shortPathHeader != (byte) 0xFF) // short path: no
previous PUT request
|
|
From: <php...@li...> - 2009-08-12 17:41:52
|
Hi Massimo, > I have to build a standalone, multiplatform PHP application that needs > to use a number of java classes Is it a standalone web- or desktop application? Since you mention swing, I assume you want to write a desktop app. I would start by writing the Java GUI skeleton and then add PHP functionality to it, please see http://php-java-bridge.sourceforge.net/pjb/standalone.php for an example. *I* would write the entire application in java. PHP makes sense for short-lived scripts, but I wouldn't use it to drive the entire desktop application. -- I think PHP 5.3's new reference counter can reclaim certain cycles, but I wouldn't trust it. If you want to use PHP as a plugin only, use the JSR 223 API. > PHP-equipped Jetty (http://jetty.mortbay.org/jetty/) on localhost Why do you need jetty for a desktop application? Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-08-12 11:25:36
|
Hi Jost & all, I have to build a standalone, multiplatform PHP application that needs to use a number of java classes in both the "business" logic (e.g. the cryptography package from Bouncy Castle) and the graphical user interface (3rd party UI components). While being proficient in PHP the same cannot be said for Java, so I've being researching a good "hybrid" solution to get the job done and am currently focusing on a Java Swing front-end calling a PHP-equipped Jetty (http://jetty.mortbay.org/jetty/) on localhost. Specifically, I'd like to visually create the GUI with the NetBeans IDE, register the appropriate Event Listeners and implement all non-trivial (or forcibly Java) event-handling code in PHP, and I am struggling to understand strengths and weaknesses of the available options ... following is the list of alternatives I've come up with until now: 1) Just make an HTTP request from the event method to a PHP script on the Jetty back-end, where PHP can interact via PJB with any needed Java classes or simply make use of all its built-in functionality to generate a response. This solution implies I have to manage all response data and interface navigation in Java; also, there won't be any continuation passing between the Swing front-end and the PHP back-end, resulting in a somewhat less efficient interaction; 2) Write Java code using JSR 223 and PJB to call PHP classes/methods on the Jetty back-end. Still need to write Java code, nonetheless it looks like a better solution performance-wise: problem is, to date I didn't manage to call PHP user functions/classes from such an application - I can run the phpversion() sample provided, but that's it. Probably my fault, anyway I'd welcome a more complex example; 3) Expand the example in http://php-java-bridge.sourceforge.net/pjb/standalone.php so the Swing application makes HTTP calls to Jetty's PHP scripts. Instead of returning a response like in 1), the PHP code interacts with appropriately exposed application methods. I believe one could, to a point, even control the interface navigation from PHP in this way. Are there other alternatives to consider (I may be missing even the simplest, most elegant solution)? Regards, Massimo |
|
From: <php...@li...> - 2009-08-10 06:16:13
|
I will be out of the office starting 08/07/2009 and will not return until 08/12/2009. I will respond to your message when I return. |
|
From: <php...@li...> - 2009-08-08 11:48:11
|
Hi,
$pageHeight and $pageWidth are java objects.
Since Java doesn't automatically convert objects into php values, you must
do this explicitly. For example with:
(int)(string)$width;
Please see the php java bridge api for other possibilities to convert
objects into values.
Regards,
Jost Boekemeier
8. Aug 2009 1:40 nachm. schrieb am <
php...@li...>:
Hi,
I am Using PJB for running Jasper Reports from PHP. Please Refer Following
Code
$jrPrint =
$rptRef->tempDir.DS.$rptRef->templateFile.JRPRINT;
$fillManager = new
JavaClass("net.sf.jasperreports.engine.JasperFillManager");
$jasperPrint = $fillManager->fillReport($jasper, $jrPara,
$xmlDataSource);
This is suppose to be of type "net.sf.jasperreports.engine.JasperPrint"
This java class has many methods out of which following two methods are
suppose to return Integers
$w = $jasperPrint->getPageWidth();
$h = $jasperPrint->getPageHeight();
while invoking these methods no exception is also generated but
I am not getting any integers. PHP debugger shows them as some object
I want to use the integer values for further processing How can I get those
as integers ?
The $jasperPrint object is used further by other java classes created
through PHP
there it gives desired results. So I don't doubt the returned object its
just fine.
OS is Windows, Apache, PHP 5.3, Tomcat 6, LocalHost, JasperReports 3.5.2,
nuSphere PHPed as PHP IDE.
Thanks and Best regards.
Raja.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-08-08 11:40:02
|
Hi,
I am Using PJB for running Jasper Reports from PHP. Please Refer Following
Code
$jrPrint =
$rptRef->tempDir.DS.$rptRef->templateFile.JRPRINT;
$fillManager = new
JavaClass("net.sf.jasperreports.engine.JasperFillManager");
$jasperPrint = $fillManager->fillReport($jasper, $jrPara,
$xmlDataSource);
This is suppose to be of type "net.sf.jasperreports.engine.JasperPrint"
This java class has many methods out of which following two methods are
suppose to return Integers
$w = $jasperPrint->getPageWidth();
$h = $jasperPrint->getPageHeight();
while invoking these methods no exception is also generated but
I am not getting any integers. PHP debugger shows them as some object
I want to use the integer values for further processing How can I get those
as integers ?
The $jasperPrint object is used further by other java classes created
through PHP
there it gives desired results. So I don't doubt the returned object its
just fine.
OS is Windows, Apache, PHP 5.3, Tomcat 6, LocalHost, JasperReports 3.5.2,
nuSphere PHPed as PHP IDE.
Thanks and Best regards.
Raja.
|
|
From: <php...@li...> - 2009-08-07 06:41:04
|
Hi, I have attached a test case at the end of your ticket. I don't have a backtrace either, but the xdebug developer could easily reproduce this using the attached php test case: http://php-java-bridge.sourceforge.net/pjb/xdebug.php.txt Regards, Jost Boekemeier 6. Aug 2009 1:58 nachm. schrieb am < php...@li...>: Hi Jost, > yes, it crashes in strcmp, due to an uninitialized function name. I think > xdebug makes false as... We have opened a ticket on the Xdebug bug tracker: http://bugs.xdebug.org/view.php?id=463 We have not yet installed GDB so we provided the backtrace you sent. The xdebug developer now requested: --- Please type "bt full" on the GDB prompt. --- If it is not too much trouble, could you please send us the new backtrace so we can pass it on to the xdebug dev? Thanks for your time! Kind regards, Antonio -------------------------------------------------------------------------... php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-08-06 11:57:25
|
Hi Jost, > yes, it crashes in strcmp, due to an uninitialized function name. I think > xdebug makes false asumptions about the zend engine state: We have opened a ticket on the Xdebug bug tracker: http://bugs.xdebug.org/view.php?id=463 We have not yet installed GDB so we provided the backtrace you sent. The xdebug developer now requested: --- Please type "bt full" on the GDB prompt. --- If it is not too much trouble, could you please send us the new backtrace so we can pass it on to the xdebug dev? Thanks for your time! Kind regards, Antonio |
|
From: <php...@li...> - 2009-08-06 10:39:18
|
Hi,
yes, it crashes in strcmp, due to an uninitialized function name. I think
xdebug makes false asumptions about the zend engine state:
Program received signal SIGSEGV, Segmentation fault.
0x001194fd in add_stack_frame (zdata=0xbfffcbec, op_array=0x852ef1c, type=2)
at /home/jostb/xdebug-2.0.0/xdebug.c:1007
1007 if (
(gdb) list
1002 XDEBUG_LLIST_TAIL(XG(stack))
1003 ) {
1004 /* Ugly hack for call_user_*() type function calls */
1005 zend_function *tmpf =
EG(current_execute_data)->prev_execute_data->function_state.function;
1006 if (tmpf && (tmpf->common.type != 3) && tmpf->common.function_name) {
1007 if (
1008 (strcmp(tmpf->common.function_name, "call_user_func") == 0) ||
1009 (strcmp(tmpf->common.function_name, "call_user_func_array") == 0) ||
1010 (strcmp(tmpf->common.function_name, "call_user_func_method") == 0) ||
1011 (strcmp(tmpf->common.function_name, "call_user_func_method_array") ==
0)
(gdb) p tmpf->common
$4 = {type = 144 '\220', function_name = 0x7 <Address 0x7 out of bounds>,
scope = 0x845fed0, fn_flags = 138807704, prototype = 0x8460368,
num_args = 0, required_num_args = 0, arg_info = 0x0,
pass_rest_by_reference = 99 'c', return_reference = 108 'l'}
(gdb)
Regards,
Jost Boekemeier
6. Aug 2009 11:41 vorm. schrieb am <
php...@li...>:
Hi Jost,
> can you please try to fetch Java.inc directly from the back end, just to >
make sure that APC or ...
Done.
> I have just compiled php 5.2.6 with debug enabled and couldn't reproduce >
this problem.
We managed to identify that "xdebug" plays a part.
When we enable:
zend_extension="/usr/lib/php/20060613/xdebug.so"
It triggers the Segmentation Fault.
If we disable it, it works fine.
We were using xdebug version 2.0.4. We just upgraded to 2.0.5. and the same
"Segmentation Fault" happens.
For now we will disable xdebug and contact their developers.
Could you maybe see if you can reproduce this problem on your PHP 5.2.6
deployment? To install xdebug you just need to run:
-------------------
pecl install xdebug
-------------------
Kind regards,
Antonio
> 5. Aug 2009 5:52 nachm. schrieb am < >
php...@li...>: > > Hi Jost...
--
Antonio Ruiz Zwollo J-ET Senior Developer/Architect MediaTel Group 84-86
Regent Street, London, W1B...
------------------------------------------------------------------------------
Let Crystal Reports h...
|
|
From: <php...@li...> - 2009-08-04 17:32:37
|
Hi, it should be in the download section. Unfortunately the new SF.NETappearance is very chaotic; I couldn't even find the current 5.4.4 binary download. In the worst case you need to re-build it from CVS. Regards, Jost Boekemeier 4. Aug 2009 6:47 nachm. schrieb am < php...@li...>: Could someone please post/link/email the 4.2.2 binary (not 5.4.2.2), as I need it for a project? Thanks in advance. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-08-04 16:47:15
|
Could someone please post/link/email the 4.2.2 binary (not 5.4.2.2), as I need it for a project? Thanks in advance. |
|
From: <php...@li...> - 2009-08-03 20:18:20
|
Hi, There's a new document: http://php-java-bridge.sourceforge.net/pjb/standalone.php Regards, Jost Boekemeier 30. Jul 2009 7:19 nachm. schrieb am < php...@li...>: Thanks Jost, > It depends on your java application. Some applications use/require a > servlet > container as a ... > I do agree, I want to test whether JasperReports Runs without Tomcat. But if PJB needs Tomcat then no options are left. If PJB can run without Tomcat let me what shall I do. I will test the pilot application we developed without Tomcat. If it works then we can plan our main application in different way. Please let me know how can I make the required jasperReport jar files available to PJB for instantiation of jasper report classes. Right now I have put all of then in Tomcat Lib Dir. Thanks and best regards. Raja. -------------------------------------------------------------------... |
|
From: <php...@li...> - 2009-08-01 12:40:45
|
Hi, I think a Java module system similar to SML/NJ's would be useful. The RICE people have had a proposal for this, but it required real generics (current Java 1.5 generics are pure syntax and not very useful). > Is it possible to include the bridge as a Maven2 dependency? May be. But if it requires any changes to the JavaBridge code, these changes must be distributed separately. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-08-01 00:46:51
|
Hello! Is it possible to include the bridge as a Maven2 dependency? As I'm managing all my projects lifecycles + dependency lookup through maven, I would be really happy to simply add the bridge as dependency to my projects. kind regards, dominik dorn |
|
From: <php...@li...> - 2009-07-31 16:03:57
|
Raja, The way we did it with tomcat is explained here: http://www.theserverside.com/tt/articles/article.tss?l=IntegratingBIRTwithPHP some additional notes are posted here: http://www.birt-exchange.org/devshare/deploying-birt-reports/743-calling-birt-from-php/#description To do it stand alone I just copied the stand alone directory to my php site and created a new directory in it with BIRT libs. Right clicked on the JavaBridge.jar and selected the open with Java. Then wrote php pages to access it. Very simple. Here was one the example pages I used. As you will notice way to many jars. I really did not need them all but wanted to check if this would be an issue. With BIRT you can turn on/off pieces of the engine. I also had some issues with the version of BIRT using static variables so I had to add a work around. This has since been fixed. <?php //define ("JAVA_DEBUG", true); require_once ("java/Java.inc"); $session = java_session(); $here = getcwd(); try { java_require("$here/BIRTReportEngine2.3.1/lib/chartphp.jar;$here/BIRTReportEngine2.3.1/lib/chartengineapi.jar;$here/BIRTReportEngine2.3.1/lib/com.ibm.icu_3.8.1.v20080530.jar;$here/BIRTReportEngine2.3.1/lib/commons-cli-1.0.jar;$here/BIRTReportEngine2.3.1/lib/coreapi.jar;$here/BIRTReportEngine2.3.1/lib/crosstabcoreapi.jar;$here/BIRTReportEngine2.3.1/lib/dataadapterapi.jar;$here/BIRTReportEngine2.3.1/lib/dataaggregationapi.jar;$here/BIRTReportEngine2.3.1/lib/dteapi.jar;$here/BIRTReportEngine2.3.1/lib/engineapi.jar;$here/BIRTReportEngine2.3.1/lib/flute.jar;$here/BIRTReportEngine2.3.1/lib/js.jar;$here/BIRTReportEngine2.3.1/lib/modelapi.jar;$here/BIRTReportEngine2.3.1/lib/modelodaapi.jar;$here/BIRTReportEngine2.3.1/lib/odadesignapi.jar;$here/BIRTReportEngine2.3.1/lib/org.apache.commons.codec_1.3.0.v20080530-1600.jar;$here/BIRTReportEngine2.3.1/lib/dataextraction.jar;$here/BIRTReportEngine2.3.1/lib/org.eclipse.emf.common_2.4.0.v200808251517.jar;$here/BIRTReportEngine2.3.1/lib/org.eclipse.emf.ecore.xmi_2.4.1.v200808251517.jar;$here/BIRTReportEngine2.3.1/lib/org.eclipse.emf.ecore_2.4.1.v200808251517.jar;$here/BIRTReportEngine2.3.1/lib/org.w3c.css.sac_1.3.0.v200805290154.jar;$here/BIRTReportEngine2.3.1/lib/scriptapi.jar;"); if(is_null(java_values($session->get("birtengine")))) { $birtEngineConfig = new java("org.eclipse.birt.report.engine.api.EngineConfig"); $birtEngineConfig->setBIRTHome("C:/xampplite/htdocs/birtphp/BIRTReportEngine2.3.1"); $birtPlatform = new java("org.eclipse.birt.core.framework.Platform"); $birtPlatform->startup($birtEngineConfig); $birtFactory = $birtPlatform->createFactoryObject( "org.eclipse.birt.report.engine.ReportEngineFactory" ); $birtEngine = $birtFactory->createReportEngine( $birtEngineConfig ); $session->put("birtengine", $birtEngine); } $birtEngine = java_values($session->get("birtengine")); $setupChart = new java("chart.work.around.php.ChartMetadataLoader"); $cl = $setupChart->getClass()->getClassLoader(); $setupChart->setupLoader(); $report = $birtEngine->openReportDesign("$here/Reports/TopNpercent.rptdesign"); $task = $birtEngine->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("http://localhost/birtphp"); $taskOptions->setImageDirectory($here); $task->setRenderOption( $taskOptions ); $task->run(); $task->close(); //$birtEngine->destroy(); //$birtPlatform->shutdown(); $file_size = $outputStream->size(); echo $cl->toString(); echo $outputStream; } catch (JavaException $e) { } Jason ________________________________ From: php...@li... [mailto:php...@li...] Sent: Thu 7/30/2009 4:30 PM To: php...@li... Subject: Re: [Php-java-bridge-users] Using PHP/Java Bridge without Tomcat Thanks Jason, > When we worked on the BIRT integration we got it to work without Tomcat, > so I imagine Jasper would work in a similar fashion. The only issue I > worried about is scalability. Maybe this is nothing to worry about but > deserves a little consideration. We just used the STANDALONE method > started the JavaBridge.jar and included all the jars in using the require > method. I also think in same direction, but since we dont have any experience in deploying java application we need exact comands and directory where to place the required jars. can u please give us method for how to start STANDALONE JavaBridge with which user and directory where to place all required jars so that those are available for java_Require method. We need to test difference between Tomcat version and Standalone method. As far as scalability is concerned at later dates is there are complaints about speed or other issues we can very well switch back to tomcat version. If u foresee any issues in this approach let me know. Since already u have got Birt working without tomcat please tell me what u did I work on similar lines. Thanks and best regards Raja ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-07-31 10:45:23
|
Hi Andre, Thanks. I have just re-tagged the current head (2009-07-31 10:42 UTC) as ROOT_Release-5-5 and Release-5-5. Regards, Jost Boekemeier |