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: Jost B. <jos...@ya...> - 2005-09-22 16:18:58
|
Hi, >Caused by: >java.lang.NullPointerException at >com.apostek.service.system.repository.impl.hibernate.HibRepository.getSessionContext(HibRepository.java:176) at this sounds as if some config properties are missing. Is HibRepository.java one of your classes? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-22 16:08:37
|
Hi, > <?php > $qMgr = new Java('com.ibm.mq.MQQueueManager'); > $mqc = new JavaClass('com.ibm.mq.MQC'); > $openOptions = $mqc->MQOO_INPUT_AS_Q_DEF | > $mqc->MQOO_OUTPUT; > $sdlq = > $qMgr->accessQueue('SYSTEM.DEFAULT.LOCAL.QUEUE', > $openOptions); can you please set the java.log_level to 4 and send the complete log for the above statements. Please also send the *exact* version of the JVM you use. I have tested on two different machines, Solaris with JRE1.5.0 and Linux with blackdown java 1.4.1. The above code works on all of them. (I have tested with php/java bridge 2.0.8, but that shouldn't make a difference. The coerce code hasn't changed since version 2.0.7). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: SQUILLACE M. <msq...@so...> - 2005-09-22 13:15:43
|
Jost, > What about extending java_require() so that it can > load jar files from a given directory? That would be great, and more so if one could mix directories and single jar files in the same call! ... > If it requires an int then I think we wouldn't see the ClassCastException. > php ints (which are actually longs) are transferred as <L v=3D"longval"/>. > coerce can convert the longval into a int, but it cannot convert > it into a java.lang.Integer. ... > In general we cannot auto-convert a long to a > java.lang.Integer without altering the value. If such > a conversion is necessary I think the user must do > this, for example by calling "new > java("java.lang.Integer", $phpLongValue);" I'm sure you are right, but still don't understand what I am supposed to do ... here are a few snippets and their outcome. 1) Let's start with a method invocation where all required parameters are missing: <?php $qMgr =3D new Java('com.ibm.mq.MQQueueManager'); $sdlq =3D $qMgr->accessQueue(); ?> Script output: =20 Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception: Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue. Cause: java.lang.NoSuchMethodException: accessQueue(). Candidates: [public=20 synchronized com.ibm.mq.MQQueue com.ibm.mq.MQQueueManager.accessQueue =20 java.lang.String,int,java.lang.String,java.lang.String,java.lang.String) throws com.ibm.mq.MQException, public synchronized com.ibm.mq.MQQueue com.ibm.mq.MQQueueManager.accessQueue(java.lang.String,int) throws=20 com.ibm.mq.MQException]] thrown in /opt/phpexe/jbridge/mqt.php on line 3 /var/log/php-java-bridge.log: Java.lang.NoSuchMethodException: accessQueue(). Candidates: [public=20 synchronized com.ibm.mq.MQQueue com.ibm.mq.MQQueueManager.accessQueue =20 java.lang.String,int,java.lang.String,java.lang.String,java.lang.String) throws com.ibm.mq.MQException, public synchronized com.ibm.mq.MQQueue com.ibm.mq.MQQueueManager.accessQueue(java.lang.String,int) throws=20 com.ibm.mq.MQException]=20 at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:966) at php.java.bridge.Request.handleRequests(Request.java:190) at php.java.bridge.JavaBridge.run(JavaBridge.java:142) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) 2) What I think the snippet should look like: <?php $qMgr =3D new Java('com.ibm.mq.MQQueueManager'); $mqc =3D new JavaClass('com.ibm.mq.MQC'); $openOptions =3D $mqc->MQOO_INPUT_AS_Q_DEF | $mqc->MQOO_OUTPUT; // gettype($openOptions) returns 'integer' at this point (value:17) $sdlq =3D $qMgr->accessQueue('SYSTEM.DEFAULT.LOCAL.QUEUE', $openOptions); ?> Script output: =20 Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception:=20 Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String, class java.lang.Long). Cause: java.lang.IllegalArgumentException:=20 java.lang.ClassCastException@181edf4] thrown in /opt/phpexe/jbridge/mqt.php on line 6 /var/log/php-java-bridge.log: java.lang.IllegalArgumentException: java.lang.ClassCastException@12d3205 at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:978) at php.java.bridge.Request.handleRequests(Request.java:190) at php.java.bridge.JavaBridge.run(JavaBridge.java:142) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) 3) Let's try with a java.lang.Integer: <?php $qMgr =3D new Java('com.ibm.mq.MQQueueManager'); $mqc =3D new JavaClass('com.ibm.mq.MQC'); $openOptions =3D $mqc->MQOO_INPUT_AS_Q_DEF | $mqc->MQOO_OUTPUT; // gettype($openOptions) returns 'integer' at this point (value:17) $inte =3D new Java('java.lang.Integer', $openOptions); $sdlq =3D $qMgr->accessQueue('SYSTEM.DEFAULT.LOCAL.QUEUE', $inte); ?> Script output: =20 Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception: Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String,=20 class java.lang.Integer). Cause: java.lang.IllegalArgumentException:=20 java.lang.ClassCastException@2f1921] thrown in /opt/phpexe/jbridge/mqt.php on line 7 /var/log/php-java-bridge.log: java.lang.IllegalArgumentException: java.lang.ClassCastException@2f1921 at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:978) at php.java.bridge.Request.handleRequests(Request.java:190) at php.java.bridge.JavaBridge.run(JavaBridge.java:142) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) In the "candidates" list from the first snippet there is a=20 com.ibm.mq.MQQueueManager.accessQueue(java.lang.String,int) confirming what one can read from the documentation, where the method is defined like this: public synchronized MQQueue accessQueue(String queueName, int openOptions) IMHO it really looks like the method is expecting an int for the second parameter. If coerce converts the longvals to int, why the error in the second snippet? If the method expected a java.lang.Integer instead, why the error in the last snippet? Massimo |
From: SQUILLACE M. <msq...@so...> - 2005-09-22 10:16:07
|
Ben, > Shouldn't java autobox/autounbox Integer to int and vice versa? > It will if you are using java 1.5 at least. I have a working PHP script that lists all the Java properties of the VM, and reports: ... java.vm.version: 1.5.0_01-b08 ... Massimo |
From: Bharath T. <bh...@mv...> - 2005-09-22 06:22:33
|
When trying to access a java method with a Boolean param=20 $jcl_sysController =3D new JavaClass("com.xxx.service.SysController"); $jobj_serviceManager =3D $jcl_sysController->getInstance(); =20 $jobj_repository =3D $jobj_serviceManager->getRepository(); $jobj_memberService =3D $jobj_serviceManager->getMemberService(); =20 $jobj_repository->begin(false); I get this exception java stack trace: [o(ByteArrayOutputStream):"java.lang.Exception: Invoke failed: [o(HibRepository):"com.xxx.service.system.repository.impl.hibernate.HibR epository@1006d75"]->begin((boolean)o(Boolean):"false"). Cause: java.lang.NullPointerException at php.java.bridge.JavaBridge.setException(JavaBridge.java:560) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1175) at php.java.bridge.Request.handleRequest(Request.java:204) at php.java.bridge.Request.handleRequests(Request.java:221) at php.java.bridge.JavaBridge.run(JavaBridge.java:233) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) Caused by: java.lang.NullPointerException at com.apostek.service.system.repository.impl.hibernate.HibRepository.getSe ssionContext(HibRepository.java:176) at com.xxx.service.system.repository.impl.AbstractRepository.begin(Abstract Repository.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1137) ... 4 more "] Couldn't figure out why? Any idea Regards Bharath |
From: Jost B. <jos...@ya...> - 2005-09-21 18:28:22
|
Hi, > I believe one should java_require() ALL the > WebSphere MQ jars in each > PHP script What about extending java_require() so that it can load jar files from a given directory? In the meantime it might be possible to call initClassLoader("dir") overriding the default phpConfigDir. Please see http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-java-bridge/php-java-bridge/server/doc/php/java/bridge/DynamicJavaBridgeClassLoader.html#initClassLoader(java.lang.String) > >> Apparently the bridge keeps converting the second > >> argument (an integer) > >> to java.lang.Long while the method mandates an > int. > It requires an int. [...] > accessQueue(class > java.lang.String, class java.lang.Integer). Cause: > java.lang.IllegalArgumentException: > java.lang.ClassCastException@1a786c3] If it requires an int then I think we wouldn't see the ClassCastException. php ints (which are actually longs) are transferred as <L v="longval"/>. coerce can convert the longval into a int, but it cannot convert it into a java.lang.Integer. > implemented; reading the JSR 223 conversely shows it > should be, since > the bridge has to "adapt" the script request to the > "most closely > matching" method argument list. "If members matching the name, type and arguments specified in the script are found, the arguments may be converted to the exact types in the best matching member's signature and the member may be invoked." As I understand 3.3.4 we may decide if we call the method and we may or may not coerce the argument to the required type. IMHO the above sentence does not say that we must not call the method (and throw a NoSuchMethodException) if the arguments cannot be coerced. In general we cannot auto-convert a long to a java.lang.Integer without altering the value. If such a conversion is necessary I think the user must do this, for example by calling "new java("java.lang.Integer", $phpLongValue);" Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-21 15:52:18
|
Hi Edward, > I'm wondering if there is any bug in the windows > package for JavaBridge v.2.08. As you describe it, you're using php_java.dll 2.0.8 with JavaBridge.jar 2.0.7. Most windows install procedures require a reboot during the install process. The reason is that a running process locks the executable. If you installed the new php-java-bridge_2.0.8.zip over a running 2.0.7 backend, the JavaBridge.jar stays the same. That's an old windows bug btw., unix simply reduces the inode count (i.e. the executable becomes unreachable but is still there), so that the install program can replace the executable with a new version. I think a simple reboot and a re-installation of php-java-bridge_2.0.8.zip should solve this problem. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-21 15:39:45
|
Hi Gerard, > The libtool doesn't seem to create a problem, but > the host_alias does. Well, older versions of autoconf don't provide one and older versions of libtool don't require it. I suggest to create a clean environment, i.e. remove everything under $INST and remove the php-java-bridge-2.0.x build directory as well. Then please try to follow the INSTALL instructions as close as possible (http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/INSTALL?rev=1.19&view=markup) My recommendation is to set: INST=$HOME/PHP-JAVA-BRIDGE export PATH=$INST/bin:$PATH export LD_LIBRARY_PATH=$INST/lib:$LD_LIBRARY_PATH and then build autoconf-2.57 automake-1.6.3 libtool-1.4.3, and the PHP/JAVA BRIDGE in order to avoid problems with old versions of autoconf, automake and libtool already installed in on the system. After building the correct versions, you can pick the java.so, JavaBridge.jar (JavaBridge.war) and natcJavaBridge.so from $HOME/PHP-JAVA-BRIDGE/php-java-bridge-2.0.x/modules/ directory and copy them to your php extension_dir. If this doesn't work, please create a ticket for this problem, please see: http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233. I will check it asap. Anyway, I will change the sentence "Choose a proper INST directory" to "Choose a INST directory which does not contain older versions of the software you are building and set the PATH and LD_LIBRARY_PATH environment variables to use the programs and libraries from INST". Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Abbett, J. <Jon...@ch...> - 2005-09-21 14:39:23
|
Based on the error, it seems like $h is null. Whatever is providing you with the HashMap object needs to be looked at more closely... I doubt it's a problem with the PHP-Java bridge. --Jon =20 =20 ________________________________ From: php...@li... [mailto:php...@li...] On Behalf Of Nicolas Granelli Sent: Tuesday, September 20, 2005 7:04 PM To: php-java-bridge Subject: [Php-java-bridge-users] HashMap->get() =20 I can't get to work the get method of a HashMap, that I get from Java (i'm not creating from php) I try: $Cliente=3D$h->get(1); //where $h is the HashMap Also: $i=3Dnew java("java.lang.Integer",1); $Cliente=3D$h->get($i); echo "Cliente:".$Cliente->toString(); both return : Fatal error: Call to a member function toString() on a non-object. |
From: SQUILLACE M. <msq...@so...> - 2005-09-21 09:44:06
|
Jost, Thank you for the reply. >> When installing the client Java bindings, WebSphere >> puts them in /opt/mqm/java/lib > Loading them shouldn't be a problem if the application > server knows about this directory and automatically > adds its content to the classpath. If not, then one > must find another way to load the libraries. I am not using an application server, but simply start the php-java-bridge as a service. I wrote WebSphere but meant the WebSphere MQ installation scripts. Another goal of my tests is to define the lightest environment to install on a PHP webserver to enable Java class invocation. > The recommended way to load libraries is to install > them as name-version.jar in /usr/share/java or one of > its sub directories and then require them with the > name and version number. Good point, I wouldn't mind adding a java_require() statement in order to maintain a cleaner environment. This is not so easy to do in this instance, since all the samples in the WebSphere documentation assume a classpath is set as specified in the installation notes, and the product's jar files are clearly interlinked: I tried to java_require() only the libraries needed by the classes I was using in my sample and kept getting errors, that went away as soon as I created the symbolic links in /usr/share/java. I believe one should java_require() ALL the WebSphere MQ jars in each PHP script; a more elegant approach could be to centralize the java_require() statement in a PHP include file, so that when a next WebSphere MQ release adds a new jar one needs only modify one file. >> Apparently the bridge keeps converting the second >> argument (an integer) >> to java.lang.Long while the method mandates an int. > Does it require an int or does it require a > java.lang.Integer? I think this is a bug in the PHP documentation which talks about "integer"=20 > and "float" even though these are long and double. It requires an int. In one of several attempts I called the method with an object of class java.lang.Integer and the error message simply became: Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception: Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String, class java.lang.Integer). Cause: java.lang.IllegalArgumentException: java.lang.ClassCastException@1a786c3] From a brief examination of JavaBridge.java (remember I don't speak fluent Java at all) I seem to understand the conversion to int is not implemented; reading the JSR 223 conversely shows it should be, since the bridge has to "adapt" the script request to the "most closely matching" method argument list. Bye, Massimo=20 |
From: Edward H. <edw...@ya...> - 2005-09-21 01:34:27
|
Hi, I'm wondering if there is any bug in the windows package for JavaBridge v.2.08. I have been using v2.07 for a while and it has been working fine. I updated the JavaBridge with the current version and now everytime I try to call java_require it will give me an error saying setJarLibraryPath method cannot be found. I have looked at the JavaBridge.class file and I notice that the setJarLibraryPath function in v2.08 takes in 2 parameters whereas v2.07 only take one. Could this be a bug or is there some extra configuration that I need to do? At the moment when I run the test.php everything works except for the last part where you call java_require on arrayToString.jar. The JavaBridge shows that it's actually running but it cannot make any calls to any classes using java_require. Any help would be much appreciated. Ed __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Nicolas G. <nic...@gm...> - 2005-09-20 23:05:17
|
I can't get to work the get method of a HashMap, that I get from Java (i'm= =20 not creating from php) I try: $Cliente=3D$h->get(1); //where $h is the HashMap Also: $i=3Dnew java("java.lang.Integer",1); $Cliente=3D$h->get($i); echo "Cliente:".$Cliente->toString(); both return : *Fatal error*: Call to a member function toString() on a non-object. |
From: Bharath T. <bh...@mv...> - 2005-09-20 20:02:04
|
Thanks Jost. Will try this out. -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Tuesday, September 20, 2005 3:59 PM To: Bharath Thirunavukkarasu Subject: [ 1296783 ] JavaBridge context hard coded Hi Bharath, > Kind of > suspecting that the > name Javabridge is hardcoded somewhere.=20 Yes, you're right, please see http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1296783&grou= p_i d=3D117793&atid=3D679233 > renamed it to myapp.war Please use the following workaround: * switch off the override_hosts setting in your file=20 myapp/WEB-INF/web.xml: <init-param> <param-name>override_hosts</param-name> <param-value>Off</param-value> </init-param> * copy the php-cgi.exe and all the dll's it needs into the directory myapp/WEB-INF/cgi/ * create a file php.ini (in myapp/WEB-INF/cgi/) with the following content: extension_dir=3D"." [java] java.hosts=3D"127.0.0.1:8080" java.servlet=3D"/myapp/PhpJavaServlet" Regards, Jost Boekemeier =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-20 17:13:12
|
Hi Francis, > So I have two questions : > > 1) If I install the bridge from an rpm (i.e. FC4 > i386), should I be able to > change the java.java_home and java.java from v1.4.2 > to v1.5 java files ? Yes. 1.5 should work as is, because the SEL policy (please see the /usr/share/doc/php-java-bridge*/ policy file) contains settings for 1.5. > I tried it but I had some strage errors about > wrong parameters in the > Bridge... Which errors specifically? > so I guess that the bridge is using some > version specific stuff... It even works with gnu java, so I don't think this is an issue. > 2) After removing the bridge rpm, I compiled the > source with java 1.5, > installed the 'service' link and the exec. > The phpinfo.php page shows that java is running, Ah, could it be that you tried to install a i386 RPM on a IA64 architecture? > except that 2 fields are > null : > - java.libpath > - java.classpath > putting them in the java.ini does not work. Please leave them, they are there if one wants to use custom versions of the JavaBridge.jar and natcJavaBridge.so. Please see the php-java-bridge.sf.net page for the .ini documentation. > except that the os is FC4_x64 (amd). That might be the reason. I think it should be possible to compile the source rpm for AMD64. If not, please file a bug report. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-20 16:53:18
|
> I'm using php-java-bridge on RedHat Linux, and Java > VM is launched everytime > Java program is called by PHP script. Can you please explain which setup you use? Have you started the backend via the php-java-bridge script or do you start the backend automatically when apache starts? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-20 16:51:28
|
Hi Nicolas, [hibernate] > Can I use the bridge for this? Yes. > Do I have to install tomcat? As I understand it hibernate is some kind of jdbc driver. So unless you need tomcat for something else (session sharing between php and jsp), tomcat is not required. > Is this possible? and stable? Yes (for the PHP/Java Bridge part). Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-20 16:45:35
|
Hi Gerad, > [rpmbuild] > it isn't present on my server rpmbuild is in the rpm devel package. > I've so installed php 5.0.4, autoconf 2.59 and > automake 1.9 from the [..] > AC_PROG_LIBTOOL Please install libtool, too. Please see the section "Installation from source code (Solaris, FreeBSD, WinXP or Linux)" in the INSTALL document (http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/INSTALL?rev=1.19&view=log) Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-20 16:41:45
|
Hi, [please excuse the delay] > When installing the client Java bindings, WebSphere > puts them in > /opt/mqm/java/lib Loading them shouldn't be a problem if the application server knows about this directory and automatically adds its content to the classpath. If not, then one must find another way to load the libraries. The recommended way to load libraries is to install them as name-version.jar in /usr/share/java or one of its sub directories and then require them with the name and version number. If you ship a servlet component, you can put the libraries into the WEB-INF/lib folder, please see the JavaBridge.war for an example. In this case you don't need java_require(). > Apparently the bridge keeps converting the second > argument (an integer) > to java.lang.Long while the method mandates an int. Does it require an int or does it require a java.lang.Integer? I think this is a bug in the PHP documentation which talks about "integer" and "float" even though these are long and double. Please see PR#1276004 (http://sourceforge.net/tracker/index.php?func=detail&aid=1276004&group_id=117793&atid=679233) for details. Since this is at least the third support request for this, I'll add a "php longs are java longs" setting for version 2.0.9. I'll add your request to that ticket. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-20 16:29:53
|
Hi Jim, > How can I tell? My PHP file is from 6-29-2003. With the command php --version or php -v. php 4.4 was released 2005, so I assume you have still the 4.1 installed. Where have you installed php 4.4? Please locate it, check that it is a cgi binary (php -i must display HTML content) and then copy it into the cgi directory, please see section "AS/Servlet with PHP CGI" in the README. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Francis L. (QC/EMC) <fra...@er...> - 2005-09-20 14:41:07
|
Hi everyone ! I am having a hard time installing the brige. Yesterday I lost many hours trying to figure out how to correctly install the bridge with java 1.5 on FC4_i386 with preinstalled apache (v2.0.54) and php (v5.0.4). I already installed it from source on RH8 and RHE 3, but I was also installing apache and php, so it was really straightforward and without hiccups. So I have two questions : 1) If I install the bridge from an rpm (i.e. FC4 i386), should I be able to change the java.java_home and java.java from v1.4.2 to v1.5 java files ? I tried it but I had some strage errors about wrong parameters in the Bridge... so I guess that the bridge is using some version specific stuff... :( 2) After removing the bridge rpm, I compiled the source with java 1.5, installed the 'service' link and the exec. The phpinfo.php page shows that java is running, except that 2 fields are null : - java.libpath - java.classpath putting them in the java.ini does not work. The weird thing is that we were successful to install the exact same setup, except that the os is FC4_x64 (amd). Thanks !! Francis Leblanc ------------------------------------------------------------------------- echo '<?php phpinfo() ?>' | php | fgrep java /etc/php.d/java.ini, java java support => Enabled java bridge => 2.0.8RC5 java.libpath => java.classpath => java.java_home => /usr/java/jdk1.5.0_04 java.java => /usr/java/jdk1.5.0_04/bin/java -DEHMP_CONFIG_FILE=/var/www/html/Web/config/iptvconfig.xml java.log_file => /var/log/php-java-bridge.log java.log_level => 4 java.hosts => java.servlet => Off java command => JAVA_HOME=/usr/java/jdk1.5.0_04 LD_LIBRARY_PATH=/usr/lib/php/modules: /usr/lib/php/modules/RunJavaBridge /usr/java/jdk1.5.0_04/bin/java -DEHMP_CONFIG_FILE=/var/www/html/Web/config/iptvconfig.xml -Djava.library.path=/usr/lib/php/modules -Djava.class.path=/usr/lib/php/modules/JavaBridge.jar -Djava.awt.headless=true php.java.bridge.JavaBridge LOCAL:/var/run/.php-java-bridge_socket 4 /var/log/php-java-bridge.log java status => running java server => /var/run/.php-java-bridge_socket JAVA_HOME => /usr/java/jdk1.5.0_04 _SERVER["JAVA_HOME"] => /usr/java/jdk1.5.0_04 _ENV["JAVA_HOME"] => /usr/java/jdk1.5.0_04 |
From: SQUILLACE M. <msq...@so...> - 2005-09-20 08:04:07
|
Upon receiving the Digest I saw Outlook (I must use it at work) was set to send HTML messages ... my original posting was a mess! Here it is again, please accept my apologies. Massimo -----Original message----- Hi, I am investigating php-java-bridge v.2.0.7 in order to assess its capability to integrate PHP with "Enterprise" (read expensive) products that only offer Java bindings, and elected to start by trying to connect PHP 5.0.3 to WebSphere MQ on a Linux RHEL3 platform. I am NOT a Java programmer, and am facing several hurdles - gaining experience as I overcome them; but there are many things I still don't understand so maybe my questions are silly. When installing the client Java bindings, WebSphere puts them in /opt/mqm/java/lib and I decided to "ln -s" all the jar files to /usr/share/java ; now the bridge finds them easily without needing a java_require() [I can't say I like this solution ... one would need to hunt down the libraries of any product installed and make symbolic links for all of them]. Following the manual I wrote a first PHP program that should put a message in a queue and immediately retrieve it. When I execute the script tough, after connecting to the Queue Manager it needs to invoke the method=20 accessQueue(java.lang.String,int) and whatever I try I keep getting an exception along the lines: Fatal error: Uncaught [class java.lang.Exception: java.lang.Exception: Invoke failed: [class com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String, class java.lang.Long). Cause: java.lang.IllegalArgumentException: java.lang.ClassCastException@74c3aa] Apparently the bridge keeps converting the second argument (an integer) to java.lang.Long while the method mandates an int. Is there a way to overcome this problem? Thank you Massimo |
From: <ike...@pm...> - 2005-09-20 04:05:27
|
I'm using php-java-bridge on RedHat Linux, and Java VM is launched everytime Java program is called by PHP script. Especially for the first time Java program is called since system boot, it seems take much time to load Java VM. Does anyone have any idea to save the loading time? For instance, should I launch Java VM as a resident process or something? Masaru |
From: Nicolas G. <nic...@gm...> - 2005-09-20 03:52:34
|
I was thinking in use Java and Hibernate to persist my objects (defined in= =20 java), and php for the user interface, everything in a windows server.=20 Can I use the bridge for this? Do I have to install tomcat?, I want to use the java objects from PHP, but= =20 no PHP from a java environment Is this possible? and stable? Thanks. |
From: Jim D. <jd...@ho...> - 2005-09-20 01:33:50
|
>please make sure that the php executable /usr/bin/php >is indeed the php4.4 cgi binary How can I tell? My PHP file is from 6-29-2003. Thanks Jim >From: Jost Boekemeier <jos...@ya...> >To: Jim Douglas <jd...@ho...>, >wil...@co...,php...@li... >Subject: Ant: RE: Ant: [Php-java-bridge-users] Problem compiling version >2.0.7 on RedHat 9 >Date: Mon, 19 Sep 2005 22:05:34 +0200 (CEST) > >Hi, > >[please excuse the delay] > >the java.so for RH9/php4.4 is available at: > >http://php-java-bridge.sourceforge.net/php-java-bridge_2.0.8-RH9-php4.4.tar > >It contains java.so (version 2.0.8) and JavaBridge.jar >(version 2.0.8). Please copy the java.so into the >extension directory of you php 4.4 installation and >please make sure that the php executable /usr/bin/php >is indeed the php4.4 cgi binary. > > >To compile the php-java-bridge on RH9, please follow >the "Installation from source" instructions in the >INSTALL document. binary or source RPM's cannot be >used on RH9, this rpm distribution is too old, sorry. > >In case you don't want to install autoconf 2.57, >automake 1.6.3 and libtool 1.4.3, please see the >"Compiling the bridge without autoconf" section. > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier >anmelden: http://mail.yahoo.de > > >------------------------------------------------------- >SF.Net email is sponsored by: >Tame your development challenges with Apache's Geronimo App Server. >Download it for free - -and be entered to win a 42" plasma tv or your very >own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: GERARD C. <Chr...@eu...> - 2005-09-19 22:07:23
|
Hello, =20 I'm having problems to install php/java bridge (php-java-bridge-2.0.8RC4) on a SUSE 8 (2.4.21-138-smp) The rpm package isn't avalaible. I've so installed php 5.0.4, autoconf 2.59 and automake 1.9 from the tarballs. Configure doesn't work.=20 ... configure.in:21: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. ./configure.gnu: line 8: libtoolize: command not found Makefile.am:3: Libtool library used but `LIBTOOL' is undefined Makefile.am:3: Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again. ....... configure: error: host_alias is not set. Make sure to run config.guess configure: error: /bin/sh './configure.gnu' failed for server =20 =20 config_guess returns=20 i686-pc-linux-gnu =20 Can anybody help ? PS I've tried to run rpmbuild too, but for some reason that I don't know, it isn't present on my server.(rpm exists) Thank's in advance. =20 =20 |