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-09-09 13:03:52
|
My application always failed mysteriously the very moment I included the
Java-bridge (i.e. as soon as I added "
require_once('http://localhost:8080/JavaBridge/java/Java.inc');" to my
code, I didn't actually *use* anything from it, yet, just including it was
enough to break my application.
After some quite substantial investigation I had to learn, that the reason
was, that the Java.inc file uses a globally visible variable "$version"
(which in line 4) is set to the current php-version and then compared to
'5.1.2' to give a warning if this is executed on a lower php-version.
Apparently some other code that I am using also checks for such a variable.
It expects to find 1.0.0 but now found 5.2.3 (the PHP version I am using)
and then behaved completely differently, i.e. eventually did not work at
all, since it combined that variable into a filename and then did not find
a file required and failed.
To verify this, I made myself a copy of Java.inc where I renamed this
variable and now everything works as expected.
So, dear PHP/JavaBridge developers:
if you use (and then leave around) such globally visible variables, then
PLEASE make their names VERY unique. The name "version" is obviously too
likely to appear in other's code as well and then can have very strange
side-effects!
I even suggest to NOT use any variable here, but to write this snippet as
follows:
...
if ((version_compare("5.1.2", phpversion(), ">"))) {
$msg = '<br><strong>PHP '.phpversion().' too old.</strong><br>\nFor
PHP versions < 5.1.4 install the java.so or php_java.dll from the
php-java-bridge-legacy download.<br>\nOr set the path to the PHP
executable, see php_exec in the WEB-INF/web.xml';
die($msg);
}
...
In the (hopefully rare) case where this test fails, it doesn't really hurt
to call the method twice (since the code is terminated anyway) and in the
good case this doesn't leave any traces.
Regards,
Michael
|
|
From: <php...@li...> - 2007-09-08 14:58:53
|
Hi, > Fatal error: Cannot redeclare java_last_exception_get() at the moment there are 5 other "php to java" bridges offering a similar API. One is proprietary code, two of them are obsolete, one is part of a proprietary J2EE application server and one is integrated into a PHP interpreter written in pure Java (http://www.projectzero.org/). Please try to run PHP without a php.ini file. If this works, please check your php.ini entries. Regards, Jost Boekemeier Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
|
From: <php...@li...> - 2007-09-07 22:10:04
|
Bingo! Thank you so much!=20
The second part of you mail - disabling the php_java.dll - did the
trick!
I had enabled that before fully understanding, how this PHP/JavaBridge
works (or actually I think, for an earlier version of the bridge
(3.1.x?) it was even necessary) and had never thought about it any
more, let alone realized that this is not only not required any more
but can cause such adverse effects...
This problem has costed me two days of desperate searching and I
simply couldn't understand what was going on here. I definitely owe
you a beer! Or several, actually!=20
Thanks again,
Michael
> -----Original Message-----
> From: php...@li...=20
> [mailto:php...@li...]=20
> On Behalf Of php...@li...
> Sent: Freitag, 7. September 2007 23:01
> To: php...@li...
> Subject: Re: [Php-java-bridge-users] Strange "Cannot=20
> redeclare" errormessage...
>=20
>=20
> I believe I ran into the same error at one point. If I=20
> remember right, the way I fixed it was by removing the war=20
> file from Tomcat completely, deleting the folder named=20
> JavaBridge in the Tomcat folder (if this fails you'll need to=20
> restart first), then adding it back to the folder (thus=20
> deploying it and recreating the JavaBridge=20
> folder--effectively reinstalling the bridge)
>=20
> Also, make sure that PHP does NOT load the php_java=20
> extension. It doesn't need it and it may be where the=20
> function is already being declared.
>=20
> Hope this helps.
>=20
> --Nathan Shaskin
> Compliance Publishing
>=20
>=20
> php...@li... wrote: Help! I=20
> ran into a bizarre problem that I simply don't understand.
>=20
> As soon as I include the PHP/Java bridge in my code (i.e. as=20
> soon as I include the following statement in my PHP file):
> ------------------------------
> ... require_once('http://localhost:8080/JavaBridge/java/Java.inc');=20
> ...
> ------------------------------
>=20
> I am getting the following PHP error:=20
> ------------------------------
> Fatal error: Cannot redeclare java_last_exception_get() in=20
> http://localhost:8080/JavaBridge/java/Java.inc on line 1431
> ------------------------------
>=20
> Not only is the include done using "require_ONCE()"=20
> (capitalization here for emphasis only), but the Java.inc=20
> also is internally additionally guarded by:
> ------------------------------
> =20
> if(!function_exists("java_get_base")) {
> ...
> function java_get_base() {
> ...
> }
> ... lost of stuff among them also:
> function java_last_exception_get() {
> ...
> }
> }
> ?>
> ------------------------------
>=20
> So, IMHO it should NEVER EVER be possible that anything=20
> contained in this file is ever redeclared. And why is the=20
> error only at the function "java_last_exception_get(...)"=20
> which is somewhere after the middle of the file, while there=20
> are lots of other functions declared before it, which - if=20
> for some reason the file would indeed be re-read - should=20
> already cause errors much earlier...
>=20
> I simply don't understand what's going in here. Anyone who=20
> had similar encounters and/or can shed some light onto this?
>=20
> I am using this XAMPP v1.6.3a (a ready-packed combination of=20
> Apache v2.2.4 & PHP v5.2.3 & Zend Optimizer v3.3.0 & MySQL=20
> v5.0.45 - see
> http://www.apachefriends.org/en/xampp-windows.html) plus the=20
> Tomcat v6.10.13 -addon (on which I run the JavaBridge.war file).
>=20
> on WinXP Pro.
>=20
> Michael
>=20
>=20
> --------------------------------------------------------------
> -----------
> 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=20
> a browser. Download your FREE copy of Splunk now >> =20
> http://get.splunk.com/
_______________________________________________
> php-java-bridge-users mailing list=20
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>=20
>=20
> =20
> ---------------------------------
> Take the Internet to Go: Yahoo!Go puts the Internet in your=20
> pocket: mail, news, photos & more.=20
> --------------------------------------------------------------
> -----------
> 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=20
> a browser. Download your FREE copy of Splunk now >> =20
> http://get.splunk.com/
_______________________________________________
> php-java-bridge-users mailing list=20
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>=20
|
|
From: <php...@li...> - 2007-09-07 21:00:45
|
I believe I ran into the same error at one point. If I remember right, the way I fixed it was by removing the war file from Tomcat completely, deleting the folder named JavaBridge in the Tomcat folder (if this fails you'll need to restart first), then adding it back to the folder (thus deploying it and recreating the JavaBridge folder--effectively reinstalling the bridge)
Also, make sure that PHP does NOT load the php_java extension. It doesn't need it and it may be where the function is already being declared.
Hope this helps.
--Nathan Shaskin
Compliance Publishing
php...@li... wrote: Help! I ran into a bizarre problem that I simply don't understand.
As soon as I include the PHP/Java bridge in my code (i.e. as soon as I
include the following statement in my PHP file):
------------------------------
...
require_once('http://localhost:8080/JavaBridge/java/Java.inc');
...
------------------------------
I am getting the following PHP error:
------------------------------
Fatal error: Cannot redeclare java_last_exception_get() in
http://localhost:8080/JavaBridge/java/Java.inc on line 1431
------------------------------
Not only is the include done using "require_ONCE()" (capitalization
here for emphasis only), but the Java.inc also is internally
additionally guarded by:
------------------------------
if(!function_exists("java_get_base")) {
...
function java_get_base() {
...
}
... lost of stuff among them also:
function java_last_exception_get() {
...
}
}
?>
------------------------------
So, IMHO it should NEVER EVER be possible that anything contained in
this file is ever redeclared.
And why is the error only at the function
"java_last_exception_get(...)" which is somewhere after the middle of
the file, while there are lots of other functions declared before it,
which - if for some reason the file would indeed be re-read - should
already cause errors much earlier...
I simply don't understand what's going in here. Anyone who had similar
encounters and/or can shed some light onto this?
I am using this XAMPP v1.6.3a (a ready-packed combination of Apache
v2.2.4 & PHP v5.2.3 & Zend Optimizer v3.3.0 & MySQL v5.0.45 - see
http://www.apachefriends.org/en/xampp-windows.html) plus the Tomcat
v6.10.13 -addon (on which I run the JavaBridge.war file).
on WinXP Pro.
Michael
-------------------------------------------------------------------------
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
---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
|
|
From: <php...@li...> - 2007-09-07 20:39:22
|
Help! I ran into a bizarre problem that I simply don't understand.
As soon as I include the PHP/Java bridge in my code (i.e. as soon as I
include the following statement in my PHP file):
------------------------------
...
require_once('http://localhost:8080/JavaBridge/java/Java.inc');=20
...
------------------------------
I am getting the following PHP error:=20
------------------------------
Fatal error: Cannot redeclare java_last_exception_get() in
http://localhost:8080/JavaBridge/java/Java.inc on line 1431
------------------------------
Not only is the include done using "require_ONCE()" (capitalization
here for emphasis only), but the Java.inc also is internally
additionally guarded by:
------------------------------
<?php
=20
if(!function_exists("java_get_base")) {
...
function java_get_base() {
...
}
... lost of stuff among them also:
function java_last_exception_get() {
...
}
}
?>
------------------------------
So, IMHO it should NEVER EVER be possible that anything contained in
this file is ever redeclared.
And why is the error only at the function
"java_last_exception_get(...)" which is somewhere after the middle of
the file, while there are lots of other functions declared before it,
which - if for some reason the file would indeed be re-read - should
already cause errors much earlier...
I simply don't understand what's going in here. Anyone who had similar
encounters and/or can shed some light onto this?
I am using this XAMPP v1.6.3a (a ready-packed combination of Apache
v2.2.4 & PHP v5.2.3 & Zend Optimizer v3.3.0 & MySQL v5.0.45 - see
http://www.apachefriends.org/en/xampp-windows.html) plus the Tomcat
v6.10.13 -addon (on which I run the JavaBridge.war file).
on WinXP Pro.
Michael
|
|
From: <php...@li...> - 2007-09-07 10:12:12
|
Hi, > I don't know how to reproduce, but we have a nightly cron job that runs a > cli php script, and after a few weeks there are usually a couple processes > hanging around. do these processes still exist? Can you do a "ps auxwf" please? > I'll make a note to add a ticket when I see that next. I've just looked at the code. The JVM is started in the MINIT procedure and terminated (via kill SIGTERM, kill SIGTETM, kill -9 ...) in the MSHUTDOWN procedure. So if the PHP executable hangs, this means that the PHP MSHUTDOWN procedure hasn't been called (which used to happen with recent PHP binaries, when called with a zero-length PHP script); it means that there is a bug in your PHP CLI binary. Please either do not use this PHP CLI binary or start Java as an external process. > > However, the PHP/Java Bridge shouldn't be used that way. Please start Java > > as an external process. > I'm not sure how to do this (or how I'm not doing it). Please see the README or INSTALL.* documents from the binary download. Or this link http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/ for a detailed description how to install the bridge. > So, the scripts that are hanging around do not actually invoke anything Java > in the PHP code. As I've said. If you ask PHP to start a JVM attached to it and the JVM does not terminate (probably due to a bug in the PHP), PHP will hang. Please see the documentation that comes with the PHP/Java Bridge download to see how to change it. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |
|
From: <php...@li...> - 2007-09-06 16:16:37
|
> > Hi, > > > command-line PHP processes hanging around after they are completed. I'm > > using PHP4 and php-java-bridge 4.1.8 built from source on a 64bit Linux > box. > > if you start the Java VM as a subcomponent of PHP and the JVM refuses to > terminate, the PHP main > process will wait forever. > > Can you reproduce this problem? If so, can you please open a ticket and > attach the result of an > strace -s 1024 -ff ... at the end of that ticket? I don't know how to reproduce, but we have a nightly cron job that runs a cli php script, and after a few weeks there are usually a couple processes hanging around. I'll make a note to add a ticket when I see that next. > > However, the PHP/Java Bridge shouldn't be used that way. Please start Java > as an external process. > I'm not sure how to do this (or how I'm not doing it). This is the procedure: 1. I ask sys admin to install php-java-bridge 4.1.8 2. He does it 3. I spend time test driving it, while our current production code continues to function without USING it. (it's a small shop, and we do development and production on the same box) So, the scripts that are hanging around do not actually invoke anything Java in the PHP code. Is the subcomponent vs. external process a result of a decision made during the install process? A configuration option? We're running the bridge as a php module. With PHP4 and no J2EE container engine servlet thingy (don't know the terminology at all here), it was my impression this was our only option. Michael |
|
From: <php...@li...> - 2007-09-06 08:09:08
|
Hi,
> command-line PHP processes hanging around after they are completed. I'm
> using PHP4 and php-java-bridge 4.1.8 built from source on a 64bit Linux box.
if you start the Java VM as a subcomponent of PHP and the JVM refuses to terminate, the PHP main
process will wait forever.
Can you reproduce this problem? If so, can you please open a ticket and attach the result of an
strace -s 1024 -ff ... at the end of that ticket?
However, the PHP/Java Bridge shouldn't be used that way. Please start Java as an external process.
Regards,
Jost Boekemeier
Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-09-05 18:45:31
|
Since installing the bridge I have noticed an intermittent problem with command-line PHP processes hanging around after they are completed. I'm using PHP4 and php-java-bridge 4.1.8 built from source on a 64bit Linux box. Has anybody else had this problem? The scripts in question do not actually use the bridge at all. When I look in the process list, they have a JavaBridge.jar child process, and that, along with the fact that I never saw this before installing the bridge, leads me to believe that the problem is there. How would I even go about debugging this? Michael |
|
From: <php...@li...> - 2007-09-01 12:55:28
|
Hi, > Unable to call constructor, see the README section "Java platform issues" > for details. you need to copy all inter-library dependencies to the library dir. Are you sure that AdminBean (which probably exports the client stubs) is in the client directory? > This kind of problems made me use the HTTP which was the only one I could > make work. The java_require() method cannot be used to work around Java specific problems; since Java doesn't have a proper module system (compare the Java "CLASSPATH" with the code repository used by MS .NET), you must take care of library-dependencies yourself. These issues are usually solved by copying *all* libraries into the web application's private lib directory. But this method has the problem you've mentioned. When loading the same classes multiple times via different classloaders, the VM quickly runs out of memory. Example: https://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/readme-de-DE.html#issue8 Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
|
From: <php...@li...> - 2007-08-31 18:13:30
|
If I put the files in the php.java.bridge.base/lib and remove the
java_require call, I get this:
Aug 31 12:57:12 JavaBridge DEBUG: Socket connection accepted
Aug 31 12:57:12 JavaBridge DEBUG: Starting bridge thread from thread pool
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 START: JavaBridge.run()
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 Request from client with
uid/gid -1/-1
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <C v=3D"
iwipu.IWIPUMessage" p=3D"I" i=3D"c42dd0" >
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> </C>
Aug 31 12:57:12 JavaBridge ERROR: An exception occured:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, see the README section "Java platform issues"
for details.
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, see the README section "Java platform issues"
for details.
at
php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(
JavaBridge.java:477)
at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545)
at php.java.bridge.Request.handleRequest(Request.java:353)
at php.java.bridge.Request.handleRequests(Request.java:388)
at php.java.bridge.JavaBridge.run(JavaBridge.java:200)
at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java
:66)
Caused by: java.lang.NoClassDefFoundError:
com/ipunity/webmail/ejbclient/AdminBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(
SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at php.java.bridge.DynamicClassLoader.loadClass(
DynamicClassLoader.java:372)
at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(
DynamicJavaBridgeClassLoader.java:291)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at php.java.bridge.SimpleJavaBridgeClassLoader.forName(
SimpleJavaBridgeClassLoader.java:188)
at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495)
... 4 more
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 <-- <E v=3D"1" m=3D"
java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, ...
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <I v=3D"0"
m=3D"ObjectToString" p=3D"I" i=3D"c439b0" />
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <O v=3D"1" />
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"#0
/usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP=
UMessage.php(66):
Java::__construct('iwipu.IWIPUMess...')
#1
/usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP=
UMessage.php(101):
IPUMessage->init()
#2 /usr/local/apache2/htdocs/IntrawayWS/includes/listener.php(2868):
IPUMessage->getMessageList()
#3 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/listener.php(15=
6):
handleReport('1', 0, 0, 0, 0, '<handleReport>?...')
#4 [internal function]: GetCustomReport('key-autogestion...',
'<handleReport>?...')
#5
/usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(361=
7):
call_user_func_array('GetCustomReport', Array)
#6
/usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(330=
7):
soap_server->invoke_method()
#7 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/wsdl.php(1597):
soap_server->service('<?xml version=3D"...')
#8 /usr/local/apache2/htdocs/IntrawayWS/server.php(10):
require_once('/usr/local/apac...')
#9 {main}" />
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> </I>
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 <-- <S
v=3D"[o(Exception):"java.lang.Exception: CreateInstance failed: new
iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved
external reference: java.lang.NoClassDefFoundError:
com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call...
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <F p=3D"A" />
Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 <-- <F p=3D"A"/>
If I put it on the java.ext.dirs (also without the java_require) I get this=
:
Aug 31 13:01:34 JavaBridge DEBUG: Socket connection accepted
Aug 31 13:01:34 JavaBridge DEBUG: Starting bridge thread from thread pool
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 START: JavaBridge.run()
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 Request from client with
uid/gid -1/-1
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <C v=3D"
iwipu.IWIPUMessage" p=3D"I" i=3D"c42dd0" >
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> </C>
Aug 31 13:01:34 JavaBridge ERROR: An exception occured:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, see the README section "Java platform issues"
for details.
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, see the README section "Java platform issues"
for details.
at
php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(
JavaBridge.java:477)
at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545)
at php.java.bridge.Request.handleRequest(Request.java:353)
at php.java.bridge.Request.handleRequests(Request.java:388)
at php.java.bridge.JavaBridge.run(JavaBridge.java:200)
at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java
:66)
Caused by: java.lang.NoClassDefFoundError:
com/ipunity/webmail/ejbclient/AdminBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(
SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at php.java.bridge.DynamicClassLoader.loadClass(
DynamicClassLoader.java:372)
at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(
DynamicJavaBridgeClassLoader.java:291)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at php.java.bridge.SimpleJavaBridgeClassLoader.forName(
SimpleJavaBridgeClassLoader.java:188)
at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495)
... 4 more
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 <-- <E v=3D"1" m=3D"
java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, ...
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <I v=3D"0"
m=3D"ObjectToString" p=3D"I" i=3D"c439b0" />
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <O v=3D"1" />
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <S v=3D"#0
/usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP=
UMessage.php(66):
Java::__construct('iwipu.IWIPUMess...')
#1
/usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP=
UMessage.php(101):
IPUMessage->init()
#2 /usr/local/apache2/htdocs/IntrawayWS/includes/listener.php(2868):
IPUMessage->getMessageList()
#3 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/listener.php(15=
6):
handleReport('1', 0, 0, 0, 0, '<handleReport>?...')
#4 [internal function]: GetCustomReport('key-autogestion...',
'<handleReport>?...')
#5
/usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(361=
7):
call_user_func_array('GetCustomReport', Array)
#6
/usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(330=
7):
soap_server->invoke_method()
#7 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/wsdl.php(1597):
soap_server->service('<?xml version=3D"...')
#8 /usr/local/apache2/htdocs/IntrawayWS/server.php(10):
require_once('/usr/local/apac...')
#9 {main}" />
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> </I>
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 <-- <S
v=3D"[o(Exception):"java.lang.Exception: CreateInstance failed: new
iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved
external reference: java.lang.NoClassDefFoundError:
com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call...
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <F p=3D"A" />
Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 <-- <F p=3D"A"/>
If I put the java_require WITHOUT the HTTP and the files on the
java.ext.dirs I get this:
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0"
m=3D"updateJarLibraryPath" p=3D"I" i=3D"7128e8" >
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <S v=3D"mereon-um/jboss=
-
4.0.1/client/jnp-client.jar;mereon-um/jboss-4.0.1/client/axis-ws4ee.jar
;mereon-um/jboss-4.0.1/client/jboss-client.jar;mereon-um/jboss-4.0.1
/client/jbossha-client.jar;mereon-um/jboss-4.0.1
/client/logkit.jar;mereon-um/jboss-4.0.1/client/log4j.jar;mereon-um/jboss-
4.0.1/client/concurrent.jar;mereon-um/jboss-4.0.1/client/jmx-client.jar
;mereon-um/jboss-4.0.1/client/jboss-jsr77-client.jar;mereon-um/jboss-4.0.1
/client/ejb.jar;mereon-um/jboss-4.0.1/client/jboss-deployment.jar
;mereon-um/jboss-4.0.1/client/activation.jar;mereon-um/jboss-4.0.1
/client/jboss-common-client.jar;mereon-um/jboss-4.0.1
/client/wsdl4j.jar;mereon-um/jboss-4.0.1/client/avalon-framework.jar
;mereon-um/jboss-4.0.1/client/jboss-j2ee.jar;mereon-um/jboss-4.0.1
/client/jbosscx-client.jar;mereon-um/jboss-4.0.1/client/jbosssx-client.jar
;mereon-um/jboss-4.0.1/client/jboss-jaxrpc.jar;mereon-um/jboss-4.0.1
/client/jboss-system-client.jar;mereon-um/jboss-4.0.1
/client/getopt.jar;mereon-um/jboss-4.0.1/client/jbossjmx-ant.jar
;mereon-um/jboss-4.0.1/client/jacorb.jar;mereon-um/jboss-4.0.1/client/jboss=
-
ws4ee-client.jar;mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar
;mereon-um/jboss-4.0.1/client/mail.jar;mereon-um/jboss-4.0.1/client/commons=
-
discovery.jar;mereon-um/jboss-4.0.1/client/jbossmq-client.jar
;mereon-um/jboss-4.0.1/client/jaxr-client.jar;mereon-um/jboss-4.0.1
/client/commons-logging.jar;mereon-um/jboss-4.0.1/client/jbossall-client.ja=
r
;mereon-um/jboss-4.0.1/client/jboss-saaj.jar;mereon-um/jboss-4.0.1
/client/jboss-iiop-client.jar;mereon-um/jboss-4.0.1
/client/namespace.jar;mereon-um/jboss-4.0.1/client/jmx-
invoker-adaptor-client.jar
;mereon-um/ipunity_web_classes/classes12.jar;mereon-um/ipunity_web_classes/=
ipunity_api.jar;mereon-um/ipunity_web_classes/servlet.jar;mereon-um/ipunity=
_web_classes/um.jar;mereon-um/ipunity_web_classes/ipunity_fw.jar;mereon-um/=
ipunity_web_classes/activation.jar;mereon-um/ipunity_web_classes/ipucommon.=
jar;mereon-um/ipunity_web_classes/xerces.jar;mereon-um/ipunity_web_classes/=
mail.jar;mereon-um/ipunity_web_classes/xalan.jar;mereon-um/ipunity_web_clas=
ses/jazzy-
core.jar;mereon-um/ipunity_web_classes/UM_3_1_5_1_webmail_classes.jar;iw_ip=
u.jar;"
/>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <S
v=3D"/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I>
Aug 31 13:07:57 JavaBridge ERROR: An exception occured: java.io.IOException=
:
Could not open jar file mereon-um/jboss-4.0.1/client/jnp-client.jar, reason=
:
No such file or directory
java.io.IOException: Could not open jar file mereon-um/jboss-4.0.1
/client/jnp-client.jar, reason: No such file or directory
at php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(
DynamicJavaBridgeClassLoader.java:103)
at php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java
:164)
at php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:113=
)
at php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:59)
at php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath=
(
DynamicJavaBridgeClassLoader.java:71)
at php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPat=
h
(DynamicJavaBridgeClassLoader.java:82)
at php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath=
(
SimpleJavaBridgeClassLoader.java:147)
at php.java.bridge.JavaBridge.updateJarLibraryPath(JavaBridge.java
:1450)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1104)
at php.java.bridge.Request.handleRequest(Request.java:342)
at php.java.bridge.Request.handleRequests(Request.java:388)
at php.java.bridge.JavaBridge.run(JavaBridge.java:200)
at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java
:66)
Caused by: java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at php.java.bridge.DynamicJavaBridgeClassLoader.doCheckJarFile(
DynamicJavaBridgeClassLoader.java:109)
at php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(
DynamicJavaBridgeClassLoader.java:101)
... 16 more
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <E v=3D"1" m=3D"
java.lang.Exception: Invoke failed:
[o(JavaBridge)]->updateJarLibraryPath((String)o(String), (String)o(String))=
.
Cause: java.io.IOException: Could not open jar file mereon-um/jboss-4.0.1
/client/jnp-client.jar, reason: No such file or directory ...
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0"
m=3D"lastException" p=3D"P" i=3D"7128e8" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <O v=3D"2" p=3D"E"
i=3D"7128e8"/>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0"
m=3D"castToBoolean" p=3D"I" i=3D"ffbf5a58" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <O v=3D"2" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <B v=3D"T" i=3D"ffbf5a=
58"/>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"2" m=3D"getMess=
age"
p=3D"I" i=3D"7186c0" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <O v=3D"3" p=3D"O"
i=3D"7186c0"/>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0" m=3D"getValu=
es"
p=3D"I" i=3D"7186a8" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <O v=3D"3" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I>
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <S v=3D"Invoke failed:
[o(JavaBridge)]->updateJarLibraryPath((String)o(String), (String)o(String))=
.
Cause: java.io.IOException: Could not open jar file mereon-um/jboss-4.0.1
/client/jnp-client.jar, reason: No such file or directory Responsible VM:
1.5.0_06@ht...
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <U v=3D"3" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <U v=3D"1" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <U v=3D"2" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <F p=3D"A" />
Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <F p=3D"A"/>
Lastly, if I move the files to the php.java.bridge.base/lib dir and use the
java_require without the HTTP, I get this:
Aug 31 13:10:02 JavaBridge DEBUG: Socket connection accepted
Aug 31 13:10:02 JavaBridge DEBUG: Starting bridge thread from thread pool
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 START: JavaBridge.run()
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 Request from client with
uid/gid -1/-1
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <I v=3D"0"
m=3D"updateJarLibraryPath" p=3D"I" i=3D"c464d0" >
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"mereon-um/jbo=
ss-
4.0.1/client/jnp-client.jar;mereon-um/jboss-4.0.1/client/axis-ws4ee.jar
;mereon-um/jboss-4.0.1/client/jboss-client.jar;mereon-um/jboss-4.0.1
/client/jbossha-client.jar;mereon-um/jboss-4.0.1
/client/logkit.jar;mereon-um/jboss-4.0.1/client/log4j.jar;mereon-um/jboss-
4.0.1/client/concurrent.jar;mereon-um/jboss-4.0.1/client/jmx-client.jar
;mereon-um/jboss-4.0.1/client/jboss-jsr77-client.jar;mereon-um/jboss-4.0.1
/client/ejb.jar;mereon-um/jboss-4.0.1/client/jboss-deployment.jar
;mereon-um/jboss-4.0.1/client/activation.jar;mereon-um/jboss-4.0.1
/client/jboss-common-client.jar;mereon-um/jboss-4.0.1
/client/wsdl4j.jar;mereon-um/jboss-4.0.1/client/avalon-framework.jar
;mereon-um/jboss-4.0.1/client/jboss-j2ee.jar;mereon-um/jboss-4.0.1
/client/jbosscx-client.jar;mereon-um/jboss-4.0.1/client/jbosssx-client.jar
;mereon-um/jboss-4.0.1/client/jboss-jaxrpc.jar;mereon-um/jboss-4.0.1
/client/jboss-system-client.jar;mereon-um/jboss-4.0.1
/client/getopt.jar;mereon-um/jboss-4.0.1/client/jbossjmx-ant.jar
;mereon-um/jboss-4.0.1/client/jacorb.jar;mereon-um/jboss-4.0.1/client/jboss=
-
ws4ee-client.jar;mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar
;mereon-um/jboss-4.0.1/client/mail.jar;mereon-um/jboss-4.0.1/client/commons=
-
discovery.jar;mereon-um/jboss-4.0.1/client/jbossmq-client.jar
;mereon-um/jboss-4.0.1/client/jaxr-client.jar;mereon-um/jboss-4.0.1
/client/commons-logging.jar;mereon-um/jboss-4.0.1/client/jbossall-client.ja=
r
;mereon-um/jboss-4.0.1/client/jboss-saaj.jar;mereon-um/jboss-4.0.1
/client/jboss-iiop-client.jar;mereon-um/jboss-4.0.1
/client/namespace.jar;mereon-um/jboss-4.0.1/client/jmx-
invoker-adaptor-client.jar
;mereon-um/ipunity_web_classes/classes12.jar;mereon-um/ipunity_web_classes/=
ipunity_api.jar;mereon-um/ipunity_web_classes/servlet.jar;mereon-um/ipunity=
_web_classes/um.jar;mereon-um/ipunity_web_classes/ipunity_fw.jar;mereon-um/=
ipunity_web_classes/activation.jar;mereon-um/ipunity_web_classes/ipucommon.=
jar;mereon-um/ipunity_web_classes/xerces.jar;mereon-um/ipunity_web_classes/=
mail.jar;mereon-um/ipunity_web_classes/xalan.jar;mereon-um/ipunity_web_clas=
ses/jazzy-
core.jar;mereon-um/ipunity_web_classes/UM_3_1_5_1_webmail_classes.jar;iw_ip=
u.jar;"
/>
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <S
v=3D"/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" />
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> </I>
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <N i=3D"c464d0"/>
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <C v=3D"
iwipu.IWIPUMessage" p=3D"I" i=3D"c496d8" />
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> </C>
Aug 31 13:10:02 JavaBridge ERROR: An exception occured:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, see the README section "Java platform issues"
for details.
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, see the README section "Java platform issues"
for details.
at
php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(
JavaBridge.java:477)
at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545)
at php.java.bridge.Request.handleRequest(Request.java:353)
at php.java.bridge.Request.handleRequests(Request.java:388)
at php.java.bridge.JavaBridge.run(JavaBridge.java:200)
at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java
:66)
Caused by: java.lang.NoClassDefFoundError:
com/ipunity/webmail/ejbclient/AdminBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(
SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at php.java.bridge.DynamicClassLoader.loadClass(
DynamicClassLoader.java:372)
at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass(
DynamicJavaBridgeClassLoader.java:291)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at php.java.bridge.SimpleJavaBridgeClassLoader.forName(
SimpleJavaBridgeClassLoader.java:188)
at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495)
... 4 more
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <E v=3D"1" m=3D"
java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause:
java.lang.ClassNotFoundException: Unresolved external reference:
java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. --
Unable to call constructor, ...
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <I v=3D"0"
m=3D"ObjectToString" p=3D"I" i=3D"c3c2d0" />
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <O v=3D"1" />
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"#0
/usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP=
UMessage.php(66):
Java::__construct('iwipu.IWIPUMess...')
#1
/usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP=
UMessage.php(101):
IPUMessage->init()
#2 /usr/local/apache2/htdocs/IntrawayWS/includes/listener.php(2866):
IPUMessage->getMessageList()
#3 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/listener.php(15=
6):
handleReport('1', 0, 0, 0, 0, '<handleReport>?...')
#4 [internal function]: GetCustomReport('key-autogestion...',
'<handleReport>?...')
#5
/usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(361=
7):
call_user_func_array('GetCustomReport', Array)
#6
/usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(330=
7):
soap_server->invoke_method()
#7 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/wsdl.php(1597):
soap_server->service('<?xml version=3D"...')
#8 /usr/local/apache2/htdocs/IntrawayWS/server.php(10):
require_once('/usr/local/apac...')
#9 {main}" />
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> </I>
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <S
v=3D"[o(Exception):"java.lang.Exception: CreateInstance failed: new
iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved
external reference: java.lang.NoClassDefFoundError:
com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call...
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <F p=3D"A" />
Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <F p=3D"A"/>
This kind of problems made me use the HTTP which was the only one I could
make work.
Regards,
Andr=E9s Gattinoni
On 8/31/07, php...@li... <
php...@li...> wrote:
>
> Hi Andr=E9s,
>
>
> > Then the problem should be in the API I'm working with
>
> yes. -- It is unlikely that this is a problem with the PHP/Java Bridge as
> we know that
> there are no memory leaks in the bridge code. This means that the leak
> must be in
> your code or in one of the libraries you use.
>
> Any of the jar libraries you use can cause this. Isn't it possible to sen=
d
> some test code so that we can reproduce this problem.
>
>
> > java_require("http://.../jnp-client.jar;http://...");
>
> BTW: Why do you fetch the jar files from a remote HTTP server. Isn't it
> possible to
> keep them in a local directory, for example in php.java.bridge.base/lib o=
r
> in java.ext.dirs?
>
>
> Regards,
> Jost Boekemeier
>
>
>
> Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
> http://de.yahoo.com/set
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2007-08-31 16:30:23
|
Hi Andrés,
> Then the problem should be in the API I'm working with
yes. -- It is unlikely that this is a problem with the PHP/Java Bridge as we know that
there are no memory leaks in the bridge code. This means that the leak must be in
your code or in one of the libraries you use.
Any of the jar libraries you use can cause this. Isn't it possible to send
some test code so that we can reproduce this problem.
> java_require("http://.../jnp-client.jar;http://...");
BTW: Why do you fetch the jar files from a remote HTTP server. Isn't it possible to
keep them in a local directory, for example in php.java.bridge.base/lib or in java.ext.dirs?
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2007-08-30 13:01:51
|
Jost, thanks for your quick response as usual. > it seems that one of your classes (candidates are logger, util/debug classes) keeps a reference to one of the classes loaded via the dynamic loader forever, so that the VM cannot release them. Then the problem should be in the API I'm working with, because my classes are quite simple. They just call the methods of the API and work for me as = a clearer interface to call from PHP. However the API seems to be working fin= e for other people and I should assume that they don't have problems of this sort. I will read the article you suggested and I'm posting the report on SourceForge. By installing an application server or servlet engine you mean installing Tomcat? (I apologize for my ignorance but I haven't worked much with Java and JSP). Can you send me an article that explains how to do this shift? The problem is that the application is on its latest stages of development and the hardware and server configuration has been already approved and I'm not sure if they will like very much to reinstall the web servers at this stage. It's not my call at least. Thanks, Regards, Andr=E9s Gattinoni On 8/30/07, php...@li... < php...@li...> wrote: > > Hi Andr=E9s, > > > > java.lang.OutOfMemoryError: PermGen space > > it seems that one of your classes (candidates are logger, util/debug > classes) keeps a reference to > one of the classes loaded via the dynamic loader forever, so that the VM > cannot release them. > > Please see our FAQ how to debug an OutOfMemoryError. A description how to > debug class related > memory leaks please see > > http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded > > > Can you please open a problem report (please use > http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3) and > attach some code so that > we can reproduce this problem? > Please also specify which java version you use. > > We'll look at this issue asap. > > > As a workaround please use a servlet engine or application server. -- Thi= s > might not solve your > problem, though, as your application server might report the same error i= f > you deploy/undeploy > your application more than once. -- Do you use seam? > > > Regards, > Jost Boekemeier > > > > __________________________________ > Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes > mit Anderen zu teilen. www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2007-08-30 11:04:12
|
Hi Andrés, > java.lang.OutOfMemoryError: PermGen space it seems that one of your classes (candidates are logger, util/debug classes) keeps a reference to one of the classes loaded via the dynamic loader forever, so that the VM cannot release them. Please see our FAQ how to debug an OutOfMemoryError. A description how to debug class related memory leaks please see http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach some code so that we can reproduce this problem? Please also specify which java version you use. We'll look at this issue asap. As a workaround please use a servlet engine or application server. -- This might not solve your problem, though, as your application server might report the same error if you deploy/undeploy your application more than once. -- Do you use seam? Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
|
From: <php...@li...> - 2007-08-30 10:50:44
|
Hi Dan,
> The 4.x pure PHP implementation works well with PHP 5.x and i would rather use that one for
> production if possible.
Just use it. Version 4.x can use an advanced protocol which tries to avoid round-trips as much as
possible. This protocol is currently switched off, so there shouldn't be any issues.
> Does anyone have a rough estimate or guess when the current 4.x dev branch will be moved to the
> stable build?
The protocol needs two interfaces in the PHP core; it depends on the release date of PHP 6.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-08-30 05:33:57
|
Hi, =20 I am currently using version 4.2.2 of the PHP/Java Bridge. =20 Does anyone have a rough estimate or guess when the current 4.x dev branch = will be moved to the stable build? =20 The 4.x pure PHP implementation works well with PHP 5.x and i would rather = use that one for production if possible. =20 Thanks, =20 Dan = |
|
From: <php...@li...> - 2007-08-29 21:12:12
|
Hi guys, I'm having problems with memory management. I wrote about this som= e time ago and I was told to send the logs, but by then I was buried with wor= k and by the time I could send the logs, the problem seemed solved. Now I'm having the problem again and I would need some help to see what is eating up the memory (my classes, the API I'm working with, the API, etc.). The application seems to work fine, but after some time it fails to process all my calls. Here is my log. I would appreaciate any input to help me deal with this. Aug 29 15:49:29 JavaBridge DEBUG: Socket connection accepted Aug 29 15:49:29 JavaBridge DEBUG: Starting bridge thread from thread pool Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d START: JavaBridge.run() Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d Request from client with uid/gid -1/-1 Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> <I v=3D"0" m=3D"updateJarLibraryPath" p=3D"I" i=3D"da45d0" > Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> <S v=3D" http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/m= ereon-um/jboss-4.0.1/client/jnp-client.jar;http://10.245.219.118/IntrawayWS= -4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/axis= -ws4ee.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity= /includes/mereon-um/jboss-4.0.1/client/jboss-client.jar;http://10.245.219.1= 18/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.= 1/client/jbossha-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/v= oicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/logkit.jar;http://1= 0.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um= /jboss-4.0.1/client/log4j.jar;http://10.245.219.118/IntrawayWS-4467/clients= /voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/concurrent.jar;ht= tp://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mer= eon-um/jboss-4.0.1/client/jmx-client.jar;http://10.245.219.118/IntrawayWS-4= 467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jboss-= jsr77-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/jboss-4.0.1/client/ejb.jar;http://10.245.219.118/= IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/c= lient/jboss-deployment.jar;http://10.245.219.118/IntrawayWS-4467/clients/vo= icemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/activation.jar;http:= //10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon= -um/jboss-4.0.1/client/jboss-common-client.jar;http://10.245.219.118/Intraw= ayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/= wsdl4j.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity= /includes/mereon-um/jboss-4.0.1/client/avalon-framework.jar;http://10.245.2= 19.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-= 4.0.1/client/jboss-j2ee.jar;http://10.245.219.118/IntrawayWS-4467/clients/v= oicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jbosscx-client.jar;= http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/m= ereon-um/jboss-4.0.1/client/jbosssx-client.jar;http://10.245.219.118/Intraw= ayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/= jboss-jaxrpc.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/jboss-4.0.1/client/jboss-system-client.jar;http:/= /10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-= um/jboss-4.0.1/client/getopt.jar;http://10.245.219.118/IntrawayWS-4467/clie= nts/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jbossjmx-ant.j= ar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/include= s/mereon-um/jboss-4.0.1/client/jacorb.jar;http://10.245.219.118/IntrawayWS-= 4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jboss= -ws4ee-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/i= p-unity/includes/mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar;= http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/m= ereon-um/jboss-4.0.1/client/mail.jar;http://10.245.219.118/IntrawayWS-4467/= clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/commons-di= scovery.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unit= y/includes/mereon-um/jboss-4.0.1/client/jbossmq-client.jar;http://10.245.21= 9.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4= .0.1/client/jaxr-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/v= oicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/commons-logging.jar= ;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/= mereon-um/jboss-4.0.1/client/jbossall-client.jar;http://10.245.219.118/Intr= awayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/clien= t/jboss-saaj.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/jboss-4.0.1/client/jboss-iiop-client.jar;http://1= 0.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um= /jboss-4.0.1/client/namespace.jar;http://10.245.219.118/IntrawayWS-4467/cli= ents/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jmx-invoker-a= daptor-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/i= p-unity/includes/mereon-um/ipunity_web_classes/classes12.jar;http://10.245.= 219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipuni= ty_web_classes/ipunity_api.jar;http://10.245.219.118/IntrawayWS-4467/client= s/voicemail/ip-unity/includes/mereon-um/ipunity_web_classes/servlet.jar;htt= p://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mere= on-um/ipunity_web_classes/um.jar;http://10.245.219.118/IntrawayWS-4467/clie= nts/voicemail/ip-unity/includes/mereon-um/ipunity_web_classes/ipunity_fw.ja= r;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes= /mereon-um/ipunity_web_classes/activation.jar;http://10.245.219.118/Intrawa= yWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipunity_web_classes/= ipucommon.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-un= ity/includes/mereon-um/ipunity_web_classes/xerces.jar;http://10.245.219.118= /IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipunity_web_= classes/mail.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/ipunity_web_classes/xalan.jar;http://10.245.219.1= 18/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipunity_we= b_classes/jazzy-core.jar;http://10.245.219.118/IntrawayWS-4467/clients/voic= email/ip-unity/includes/mereon-um/ipunity_web_classes/UM_3_1_5_1_webmail_cl= asses.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/= includes/iw_ipu.jar;" /> Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> <S v=3D"/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" /> Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> </I> Aug 29 15:49:35 JavaBridge DEBUG: 80aa19@329f3d <-- <N i=3D"da45d0"/> Aug 29 15:49:35 JavaBridge DEBUG: 80aa19@329f3d --> <C v=3D"iwipu.Subscribe= r" p=3D"I" i=3D"d17130" /> Aug 29 15:49:35 JavaBridge DEBUG: 80aa19@329f3d --> </C> Aug 29 15:49:38 JavaBridge FATAL: OutOfMemoryError Aug 29 15:49:38 JavaBridge FATAL: An error occured: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Aug 29 15:49:38 JavaBridge DEBUG: 80aa19@329f3d END: JavaBridge.run() Aug 29 15:50:01 JavaBridge INFO : JavaBridge version : 4.0.1 Aug 29 15:50:01 JavaBridge INFO : JavaBridge logFile : /var/adm/java_bridge.log Aug 29 15:50:01 JavaBridge INFO : JavaBridge default logLevel : 4 Aug 29 15:50:01 JavaBridge INFO : JavaBridge socket : INET_LOCAL:9270 Aug 29 15:50:01 JavaBridge INFO : JavaBridge java.ext.dirs : /usr/jdk/instances/jdk1.5.0/jre/lib/ext Aug 29 15:50:01 JavaBridge INFO : JavaBridge php.java.bridge.base: /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/ Aug 29 15:50:01 JavaBridge INFO : JavaBridge thread pool size: 20 Aug 29 15:50:01 JavaBridge DEBUG: Starting to accept Socket connections Regards, Andr=E9s |
|
From: <php...@li...> - 2007-08-27 18:57:43
|
Hi Jonathan,
> Last night, I discovered that I needed to use java_values() on the byte array
Yes. java_values() converts a Java object to the appropriate PHP value(s), a PHP binary string in
this case.
However, people shouldn't need to write unnatural code; whenever PHP needs to convert a proxy into
a String, it calls $proxy->__toString(). On the server side the method is called
"ObjectToString(value)".
What about adding the following code to JavaBridge.java:
public String ObjectToString(byte[] value) {
// FIXME: use the StringCache
try {
return new String( (byte[])castToString(value), getOptions().getFileEncoding());
} catch (IllegalEncodingException ex) {
// shouldn't happen
Util.printStackTrace(ex);
return new String( (byte[])castToString(value) );
}
}
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2007-08-27 13:05:43
|
Last night, I discovered that I needed to use java_values() on the byte =
array before it was comparable to the original data, i.e.
$file =3D file_get_contents('foo.pdf');
$javaObject->setData($file);
$output =3D $javaObject->getData();
strcmp($file, java_values($output)); // wrapped $output in =
java_values()
Otherwise, it would try to compare $file to =
[[o:array_of_B]:"[B@1c3ee45"].
Thanks for prodding me in the right direction.
Best,
Jonathan
> -----Original Message-----
> From: php...@li...=20
> [mailto:php...@li...]=20
> On Behalf Of php...@li...
> Sent: Saturday, August 25, 2007 7:17 AM
> To: php...@li...
> Subject: Re: [Php-java-bridge-users] Bytes are getting=20
> mistranslated somewhere
>=20
> Hi Jonathan,
>=20
> > $javaObject->setData($file);
> > $output =3D $javaObject->getData();
> > strcmp($file, $output);
> > =09
> > And the bytes coming out of the getData() method are=20
> different from the
> > bytes going into the setData() method. =20
>=20
> there's a test case (tests.php5/binaryData.php) which checks this.=20
>=20
> Can you please check if $file and $output have the same type=20
> and, if that's the case, please set
> the log level to 4 or above, open a new ticket (please use
> http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D
> 679233) and attach the log at the
> end of that ticket. We'll look at this issue asap.
>=20
>=20
> Regards,
> Jost Boekemeier
>=20
>=20
>=20
>=20
>=20
> Wissenswertes f=FCr Bastler und Hobby Handwerker. BE A=20
> BETTER HEIMWERKER! www.yahoo.de/clever
>=20
> --------------------------------------------------------------
> -----------
> 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=20
> 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
>=20
>=20
|
|
From: <php...@li...> - 2007-08-27 10:45:59
|
Hi,
> Could you please clarify whether the php_java.so and dll continue to be
> supported in 4.x, or are they deprecated?
the old C code doesn't exist anymore (exception: PHP4). The new C code is just a thin wrapper
around Java.inc and exists only for backward compatibility.
> If deprecated what do you
> suggest about the performance difference when using Java.inc?
Compared with version 3.0.8 I'd expect it to be a little bit faster -- or slower, depending on the
application.
Regards,
Jost Boekemeier
__________________________________
Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-25 13:26:23
|
Jost: Could you please clarify whether the php_java.so and dll continue to be supported in 4.x, or are they deprecated? If deprecated what do you suggest about the performance difference when using Java.inc? > Earlier versions of the PHP/Java Bridge used to use an extension, coded in C. We have dropped this > C extension in favor of a pure PHP implementation which runs on any platform. |
|
From: <php...@li...> - 2007-08-25 11:17:17
|
Hi Jonathan, > $javaObject->setData($file); > $output = $javaObject->getData(); > strcmp($file, $output); > > And the bytes coming out of the getData() method are different from the > bytes going into the setData() method. there's a test case (tests.php5/binaryData.php) which checks this. Can you please check if $file and $output have the same type and, if that's the case, please set the log level to 4 or above, open a new ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the log at the end of that ticket. We'll look at this issue asap. Regards, Jost Boekemeier Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever |
|
From: <php...@li...> - 2007-08-24 16:00:14
|
I'm afraid I don't see how this helps. (My use of a String was only an
attempt to more simply demonstrate the problem.) I'm using a class that
takes a byte array and gives a byte array:
protected byte[] data;
public byte[] getData() {
return data;
}
public void setData(byte[] value) {
this.data =3D value;
}
And this is basically how I'm testing it:
$file =3D file_get_contents('foo.pdf');
$javaObject->setData($file);
$output =3D $javaObject->getData();
strcmp($file, $output);
=09
And the bytes coming out of the getData() method are different from the
bytes going into the setData() method. Sorry for being so dense on
this.
Thanks,
Jonathan
=20
> -----Original Message-----
> From: php...@li...=20
> [mailto:php...@li...]=20
> On Behalf Of php...@li...
> Sent: Friday, August 24, 2007 11:32 AM
> To: php...@li...
> Subject: Re: [Php-java-bridge-users] Bytes are getting=20
> mistranslated somewhere
>=20
> Hi,
>=20
> > $bytes =3D $string->getBytes();
>=20
> getBytes() depends on the LOCALE. Please see your Java=20
> documentation for details.
>=20
>=20
> Please use $string->getBytes("ENCODING") or use=20
> java_values($string) instead. java_values() uses
> the file encoding set with java_set_file_encoding(), default is UTF-8.
>=20
> Please see the README and the java_set_file_encoding() for details.
>=20
>=20
> Regards,
> Jost Boekemeier
>=20
>=20
>=20
> __________________________________ =20
> Alles was der Gesundheit und Entspannung dient. BE A BETTER=20
> MEDIZINMANN! www.yahoo.de/clever
>=20
> --------------------------------------------------------------
> -----------
> 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=20
> 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
>=20
>=20
|
|
From: <php...@li...> - 2007-08-24 15:31:51
|
Hi,
> $bytes = $string->getBytes();
getBytes() depends on the LOCALE. Please see your Java documentation for details.
Please use $string->getBytes("ENCODING") or use java_values($string) instead. java_values() uses
the file encoding set with java_set_file_encoding(), default is UTF-8.
Please see the README and the java_set_file_encoding() for details.
Regards,
Jost Boekemeier
__________________________________
Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-08-24 15:27:34
|
Greetings, all--
I'm trying to use an object which sets and gets a byte array, and I
noticed that the bytes I put in are different from the bytes I get out.
I was able to narrow down the problem to this brief script:
$file =3D file_get_contents("fw4.pdf");
$string =3D new Java("java.lang.String", $file);
$bytes =3D $string->getBytes();
echo strcmp($file, $bytes);
I read a binary file in (available at
http://www.irs.gov/pub/irs-pdf/fw4.pdf), put it into a Java string, and
spit out the bytes. That comparison returns -1, not equal. (For what
it's worth, when I just echo the file_get_contents(), the data comes out
fully parseable, and identical to the source file.)
I also tried to read the file in with a FileInputStream and output it
immediately to a ByteArrayOutputStream (which takes forever, by the way)
and got the same result:
$phpfile =3D file_get_contents("fw4.pdf");
$file =3D new Java('java.io.File', 'fw4.pdf');
$inputStream =3D new Java('java.io.FileInputStream', $file);
$outputStream =3D new Java('java.io.ByteArrayOutputStream');
=09
while ($inputStream->available()) {
$outputStream->write($inputStream->read());
}
$bytes =3D $outputStream->toByteArray()
=09
echo strcmp($phpfile, $bytes);
Any help on the proper handling of byte arrays would be greatly
appreciated.
Thanks,
Jonathan Abbett
|