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: Raphael V. <rv_...@os...> - 2005-09-09 09:18:17
|
Hi, I installed php-java-bridge_2.0.8RC2 on Apache Tomcat/5.5.9 on Windows and use it from PHP 5.0.4 on the same machine. While testing the examples I noticed some strange behavior. Scenario: JSP Url: http://localhost:8080/JavaBridge/sessionSharing.jsp PHP Url: http://localhost/JavaBridge/sessionSharing.php If the first hit goes to the PHP-Page it creates a cookie with the following information: name: JSESSIONID value: 84C9FD1F9C6AF4D81AAC24F6395DE10F host: localhost path: / If the next hit goes to the JSP it recognizes the cookie and use the same session as expected. If the first hit goes to the JSP it creates a cookie with a different path: name: JSESSIONID value: B9B7C792CB0242E808789B4DD7CD7A3A host: localhost path: /JavaBridge Now the PHP-Page don't use this cookie and create an new one with path = / and the session will not be shared. Is this a bug in JavaBridge or it is standard behavior of Tomcat? Is there any way to change it? regards, Raphael |
From: Ben G. <be...@ja...> - 2005-09-07 19:03:56
|
Jost Boekemeier wrote: > Hi Ben, > > >>I'd be happy to contribute to a documentation wiki. >>I even have some >>server space to set one up, if need be. > > > that would be great. I'd prefer to keep that separate, > probably outside of sf.net. > Cool. I'll get MediaWiki set up - cycles are a bit short right now, but I should have something next week. Any suggestions on a domain name? Is there anything in particular folks would like to see besides the documentation? I think it'd be nice to have a FAQ and a How-To section with some nice sample code (adding Lucene searches to PHP apps is especially cool). Cheers, -- Ben |
From: Bharath T. <bh...@mv...> - 2005-09-07 17:34:04
|
Yes, I think this would help.=20 Thanks Bharath -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Wednesday, September 07, 2005 1:18 PM To: Bharath Thirunavukkarasu; php...@li... Subject: Ant: RE: RE: [Php-java-bridge-users] Re:trouble getting php java bridge to run under tomcat Hi, > If it is hardcoded then we should remove that and > doc it saying that on > windows the user should set the SystemRoot var Yes, I think that's the easiest solution. I will add a setting to the web.xml and document that this setting is used when java cannot read the SystemRoot environment variable or when the SystemRoot environment variable is not set.=20 That way users can change it the way they want. I will also add a System.properties option, syntax:=20 java -DWindows.SystemDir=3D... which overrides everything else, including the setting from the web.xml. That way your setup program (if you provide one) can start tomcat with the correct SystemDir setting and then write out the correct web.xml for the user. Regards, Jost Boekemeier =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Bharath T. <bh...@mv...> - 2005-09-07 17:32:21
|
Thanks Jost Here is my configuration Windows XP professional SP2 JDK - 1.4.2_05 I will use the work around for the time being Regards Bharath -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Wednesday, September 07, 2005 1:10 PM To: Bharath Thirunavukkarasu; php...@li... Subject: Ant: RE: RE: [Php-java-bridge-users] Re:trouble getting php java bridge to run under tomcat Hi Bharath, which JDK and Windows OS version do you use? I do not understand why some versions of windows require the SystemDir environment variable. There's no reliable way to read or set environment variables from java.=20 I have just tested on several systems, including XP home and win98, none of these need SystemDir. The only system that I know of is XP, but this problem goes away when I install network programs. =20 Maybe it is necessary to set a registry entry which points to the correct SystemDir. I will check this. > Variable was pointing to C:/Windows (the correct > path) but in the later > case > It was pointing to C:/Winnt (a non existent folder > on the machine).=20 In JDK1.4 it is hard-coded. The code which does this (in CGIServlet) looks like this: try { var=3DSystem.getenv("SystemDir"); } catch (Throwable t){} if(var=3D=3Dnull) var=3D"c:/winnt"; The problem is that Sun has introduced getenv() in JDK 1.2, then deprecated it in 1.4 and then un-deprecated it in 1.5 and now recommends this to pass the environment to the sub-process. In other words there is no reliable way to ask for the value of SystemDir in java. I think it is possible to read the registry from jdk1.4. But this will not work either if the registry key (which one?) is missing. I have re-opened the ticked. As a workaround please use Apache/Php/PhpJavaBridge and Tomcat/mod_jk connector. This is described in the INSTALL instructions and in the README. This is also much faster than calling CGI programs or native code from java. Regards, Jost Boekemeier =09 =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-07 17:17:57
|
Hi, > If it is hardcoded then we should remove that and > doc it saying that on > windows the user should set the SystemRoot var Yes, I think that's the easiest solution. I will add a setting to the web.xml and document that this setting is used when java cannot read the SystemRoot environment variable or when the SystemRoot environment variable is not set. That way users can change it the way they want. I will also add a System.properties option, syntax: java -DWindows.SystemDir=... which overrides everything else, including the setting from the web.xml. That way your setup program (if you provide one) can start tomcat with the correct SystemDir setting and then write out the correct web.xml for the user. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-07 17:09:43
|
Hi Bharath, which JDK and Windows OS version do you use? I do not understand why some versions of windows require the SystemDir environment variable. There's no reliable way to read or set environment variables from java. I have just tested on several systems, including XP home and win98, none of these need SystemDir. The only system that I know of is XP, but this problem goes away when I install network programs. Maybe it is necessary to set a registry entry which points to the correct SystemDir. I will check this. > Variable was pointing to C:/Windows (the correct > path) but in the later > case > It was pointing to C:/Winnt (a non existent folder > on the machine). In JDK1.4 it is hard-coded. The code which does this (in CGIServlet) looks like this: try { var=System.getenv("SystemDir"); } catch (Throwable t){} if(var==null) var="c:/winnt"; The problem is that Sun has introduced getenv() in JDK 1.2, then deprecated it in 1.4 and then un-deprecated it in 1.5 and now recommends this to pass the environment to the sub-process. In other words there is no reliable way to ask for the value of SystemDir in java. I think it is possible to read the registry from jdk1.4. But this will not work either if the registry key (which one?) is missing. I have re-opened the ticked. As a workaround please use Apache/Php/PhpJavaBridge and Tomcat/mod_jk connector. This is described in the INSTALL instructions and in the README. This is also much faster than calling CGI programs or native code from java. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Bharath T. <bh...@mv...> - 2005-09-07 15:37:17
|
If it is hardcoded then we should remove that and doc it saying that on windows the user should set the SystemRoot var Regards Bharath -----Original Message----- From: Bharath Thirunavukkarasu=20 Sent: Wednesday, September 07, 2005 10:54 AM To: 'Jost Boekemeier'; php...@li... Subject: RE: RE: [Php-java-bridge-users] Re:trouble getting php java bridge to run under tomcat I have tried the latest build (php-java-bridge_2.0.8RC1.zip) and still running into the same problem Fatal error: php_mod_java(52) system error code: 10106. Could not connect to server. Have you started the java backend (either a servlet engine, an application server, JavaBridge.jar or MonoBridge.exe) and set the java.socketname or java.hosts option?. in C:\sandboxes\mValent3.0\Tomcat 5.0\webapps\JavaBridge\test.php on line 19 I had cleaned up all my old installations restarted the machine and then reinstalled it so there is noway that there was a remnant of the old installation. Now when I ran test.bat things were fine and could see the java system properties printed out but when I tried to browse the test.php through tomcat I ran into the same problem. On a closer look=20 I found that in the case of phpinfo output through test.bat the SYSTEMROOT Variable was pointing to C:/Windows (the correct path) but in the later case It was pointing to C:/Winnt (a non existent folder on the machine). Are we hardcoding this path? Please find both the outputs attached. Regards Bharath=20 =20 -----Original Message----- From: Jost Boekemeier [mailto:jos...@ya...]=20 Sent: Tuesday, September 06, 2005 11:48 AM To: Bharath Thirunavukkarasu Subject: Ant: RE: [Php-java-bridge-users] Re:trouble getting php java bridge to run under tomcat Hi, > Can you please upload the patched version. Need it > urgent.=20 please excuse the delay. I have attached the corrected JavaBridge.war. The full download is called: php-java-bridge_2.0.8RC1.zip. Regards, Jost Boekemeier =09 =09 =09 ___________________________________________________________=20 Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-06 16:49:11
|
Hi, > On a side note, do you think the bridge will ever be > integrated into PHP core? we can think about this when the code is complete, i.e. when Kai's just in time compiler, persistent connections and the new protocol to reduce the number of round trips is in place. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-06 16:44:49
|
Hi Ben, > I'd be happy to contribute to a documentation wiki. > I even have some > server space to set one up, if need be. that would be great. I'd prefer to keep that separate, probably outside of sf.net. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-06 16:30:46
|
Hi Jonathan, > I get a null pointer exception whenever I try to > "put" a session > variable with a null value. Thank you very much for the bug report. The non-j2ee Session (please see http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/server/php/java/bridge/Session.java?rev=1.10&view=markup) is currently backed by a Hashtable. That must be a HashMap, of course[1]. If you have the JavaBridge backend running in eclipse, please change the line protected Hashtable map; to protected HashMap map; I will fix this bug for the official 2.0.8 release. -> PR1283148 (https://sourceforge.net/tracker/index.php?func=detail&aid=1283148&group_id=117793&atid=679233) > behavior? How should one > remove a single variable from the session store? Please use $session->remove($var). Please see http://cvs.sourceforge.net/viewcvs.py/php-java-bridge/php-java-bridge/server/php/java/bridge/ISession.java?view=markup > With that in mind, a full explanation of how to use > the bridge's Java > session store is in order. The java_get_session() invokes JavaBridge.getSession() which returns an ISession (see above). The actual implementation is either the servlet's HttpSessionFacade or our own Session.java, when the backend runs outside of a standard j2ee environment. > scratches the surface. What are all the available > methods? Please see the interface ISession.java above. -> PR1283154 (https://sourceforge.net/tracker/index.php?func=detail&aid=1283154&group_id=117793&atid=679233) > In general, the bridge's documentation could use a > lot of work. I'd be > willing to help flesh it out That would be great. If you want to document the 10 ISession methods, we can give you CVS write account. > Perhaps > using a wiki would help, so it could be more of a > collaborative effort? That's also a good idea. But then we need someone to maintain it. -> PR1283159 (https://sourceforge.net/tracker/index.php?func=detail&aid=1283159&group_id=117793&atid=679233) Regards, Jost Boekemeier [1] When we change from Hashtable to Hashmap, we must do the synchronization ourselfs. I guess that was the reason why I've used a Hashtable... ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Ben G. <be...@ja...> - 2005-09-06 16:24:08
|
Abbett, Jonathan wrote: > I get a null pointer exception whenever I try to "put" a session > variable with a null value. Is this expected behavior? How should one > remove a single variable from the session store? If you look at the code in server/php/java/bridge/Session.java, you'll see that put() expects two objects, so putting "null" will always throw that exception. $session->remove("key") will remove a variable. > With that in mind, a full explanation of how to use the bridge's Java > session store is in order. The code snippet on the website only > scratches the surface. What are all the available methods? So far, > I've encountered isNew(), put(), get(), destroy(), and setTimeout(). > > In general, the bridge's documentation could use a lot of work. I'd be > willing to help flesh it out and make it more formal, though I don't > have a lot of experience documenting open source software. Perhaps > using a wiki would help, so it could be more of a collaborative effort? I'd be happy to contribute to a documentation wiki. I even have some server space to set one up, if need be. The bridge works great, but documentation is definitely on the "Use the source, Luke" side :) Cheers, -- Ben |
From: Ben G. <be...@ja...> - 2005-09-06 16:23:30
|
I just wanted to say thanks for a great piece of software. Being able to leverage the Lucene search engine in our PHP apps has been extremely helpful, and saved us time & money. Keep up the good work! On a side note, do you think the bridge will ever be integrated into PHP core? Cheers, -- Ben |
From: Abbett, J. <Jon...@ch...> - 2005-09-06 15:20:06
|
I get a null pointer exception whenever I try to "put" a session variable with a null value. Is this expected behavior? How should one remove a single variable from the session store? With that in mind, a full explanation of how to use the bridge's Java session store is in order. The code snippet on the website only scratches the surface. What are all the available methods? So far, I've encountered isNew(), put(), get(), destroy(), and setTimeout(). In general, the bridge's documentation could use a lot of work. I'd be willing to help flesh it out and make it more formal, though I don't have a lot of experience documenting open source software. Perhaps using a wiki would help, so it could be more of a collaborative effort? --Jon =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jonathan Abbett Children's Hospital Informatics Program 1 Autumn Street, Fifth Floor Boston, MA 02215 617-355-8334 jon...@ch... http://www.chip.org |
From: Jost B. <jos...@ya...> - 2005-09-03 10:50:10
|
Hi, I have fixed this problem. It turned out that the windsock.dll was not found because the SystemRoot" environment variable was not defined. (I don't understand why windows needs this, isn't SystemRoot always c:/winnt or c:/windows?) I will prepare version 2.0.8pre1 tomorrow which fixes PR 1281189, 1276889, 1275899, 1274526, 1202896 and 1276004. Thank you again for that bug report! Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-03 10:24:21
|
I found this: http://groups.google.de/group/microsoft.public.windowsxp.help_and_support/browse_thread/thread/ee69f0d254417943/3c7eb79ac11223b6?lnk=st&q=WSAEPROVIDERFAILEDINIT&rnum=1&hl=de#3c7eb79ac11223b6 which indicates that this is either a problem with the %PATH%. Or something I do not understand -- what is a "layered provider"? ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Jost B. <jos...@ya...> - 2005-09-03 10:15:40
|
Hi, I will create a ticket for this. > server: Unknown error Fatal error: php_mod_java(52) system error code: 277a. Could not connect to server. Have you started the java backend (either a servlet engine, an application server, JavaBridge.jar or MonoBridge.exe) and set the java.socketname or java.hosts option?. in I:\tomcat\webapps\JavaBridge\test.php on line 19 Windows error code#277a is WSAEPROVIDERFAILEDINIT "The requested service provider could not be loaded or initialized." ?!? The strange thing is that I can only reproduce this on a "naked" XP machine. As soon as I install a network sniffer, the bridge works. Please see PR1281189 (https://sourceforge.net/support/tracker.php?aid=1281189) Thank you very much for the bug report. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Francis L. (QC/EMC) <fra...@er...> - 2005-08-31 14:43:14
|
Hi again ! I sent my email too early in the debug process... I found the problem: I supposed that the jdbc classes were in the jdk jar files, but they aren't. The log file was saying something like: Aug 31 08:10:16 JavaBridge INFO : try to load class com.mysql.jdbc.Driver Class loading error [...] Thanks for your tips! Francis -----Original Message----- From: Kai Londenberg [mailto:K.L...@li...] Subject: Re: [Php-java-bridge-users] jdbc and the bridge >Hi everyone, > >I am using the java-bridge for about 3 months now and it has been very stable, but yesterday I ran in to something really strange. > >In my java files, I create a java.sql.DriverManager object and I play with it. >If I use this object with the java-bridge, it does not complain about anything, but nothing happens in the DB. > >Any Idea about what's happening? >Thanks, Can you give an example, or better yet a test case which shows the problems ? Which version of the php java bridge do you use ? If it's not the latest version, try to update and then check if the problem still occurs. Also, If you can't create a test case outside of your development environment or don't have time for that - try to find out where the problem occurs - if the Java code gets called at all, if an exception occurs. Put the log level of the php-java bridge to 4 or higher and then look at the log whether any problem is reported. |
From: Kai L. <K.L...@li...> - 2005-08-31 08:39:35
|
On Tue, 30 Aug 2005 15:01:25 -0500, you wrote: >Hi everyone, > >I am using the java-bridge for about 3 months now and it has been very = stable, but yesterday I ran in to something really strange. > >In my java files, I create a java.sql.DriverManager object and I play = with it. >If I use this object with the java-bridge, it does not complain about = anything, but nothing happens in the DB. > >Any Idea about what's happening? >Thanks, Can you give an example, or better yet a test case which shows the problems ? Which version of the php java bridge do you use ? If it's not the latest version, try to update and then check if the problem still occurs. Also, If you can't create a test case outside of your development environment or don't have time for that - try to find out where the problem occurs - if the Java code gets called at all, if an exception occurs. Put the log level of the php-java bridge to 4 or higher and then look at the log whether any problem is reported. with best regards, Kai Londenberg ------------------------------- librics GmbH & Co. KG G=F6ttinger Chaussee 115 D-30459 Hannover Tel. +49 511 - 473 88 77 =46ax +49 511 - 473 88 78 mailto: K.L...@li... |
From: Francis L. (QC/EMC) <fra...@er...> - 2005-08-30 20:01:34
|
Hi everyone, I am using the java-bridge for about 3 months now and it has been very stable, but yesterday I ran in to something really strange. In my java files, I create a java.sql.DriverManager object and I play with it. If I use this object with the java-bridge, it does not complain about anything, but nothing happens in the DB. Any Idea about what's happening? Thanks, Francis Leblanc Ericsson Montreal |
From: Jost B. <jos...@ya...> - 2005-08-30 17:51:41
|
Hi Jonathan, --- "Abbett, Jonathan" <Jon...@ch...> schrieb: > The Java sessions I create with java_get_session > seem to disappear > awfully quickly. the default value is (or should be) 1400 seconds. It can be changed with: $session=java_get_session(..) $session->setTimeout(timeout_in_seconds); How fast does the session expire? We've had a bug in 2.0.6 where we passed 1400, but interpreted it as milliseconds. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Abbett, J. <Jon...@ch...> - 2005-08-30 13:58:17
|
The Java sessions I create with java_get_session seem to disappear awfully quickly. How do I set a bigger maximum age for my session store (i.e. 20 minutes)? Thanks, Jon =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jonathan Abbett Children's Hospital Informatics Program 1 Autumn Street, Fifth Floor Boston, MA 02215 617-355-8334 jon...@ch... http://www.chip.org |
From: Jost B. <jos...@ya...> - 2005-08-27 10:17:28
|
Hi Jonathan, > php_mod_java(59): Synchronization problem, rinit > with active connection called. thank you very much for this problem report. Now suddenly PR1202896 ("session still open in rinit") makes sense. The basic problem is the same that Bryan has reported, please see: http://sourceforge.net/mailarchive/forum.php?thread_id=7884155&forum_id=42415) Kai has already explained what what __sleep() means and how to store java objects. During client/server communication both the client and the server build a dictionary of (handle . object) pairs. When you serialize/deserialize a handle without restoring its server-side meaning the server and client suddenly use different dictionaries and very strange things may happen; it is like switching the language in the middle of a conversiation. In a sentence like "hier is gift", the server should better know that "gift" means "poison", otherwise it will get into trouble when the client asks to handle() it. Please use $session=java_get_session(<name>) to store java values. Okay, now how to handle the problem? We could implement the __sleep() and __wakeup() methods and abort script execution if they are called. But I think it shouldn't be too diffcult to implement them correctly: All we need is to move the pair from the globalRef into the session ref when _sleep() is called. __wakeup() is a little bit more complicated because we restore an object which has the old (client-side view) of the object identity and we receive an object from the session ref which has the correct identity. We must "patch" the restored object to contain the correct id and then discard the received object. I have created a ticket for this: PR1274526. In the meantime please use java_get_session() to store your java values. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: Abbett, J. <Jon...@ch...> - 2005-08-26 13:32:16
|
I'm seeing a bunch of strange stuff in my log files, not sure what to = make of it. =20 In my php_errors log file, right when I restart Apache: =20 [26-Aug-2005 08:52:27] PHP Notice: php_mod_java(57): waiting for server = another 14 seconds in Unknown on line 0 =20 =20 In my Apache error log, after I visit a page: =20 [client 10.1.150.118] PHP Fatal error: Exception thrown without a stack = frame in Unknown on line 0 [client 10.1.150.118] PHP Fatal error: php_mod_java(59): = Synchronization problem, rinit with active connection called. Cannot = continue, aborting now. Please report this to: = php...@li... = <mailto:php...@li...> in Unknown on line = 0, referer: http://ajax.ping.chip.org/viewer.php = <http://ajax.ping.chip.org/viewer.php>=20 =20 =20 I'm seeing this in my php-java-bridge.log file: =20 java.lang.NoSuchMethodException: __sleep(). Candidates: [] at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:966) at php.java.bridge.Request.handleRequests(Request.java:190) at php.java.bridge.JavaBridge.run(JavaBridge.java:142) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) It looks like the php-java-bridge log error happens the first time I run = a particular page, then the "exception thrown without a stack frame," = etc. occurs when I try to rerun the page. At this point, my PHP pages = will stop responding until I restart Apache. =20 =20 The code snippet that's (probably) causing the problem: =20 GLOBAL $doctypes; =20 try { $pac =3D getPingActionClient(); $headersResult =3D $pac->readDocumentHeaders(getSessionVar('ticket'), = getSessionVar('username'), null); $documentHeaders =3D $headersResult->getDocumentHeader(); } catch (Exception $e) { log_write("[getDocumentHeaders] ERROR: $e"); log_write("[getDocumentHeaders] Returning null..."); } =20 $menu =3D ''; $buildlist =3D array(); $iter =3D $documentHeaders->iterator(); =20 while ($iter->hasNext()) { $header =3D $iter->next(); $docClass =3D $header->getDocumentClassification(); $urn =3D $docClass->getClassification(); if (isset($doctypes[$urn]) && !in_array($urn, $buildlist)) { $buildlist[] =3D $urn; $menu .=3D createMenuItem($doctypes[$urn]['display_name'], = $doctypes[$urn]['menu_url']) . "/n"; } } =20 It gets a list of "Document Headers," then iterates over them. Not too = complex. I'm using PHP5 with Apache2: full info at = http://ajax.ping.chip.org/info.php <http://ajax.ping.chip.org/info.php>=20 =20 I'm happy to provide more information, just ask. Any and all help is = most appreciated. =20 Thanks, Jon Abbett jon...@ch... |
From: Peter N. <pn...@kr...> - 2005-08-22 20:01:57
|
Hi, Jost Boekemeier schrieb: > Hi, > > a preview version of 2.0.8 is available for download: [...] > (The above download is for windows only, on Linux/Unix > please download the code directly from the CVS > repository: cvs -z3 > -d:pserver:ano...@cv...:/cvsroot/php-java-bridge > co php-java-bridge) OK this is first time I managed to get the .war successful deployed in tomcat4. ;) I just noticed one strange thing in handling the null-object: --------- test.php5/instanceof.php --------- If using *mod_php in apache* (using a browser and point it to tests.php5/instanceof.php) while connecting either via java_socketname=/var/run/.php-java-bridge_socket or via java_server=on $list->add(null) has problems: Fatal error: Uncaught [o:"java.lang.Exception: Invoke failed: [o:"[0, one]"]->add((java.lang.Object)o:"null"). Cause: java.lang.NullPointerException"] thrown in /var/www/lokal/test/php-java-bridge/tests.php5/instanceof.php on line 16 php5-cli does not have this problem for some reason. almost same thing seems to apply to ------ examples/php+jsp/oops.php ----- But this one *neither php5-cli or mod_php* like: error: Uncaught [o:"java.lang.Exception: CreateInstance failed: new java.lang.String(([B)o:"null"). Cause: java.lang.NullPointerException"] thrown in /var/www/lokal/test/php-java-bridge/examples/php+jsp/oops.php on line 6 first one seems kind of strange to me... FYI I am using php5.0.4 Cheers, Peter |
From: Peter N. <pn...@kr...> - 2005-08-22 12:22:08
|
Hi, Peter Niederlag schrieb: [...] > I think it should be possible to set the compiler-version via EXPORT > CC=gcc-3.3 but this seems not to work, probably becaus CC is set to gcc > in the Makefile. Yes, I am a fool. :-< Makefile is created by autoconf/configure whatsoever and of course reflects the the CC,CXX environment vars I do set. Still I think I haven't noticed this before: -----------snipp---------------- configure: WARNING: YOUR GCC INSTALLATION IS BROKEN. It tries to link with the same library for -m32 and -m64 builds. This may result in a "wrong ELF class" error at runtime. Although you can work around this bug at runtime by changing the LD_LIBRARY_PATH, we recommend to re-install the gcc compiler before youcontinue to install the PHP/Java Bridge. ----------snapp------------------ Everything seems to work now using gcc3-3 and g++-3.3 as the libs(java,php5) are all compiled with gcc-3.x. Don't know if it would work with gcc-4.0. Since I use the 'make CFLAGS="-m32"' now probably I shouldn't have any problems but still I'd like to know about that message, which sounds somewhat scaring to me. Cheers, Peter |