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...> - 2007-07-26 06:54:29
|
I'm a PHP programmer tasked with calling Java code written by someone else. I successfully installed the Bridge on my Windows machine. I wrote PHP script that calls Java code using the DYNAMIC LOAD method. It works but the web page that contains the PHP script loads very slowly (15-20 seconds) the first time, but a bit faster the succeeding times (5 seconds). What the Java code does is supposedly simple, it reads a short string value from a relational database, and passes it to PHP script to display. Oh, but the Java code requires a lot of libraries like log4j, dom4j, asm, xom, etc. (more than 20 of them). My immediate question is: Is there a way to improve performance, especially the first time the webpage (PHP script) is loaded? My deeper question is: What happens exactly with "dynamic loading"? Is the sequence of events below accurate? 1) User requests for a web page that contains a PHP script that calls Java code. 2) The system loads all Java base classes (libraries). 3) The system loads the Java Virtual Machine (JVM). 4) The system loads all Java libraries needed by the PHP script. 5) The system executes the Java code. What happens exactly with "static loading"? Is this sequence of events accurate? 0) User starts up the welcome page of a web application. The system loads all Java base classes (libraries) AND the Java Virtual Machine (JVM). 1) User requests for a webpage that contains a PHP script that calls Java code. 2) The system loads all Java libraries needed by the PHP script. 3) The system executes the Java code. Regards, Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: <php...@li...> - 2007-07-25 20:27:28
|
Hi, PHP should display a clear error message. If it doesn't there's either a bug in the bridge or in PHP. Which PHP/Java Bridge version do you use? I old C implementation or the pure PHP implementation? Regards, Jost Boekemeier __________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-25 20:22:53
|
Michael was right. Using ArrayList it worked. I'm tailing the apache error log and nothing appeared there with that script. With the rest of the work I've been doing with php/java bridge I ca= n see all the output there. I will try later to set the log level to 4 and will post the response here. Regards, Andr=E9s Gattinoni On 7/25/07, php...@li... < php...@li...> wrote: > > Hi, > > > And it just dies there. No error on the output nor on the logs. > > there should be some output. Can you please set the log level to 4 and > check the log of the back > end? > Please see our FAQ for details how to enable the log of the PHP/Java > Bridge back end. > > My guess is that this is a PHP issue. Since PHP version 5 PHP does no > longer report any errors to > the client. They are logged in the HTTP log or in the configured PHP log > file or in the System > log. > > > Regards, > Jost Boekemeier > > > dddd > > ------------------------------------------------------------------------- > 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-07-25 20:17:08
|
Hi, > And it just dies there. No error on the output nor on the logs. there should be some output. Can you please set the log level to 4 and check the log of the back end? Please see our FAQ for details how to enable the log of the PHP/Java Bridge back end. My guess is that this is a PHP issue. Since PHP version 5 PHP does no longer report any errors to the client. They are logged in the HTTP log or in the configured PHP log file or in the System log. Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-25 20:11:07
|
Hi, [please excuse the delay] > I know the mechanism to intantiate java objects via > java_require('any.jar'), but how call a servlet in a other tomcat > container? do you want to call a servlet from another web application or a different container? The former is possible by using the RequestDispatcher, please see http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatcher.html 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-07-25 20:10:12
|
If I'm not mistaken, List is an interface, not a concrete class. Hence, = you cannot say new List(). It seems like Vector() and ArrayList() are = fairly standard implementations of List, so you could try $oList =3D new java('java.util.ArrayList'); Michael. > -----Original Message----- > From: php...@li... [mailto:php- > jav...@li...] On Behalf Of = php-java- > bri...@li... > Sent: Wednesday, July 25, 2007 2:53 PM > To: php...@li... > Subject: [Php-java-bridge-users] Problem with List object >=20 > Hi guys, I'm having problems with a List object. >=20 > I have the following code: >=20 > <?php > $mAnnouncements =3D array ( > 'Welcome.wav', > 'CPAA.wav', > ); > print("Array: <br />"); > print_r($mAnnouncements); >=20 > print("<br />Creating List Object...<br />"); > $oList =3D new java('java.util.List'); > foreach ($mAnnouncements as $ann) > { > $oList->add($ann); > } > print("List: <br />"); > print_r($oList); > print("<br />"); > for ($i =3D 0; $i < $oList->size(); $i++) > { > print("Value:" . $oList->get($i) . "<br />"); > } > ?> >=20 > When I run it I get this output: >=20 > Array: > Array ( [0] =3D> Welcome.wav [1] =3D> CPAA.wav ) > Creating List Object... >=20 > And it just dies there. No error on the output nor on the logs. >=20 > I'm using php/java bridge on that box withoud any problems, working = with > my > own java classes, but when I need to create this List object I get = this > problem. > Any ideas? Do I need to require any file with java_require? >=20 > Thanks in advance >=20 > Andr=E9s Gattinoni > = -------------------------------------------------------------------------= > 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-07-25 20:07:49
|
Hi [please excuse the delay] your code is a little bit unusual because it uses a generated proxy class. Looking at the current implementation it seems that the bridge caches the generated proxies, which it shouldn't do. But this is a minor problem. > public class ObjPassing > { > public void visit( Object o) > { System.out.println("first visit method"); } > > public void visit( IVisit o) // <-- i wish to run this one > { System.out.println("second visit method"); } > } > > I need to pass a php object(Obj is it's name) who implements my IVisit > java interface, to ObjPassing, but i never manage to invoke the second > method: the first method is always invoked. The bridge should invoke the second method, because the closure (the dynamic proxy) implements the IVisit interface, which makes it cheaper than the first method which should have a weight of at least 32 (IVisit -> Object conversion) > is it possible to call the second method? if yes, where is my fault? Can you please set the log level to 5 or above? The bridge should display the weight and why it has selected the wrong method. My guess is that you have loaded IVisit from a different classloader, so that it is assignment-incompatible with IVisit used by the visit method. Do you have two java_require() calls in your code? Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-25 20:00:55
|
Hi, [please excuse the delay] > Just wondering, if there is some test case/example to integrate jsp/jsf > application with phpbb through php-java bridge. do you want to call PHP beans from the JSF framework or do you want to call managed JSF beans from PHP? We've had the former, but the code has been dropped in favor of a more general solution which uses the JSR223 API. (Our implementation was similar to Spring's "DelegatingVariableResolver" described here: http://www.springframework.org/docs/reference/webintegration.html). On the other hand accessing managed beans should be easy: ctx = FacesContext.getCurrentInstance(); ctx.getApplication().getVariableResolver().resolveVariable(ctx, name) > 1. Create an account in phpbb when user creates an account in application > through jsp and vice-versa. Do you want to create the account from JSP or JSF? In any case, what does it mean to "create an account"? Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-25 19:52:44
|
Hi guys, I'm having problems with a List object. I have the following code: <?php $mAnnouncements =3D array ( 'Welcome.wav', 'CPAA.wav', ); print("Array: <br />"); print_r($mAnnouncements); print("<br />Creating List Object...<br />"); $oList =3D new java('java.util.List'); foreach ($mAnnouncements as $ann) { $oList->add($ann); } print("List: <br />"); print_r($oList); print("<br />"); for ($i =3D 0; $i < $oList->size(); $i++) { print("Value:" . $oList->get($i) . "<br />"); } ?> When I run it I get this output: Array: Array ( [0] =3D> Welcome.wav [1] =3D> CPAA.wav ) Creating List Object... And it just dies there. No error on the output nor on the logs. I'm using php/java bridge on that box withoud any problems, working with my own java classes, but when I need to create this List object I get this problem. Any ideas? Do I need to require any file with java_require? Thanks in advance Andr=E9s Gattinoni |
From: <php...@li...> - 2007-07-25 17:46:04
|
Hello, this is my first post in this thread. I install the bridge (php-java-bridge_3.2.1a_j2ee) on Tomcat 4.1 / Java 1.5.0 / Apache 2.2 / PHP 5.2.3 The install was a little bit difficult, but now its works fine. Thank for the mailing-list and project homepage. My Question. I have a php-based cms system (typo3) and a webapplication (pure java) it is running under tomcat. Both works and in the typo system i can instatiate java objects. Fine! Every request goes first to the index.php in the cms. I need a mechanism to call an servlet in the other pure java-webapp. (i would like to track referer/parameters e.g. in this app) I know the mechanism to intantiate java objects via java_require('any.jar'), but how call a servlet in a other tomcat container? (perhaps a beginer question) regards joersch |
From: <php...@li...> - 2007-07-24 15:59:27
|
hi to all. first of all, i'm sorry for my bad english.. i hope you will understand me. I was doing an experiment with php classes and java interfaces. i have a java class: public class ObjPassing { public void visit( Object o) { System.out.println("first visit method"); } public void visit( IVisit o) // <-- i wish to run this one { System.out.println("second visit method"); } } I need to pass a php object(Obj is it's name) who implements my IVisit java interface, to ObjPassing, but i never manage to invoke the second method: the first method is always invoked. from php i do: $obj = new Java('ObjPassing'); $obj->visit(java_get_closure(new Obj(),null, new JavaClass("IVisit"))); is it possible to call the second method? if yes, where is my fault? thank you |
From: <php...@li...> - 2007-07-23 15:45:12
|
Hi, Just wondering, if there is some test case/example to integrate jsp/jsf application with phpbb through php-java bridge. Though, I know jsp/jsf but zero in php, so if some body could give me some suggestions/hints/pointers for such case then that will be great. I intend to install phpbb using fantastico and looking for simple integration in existing jsp/jsf application (running in tomcat 5.5 (jvm - java 5) under linux OS), something on these lines: 1. Create an account in phpbb when user creates an account in application through jsp and vice-versa. 2. Logs in one then logs-in in another and vice-versa. 3. Logs out in one then logs out in another and vice-versa. 4. When user updates profile in one (at least password) then password gets updated I another and vice-versa. I guess this should be possible through php-java bridge but wondering if anybody already has done something similar and give me some pointers/suggestions. Any help will be highly appreciated. Thanks. |
From: <php...@li...> - 2007-07-19 15:56:06
|
Hi Michael, > $r = $class->getResource("my/package/config.properties"); // works, but see interesting. Is that the correct behaviour of the DynamicClassLoader? Please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233). Martin or I will check this issue. Regards, Jost Boekemeier __________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-19 15:50:44
|
Hi Thomas, first of all thank you very much for the feedback. Since version 4.1.8 the pure PHP implementation also supports INET and INET_LOCAL, see the NEWS file. The difference between SERVLET/SERVLET_LOCAL and INET/INET_LOCAL is that the former reads meta-information like X_JAVABRIDGE_OVERRIDE_HOSTS and X_JAVABRIDGE_OVERRIDE_REDIRECT. This information is used to select the fastest available channel, which is INET/INET_LOCAL on windows and named pipes on Unix. In theory the INET/INET_LOCAL channel should be faster, because the SERVLET* "meta" channel requires one additional round-trip. But on modern operating systems this shouldn't be a problem. > Why has the version to be > 5.1.2 ? Only too old, any bugs ? Well, the functionality needed by the bridge is there, but all PHP 5 versions < 5.1.2 have serious problems. Just remove the check from Java.inc, run the "bench" test on 5.0.4 and you'll see what I mean. :) > Is it possible to adapt the pure PHP implementation for PHP4 ? try/catch etc. is not available in PHP4. The binary download contains a php_java.dll for PHP4, which could be used as follows: // check if the PHP4 extension is loaded. Otherwise load Java.inc if(!extension_loaded("java")) require_once("java/Java.inc"); [compiling ] > 3) Binaries for PHP 5.2.x Yes, this is possible. PHP 5.2 and all future versions of PHP are supported. IBM has a tutorial which describes how to compile PHP 5 and PHP 6 on windows. Instructions how to compile the bridge against PHP 5 or 6 on windows can be found at the end of the INSTALL document. However, you don't need to compile the C code. It is neither faster nor does it add additional features[1] except for JVM launching. Regards, Jost Boekemeier [1] This may change in the future, although I'd prefer to add Proxy and ProxyException interfaces directly to the PHP core. __________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-18 20:54:00
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 php...@li... wrote: > Hi Daran, > >>> /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:118: error: too few arguments to > > the C version 4.1.8 currently doesn't work in a threaded environment (I forgot to add a TSRMLS). > > Please use the pure PHP version instead. Or please use the latest stable version, which is version > 3.2.1. > > > I will reorganize the download area accordingly. > > > Regards, > Jost Boekemeier Ah yes, threads. Thanks for your help Jost! - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGnn3hKpzEXPWA4IcRAhQ4AJ9wzo53ceUeOpDf2CzeIT/bUHwX/ACbBlEk 3sIh43cuOcAy4/Sq7rFFb0o= =Ysv8 -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-07-18 19:37:20
|
Hello, I'm developing Simple Groupware and JavaBridge 4.1.8 is used to call the jCIFS Java library from PHP (bringing CIFS and NTLM to the PHP world). Tests are done on WinXP SP2, Sun Java 1.6.0_02. My questions: 1) pure PHP implementation: does it only support SERVLET_LOCAL / SERVLET ? (start java -jar JavaBridge.jar SERVLET_LOCAL:8080 3) Where is the difference between SERVLET and INET ? Is anyone of them faster ? I tried INET / INET_LOCAL and got: (start java -jar JavaBridge.jar INET_LOCAL:8080 3) Notice: Undefined index: content_length in H:\sgs\src\lib\java\Java.inc on line 1259 Warning: fread() [function.fread]: Length parameter must be greater than 0 in H:\sgs\src\lib\java\Java.inc on line 1259 protocol error: , Invalid document end at col 2) pure PHP implementation for PHP 5.0 and 4.x: Why has the version to be > 5.1.2 ? Only too old, any bugs ? Is it possible to adapt the pure PHP implementation for PHP4 ? 3) Binaries for PHP 5.2.x I found the "legacy" package containing binaries for older php versions, is it possible to build a new one for the latest php versions ? At least for win32, this would be a real time-saver for a lot of people. Thanks, bye Thomas |
From: <php...@li...> - 2007-07-18 19:34:08
|
I have an application that stores configuration in a file called config.properties. It resides in a jar file underneath all of the package dirs, with the rest of the class files. The class that loads the config options cannot find this resource when run through php-java-bridge. All access is done through a central singleton called Toolbox. I wrote some code to circumvent the Toolbox code and try to load the resource manually, via PHP and a separate Java application. Here's what I get: PHP java_require("myjar.jar"); $Toolbox = new JavaClass("my.package.Toolbox"); $toolbox = $Toolbox->getInstance(); $class = $toolbox->getClass(); $r = $class->getResource("config.properties"); // null $r = $class->getResource("/my/package/config.properties"); // null $r = $class->getResource("my/package/config.properties"); // works, but see below Java (myjar.jar in the classpath) Toolbox toolbox = Toolbox.getInstance(); URL r; r = toolbox.getClass().getResource("config.properties"); // works r = toolbox.getClass().getResource("/my/package/config.properties"); // works r = toolbox.getClass().getResource("my/package/config.properties"); // null myjar.jar contains META-INF/MANIFEST.MF my/package/config.properties my/package/Toolbox.class my/package/<. other .class files .> Based on my understanding, the Java code is exhibiting the correct behavior in terms of which resource names work and which don't. I don't think the my/package/config.properties should work, but if it did work for both, I could use it. Unfortunately, this is a library which will be used both by PHP scripts and a Java app. Any idea what I'm missing here? Michael. |
From: <php...@li...> - 2007-07-18 18:21:32
|
Hi Daran, > > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:118: error: too few arguments to the C version 4.1.8 currently doesn't work in a threaded environment (I forgot to add a TSRMLS). Please use the pure PHP version instead. Or please use the latest stable version, which is version 3.2.1. I will reorganize the download area accordingly. Regards, Jost Boekemeier dddd |
From: <php...@li...> - 2007-07-17 16:29:14
|
Sounds like one (or more) of your arguments are evaluating to null or generating an error when evalutated. In this case, the argument would likely be skipped. Check your undeclared 'tsrm_ls' term. This might be the cause of the error. Hope this helps. --Nathan Shaskin compliance publishing php...@li... wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good day all, I'm having a bit of trouble compiling version 4.1.8 against PHP 5.2.3. I'm getting the following error: > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c: In function 'java_compile_string': > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:118: error: too few arguments to function 'zend_compile_file' > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:119: error: 'tsrm_ls' undeclared (first use in this function) > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:119: error: (Each undeclared identifier is reported only once > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:119: error: for each function it appears in.) > make: *** [java.lo] Error 1 Line 118 appears to be calling zend_compile_file with the correct number of paramaters, so I am unsure of what the problem may be. Any assistance would be greatly appreciated. Thanks in advance, Darian - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGnN9qKpzEXPWA4IcRAlFIAJ44v4rGo4Vc9j7Zo7K56R1LTfmf4wCePJ0L 7cgFfY/yMZAg/6S/tvnq+JE= =Gr5s -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. |
From: <php...@li...> - 2007-07-17 15:25:37
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good day all, I'm having a bit of trouble compiling version 4.1.8 against PHP 5.2.3. I'm getting the following error: > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c: In function 'java_compile_string': > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:118: error: too few arguments to function 'zend_compile_file' > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:119: error: 'tsrm_ls' undeclared (first use in this function) > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:119: error: (Each undeclared identifier is reported only once > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:119: error: for each function it appears in.) > make: *** [java.lo] Error 1 Line 118 appears to be calling zend_compile_file with the correct number of paramaters, so I am unsure of what the problem may be. Any assistance would be greatly appreciated. Thanks in advance, Darian - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGnN9qKpzEXPWA4IcRAlFIAJ44v4rGo4Vc9j7Zo7K56R1LTfmf4wCePJ0L 7cgFfY/yMZAg/6S/tvnq+JE= =Gr5s -----END PGP SIGNATURE----- |
From: <php...@li...> - 2007-07-16 15:35:38
|
Hi, > It just says: > Cause: java.lang.ClassNotFoundException: Unresolved external reference: > java.lang.NoClassDefFoundError. then you're out of luck. Java doesn't have a proper module system, the above error means that you have compiled against a different API and than what is available now. When you get the above exception without any indication which class or package is missing, you can't proceed. The only way to solve the above Java error is to step back and read the documentation of the Java package, which should list the external package dependencies and their versions. Regards, Jost Boekemeier __________________________________ Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-07-16 15:29:43
|
Hi, > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib/php5/20060613/java.so' - /usr/lib/php5/20060613/java.so: wrong > ELF class: ELFCLASS32 in Unknown on line 0 I'd prefer to remove the C code entirely. The PHP code is currently between 2 to 50 times slower than the old C code. But this will change with 4.2.0, which adds a client-side cache to Java.inc. With this cache the PHP code suddenly becomes 1.2 to 2 times faster than the C code. Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
From: <php...@li...> - 2007-07-16 08:10:28
|
Hi, thanks for the support. Will there be debian packages for the new 4.1.* versions also and is there support for 64-bit OS? I tried it on a Dual-Opteron with Ubuntu 64-bit and get this error when starting apache/php module: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/java.so' - /usr/lib/php5/20060613/java.so: wrong ELF class: ELFCLASS32 in Unknown on line 0 Thanks & best regards, Andy php...@li... wrote: > Hi, > > >> I've got troubles getting the bridge running over a >> local unix socket > > this was default until version 4.1.8. In version 4.1.8 > we have temporarily switched it off, since 4.1.8 is > only a thin wrapper around the pure PHP PHP/Java > Bridge implementation "Java.inc". > > >> php-java-bridge_4.0.8a on >> my Ubunto PC and configured the module in many ways > > Do you have the libnatcJavaBridge.so? This is the > library which implements unix domain socket > communication. It depends on whether your Java > supports JNI and whether or not your JVM can (and is > allowed to) load a native library. > > If not, the bridge reverts to local TCP sockets or > named pipes. > > IMHO unix domain socket communication is obsolete on > modern operating systems. The only exception is > FreeBSD, due to a bug in FreeBSD's local TCP socket > implementation (Nagle's algorithm switched on per > default and PHP doesn't have a way to switch it off). > > > Regards, > Jost Boekemeier > > > > __________________________________ Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- ---------------------------------------------------------------------- Dipl.-Ing.(FH) Andreas Langegger Institute for Applied Knowledge Processing Johannes Kepler University Linz A-4040 Linz, Altenberger Straße 69 > http://www.faw.at > http://www.langegger.at |
From: <php...@li...> - 2007-07-14 19:34:23
|
Hi Jost, Thank you for your anwser.I tried your suggestion and it didn't gave me that error but i still don't get it to work. It just says: Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError. This is what i did: moved libAspriseOCR.so to /usr/lib/jvm/java-1_4_2-sun-1.4.2.13 /jre/lib/i386/client/libAspriseOCR.so moved aspriseOCR.jar to /usr/lib/jvm/java-1_4_2-sun-1.4.2.13 /jre/lib/ext/aspriseOCR.jar restarted tomcat and apache See my code below, Java code is directly copied from the manufactures website: /* The original java code: import com.asprise.util.pdf.PDFReader; import com.asprise.util.ocr.OCR; PDFReader reader = new PDFReader(new File("my.pdf")); reader.open(); // open the file. int pages = reader.getNumberOfPages(); for(int i=0; i < pages; i++) { BufferedImage img = reader.getPageAsImage(i); // recognizes both characters and barcodes String text = new OCR().recognizeAll(image); System.out.println("Page " + i + ": " + text); } reader.close(); // finally, close the file. */ // My php5 Code $aJarFiles[] = "./external/lucene-demos-2.0.0.jar"; $aJarFiles[] = "./external/lucene-core-2.0.0.jar"; $aJarFiles[] = "./external/junit.jar"; $aJarFiles[] = "./external/checkstyle-all-4.2.jar"; $aJarFiles[] = "./external/bcprov-jdk14-132.jar"; $aJarFiles[] = "./external/bcmail-jdk14-132.jar"; $aJarFiles[] = "./external/ant.jar"; $aJarFiles[] = "./external/FontBox-0.1.0-dev.jar"; $aJarFiles[] = "./AspriseJavaPDF.jar"; $aJarFiles[] = "./aspriseOCR.jar"; java_require(implode(";",$aJarFiles)); $file = new Java('java.io.File',"./changes.pdf"); $reader = new Java('com.asprise.util.pdf.PDFReader',$file); $reader->open(); $pages = $reader->getNumberOfPages(); for($i=0; $i < $pages; $i++) { $img = $reader->getPageAsImage($i); $ocr = new Java('com.asprise.util.ocr.OCR'); $text = $ocr->recognizeAll($img); print $text; } Any idea what's wrong with my setup? i Put everything in a zip if you would like to take a look: http://infolook.mpublisher.com/ocr.zip On 7/14/07, php...@li... < php...@li...> wrote: > > Hi, > > [loading impure java libraries] > > > anybody who knows how to do the trick? > > The native part should go into a VM specific library > dir and the Java part into java.ext.dirs. > > <?php > echo java("java.lang.System")->getProperties(); > ?> > > should show the location of both directories. > > > Regards, > Jost Boekemeier > > > > > __________________________________ Die etwas anderen Infos rund um > das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Gilbert Groenendijk |
From: <php...@li...> - 2007-07-14 16:31:31
|
Hi, > I've got troubles getting the bridge running over a > local unix socket this was default until version 4.1.8. In version 4.1.8 we have temporarily switched it off, since 4.1.8 is only a thin wrapper around the pure PHP PHP/Java Bridge implementation "Java.inc". > php-java-bridge_4.0.8a on > my Ubunto PC and configured the module in many ways Do you have the libnatcJavaBridge.so? This is the library which implements unix domain socket communication. It depends on whether your Java supports JNI and whether or not your JVM can (and is allowed to) load a native library. If not, the bridge reverts to local TCP sockets or named pipes. IMHO unix domain socket communication is obsolete on modern operating systems. The only exception is FreeBSD, due to a bug in FreeBSD's local TCP socket implementation (Nagle's algorithm switched on per default and PHP doesn't have a way to switch it off). Regards, Jost Boekemeier __________________________________ Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever |