You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
(1) |
3
(1) |
|
4
|
5
(3) |
6
(6) |
7
(6) |
8
(10) |
9
(6) |
10
|
|
11
(5) |
12
(5) |
13
(1) |
14
|
15
(2) |
16
(2) |
17
(4) |
|
18
(3) |
19
(3) |
20
(7) |
21
(5) |
22
(7) |
23
(1) |
24
(4) |
|
25
|
26
(3) |
27
(2) |
28
(1) |
29
|
30
|
31
|
|
From: <php...@li...> - 2009-01-09 15:28:22
|
Hi,
> Other JAR's execute OK, why is this an OS issue?
you've said that executing pure Java code hangs your operating system. If this is so, then there's something wront with your OS. -- Maybe you expect that java -jar JavaBridge.jar starts Java as a daemon, that's not what you've asked for.
> The TestInstallation gets the JavaBridge running fine.
Good.
> Does this test need to be passed in order for the Bridge to
> work correctly, or is it OK just deploying the WAR in
> Tomcat?
Simply deploy the war file.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-01-09 15:21:36
|
Hi,
> We have found java_values() method fails in some cases.
> when I try to
> convert a 15 element array, it fails.
if those 15 elements exceed PHP's memory limit, it will fail, yes.
> But when I convert each element by
> calling one by one there is no problem.
This cannot happen. Do you have an example which demonstrates this behaviour?
> I think this is the bug in php-java bridge.
The bridge is more than 5 years old, so I am very certain that this is not a bug in the bridge but rather a bug in your code or in the Java VM (emulation) you use.
Regards,
Jost Boekemeier
|
|
From: <php...@li...> - 2009-01-09 15:15:34
|
Hi, > [[o:array_of_B]:"[B@3a0b2771"] it is an array of class B (whatever B is) rather than a byte array or a String. Please see: echo java_inspect($javaObject); for details. You can convert any java object to a string using java_cast($obj, "S") provided it contains a toString() method. Please see the PHP/Java Bridge API for details: http://php-java-bridge.sourceforge.net/pjb/docs/php-api/index.html Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-01-09 09:08:44
|
Hi,
Other JAR's execute OK, why is this an OS issue?
The TestInstallation gets the JavaBridge running fine.
Does this test need to be passed in order for the Bridge to work correctly, or is it OK just deploying the WAR in Tomcat?
regards
Re: [Php-java-bridge-users] System hangs when starting own JavaBridge.jar
From: <php-java-bridge-users@li...> - 2009-01-08 18:23
Hi,
"java -jar JavaBridge.jar SERVLET_LOCAL:8082 3 JavaBridge.log" the system hangs and the operation won't complete.
if the above command hangs your operating system, please contact your OS vendor.
Regards,
Jost Boekemeier
----- Original Message -----
From: Jonathan Pilling
To: php...@li...
Sent: Thursday, January 08, 2009 2:55 PM
Subject: Re: System hangs when starting own JavaBridge.jar
Hi,
Thanks for the reply.
Sorry, the SERVLET_LOCAL:8084 was a typo, it should have read SERVLET_LOCAL:8082.
So its not that the port isn't free. I've tried the same procedure on many ports, starting with 8084. I tried 8084, 8085, 8086, 8087, 8088, 8089, 8090 and I still get the same behaviour.
Please advise.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi,
> Jan 08 10:17:13 VMBridge INFO : socket : SERVLET_LOCAL:8084
> port INET_LOCAL:8082
Looks like the next free socket is 8084, not 8082. killall -9 java or use a port above 8084.
Regards,
Jost Boekemeier
----- Original Message -----
From: Jonathan Pilling
To: php...@li...
Sent: Thursday, January 08, 2009 10:26 AM
Subject: System hangs when starting own JavaBridge.jar
Hi there,
I followed these instructions from INSTALL.J2EE:
Development
* Extract the JavaBridge.jar from the JavaBridge.war zip file from the PHP/Java Bridge binary ("php-java-bridge*_j2ee.zip") download. For example with the command:
java -classpath JavaBridge.war TestInstallation
Double-click on JavaBridge.jar or type:
java -jar JavaBridge.jar
and click "OK" to start a servlet engine back end for all computers on the local network. Type:
java -jar JavaBridge.jar --help
to see the list of available options.
After running the command "java -classpath JavaBridge.war TestInstallation" I receive:
Starting a simple servlet engine: [/home/java/jre/bin/java, -jar, /home/tomcat/webapps/ext/JavaBridge.jar, SERVLET_LOCAL:8081]
Jan 08 10:08:45 VMBridge INFO : VM : 1.6.0@http://www.ibm.com/
Jan 08 10:08:45 VMBridge INFO : VMBridge version : 5.4.2
Jan 08 10:08:45 VMBridge INFO : logFile :
Jan 08 10:08:45 VMBridge INFO : default logLevel : 3
Jan 08 10:08:45 VMBridge INFO : socket : SERVLET_LOCAL:8081
Jan 08 10:08:45 VMBridge INFO : java.ext.dirs : /home/java/jre/lib/ext
Jan 08 10:08:45 VMBridge INFO : php.java.bridge.base: /root
Jan 08 10:08:45 VMBridge INFO : thread pool size : 20
Jan 08 10:08:45 VMBridge INFO : JavaBridgeRunner started on port INET_LOCAL:8081
Invoking php: [php-cgi, -n, -d, allow_url_include=On, /home/tomcat/webapps/test.php]
Now check the /home/tomcat/webapps/RESULT.html.
Read the INSTALL.J2EE and/or INSTALL.J2SE documents.
The RESULT.html file came out fine. Are there any particluar values I should be looking for apart from all the Java ones at the end of the RESULT.html page?
Next, I did this command "ps aux | grep JavaBridge" and saw that the bridge is running on 8081:
root 2520 0.2 7.2 312964 36792 pts/0 Sl 10:03 0:01 /home/java/jre/bin/java -jar /home/tomcat/webapps/ext/JavaBridge.jar SERVLET_LOCAL:8081
However, if I try to start my own JavaBridge.jar on 8082 using "java -jar JavaBridge.jar SERVLET_LOCAL:8082 3 JavaBridge.log" the system hangs and the operation won't complete. I receive the log which states:
Jan 08 10:17:13 VMBridge INFO : VM : 1.6.0@http://www.ibm.com/
Jan 08 10:17:13 VMBridge INFO : VMBridge version : 5.4.2
Jan 08 10:17:13 VMBridge INFO : logFile : JavaBridge.log
Jan 08 10:17:13 VMBridge INFO : default logLevel : 5
Jan 08 10:17:13 VMBridge INFO : socket : SERVLET_LOCAL:8084
Jan 08 10:17:13 VMBridge INFO : java.ext.dirs : /home/java/jre/lib/ext
Jan 08 10:17:13 VMBridge INFO : php.java.bridge.base: /root
Jan 08 10:17:13 VMBridge INFO : thread pool size : 20
Jan 08 10:17:14 VMBridge INFO : JavaBridgeRunner started on port INET_LOCAL:8082
Even though this says the JavaBridgeRunner started, if I do "ps aux | grep JavaBridge" I see no JavaBridge running on Port 8082, which means it has not started properly.
Please can you advise how to correct this?
Thanks.
This message has been scanned for viruses by MailControl - www.mailcontrol.com
|
|
From: <php...@li...> - 2009-01-09 04:03:06
|
Hi, We have found java_values() method fails in some cases. when I try to convert a 15 element array, it fails. But when I convert each element by calling one by one there is no problem. Then I thought there is not enough memory that is why 15 element array fails, but when I try to convert 30 element array there was no problem. Anybody can tell me what is the reason for this. I think this is the bug in php-java bridge. php-java bridge completely fails in this situation so that it can't throw an exception in this case and looks hang. This causes out http requests remain in open state and increase in memory due to increase in number of http processes and finally server down. So it is causing memory leak in our application. How can I increase memory available for JVM? I have increased it by configuring in /etc/java.sh. I am using Apache 2.3 with php-java bridge 5.2. php-java bridge is starting with Apache. I cant specify xmx value at that time. Is it possible to allocate JVM to php-java bridge explicitly. Can someone help me by giving detailed information? Also, sometimes my php-java bridge looks hang even though I allocated 2GB JVM. Thanks Sareha On Thu, Jan 8, 2009 at 7:43 PM, <php...@li... > wrote: > Hi, > > > There is memory leak > > in php - java bridge. We have the following setup: > > there is no memory leak in the PHP/Java Bridge. > > > > Is there any solution for memory leak in php-java bridge? > > Our FAQ "OutOfMemory Errors" has some hints which should help you to debug > your Java code. > > > Regards, > Jost Boekemeier > > > > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-01-09 01:00:17
|
Hi folks,
I am using the php-java-bridge to make some remote web services calls.
I'm using the webapp version of the bridge, and I have confirmed it is
working (by visiting localhost:8080/JavaBridge/test.php). I am running
Apache Tomcat 5.5.25 (I also tried on tomcat 5.5.17). It is an older
version of the java bridge (I don't know how to tell what version it is,
but the copyright notice only goes to 2007). This code is running on
x86_64 GNU/Linux, with PHP 5.2.6.
The web service returns a set of bytes, and then my php class needs to
write those bytes to a file (it's a PDF or jpg):
-----------------------
$reportBody = $this->retrieveReport($reportFilename);
if(strlen($reportBody) == 0) {
return "ERROR: unable to retrieve report";
}
// write file
$handle = fopen($pdfDirectory . "/" . $reportFilename,"wb");
if(fwrite($handle,$reportBody) == FALSE) {
...
}
-----------------------
Unfortunately, I'm not able to get the bytes to show up. Instead, in
the file, I get this value:
[[o:array_of_B]:"[B@3a0b2771"]
I looked around the mailing list and found this post:
http://sourceforge.net/mailarchive/message.php?msg_id=215BBBD9D2B80E4E98225471640045918A3356%40CHEXV3.CHBOSTON.ORG
which seemed to indicate I should be able to use 'java_values' to decode
this file.
Using java_values doesn't seem to help--I still see the array_of_B value.
Trying to find the length of the bytes:
error_log($reportBody->length);
causes this error:
"PHP Notice: Trying to get property of non-object "
Use a plain old string works fine:
$str = new java("java.lang.String", "hello");
error_log($str);
outputs "hello".
The same code works on another X86_64 server running Tomcat 5.5.17. The
version of JavaBridge.war is, as far as I can tell, the same (it's the
same size). The same web service is being accessed from this server.
The only difference that I can see is that the other has 'java.so'
uncommented in the php.ini file--why would that matter if I'm using the
web version of the bridge?
Any other suggestions would be appreciated. I've googled around, but
there doesn't seem to be much information regarding byte streams passed
between php and java.
Thanks,
Dan
|