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
|
3
|
4
|
5
|
6
(12) |
7
(5) |
8
(6) |
9
(1) |
10
(1) |
11
(4) |
12
(2) |
13
(7) |
14
|
15
(1) |
16
(1) |
17
(2) |
18
(2) |
19
(1) |
20
(2) |
21
(1) |
22
(4) |
23
|
24
(9) |
25
(5) |
26
(4) |
27
(2) |
28
(2) |
29
(1) |
30
(11) |
31
|
|
From: <php...@li...> - 2008-10-24 19:57:11
|
I changed from SDK to JDK (jdk-6u10-linux-i586), but still get error: Oct 24, 2008 5:53:17 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /JavaBridge threw load() exception java.lang.IllegalAccessError: class php.java.script.servlet.PhpScriptTemporarilyOutOfResourcesException cannot access its superclass php.java.script.PhpScriptException at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) |
From: <php...@li...> - 2008-10-24 17:14:27
|
Som more info about the software installed: host:/opt/tomcat/lib # /opt/tomcat/bin/catalina.sh version Using CATALINA_BASE: /opt/tomcat Using CATALINA_HOME: /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME: /usr Server version: Apache Tomcat/6.0.18 Server built: Jul 22 2008 02:00:36 Server number: 6.0.18.0 OS Name: Linux OS Version: 2.4.28-vs1.29 Architecture: i386 JVM Version: 1.6.0_03-b05 JVM Vendor: Sun Microsystems Inc. JavaBridge was correclty deployed from JavaBridge.war under webapps. ----- Original Message ----- From: php...@li... To: php...@li... Sent: Friday, October 24, 2008 2:23 PM Subject: [Php-java-bridge-users] NoClassDefFoundError When Tomcat starts I got an error msg showing JavaBridge was not loaded. Would someone help to find the cause? Oct 24, 2008 12:45:42 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class php.java.servlet.RequestListener java.lang.NoClassDefFoundError: javax/servlet/ServletRequestListener 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$000(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:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Oct 24, 2008 12:45:42 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) Oct 24, 2008 12:45:42 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Oct 24, 2008 12:45:42 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Accessing http://localhost:8080 I get TOmcat homepage, but http://localhost:8080/JavaBridge/ gives me 404 / The requested resource () is not available. When I run "java -jar JavaBridge.jar SERVLET:8080 3 javabridge_servlet.log" everything works fine, but I can't get it to work with Tomcat. May be it's related o Tomcat's permissions, but I'm not sure which settings to change. I already inserted in catalina.policy: grant codeBase "file:${catalina.home}/webapps/JavaBridge/WEB-INF/lib/-" { permission java.security.AllPermission; }; with no success, no matter if I start tomcat with or without "-security" parameter Any clue? ------------------------------------------------------------------------- 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-24 16:24:14
|
When Tomcat starts I got an error msg showing JavaBridge was not loaded. Would someone help to find the cause? Oct 24, 2008 12:45:42 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class php.java.servlet.RequestListener java.lang.NoClassDefFoundError: javax/servlet/ServletRequestListener 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$000(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:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1302) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Oct 24, 2008 12:45:42 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) Oct 24, 2008 12:45:42 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Oct 24, 2008 12:45:42 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Accessing http://localhost:8080 I get TOmcat homepage, but http://localhost:8080/JavaBridge/ gives me 404 / The requested resource () is not available. When I run "java -jar JavaBridge.jar SERVLET:8080 3 javabridge_servlet.log" everything works fine, but I can't get it to work with Tomcat. May be it's related o Tomcat's permissions, but I'm not sure which settings to change. I already inserted in catalina.policy: grant codeBase "file:${catalina.home}/webapps/JavaBridge/WEB-INF/lib/-" { permission java.security.AllPermission; }; with no success, no matter if I start tomcat with or without "-security" parameter Any clue? |
From: <php...@li...> - 2008-10-24 15:09:22
|
Hi, > Thanks for the response but this is just a simple class we > want to run you cannot run a class; not in PHP, not in Java, not even in Lisp. You can run a thread or a process, and you can invoke methods of a class, or you can invoke procedures. But you cannot invoke anything unless you have something to call into. > from a php script that the users will use not us so really > they will not > be able to use the java call unless I scrap the java bridge > all together > and use php console abilities instead. I am sorry, but I don't understand this sentence. > I know how to set the heap space but I wanted to use the > java bridge but The PHP/Java Bridge isn't different. The nice feature of the "continuation-passing style" used by the bridge is that it uses standard (and therefore familiar) technology. Its only problem is that people don't understand it at all; they invent strange workarounds for problems which simply do not exist. > it's starting to look like it doesn't have the capabilities we need it > for in this instance. Well, w/o a proper question or specification, the answer will remain "42" [1]. :) Regards, Jost Boekemeier [1] From Douglas Adam's http://en.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy |
From: <php...@li...> - 2008-10-24 14:36:24
|
Hi Jost Thanks for the response but this is just a simple class we want to run from a php script that the users will use not us so really they will not be able to use the java call unless I scrap the java bridge all together and use php console abilities instead. I know how to set the heap space but I wanted to use the java bridge but it's starting to look like it doesn't have the capabilities we need it for in this instance. Thanks again :) Barry -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: 24 October 2008 15:22 To: php...@li... Subject: Re: [Php-java-bridge-users] JVM Heap Space Hi, just set the -Xmx option. > I do know how to do this on the command line but not with Why don't you set the argument from the command line? Something like: java -Xmx512M -cp yourApp.jar your.App After your app is running, you can communicate with it as usual. Regards, Jost Boekemeier ------------------------------------------------------------------------ - 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-24 14:21:40
|
Hi, just set the -Xmx option. > I do know how to do this on the command line but not with Why don't you set the argument from the command line? Something like: java -Xmx512M -cp yourApp.jar your.App After your app is running, you can communicate with it as usual. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-10-24 14:07:17
|
Hi I'm trying to increase the jvm heap space when my class is run but am having problems trying to do this. Please bare in mind Im very new to Java and even newer to the whole php java bridge arena. I have tried this how ever and wondered if somebody could help me at all. // Set the the jvm memory here $system = new Java("java.lang.System"); $system -> setProperty("java", "Xms512m"); $system -> setProperty("java", "Xmx1024m"); I do know how to do this on the command line but not with in a java class or a php script. Thanks Barry |
From: <php...@li...> - 2008-10-24 11:33:25
|
Hi, if the socket_* are available on all operating systems and in all PHP versions >= 5.1.4, I'd prefer this API over fwrite/fread. However, accoding to my tests on FreeBSD 4, Unix Domain Sockets communication is faster than TCP socket communication, even with ndelay switched off. Regards, Jost Boekemeier --- php...@li... <php...@li...> schrieb am Fr, 24.10.2008: > Von: php...@li... <php...@li...> > Betreff: Re: [Php-java-bridge-users] java.so module purpose? > An: php...@li... > Datum: Freitag, 24. Oktober 2008, 8:19 > I've learned more. My examples were wrong. Updated > examples at > http://vanstaveren.us/~trick/fbsd-nagle-localhost-errorcase/ > > My bug: I was not fread() / socket_read()'ing from the > opened stream > after sending packets from the client. So communication was > one-way. My > hacks on the send buffer size had fooled TCP into doing an > extra round > trip to the server which coincidentally caused the delay as > well. > Updated examples now actually send & recieve the same > packets as your > original java test case and the bug reproduces exactly in > both the > fsockopen and socket_ code. socket_set_option with > TCP_NODELAY works, > for the sockets example only of course. > > My speculations about buffers and fflush() not working were > false, I was > clearly mistaken... > > This means a few things: > 1) I'm now a lot more confident that socket_set_option > is a viable fix, > but I don't know if it's best to move PJB to use > this API just for this > reason. What do you think? My patch was accepted; the > constant > TCP_NODELAY is available as of PHP 5.2.7-RC2. > 2) After quite a bit of research, the streams library > (fsockopen/fwrite/fread) apparently does not expose a > method for me to > set socket options. I'll raise this on the PHP ML to > make sure I've not > missed something obvious. > > Might be viable to write a PHP function > stream_socket_{get,set}_option > which does the same thing as socket_{get,set}_option if > that's the best > route. > > Cheers, > Patrick > > > php...@li... wrote: > > Hi, > > > > it is true that PHP buffers data internally. But as > soon as read() is called on the same stream, the outgoing > data is flushed. The problem is really the "ack > delay" caused by BSD's socket implementation. > > > > I suggest to discuss this on the BSD or PHP mailing > list, as this affects all PHP applications running on BSD, > not only the PHP/Java Bridge. > > > > > > Regards, > > Jost Boekemeier > > > > > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > > > -- > Patrick "Trick" van Staveren > http://trick.vanstaveren.us > > > ------------------------------------------------------------------------- > 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-24 06:19:25
|
I've learned more. My examples were wrong. Updated examples at http://vanstaveren.us/~trick/fbsd-nagle-localhost-errorcase/ My bug: I was not fread() / socket_read()'ing from the opened stream after sending packets from the client. So communication was one-way. My hacks on the send buffer size had fooled TCP into doing an extra round trip to the server which coincidentally caused the delay as well. Updated examples now actually send & recieve the same packets as your original java test case and the bug reproduces exactly in both the fsockopen and socket_ code. socket_set_option with TCP_NODELAY works, for the sockets example only of course. My speculations about buffers and fflush() not working were false, I was clearly mistaken... This means a few things: 1) I'm now a lot more confident that socket_set_option is a viable fix, but I don't know if it's best to move PJB to use this API just for this reason. What do you think? My patch was accepted; the constant TCP_NODELAY is available as of PHP 5.2.7-RC2. 2) After quite a bit of research, the streams library (fsockopen/fwrite/fread) apparently does not expose a method for me to set socket options. I'll raise this on the PHP ML to make sure I've not missed something obvious. Might be viable to write a PHP function stream_socket_{get,set}_option which does the same thing as socket_{get,set}_option if that's the best route. Cheers, Patrick php...@li... wrote: > Hi, > > it is true that PHP buffers data internally. But as soon as read() is called on the same stream, the outgoing data is flushed. The problem is really the "ack delay" caused by BSD's socket implementation. > > I suggest to discuss this on the BSD or PHP mailing list, as this affects all PHP applications running on BSD, not only the PHP/Java Bridge. > > > Regards, > Jost Boekemeier > > > > > > ------------------------------------------------------------------------- > 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 > -- Patrick "Trick" van Staveren http://trick.vanstaveren.us |
From: <php...@li...> - 2008-10-22 07:54:46
|
Hi, > even using fflush to try > and force it to send a packet.) Jost, do you have some PHP code that > can reproduce this bug? Are you sure. We use fflush() to send out the header immediately so that the back-end can set up the ContextRunner. I am sure that this worked. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-10-22 07:37:47
|
Hi, it is true that PHP buffers data internally. But as soon as read() is called on the same stream, the outgoing data is flushed. The problem is really the "ack delay" caused by BSD's socket implementation. I suggest to discuss this on the BSD or PHP mailing list, as this affects all PHP applications running on BSD, not only the PHP/Java Bridge. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-10-22 04:57:24
|
Sorry, seems my attachments were stripped. Files available at: http://vanstaveren.us/~trick/fbsd-nagle-localhost-errorcase/ Cheers, Patrick php...@li... wrote: > [Sorry to hijack this thread, just replying from a proper email > account as my @mintel.com account is using Lotus Notes] > > Alright, I've made some good progress here in understanding this bug: > > * Grabbed & compiled the test code as on the FreeBSD ML. Bug > reproduced. Also produced a client fix within the java code using > Socket::setTcpNoDelay(true) to bypass Nagle's Algorithm and it proves > that this is the socket option that is not being automatically set. > * Split out the test code into two pieces: a java server which listens > for the packet [TestServ.class], java code to act as a client > [TestClient.class] and PHP code which does the client end. I ended up > with two PHP implementations in an attempt to reproduce the bug: > One) which uses fsockopen(...) which is the same socket method that > PJB's PHP library uses. I cannot get this to trigger Nagle's > Algorithm. Inspection using tcpdump shows that the socket created > with fsockopen is buffered, so two calls to fwrite (one with a single > byte, one with 50 bytes) end up in a single packet as it waits to send > data until the socket is closed. Code attached [fsockopen-client.php] > Two) which uses the socket_* functions in the PHP Socket extension and > a hacky call to socket_set_option to shrink the send buffer size to 1 > before the first packet ("@") and then expand the buffer size to 51 > bytes for the second packet. tcpdump inspection shows that it doesn't > produce the exact same size packets as the java code, but it > definitely triggers Nagle's Algorithm and the slowdown is roughly the > same as the java test client. Code attached [sockets-client.php] > > From there, I sought out to set TCP_NODELAY in PHP: > * Took a look around the PHP source code in ext/sockets/sockets.c:500+ > where the socket options are set. The PHP constants are [naturally] > the same value as whatever the local system has defined for the > kernel's integer value of the constant. TCP_NODELAY on FreeBSD is > 0x01. I added a function call to my sockets-client.php before sending > a packet like: > socket_set_option($sock, SOL_TCP, 0x01, 1); // disable Nagle's Algorithm > ...and it works like a charm. Performs like it should. > * I've patched sockets.c in PHP and recompiled, and now have > TCP_NODELAY available in my sockets extension. Am submitting this > patch to PHP for inclusion. Can now do: > socket_set_option($sock, SOL_TCP, TCP_NODELAY, 1); // disable Nagle's > Algorithm > ...and again, works like a charm. > > Importantly, from the PJB angle: I cannot reproduce the bug with > Nagle's Algorithm using the fsockopen socket method (even using fflush > to try and force it to send a packet.) Jost, do you have some PHP > code that can reproduce this bug? I'm really curious. I'm tempted to > say that the buffering used by fsockopen will dodge this bug, but I > don't know for sure. I'm also wondering if the buffering used by > fsockopen might actually be incurring an unnecessary (albeit minor) > performance penalty on PJB and if the sockets functions might be a > wiser choice. I'm no expert here. > > The patch I've written to make TCP_NODELAY available in PHP will fix > the bug if we're ever communicating using the sockets extension, but > we're using fsockopen. It's still worth a submit as it might be > useful. I don't know anything about the internals of fsockopen (I'll > give the code a read.) Furthermore there's no method that I can see > to set socket options on a stream opened by fsockopen. > > Sorry if this is a lot to digest. Let me know what your thoughts are > and most importantly, if you have a way to reproduce this bug using > fsockopen in PHP (and thus something that will actually affect PJB.) > > Thanks for all your help! > > Patrick > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 > -- Patrick "Trick" van Staveren http://trick.vanstaveren.us |
From: <php...@li...> - 2008-10-22 02:53:35
|
[Sorry to hijack this thread, just replying from a proper email account as my @mintel.com account is using Lotus Notes] Alright, I've made some good progress here in understanding this bug: * Grabbed & compiled the test code as on the FreeBSD ML. Bug reproduced. Also produced a client fix within the java code using Socket::setTcpNoDelay(true) to bypass Nagle's Algorithm and it proves that this is the socket option that is not being automatically set. * Split out the test code into two pieces: a java server which listens for the packet [TestServ.class], java code to act as a client [TestClient.class] and PHP code which does the client end. I ended up with two PHP implementations in an attempt to reproduce the bug: One) which uses fsockopen(...) which is the same socket method that PJB's PHP library uses. I cannot get this to trigger Nagle's Algorithm. Inspection using tcpdump shows that the socket created with fsockopen is buffered, so two calls to fwrite (one with a single byte, one with 50 bytes) end up in a single packet as it waits to send data until the socket is closed. Code attached [fsockopen-client.php] Two) which uses the socket_* functions in the PHP Socket extension and a hacky call to socket_set_option to shrink the send buffer size to 1 before the first packet ("@") and then expand the buffer size to 51 bytes for the second packet. tcpdump inspection shows that it doesn't produce the exact same size packets as the java code, but it definitely triggers Nagle's Algorithm and the slowdown is roughly the same as the java test client. Code attached [sockets-client.php] From there, I sought out to set TCP_NODELAY in PHP: * Took a look around the PHP source code in ext/sockets/sockets.c:500+ where the socket options are set. The PHP constants are [naturally] the same value as whatever the local system has defined for the kernel's integer value of the constant. TCP_NODELAY on FreeBSD is 0x01. I added a function call to my sockets-client.php before sending a packet like: socket_set_option($sock, SOL_TCP, 0x01, 1); // disable Nagle's Algorithm ...and it works like a charm. Performs like it should. * I've patched sockets.c in PHP and recompiled, and now have TCP_NODELAY available in my sockets extension. Am submitting this patch to PHP for inclusion. Can now do: socket_set_option($sock, SOL_TCP, TCP_NODELAY, 1); // disable Nagle's Algorithm ...and again, works like a charm. Importantly, from the PJB angle: I cannot reproduce the bug with Nagle's Algorithm using the fsockopen socket method (even using fflush to try and force it to send a packet.) Jost, do you have some PHP code that can reproduce this bug? I'm really curious. I'm tempted to say that the buffering used by fsockopen will dodge this bug, but I don't know for sure. I'm also wondering if the buffering used by fsockopen might actually be incurring an unnecessary (albeit minor) performance penalty on PJB and if the sockets functions might be a wiser choice. I'm no expert here. The patch I've written to make TCP_NODELAY available in PHP will fix the bug if we're ever communicating using the sockets extension, but we're using fsockopen. It's still worth a submit as it might be useful. I don't know anything about the internals of fsockopen (I'll give the code a read.) Furthermore there's no method that I can see to set socket options on a stream opened by fsockopen. Sorry if this is a lot to digest. Let me know what your thoughts are and most importantly, if you have a way to reproduce this bug using fsockopen in PHP (and thus something that will actually affect PJB.) Thanks for all your help! Patrick -- Patrick "Trick" van Staveren http://trick.vanstaveren.us |
From: <php...@li...> - 2008-10-21 14:40:18
|
Hi, FreeBSD uses the "Nagle Algorithm" for local TCP sockets. Since PHP has no API to set NDELAY, local TCP socket communication is useless on BSD. A test program which should reproduce this bug is here: => http://lists.freebsd.org/pipermail/freebsd-bugs/2006-April/018144.html If you want to use a local "Unix Domain Socket" channel, you must define a procedure which returns the socket string (e.g.: /tmp/socket). If you return a string, a Unix Domain Socket is used, if you return a number, a local TCP socket is used. See the last 3 lines of the Mono.inc for an example. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-10-20 23:47:39
|
Hi again, So I'm trying to reproduce this bug with java bridge on FreeBSD not cooperating over a localhost TCP socket (mentioned in README on line 621-646.) I can't seem to reproduce it. Originally I had been compiling java-bridge so that we could run our daemon as follows: /usr/local/lib/php/20060613/RunJavaBridge /usr/local/bin/java -Djava.library.path=/usr/local/lib/php/20060613 -Djava.class.path=/usr/local/lib/php/20060613/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bride.base=/usr/local/lib/php/20060613 php.java.bridge.Standalone LOCAL:/tmp/php-java-bridge.sock 1 /var/log/java-bridge.log ...so that we can listen on a Unix Domain Socket. This produces a java bridge which works fine. I've now tried just downloading the binary version of java-bridge, extracting, and simply running: java -jar JavaBridge.jar SERVLET_LOCAL:8080 Then running a handful of test scripts over localhost against it. This should reproduce the FreeBSD bug with repeated requests going slowly due to nagle's algorithm, correct? In particular I've run the sample speed check code mentioned in the FAQ as below: <?php $buf=new java("java.lang.StringBuffer"); $i=0; while($i<400000) { $i=$i+1; $buf->append($i); } print $buf->length() . "\n"; ?> It runs in ~14-16 seconds depending on which of my test hosts I use, so clearly is not being slowed down. Some are running FreeBSD 6.2 w/ diablo-jdk 1.5; some are running FreeBSD 7.0 w/ Sun's 1.5 jdk. My questions is: does anyone know of a specific test case I can run to reproduce the supposed bug? FreeBSD version, PJB version, actual code, etc. I'm not convinced that this bug actually exists, but I'm happy to be told how I'm doing this wrong :) Just trying to sort this out so I can confidently deploy the latest version of PJB. Thanks, Patrick |---------+-------------------------------------------> | | php...@li...ur| | | ceforge.net | | | | | | 10/20/2008 11:05 AM | | | Please respond to | | | php-java-bridge-users | | | | |---------+-------------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: php...@li... | | cc: | | Subject: Re: [Php-java-bridge-users] java.so module purpose? | >------------------------------------------------------------------------------------------------------------------------------| Hi, > pure-PHP implementation is the way to go, and the java.so > module no longer provides any [...] functionality Youre right. java.so and php_java.dll are completely obsolete. > we launch one from a rc script.) Jost you have mentioned > that the module provides a workaround for BSD systems Java doesnt support Unix Domain Sockets, if you want to use the LOCAL:/tmp/socket channel, you need the natcJavaBridge.so JNI library. Please see the FreeBSD section from the README. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com ------------------------------------------------------------------------- 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 http://www.mintel.com providing insight + impact Chicago Office: Mintel International Group Ltd (Mintel) 351 Hubbard Street, Floor 8 Chicago, IL 60610 USA Tel: 312 932 0400 Fax: 312 932 0469 London Office: Mintel International Group Ltd (Mintel) 18-19 Long Lane London EC1A 9PL UK Tel: 020 7606 4533 Fax: 020 7606 5932 Notice ******** This email may contain information that is privileged, confidential or otherwise protected from disclosure. It must not be used by, or its contents copied or disclosed to, persons other than the addressee. If you have received this email in error please notify the sender immediately and delete the email. Any views or opinions expressed in this message are solely those of the author, and do not necessarily reflect those of Mintel. No Mintel staff are authorised to make purchases using email or over the internet, and any contracts so performed are invalid. Warning ********** It is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect their systems or data. Please carry out such virus and other checks, as you consider appropriate. |
From: <php...@li...> - 2008-10-20 16:07:05
|
Hi, > pure-PHP implementation is the way to go, and the java.so > module no longer provides any [...] functionality Youre right. java.so and php_java.dll are completely obsolete. > we launch one from a rc script.) Jost you have mentioned > that the module provides a workaround for BSD systems Java doesnt support Unix Domain Sockets, if you want to use the LOCAL:/tmp/socket channel, you need the natcJavaBridge.so JNI library. Please see the FreeBSD section from the README. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2008-10-19 20:28:22
|
So I'm in the process of upgrading our systems from running PJB 4.0.8 on FreeBSD 6.2 to 5.3.2.1.1 on FreeBSD 7.0 and finally actually testing our code out now that I have it working on amd64. I've read the full NEWS file and the FAQ, and it seems these days the pure-PHP implementation is the way to go, and the java.so module no longer provides any of the functionality that is in Java.inc. So I have to ask the obvious question: what functionality does the java.so module provide, other than the ability to auto-start a PJB server (which we're not using; we launch one from a rc script.) Jost you have mentioned that the module provides a workaround for BSD systems which have a bug in that they do not set NDELAY on loopback sockets...but it seems we have to use the pure-PHP implementation anyway, so there's no C code involved anyway (and all this JNI stuff doesn't matter.) I've tested 5.3.2.1.1 using the pure-PHP implementation and running a PJB server on a unix socket, and it appears to work fine. I'm not sure yet, but it's possible that the issue with FreeBSD not setting the NDELAY flag on localhost connections may have been fixed in FreeBSD 7.0 from 6.2. I'm interested in removing the dependency on the java.so module if possible. It's been haunting us for the past year as it triggers a bug with PHP on FreeBSD where PHP at the command line segfaults while unloading modules. Thanks, Patrick van Staveren http://www.mintel.com providing insight + impact Chicago Office: Mintel International Group Ltd (Mintel) 351 Hubbard Street, Floor 8 Chicago, IL 60610 USA Tel: 312 932 0400 Fax: 312 932 0469 London Office: Mintel International Group Ltd (Mintel) 18-19 Long Lane London EC1A 9PL UK Tel: 020 7606 4533 Fax: 020 7606 5932 Notice ******** This email may contain information that is privileged, confidential or otherwise protected from disclosure. It must not be used by, or its contents copied or disclosed to, persons other than the addressee. If you have received this email in error please notify the sender immediately and delete the email. Any views or opinions expressed in this message are solely those of the author, and do not necessarily reflect those of Mintel. No Mintel staff are authorised to make purchases using email or over the internet, and any contracts so performed are invalid. Warning ********** It is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect their systems or data. Please carry out such virus and other checks, as you consider appropriate. |
From: <php...@li...> - 2008-10-18 12:44:38
|
Hi again, > However, I was wondering whether it is possible to get back > objects without having to alter the PHP code. it is certainly possible to "magically" wrap and unwrap PHP objects. I understand that this may become a portability issue, provided that there will be more than PHP/Java JSR 223 binding which wraps/unwraps PHP objects automatically. But since such an alternative binding does not exist yet, we will keep java_closure() and java_values(). Any good PHP/Java binding will not wrap/unwrap PHP objects automatically, because this will become a major performance issue, even for a non-remoting script engine. Furthermore with auto-unwrapping enabled the following code will fail: $buf = new java("java.util.StringBuffer", "1234567890") $str = $buf->toString() $str = $str->substring(1,5) will fail because str is a PHP $str = $str->substring(2) string, not a Java string anymore Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2008-10-18 12:40:37
|
Hi, > function f(){ > $t=new c(); > return $t; Please either re-check the java_closure() documentation and/or the JSR 223 API documentation. Either change the code to return java_closure($t) or use the standard JSR 223 API to create a Java interface for the PHP object $t and return the generated interface: http://php-java-bridge.sourceforge.net/pjb/server/documentation/API/javax/script/Invocable.html#getInterface(java.lang.Object, java.lang.Class) Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2008-10-17 22:04:05
|
Hi, I am attempting to call PHP from a JAVA application where the invocation returns a PHP object. The result is that there is no response coming across from the bridge, and the JAVA application seems to just continue aimlessly. My JAVA code is: ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine e = manager.getEngineByName("php-invocable"); java.io.File sourceFile = new java.io.File("c:/test.php"); java.io.FileReader fr = new java.io.FileReader(sourceFile); e.eval(fr); Invocable i = (Invocable) e; try { String t = (String) i.invokeFunction("f", new Object[] {}); System.out.println("test 1 okay || " + t); } catch (Throwable ex) { ex.printStackTrace(); System.exit(2); } The PHP code (just a simple example) called is in a text file and is as follows: <?php function f(){ $t=new c(); return $t; } class c{ function p(){ return 'p ok'; } } ?> Is it possible to make a call from JAVA like this over the bridge that gets back the PHP object 't' of class 'c' (more in general, to have a non-standard PHP object returned to JAVA)? If so, how? And also, of what form is the object that is returned? In the end I would like to get back an object of class 'c', so I can call its function 'p' as a normal JAVA method. Pls note by the way that calling the php code directly in an eval statement in the JAVA application leads to the same issue. I am aware that I can simply register a new object of class c in the php by including: java_context()->setAttribute('c', java_closure(new c()), 100); and then call the function 'p' via the invokeMethod method in JAVA. However, I was wondering whether it is possible to get back objects without having to alter the PHP code. Thanks for any insight. Bart Orriens |
From: <php...@li...> - 2008-10-17 15:57:17
|
Hi, > Does the PHP Java Bridge use SOAP11 or SOAP12? None. > Is it somehow configurable? Please check this with the APP Server vendor, which has probably some kind of Soap library integrated. If (upsilon)u use Suns APP Server, the soap version is the latest. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2008-10-16 15:03:44
|
Does the PHP Java Bridge use SOAP11 or SOAP12? Is it somehow configurable? |
From: <php...@li...> - 2008-10-15 10:42:56
|
Hi, sorry, but I don't understand your code at all. Frankly, a starting process which terminates immediately after setting its environment is simply nonsense. Please read Rochkind's "programming in the unix environment" or Kernighan/Pike "unix programming environment" for details how exec works. However, please re-read the INSTALL.STANDALONE document, it describes exactly how to modify your application to enable PHP support for it; you only need to add a socket listener and then communicate with your running application through the php-java-bridge socket connection. That's only 3 lines of code. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-10-13 20:08:30
|
hello, Find here enclose a code exemple : <? require_once 'Java.inc'; // créer une instance de la classe Java java.lang.System dans PHP putenv("XAPPLRESDIR=/opt/matlab/X11/app-defaults"); putenv("LD_LIBRARY_PATH=".getenv('LD_LIBRARY_PATH').":/opt/matlab/sys/os/glnxa64/:/opt/matlab/bin/glnxa64/:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/native_threads:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/server:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64"); exec("export LD_LIBRARY_PATH=".getenv('LD_LIBRARY_PATH').":/opt/matlab/sys/os/glnxa64/:/opt/matlab/bin/glnxa64/:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/native_threads:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/server:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64"); exec("export XAPPLRESDIR=/opt/matlab/X11/app-defaults"); define("XAPPLRESDIR","/opt/matlab/X11/app-defaults"); define("LD_LIBRARY_PATH",getenv('LD_LIBRARY_PATH').":/opt/matlab/sys/os/glnxa64/:/opt/matlab/bin/glnxa64/:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/native_threads:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64/server:/opt/matlab/sys/java/jre/glnxa64/jre1.6.0/lib/amd64"); $test = java_require("file:/home/bidsgui/java/bidsgui.jar;file:/opt/matlab/toolbox/javabuilder/jar/javabuilder.jar;file:/home/bidsgui/java/test_myplus.jar" ); /* Create new magic object */ $thePlus = new Java( 'testMatlab' ); /* Compute plus */ $result = $thePlus->wrMyplus (1,2 ); print ( $result ); ?> This code is using java class exported from Matlab in a php script. but this code does not work, because the environnement variable are not recocgnise by javabuilder.jar. regards David php...@li... a écrit : > Hi David, > > >> Well I'm starting using php-java-bridge under linux. >> > > I assume that you don't want to use Java. The linux binary is a native binary and has been compiled against the standard library path, which is /usr/lib. However, I doubt that matlab will work with GNU Java. > > Please use a real Java implementation instead. > > > >> When I implement Matlab Java export in Java, there is no >> problem, after >> I have define LD_LIBRARY_PATH with "export". >> > > Fine. > > > > >> indicating that it does not find Matlab PATH. >> > > Well, just start a real JVM and set the LD_LIBRARY_PATH before starting your Java application. After that you can call your app methods from PHP, as usual. > > > >> However, I try "export", php putenv function and >> exec() without success. >> > > I don't understand. There is no putenv() procedure in Java, so java("java.lang.System")->putenv(...) will almost certainly not work. > > > Regards, > Jost Boekemeier > > > > > > > ------------------------------------------------------------------------- > 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-13 15:25:21
|
Hi, > # WARNING: Do not disable the security manager unless you > understand the consequences! Don't use the debian-patched tomcat, unless you understand the consequences. :) > Can someone please explain what the consequences of this is It forbits access to PHP. However, if you use the debian-patched tomcat, you must fix more than just this setting. For example debian starts tomcat using a user-switch, leaving all environment variables untouched. This means that user.home points to /root (!) even though tomcat is running as user tomcat. Please either use Andre's PHP/Java Bridge debian port or install a standard tomcat download from http://tomcat.apache.org. Regards, Jost Boekemeier |