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...> - 2008-10-30 17:42:59
|
I ran into the same thing when I started loading from the jre/ext directory. The jars only load at boot time. This is a hassle while developing, but once the jars are stable, it is no problem. If anyone knows a way to force a reload from /jre/ext I would like to know it. > Ok, I have rebooted the servlet and now, the libraries are loaded > automatically. I don't use java_require() anymore. Charles Shaffer Senior Analyst NTN-Bower Corporation |
|
From: <php...@li...> - 2008-10-30 17:31:01
|
php...@li... a écrit : > Hi, >> Cause: java.lang.ClassNotFoundException: Unresolved external reference: >> java.lang.NoClassDefFoundError: >> net.sf.jasperreports.engine.xml.JRXmlLoader. -- Unable to call the > please re-read the FAQ entry "Why do I get a NoClassDefFoundError". > Sorry for beeing terse, but this all information I can pass along, as this is really a Java issue. -- Microsoft (.NET) has learned its lession from the windows "dll hell", Sun has not. Thanks Jost, a short answer is way better than none. The faq says : Why do I get a NoClassDefFoundError? Because Java doesn't have a module system. All interconnected libraries must be loaded with a single java_require() call. See the README for details. But i AM using a single java_require() call loading all my libraries ! (I have even tested with a single .jar file containing everything to be sure...) Does it mean that as I compiled JavaBridge as a native php, I can't load some other libraries ? I'm confused. I note too that when even if my .jar libraries are in java.ext.dirs, they are not loaded... Oops ! Ok, I have rebooted the servlet and now, the libraries are loaded automatically. I don't use java_require() anymore. I still have problems, but it's better. I'll come back to the mailing list, either failure or success, in some time. David |
|
From: <php...@li...> - 2008-10-30 16:52:06
|
Hi,
> Cause: java.lang.ClassNotFoundException: Unresolved external reference:
> java.lang.NoClassDefFoundError:
> net.sf.jasperreports.engine.xml.JRXmlLoader. -- Unable to call the
please re-read the FAQ entry "Why do I get a NoClassDefFoundError".
Sorry for beeing terse, but this all information I can pass along, as this is really a Java issue. -- Microsoft (.NET) has learned its lession from the windows "dll hell", Sun has not.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-30 16:25:32
|
Guilherme,
I took the lazy approach. I just set my CLASSPATH to current directory .
or (period), the jre/lib, and the jre/lib/ext.
In my case the CLASSPATH is
cshaffer@U2web:~$ echo $CLASSPATH
.:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib:/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/ext
The first part of the path will depend on your choice of java versions. I
used the latest Sun version at the time. Just do a find for jre
cshaffer@U2web:~$ sudo find / -name 'jre'
[sudo] password for cshaffer:
/usr/lib/jvm/java-6-sun-1.6.0.03/jre
This will tell you where the install is located.
Jost tipped me off that putting the jars in the /jre/ext directory would
load them statically and life was much simpler then.
Hope this helps.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
10/30/2008 11:07 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] PHP Java Integration
The problem is that I need include JAR files in the classpath to recognize
the PHP Java Bridge.
How do you do about this?
Thanks
Guilherme
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-10-30 16:12:14
|
php...@li... a écrit :
> Hi,
>
>> *Fatal error*: Class 'Java' not found in
>>
> this PHP error message means that you don't have a Java class. Either write your own class or use the one provided by the PHP/Java Bridge. Please see our FAQ for details.
> Regards,
> Jost Boekemeier
>
Hi Jost,
thanks for your help. Following your mail, i have reread a lot of the
forums and the docs.
And it's better :-) !
But not enough... Here I am now, this script :
###
<?php
require_once("java/Java.inc");
java_require("/usr/share/java/ext/");
$compileManager = new
JavaClass("net.sf.jasperreports.engine.JasperCompileManager");
print "<br/>Point 1<br/><br/>";
$report = $compileManager->compileReport("/tmp/jreport/test.jrxml");
print "<br/>Point 2<br/><br/>";
?>
###
gives this error :
###
Point 1
*Fatal error*: Uncaught [[o:Exception]:"java.lang.Exception: Invoke
failed: [[c:JasperCompileManager]]->compileReport((o:String)[o:String]).
Cause: java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError:
net.sf.jasperreports.engine.xml.JRXmlLoader. -- Unable to call the
method, see the README section "Java platform issues" for details. VM:
1.4.2@http://gcc.gnu.org/java/" at: #-6
php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java:433)
#-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1080) #-4
php.java.bridge.Request.handleRequest(Request.java:409) #0
/usr/share/php/java/Java.inc(300):
java_ThrowExceptionProxyFactory->getProxy(4, 'net.sf.jasperre...',
'Unresolved exte...', true) #1 /usr/share/php/java/Java.inc(454):
java_Arg->getResult(true) #2 /usr/share/php/java/Java.inc(460):
java_Client->getWrappedResult(true) #3
/usr/share/php/java/Java.inc(664): java_Client->getResult() #4
/usr/share/php/java/Java.inc(1779): java_Client->invokeMethod(3, 'compi
in */usr/share/php/java/Java.inc* on line *263*
###
I think the problem comes from my configuration of php-java-bridge, as
net.sf.jasperreports.engine.xml.JRXmlLoader is in the same .jar file
than net.sf.jasperreports.engine.JasperCompileManager. Excepted this
error, everything went smoothly and i haven't noted any other error.
Here is what i did since the beginning :
I am on a debian etch server.
I have installed the gcj php5-dev gcc autoconf libtool automake make
packages.
I have phpized php-java-bridge.
# wget
http://downloads.sourceforge.net/php-java-bridge/php-java-bridge_5.3.2.1.2.orig.tar.gz?modtime=1223900873&big_mirror=0
# tar xzvf php-java-bridge_5.3.2.1.2.orig.tar.gz
# cd php-java-bridge_5.3.2.1.2.orig
# phpize && ./configure && make
I have put Java.Inc in /usr/share/php/java/
I have put my jar files in /usr/share/java/ext/ (even JavaBridge.jar)
I have launched the servlet :
# cd /root/php-java-bridge/php-java-bridge-5.3.2.1.2.orig/modules/
# ./java SERVLET:8080 3 JavaBridge.log
JavaBridge.log says :
Oct 29 12:24:58 JavaBridge INFO : VM :
1.4.2@http://gcc.gnu.org/java/
Oct 29 12:24:58 JavaBridge INFO : logFile : JavaBridge.log
Oct 29 12:24:58 JavaBridge INFO : default logLevel : 3
Oct 29 12:24:58 JavaBridge INFO : socket : SERVLET:8080
Oct 29 12:24:58 JavaBridge INFO : java.ext.dirs : /usr/share/java/ext
Oct 29 12:24:58 JavaBridge INFO : php.java.bridge.base: /root
Oct 29 12:24:58 JavaBridge INFO : thread pool size : 20
Oct 29 12:24:58 JavaBridge INFO : JavaBridgeRunner started on port
INET_LOCAL:8080
Here I have a question : is "php.java.bridge.base: /root" correct or
problematic ?
Another information :
| echo java("java.lang.System")->getProperties();
|in apache gives me (i put it one information per line to make it more
readable) :
{
path.separator=:,
java.vm.name=GNU libgcj,
java.vm.specification.name=Java(tm) Virtual Machine Specification,
java.runtime.version=1.4.2,
java.home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre,
java.vm.specification.version=1.0,
line.separator= ,
java.vm.specification.vendor=Sun Microsystems Inc.,
gnu.classpath.home.url=file:///usr/lib/../lib64,
gnu.gcj.progname=./java,
gnu.classpath.version=0.92,
java.specification.version=1.4,
java.library.path=/usr/lib/../lib64/gcj-4.1:/usr/lib/jni,
gnu.classpath.vm.shortname=libgcj,
java.class.version=48.0,
java.specification.name=Java(tm) Platform API Specification,
os.version=2.6.18-6-amd64,
gnu.classpath.home=/usr,
user.home=/root,
file.encoding=UTF-8,
os.name=Linux,
php.java.bridge.promiscuous=true,
user.name=root,
java.class.path=.,
java.io.tmpdir=/tmp,
os.arch=x86_64,
java.fullversion=GNU libgcj 4.1.2 20061115 (prerelease) (Debian 4.1.1-20),
user.language=en,
java.specification.vendor=Sun Microsystems Inc.,
user.dir=/root/php-java-bridge/php-java-bridge-5.3.2.1.2.orig/modules,
java.vm.info=GNU libgcj 4.1.2 20061115 (prerelease) (Debian 4.1.1-20),
java.version=1.4.2,
java.ext.dirs=/usr/share/java/ext,
sun.boot.class.path=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre/lib/rt.jar,
gnu.gcj.user.realname=root,
java.vm.vendor=Free Software Foundation, Inc.,
java.vendor.url=http://gcc.gnu.org/java/,
java.vendor=Free Software Foundation, Inc.,
file.separator=/,
java.vm.version=4.1.2 20061115 (prerelease) (Debian 4.1.1-20),
http.agent=gnu-classpath/0.92 (libgcj/4.1.2 20061115 (prerelease)
(Debian 4.1.1-20)),
gnu.gcj.precompiled.db.path=/var/lib/../lib64/gcj-4.1/classmap.db,
gnu.cpu.endian=little, user.region=GB,
gnu.gcj.runtime.endorsed.dirs=/usr/share/java/gcj-endorsed
}
Particularly, do you think these lines are coherent ?
java.home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre
java.library.path=/usr/lib/../lib64/gcj-4.1:/usr/lib/jni
user.home=/root,
java.class.path=.,
user.dir=/root/php-java-bridge/php-java-bridge-5.3.2.1.2.orig/modules,
gnu.gcj.user.realname=root,
And finally, would you have any direction for me to look ?
David
|
|
From: <php...@li...> - 2008-10-30 16:08:10
|
The problem is that I need include JAR files in the classpath to recognize the PHP Java Bridge. How do you do about this? Thanks Guilherme |
|
From: <php...@li...> - 2008-10-30 16:07:03
|
The problem is that I need include JAR files in the classpath to recognize the PHP Java Bridge. As you about this? Thanks Guilherme 2008/10/29 Guilherme Lacerda <gui...@gm...> > Hello, > > I'm using PHP Java Bridge with Tomcat 6. My question is about > modifying/including JAR files in the classpath. > > I tried via php.ini, but without success. > My intention is to use the PHP + PHPMQ + Mantaray Messaging BUS for > integration tests. > > Someone has used these technologies? > > Thanks > > Guilherme > > -- -- Guilherme Lacerda gui...@gm... #define question( 2b || !2b ); -- |
|
From: <php...@li...> - 2008-10-30 15:59:58
|
Not sure if this realtes, but when I originally setup the JavaBridge, I
did have to make sure that Java support was enabled in the php.ini and
there was something about the java include path as well. I found the
php-info function helpful to verify. Also, I got around the require
issues by putting my jars in the jre/ext directory and letting them load
statically.
>>Why would you include these changes via php.ini? As far as I know you
shouldn't need to change php.ini at all for the bridge to work.
>>--Nathan Shaskin
>>Compliance Publishing
> I've read the FAQ. I've tried to include these
> changes via php.ini, but
> without success.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
10/30/2008 10:29 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] PHP Java Integration
Why would you include these changes via php.ini? As far as I know you
shouldn't need to change php.ini at all for the bridge to work.
--Nathan Shaskin
Compliance Publishing
> From: php...@li...
<php...@li...>
> Subject: Re: [Php-java-bridge-users] PHP Java Integration
> To: php...@li...
> Date: Thursday, October 30, 2008, 9:16 AM
> Hello,
>
> I've read the FAQ. I've tried to include these
> changes via php.ini, but
> without success.
>
> Any tips?
>
> []s
>
> Guilherme
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-10-30 15:29:15
|
Why would you include these changes via php.ini? As far as I know you shouldn't need to change php.ini at all for the bridge to work.
--Nathan Shaskin
Compliance Publishing
> From: php...@li... <php...@li...>
> Subject: Re: [Php-java-bridge-users] PHP Java Integration
> To: php...@li...
> Date: Thursday, October 30, 2008, 9:16 AM
> Hello,
>
> I've read the FAQ. I've tried to include these
> changes via php.ini, but
> without success.
>
> Any tips?
>
> []s
>
> Guilherme
|
|
From: <php...@li...> - 2008-10-30 14:16:36
|
Hello, I've read the FAQ. I've tried to include these changes via php.ini, but without success. Any tips? []s Guilherme |
|
From: <php...@li...> - 2008-10-30 12:45:27
|
Hi,
> I'm using PHP Java Bridge with Tomcat 6. My question is
> modifying/including JAR files in the classpath.
they'll go into WEB-INF/lib/, please re-read the README or our FAQ for details.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-29 21:47:43
|
Hello, I'm using PHP Java Bridge with Tomcat 6. My question is about modifying/including JAR files in the classpath. I tried via php.ini, but without success. My intention is to use the PHP + PHPMQ + Mantaray Messaging BUS for integration tests. Someone has used these technologies? Thanks Guilherme |
|
From: <php...@li...> - 2008-10-28 20:51:51
|
Hi,
> *Fatal error*: Class 'Java' not found in
this PHP error message means that you don't have a Java class. Either write your own class or use the one provided by the PHP/Java Bridge. Please see our FAQ for details.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-28 16:13:13
|
Hi, I'm new to php-java-bridge, but i'm very interested in it to use Jasper Report on php. I have a running dev/test debian etch server with apache2 and php5 and i would like to install php-java-bridge without tomcat or jdr. This is the snippet of doc from README.GNU_JAVA from which i take this idea. ### In case you don't want to ship a JVM or JRE with your product, you can use GNU gcc to compile the java part and your classes into native code. In the directory php-java-bridge_p.x.y type: gcj --version # must be gcj 3.3.3 or above (gcj 4.1 recommended). phpize && ./configure && make && su -c "make install" This creates a native, dynamic linked back-end in the PHP extension directory. ### Here is what i currently have done : ### apt-get install gcj php5-dev gcc autoconf libtool automake make wget http://downloads.sourceforge.net/php-java-bridge/php-java-bridge_5.3.2.1.2.orig.tar.gz?modtime=1223900873&big_mirror=0 tar xzvf php-java-bridge_5.3.2.1.2.orig.tar.gz cd php-java-bridge_5.3.2.1.2.orig phpize && ./configure && make && make install ### Everything is ok so far. But when i try to use java in my php script, it hangs : ### <?php $system = new Java('java.lang.System'); ?> ### *Fatal error*: Class 'Java' not found in */home/day/[...]/test.php* on line *4* ### I'm sure it's a simple thing due to me being a newbie, like how should I configure php.ini for this to work ? (I have done nothing between the make install part and the php part.) Would anyone have an idea ? I have searched in the archives but not found anything i could use. David Pradier |
|
From: <php...@li...> - 2008-10-27 17:27:28
|
Hi,
I noticed that, if tomcat was started with the -security flag, the JSR 223 examples did not work. I have added the necessary doPrivileged() calls to EngineFactory and to the Servlet* ScriptEngines, so that eval() is now called with the security context of the PHP/Java Bridge library [1].
Regards,
Jost Boekemeier
[1] You must move all jars from the application- to the library folder, to make this work, of course.
|
|
From: <php...@li...> - 2008-10-27 16:51:12
|
Hi,
> Session session = HibernateUtil.openSession();
> br.edu.utfpr.helper.HibernateUtil.openSession(HibernateUtil.java:22)
seems like you don't have a hibernate session factory, hence the NullPointerException. Use HibernateUtil.getSession() instead.
However, this has nothing to do with the PHP/Java Bridge.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-26 19:50:22
|
Thank you for atention.
This is my PHP code.
OBJ is a instance of java class called "Contato" (Contact)
grava() is a GenericDAO's method that insert record in DB.
Jar's needed by hibernate and mysql are already included into Contato.jar
I did many tests in java enviorment, and "grava()" works fine.
// =========================
require_once("../WEB-INF/java/Java.inc");
java_require("../WEB-INF/lib/Contato.jar");
$obj = new Java("br.edu.utfpr.beans.Contato","name","phone","mobile");
$dao = new Java("br.edu.utfpr.dao.GenericDAO");
//echo $obj->getNome();
$dao->grava($obj);
// ============================
public void grava(Object obj)
{
Session session = HibernateUtil.openSession();
Transaction tx = session.beginTransaction();
session.saveOrUpdate(obj);
tx.commit();
session.close();
}
// ===========================
java.lang.RuntimeException: PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:GenericDAO]]->grava((o:Object)[o:Contato]). Cause: java.lang.NullPointerException VM: 1.6.0_03@http://java.sun.com/" at:
#-11 br.edu.utfpr.helper.HibernateUtil.openSession(HibernateUtil.java:22)
#-10 br.edu.utfpr.dao.GenericDAO.grava(GenericDAO.java:21)
#-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
#0 C:\apache-tomcat-6.0.18\webapps\JavaBridge\WEB-INF\java\Java.inc(294): java_ThrowExceptionProxyFactory->getProxy(3, 'br.edu.utfpr.da...', 'java.lang.NullP...', true)
#1 C:\apache-tomcat-6.0.18\webapps\JavaBridge\WEB-INF\java\Java.inc(447): java_Arg->getResult(true)
#2 C:\apache-tomcat-6.0.18\webapps\JavaBridge\WEB-INF\java\Java.inc(453): java_Client->getWrappedResult(true)
#3 C:\apache-tomcat-6.0.18\webapps\JavaBridge\WEB-INF\java\Java.inc(657): java_Client->getResult()
#4 C:\apache-tomcat-6.0.18\webapps\JavaBridge\WEB-INF\java\Java.inc(1768): java_Client->invokeMethod(2, 'grava', Array)
#5 C:\apache-tomcat-6.0.18\webapps\JavaBrid in C:\apache-tomcat-6.0.18\webapps\JavaBridge\WEB-INF\java\Java.inc on line 257
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376)
php.java.servlet.CGIServlet.handle(CGIServlet.java:400)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:378)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)// ============================Ty again.
|
|
From: <php...@li...> - 2008-10-26 16:51:05
|
Problem solved. I uninstalled jdk and tomcat and instaled jre1.5.0_16 and tomcat_5.5.27. |
|
From: <php...@li...> - 2008-10-26 16:25:32
|
Hi, > PHP Fatal error: Uncaught > [[o:Exception]:"java.lang.Exception: Invoke failed: > [[o:GenericDAO]]->grava((o:Object)[o:Contato]). Cause: > java.lang.NullPointerException VM: > 1.6.0_03@http://java.sun.com/" at: We can't really help you with application-level problems; grava() has received a valid object, everything below this level is outside of the scope of the PHP/Java Bridge. However, please include the stack trace, and some code which shows what you're trying to do. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2008-10-26 16:15:42
|
Hello
i'd started to use PHP / Java Bridge some days ago, and im finding a lot of dificulties to use hibernate or even simple JDBC.
After add all jars needed and created new Java("GenericDAO"), i tried to call save method, but something wrong happens.
PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:GenericDAO]]->grava((o:Object)[o:Contato]). Cause: java.lang.NullPointerException VM: 1.6.0_03@http://java.sun.com/" at:
Maybe someone got an exemple to help me, please.
My monograph of the university is about PHP JAVA BRIDGE, and i have just a few days do finish. Please, help me.
|
|
From: <php...@li...> - 2008-10-25 17:50:49
|
Proof of concept can be downloaded here: => http://downloads.sourceforge.net/php-java-bridge/php-java-bridge_5.3.3_j2ee.zip?use_mirror= |
|
From: <php...@li...> - 2008-10-25 17:44:24
|
> I think the best option is to start Apache, capture a PHP
> process from Apache and call into a continuation of that
> process.
Here's a solution I've whipped together; the EngineFactory now accepts two more arguments, a protocol and a port number. If the HTTP server document root contains a copy of the web application, you can now invoke PHP libraries deployed into Apache of IIS using the JSR 223 API:
<%!
/* Create a PHP script with a function f() */
private static java.io.File script;
private static java.io.File getScript(String path) {
if(script!=null) return script;
return script=EngineFactory.getPhpScript(path, new StringReader(
"<?php function f($arg) {return 1 + (int)(string)$arg); }; ?>"));
}
%>
<%
/* Create a standard script engine and invoke function f on http port 80 */
ScriptEngine e = EngineFactory.getInvocablePhpScriptEngine (this,
application, request, response, "http", 80);
File script = getScript(application.getRealPath(request.getServletPath()));
FileReader reader = EngineFactory.createPhpScriptFileReader(script);
e.eval (reader); reader.close();
Object result=((Invocable)i).invokeFunction("f",new Object[]{new Integer(2)});
e.eval ((Reader)null); // flush the output generated by invokeXXX
out.println("result from php::f(), printed from the servlet: " + result);
%>
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-25 16:06:39
|
Hi,
please re-read the README section "Java platform issues" for details.
It is nearly impossible to fix these problems on app level, so your only option is to re-install your J2EE server again. -- You could try to clean the work/Catalina and temp directories and check if that helps.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-25 16:02:55
|
Hi Rinaldo,
as long as the bridge doesn't need to parse the headers, the php cli component will work, too:
jrunscript -Dphp.java.bridge.php_exec=/usr/bin/php -classpath JavaBridge.jar php-interactive
The php and php-invocable engines will not work with the php cli, of cause.
I think you will need to compile PHP yourself, please see the INSTALL document for details.
I think the best option is to start Apache, capture a PHP process from Apache and call into a continuation of that process.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2008-10-25 10:11:59
|
Hello,
I just recently started to use php java bridge with Glassfish.
I am very happy with it. Thanks for all the work. I do have a
few questions not directly related.
1) We are having some issues finding php-cgi for MAC OS 10. We
would like to help and see if we can include a version in the distribution
that supports Macs directly. The latest install of php on the
Mac does not include php-cgi. My understanding is that when
Mac went from php 4 to php 5, php != php-cgi. Does anyone
have a solution to this issue? How do I get php-cgi for Mac? I don't
have this issue on my Linux and OpenSolaris servers. I am starting
to look beyond Apple's default install.
http://www.aprelium.com/abyssws/php.html
2) We would like to use a local installed copy of php in some cases.
How do you override the default location. I would like to use php-cgi
in /opt? Why? OpenSolaris supports zones and some zones are sparse,
that means that /usr/ is shared and cannot be written to. Is this already
supported and I am simply not following directions?
3) It is a real pleasure to use NetBeans/Php-java-Bridge/Glassfish, I
can trivially deploy to lots of machines with no hassle, compared to
the Apache/httpd model. I would like to contribute ready to go
NetBeans projects that include php-java-bridge, pretty simple but
maybe it is of value, any interest.
Rinaldo
|