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
(3) |
2
(9) |
3
(1) |
4
(3) |
|
5
|
6
(3) |
7
(2) |
8
(3) |
9
(2) |
10
(1) |
11
|
|
12
(1) |
13
(9) |
14
(6) |
15
(7) |
16
(8) |
17
|
18
|
|
19
|
20
(2) |
21
(2) |
22
(5) |
23
|
24
(6) |
25
(2) |
|
26
|
27
(3) |
28
|
29
(1) |
30
(4) |
31
(2) |
|
|
From: <php...@li...> - 2007-08-20 16:48:11
|
Hi Ferran, > I've follow the instructions on http://www.dsl.uow.edu.au/~sk33/php5java.htm but seem's it > doesn't work. isn't it possible to follow the instructions that are part of the PHP/Java Bridge binary download instead? However, suggestions how to improve our documentation are always welcome. Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |
|
From: <php...@li...> - 2007-08-20 11:11:16
|
Hi all!=0A=0AI'm new on this mailing list and, of course, on the java bridg= e interface. I've tried to install and configure it on Windows XP Pro, Apac= he 2.2.3 and PHP 5.2.0 but it doesn't work. If I take a look at the Apache = error log, I can see that: "PHP Warning: PHP Startup: java: Unable to init= ialize module\nModule compiled with module API=3D20050922, debug=3D0, threa= d-safety=3D1\nPHP compiled with module API=3D20060613, debug=3D0, thread= -safety=3D1\nThese options need to match\n in Unknown on line 0".=0A=0AI've= follow the instructions on http://www.dsl.uow.edu.au/~sk33/php5java.htm bu= t seem's it doesn't work.=0A=0AAny suggestions?=0A=0AThank's in advice,=0A= =0AFerran.=0A=0A=0A=0A=0A =0A________________________________________= ____________________________________________=0ASick sense of humor? Visit Y= ahoo! TV's =0AComedy with an Edge to see what's on, when. =0Ahttp://tv.yaho= o.com/collections/222 |
|
From: <php...@li...> - 2007-08-16 19:23:15
|
Hi Jost, src.zip from the current 4.2 download. However, I've just had another look at the sources, and I can't find any inconsistency anymore. I apologize. Moreover, that update process of mine had succeeded in the meantime (there had been other old Java Bridge JARs in the CLASSPATH, which caused the problems, apart from JavaBridge.jar itself, which, before, I had replaced, exclusively). Like you've mentioned, the webs will run with local dependencies on the Java Bridge, only, and they do, indeed. Thank you sincerely for providing and supporting PHP/Java Bridge. Getting really good software and support - and for free - is not a matter of course. I'm most thankful for that. Robert php...@li... wrote: > Hi, > > >> Actually, please look at the sources you've deployed, and if they would >> compile. >> > > Which sources? The sources from the CVS head or the src.zip from the download? > > > Regards, > Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2007-08-16 18:51:41
|
Hi again,
> Now , I used C source 3.2.1 can run well with php5.2.3 and Zend optimize, but C source 4.1.8
> cannot.
It may make sense to send a bug report to zend, if the Zend optimizer has problems with the
PHP code.
Regards,
Jost Boekemeier
__________________________________
Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-16 18:46:30
|
Hi again,
> In one of the next versions we will include the classloader in the output, so that the
> error message will read:
the log of the back end already contains enough information.
When running in a J2EE server, this problem won't appear. And including the instance# of
the dynamic class loader to the output will be more confusing than what we have now.
Thus I will not change anything.
These class loader related issues are common Java problems. And it is not the PHP/Java Bridge's
job to workaround these Java platform specific problems.
Regards,
Jost Boekemeier
Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-16 10:14:40
|
Hi,
> Actually, please look at the sources you've deployed, and if they would
> compile.
Which sources? The sources from the CVS head or the src.zip from the download?
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-08-16 10:10:22
|
Hi,
> java version "1.6.0_02"
> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
> sun/nio/cs/ext/HKSCS
if I understand this correctly, this was a bug in JDK1.6 ("Mustang").
=> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6266592
However, fop.jar depends on external libraries, so you can't convert
them to pure PHP code, anyway.
Please use java_require(fop.jar;dependency1.jar;dependency2.jar;...) and the low-level interface,
e.g. new java("...") instead.
Regards,
Jost Boekemeier
Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-16 10:04:24
|
Hi,
you're right that the error message is confusing. You will get more information if you
raise the log level.
> [[o:PDDocument]]->protect((o:ProtectionPolicy)[o:StandardProtectionPolicy]).
> Cause: java.lang.IllegalArgumentException
In one of the next versions we will include the classloader in the output, so that the
error message will read:
[[o:PDDocument]]->protect((o:ProtectionPolicy@CL1)[o:StandardProtectionPolicy@CL2])
The problem is that StandardProtectionPolicy is assignment-incompatible to ProtectionPolicy.
Please re-read the "java platform issues" and the "class loading" section from the readme and
change the java_require() call so that it includes all interconnected libraries.
Regards,
Jost Boekemeier
P.S.: The code I've tested is:
<?php require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc");
$here=realpath(dirname($_SERVER["SCRIPT_FILENAME"]));
if(!$here) $here=getcwd();
java_require("$here/PDFBox-0.7.3.jar;$here/bcprov-jdk15-137.jar;$here/bcmail-jdk15-137.jar");
$ap = new Java("org.pdfbox.pdmodel.encryption.AccessPermission");
$ap->setCanModify(false);
$oDoc = new Java("org.pdfbox.pdmodel.PDDocument");
$oProtect = new Java("org.pdfbox.pdmodel.encryption.StandardProtectionPolicy","test","test",$ap);
$doc = $oDoc->load( "$here/test.pdf");
$doc->protect($oProtect);
?>
__________________________________
Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-16 09:29:49
|
Thanks and sorry. On another computer it works, thus, it works, in general. Robert php...@li... wrote: > Hi, > > [use of CLASSPATH results in NoClassDefFoundError and friends...] > >> - How should I proceed? >> > > Well, simply nuke the CLASSPATH and use a single repository. The PHP/Java Bridge offers this > as the default, please see the README for details. > > > Regards, > Jost Boekemeier > > > > __________________________________ > Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2007-08-16 07:53:07
|
> > Hi, > > >> > is it possible to get the FOP converted into php only code? >> > > assuming that the fop library doesn't depend on external libraries and that it can be compiled > into native code (using gcc4), yes, this should be possible. -- Even if gcc is not able to compile > the jar file into a native fop.so library, it should still be able to interpret the jar file using > the byte code interpreter built into libgcj. > > Which error message do you get? > http://www.heise.de/foren/go.shtml?read=1&msg_id=13283448&forum_id=44547 In that thread you can see the error i got. > > Regards, > Jost Boekemeier > -- *mark buss* technik *first target media gmbh* tel. : +49 (0)511 307 608 84 fax: +49 (0)511 307 608 99 mobil: +49 (0)171 855 411 7 bu...@fi... <mailto:bu...@fi...> http://www.firsttarget.de *Besuchen Sie uns auf der OMD 2007 am 25./26. September in Düsseldorf | Halle 10 / Stand J06* first target media gmbh | lavesstrasse 80 | 30159 hannover firma: first target media gmbh - sitz: hannover registergericht: amtsgericht hannover, hrb 200779 geschäftsführer: hans-georg albert |
|
From: <php...@li...> - 2007-08-15 19:35:14
|
Hi Jost, thanks for your reply. I already made sure three times anything in the CLASSPATH is OK. Else I wouldn't have posted. Actually, please look at the sources you've deployed, and if they would compile. As for version 4.2.2, they will not - as there's that inconsistency between a distinct method call, and signature ( ContextServer.getCredentials()) , I've mentionend in my previous post. - The sources won't compile, and the binaries (don't know how they have been compiled) throw the appropriate error. Please take a deep breath and look into this. Thanks again, and best regards Robert php...@li... wrote: > Hi, > > [use of CLASSPATH results in NoClassDefFoundError and friends...] > >> - How should I proceed? >> > > Well, simply nuke the CLASSPATH and use a single repository. The PHP/Java Bridge offers this > as the default, please see the README for details. > > > Regards, > Jost Boekemeier > > > > __________________________________ > Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
|
From: <php...@li...> - 2007-08-15 18:55:59
|
Hi,
> // trying to create 3-element String[] in PHP4
ah, PHP4. Sorry, but there's no way to do this in PHP4, as this PHP version destroys object
identity. -- It's a problem with PHP4's object system.
You must write a wrapper Java class that does what you want and call that.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-08-15 18:52:00
|
Hi,
[use of CLASSPATH results in NoClassDefFoundError and friends...]
> - How should I proceed?
Well, simply nuke the CLASSPATH and use a single repository. The PHP/Java Bridge offers this
as the default, please see the README for details.
Regards,
Jost Boekemeier
__________________________________
Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-15 16:21:13
|
Hi,
I'm trying to upgrade JavaBridge in existing web apps (though this fact
may not be a criteria for the problems arising).
I've downloaded the current 4.2, resp. 3.2, version, extracted
JavaBridge.war and copied its contents into the web app. Aditionally, I
copied JavaBridge.jar to the CLASSPATH (jre/lib/ext in this case, which
is the only CLASSPATH).
There is no JavaBridge.jar in Tomcat's /common/lib, and JavaBridge.jar
in ext and in /WEB-INF/lib are equal.
OK, with 4.2, I'm getting the follow error:
2007-08-15 17:55:03,257 [http-80-Processor23] ERROR
php.java.bridge.JavaBridge - JavaBridge exception
java.lang.NoSuchMethodError:
php.java.bridge.http.ContextServer.getCredentials(Ljava/lang/String;Ljava/lang/String;)Lphp/java/bridge/http/ContextFactory$ICredentials;
at
php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:270)
at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
...
Looking at the sources, the error occurs in PhpJavaServlet.java, in line
212. And right, ContextServer.java contains a different signature of
getCredentials().
With 3.2, there is another error: (BTW, JavaBridge.war, when deployed,
throws the same error on load.)
java.lang.NoClassDefFoundError: php/java/bridge/Util$Thread
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:248)
php.java.servlet.PhpCGIServlet.init(PhpCGIServlet.java:103)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
...
Looking at the classes contained by JavaBridge.jar, there is no such
class, indeed.
- How should I proceed?
Thanks
Robert
|
|
From: <php...@li...> - 2007-08-15 15:41:37
|
I tried that, but it doesn't work. $array will wind up as a php array with
$count elements:
// trying to create 3-element String[] in PHP4
$Array = new JavaClass("java.lang.reflect.Array");
$String = new JavaClass("java.lang.String");
$javaArr = $Array->newInstance($String, 3);
var_dump($javaArr);
Output:
array(3) {
[0]=>
NULL
[1]=>
NULL
[2]=>
NULL
}
Michael.
> -----Original Message-----
> From: php...@li... [mailto:php-
> jav...@li...] On Behalf Of php-java-
> bri...@li...
> Sent: Wednesday, August 15, 2007 5:00 AM
> To: php...@li...
> Subject: Re: [Php-java-bridge-users] coerce sub-array as Java array
>
> Why don't you create a string array explicitly, for example by using
> java.reflect.Array?
>
> The code would look like this:
>
> $array = java("java.reflect.Array")-
> >newInstance(java("java.lang.String"), $count);
>
> Please see the documentation for details: http://php-java-
> bridge.sourceforge.net/pjb/extension_mappings.php
>
>
> __________________________________
> Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN!
> www.yahoo.de/clever
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2007-08-15 13:27:43
|
Hello, I'm working on a project that needs pdfbox. I need to call a method which expects a subclass from abstract-class ProtectionPolicy. If i pass this object i get an IllegalArgumentException: Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:PDDocument]]->protect((o:ProtectionPolicy)[o:StandardProtectionPolicy]). Cause: java.lang.IllegalArgumentException Documentation: http://www.pdfbox.org/javadoc/org/pdfbox/pdmodel/encryption/StandardProtectionPolicy.html I believe i'm using it the right way. Anyone got an idea what i'm doing wrong? My code: $ap = new Java("org.pdfbox.pdmodel.encryption.AccessPermission"); $ap->setCanModify(false); $oDoc = new Java("org.pdfbox.pdmodel.PDDocument"); $oProtect = new Java("org.pdfbox.pdmodel.encryption.StandardProtectionPolicy ","test","test",$ap); $doc = $oDoc->load( "/home/www/testserver/webapp/upload/test.pdf"); $doc->protect($oProtect); $doc->save("/home/www/testserver/webapp/htdocs/testcases/out/testoutput.pdf"); Thanks in advance, Gilbert |
|
From: <php...@li...> - 2007-08-15 09:59:43
|
Why don't you create a string array explicitly, for example by using java.reflect.Array?
The code would look like this:
$array = java("java.reflect.Array")->newInstance(java("java.lang.String"), $count);
Please see the documentation for details: http://php-java-bridge.sourceforge.net/pjb/extension_mappings.php
__________________________________
Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-14 22:26:03
|
I'm stuck and looking for anybody with ideas. I have a multi-dimensional
PHP array that I want to pass into a Java method that expects a HashMap. So
far, so good. I found that I could not pass the array in directly, but I
could pass the php array into a HashMap constructor and then pass that:
// simplified php code to illustrate the problem
$phpArray = array(
"foo" => "bar",
"baz" => array("x", "y", "z")
);
$hm = new Java("java.util.HashMap", $phpArray);
$myObj->myMethod($hm);
So far, so good. The problem is that the Java code expects one of the
members of the HashMap to be of type String[]:
// simplified java code to illustrate the problem
// hash is the passed-in HashMap<String, Object>
String[] stringArray;
stringArray = (String[])hash.get("baz");
This fails with a ClassCastException because when the HashMap was created,
the inner array became a HashMap, not an array, and the HashMap cannot be
cast to a String[]. I know if you pass an indexed php array as an argument
to a Java method that expects an array, it will be cast appropriately, but
in this case, the bridge does not have that information available to it, and
apparently defaults to a HashMap for the inner array.
Is there any way that I can make this work without digging into the Java
source? I've tried multiple methods of "tricking" the bridge into giving me
a Java String[], but it always outsmarts me and makes it a php array().
Michael.
|
|
From: <php...@li...> - 2007-08-14 18:04:29
|
Hi,
> I have a question, what is ABI-incompatible headers ?
basically the ABI and its declared API must match. Example: extern void cdecl GetCursor(); will
not work when the ABI expects a different calling convention.
The PHP library carries a tag which is checked when a module is loaded to avoid these problems.
Regards,
Jost Boekemeier
__________________________________
Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-14 17:54:35
|
Hi,
> is it possible to get the FOP converted into php only code?
assuming that the fop library doesn't depend on external libraries and that it can be compiled
into native code (using gcc4), yes, this should be possible. -- Even if gcc is not able to compile
the jar file into a native fop.so library, it should still be able to interpret the jar file using
the byte code interpreter built into libgcj.
Which error message do you get?
Regards,
Jost Boekemeier
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-08-14 16:22:12
|
Hi, is it possible to get the FOP converted into php only code? In a german magazine is described with >java -jar JavaBridge.jar --convert /usr/share/php5/pear fop.jar I tried it with 0.93 and 0.20 of fop but nothing worked and i always got an error. I want to use FO for generating PDF-files on a webserver without Java VM. Kind regards Mark Buss |
|
From: <php...@li...> - 2007-08-14 11:16:44
|
Now , I used C source 3.2.1 can run well with php5.2.3 and Zend = optimize, but C source 4.1.8 cannot. =20 I have a question, what is ABI-incompatible headers ? =20 I=E2=80=99m never heard it. =20 Thanks a lot. =20 =20 Regards, Keins Ruite . aBBISh =20 =20 =20 Hi, =20 > But I let the php-java-bridge add to existing php.ini the=20 > php-java-bridge runs failed, =20 this problem comes up once in a while. And support requests like these = where the reason why we don't recommend to use the C implementation[1]. = -- Compiling C code isn't for everyone; the gcc optimizer may be broken = (gcc 3.3.x), or users may confuse the php.ini used by apache with the = php.ini used by the PHP-cli, other users install ABI-incompatible = headers for a system PHP installation, compile against them and wonder = why the module doesn't load or crash. =20 Isn't it possible to use the pure PHP implementation instead? =20 =20 > it seems cannot load the java.so lib file and start apache httpd=20 > don???t dump any errors =20 Well, AFAIK there is no php 5.2.3 for Suse Linux available. So I guess = you have compiled PHP 5.2.3 yourself. Are you sure that you have = compiled against the 5.2.3 ABI? Or do you have compiled against the ABI = that came with your Suse Linux operating system? =20 Do you load the java.so from the php ini file used by apache? =20 =20 In any case, if you can't or don't know how to compile C code, please = use the pure PHP implementation instead. Or please open a problem = report, please use http://sourceforge.net/tracker/?group_id=3D117793 = <http://sourceforge.net/tracker/?group_id=3D117793&atid=3D679233> = &atid=3D679233. =20 =20 Regards, Jost Boekemeier =20 =20 =20 Jetzt Mails schnell in einem Vorschaufenster ?berfliegen. Dies und = viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail =20 =20 |
|
From: <php...@li...> - 2007-08-14 07:50:16
|
Hi,
> the php_java.dll (which I think is what Jost means by the C-based
> extension module ... is this correct?) or alternately the "pure PHP
The php_java.dll or java.so (Unix) is the Java.inc, compiled to native code, yes.
> PHP/Java Bridge classes" which I can't identify in code.
It will be created as java/Java.inc, if you run the test.sh or test.bat.
> correctly identified the C-based extension? Where do the pure PHP
> PHP/Java Bridge classes reside, and are they PHP classes or Java Classes?
Usually in the back end (in META-INF of JavaBridge.jar) or in the PHP include path.
[http front-end, j2ee back-end]
> That an attempt to access a Java session from a PHP script residing
> entirely in the Apache home directory (invisible to servlet) works quite
> well so long as the critical include directly references the servlet, e.g.
> 1. Neither the C nor pure PHP extensions are needed any longer on the
> Apache/PHP side?
If you want to allocate a session from the J2EE back end, you need to call java_session(). The
function is exported from Java.inc.
> I'm aware that the Java side is doing PHP work using its internal PHP
> interpreter
At the moment there is no Java-based PHP interpreter. *IF* we want to make use of
just in time compilation of PHP opcode, we *may* implement a translator. But there are
no immediate plans to write PHP in pure Java, yet.
> 3. I'm missing a basic understanding?
Well, the bridge is just an XML-based network protocol, which translates PHP/Java calls
into XML and then passes them to the back-end.
[running PHP as a FastCGI sub-process of the J2EE server]
> script that accesses a Java session, using the URI
> JavaBridge/myScript.php is very slow, e.g. 5seconds where JSP is about 1
On modern operating systems this shoudn't be much slower than JSP. However, there are
some older OS, which use Nagle's algorithm even for the local interface. This insane
setting can't be switched off in PHP, so we can't do anything to speed up round-trips
on this OS (BSD).
[running PHP within Apache]
> second, but that running the same PHP script directly in Apache, even
> though it still references a java session (but only for a single call I
In both cases it needs a round-trip through the back-end, so I don't know where
the delay comes from.
> improved efficiency of the PHP/Apache collaboration and threading ...
Not really. In most cases J2EE/FastCGI is as fast (or even faster) than Apache/PHP.
> does that make sense? Would adding the C or Pure PHP classes affect
> these kinds of performance issues?
No. -- Well, yes, if you don't have an PHP opcode cache. But this is true for any PHP code.
Regards,
Jost Boekemeier
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-08-13 17:40:49
|
Unfortunately, I have not been able to code up a simple case (that does =
not
instantiate a class in my several-class library), so the bug report may =
not
be too useful. I've since re-written some of the code to accommodate a
hybrid method of loading config (some from classpath some from local =
files),
and now it's working again (including the portion that loads from the
classpath). All of this suggests that it's just a bug in my code.
However, I still added a ticket (#1773240) because the inconsistency =
between
how the code operates when called from a Java app and when called from =
PHP
through the bridge suggests that there may still be a bug there.
Michael
> -----Original Message-----
> From: php...@li... [mailto:php-
> jav...@li...] On Behalf Of =
php-java-
> bri...@li...
> Sent: Thursday, July 19, 2007 10:56 AM
> To: php...@li...
> Subject: Re: [Php-java-bridge-users] getResource() not working through
> thebridge
>=20
> Hi Michael,
>=20
>=20
> > $r =3D $class->getResource("my/package/config.properties"); // =
works, but
> see
>=20
> interesting. Is that the correct behaviour of the DynamicClassLoader?
>=20
>=20
> Please open a ticket (please use
> =
http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923=
3).
>=20
> Martin or I will check this issue.
>=20
>=20
> Regards,
> Jost Boekemeier
>=20
>=20
>=20
> __________________________________ Wissenswertes f=FCr Bastler =
und
> Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
>=20
> =
-------------------------------------------------------------------------=
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2007-08-13 17:19:13
|
Hi .. I'm (primarily) a Java J2EE developer, working on a project to integrate JAAS security authentication with PHP authentication using WebSphere. Hope to produce a Drupal module if successful; time will tell. If things go well, one result will be some documentation of the process, necessarily limited by my understanding of the JavaBridge and PHP, both hopefully growing, and possibly a journal article or two. I've posted preliminaries of the first couple of steps as blog entries at http://dorsetwest.com (specifically http://www.dorsetwest.com/node/34). I'd be grateful for any review by more experienced users of the bridge, now and as this moves along so I can catch my errors and misunderstandings. In the comments that follow I'm using the August 7 build of JavaBridge. One understanding I'm trying to check relates to the purpose and use of the php_java.dll (which I think is what Jost means by the C-based extension module ... is this correct?) or alternately the "pure PHP PHP/Java Bridge classes" which I can't identify in code. Have I correctly identified the C-based extension? Where do the pure PHP PHP/Java Bridge classes reside, and are they PHP classes or Java Classes? I find, for example, that on a windows platform with: * No particular Apache extensions other than enabling PHP 5.2 (installed with MySQL and an image package only), * A JavaBridge servlet running on my WAS server, * Apache configured to route Java-bound URL's to the servlet engine by means of the WebSphere plugin, That an attempt to access a Java session from a PHP script residing entirely in the Apache home directory (invisible to servlet) works quite well so long as the critical include directly references the servlet, e.g. if(!extension_loaded('java')) require_once("http://localhost:9080/JavaBridge/java/Java.inc"); Does this mean: 1. Neither the C nor pure PHP extensions are needed any longer on the Apache/PHP side? I did see an "optional" post by Jost on this list, but wasn't sure what the effect of inclusion or non-inclusion at the Apache/PHP level had. I'm aware that the Java side is doing PHP work using its internal PHP interpreter 2. The C or PHP extensions are needed, and are included or referenced by some mechanism I haven't figured out yet, or 3. I'm missing a basic understanding? I do note that interpreting PHP through the bridge, e.g. running a PHP script that accesses a Java session, using the URI JavaBridge/myScript.php is very slow, e.g. 5seconds where JSP is about 1 second, but that running the same PHP script directly in Apache, even though it still references a java session (but only for a single call I think) is very fast, less than a second. I attribute that to the improved efficiency of the PHP/Apache collaboration and threading ... does that make sense? Would adding the C or Pure PHP classes affect these kinds of performance issues? Help is welcome ... I've got a few other questions, but will put them in another post for clarity. |