#14754 [Fbk->Opn]: java.* configuration values from php.ini lost on subsequent executions
| From: | j dot kase at privador dot com | Date: | Sun, 25 Aug 2002 15:01:58 +0000 |
| Subject: | #14754 [Fbk->Opn]: java.* configuration values from php.ini lost on subsequent executions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17791@lists.php.net to get a copy of this message | ||
ID: 14754
User updated by: j.kase@privador.com
Reported By: j.kase@privador.com
-Status: Feedback
+Status: Open
Bug Type: Java related
-Operating System: Windows 2000 SP2 / Apache 1.3.22
+Operating System: Windows XP Home / Apache 1.3.24
-PHP Version: 4.1.1
+PHP Version: 4.2.1
New Comment:
Tested with the following:
* Windows XP Home
* Apache 1.3.24
* PHP 4.2.1
* Java SDK 1.4.0
The bug is still valid. Actually, even recompiling the Java class is
not necessary - even if the class is run correctly, hitting Refresh in
the browser multiple times (simulating heavy load) eventually causes
the error to persist until Apache restart.
Another observation - I change my class code and recompile, but PHP
still uses the old class method code and returns outdated results,
suggesting some kind of caching is taking place somewhere. I'm not sure
if the two things are related or not.
Previous Comments:
------------------------------------------------------------------------
[2002-08-08 10:08:09] kalowsky@php.net
Is this bug still valid for you in the recent releases?
------------------------------------------------------------------------
[2002-02-28 23:34:33] adam.swick@pantellos.com
I am not sure if this will help you, but I received similar, but
reproducible behavior when performing the following:
1. Load a PHP page in the browser that calls Java -- works fine.
2. Wait a few minutes and refresh the page -- receive "Fatal error:
Unable to create Java Virtual Machine".
3. Restart Apache and move back to step 1.
I noticed that once I changed Apache back to loading the PHP CGI
Binary, the problem went away. There appears to be a bug running
PHP-Java when PHP is loaded as an Apache module.
This was tested on Apache/1.3.20 Server and PHP 4.1.1.
------------------------------------------------------------------------
[2002-02-24 11:44:53] j.kase@privador.com
Installed PHP 4.1.1 and Java(TM) Development Kit 1.2.2_011 from Sun
(filename jdk-1_2_2_011-win.exe).
Problem remains the same - after recompiling Java class I get "Unable
to create Java Virtual Machine". After restarting Apache, it works
again until I recompile Java class.
I am not sure that I have myself configured everything correctly, so
here is the [Java] section from my php.ini just in case.
[Java]
java.class.path = "e:/program
files/php/java/php_java.jar;e:/webs/javaclasses/"
java.home = e:/jdk
java.library = e:/jdk\jre\bin\classic\jvm.dll
java.library.path = "e:/program files/php/extensions;"
------------------------------------------------------------------------
[2002-02-24 06:16:00] yohgaki@php.net
Please test with PHP 4.1.1+JDK 1.2 and report the result back
Please do not forget updating PHP version. Thanks.
------------------------------------------------------------------------
[2001-12-29 12:59:08] j.kase@privador.com
Another note. Users with Linux systems experiencing the same bug
reported receiving errors and successes interchangeably - something
like 3 errors, 1 success, 3 errors, 1 success etc. This is not true for
me - I only keep getting errors until I restart Apache.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14754
--
Edit this bug report at http://bugs.php.net/?id=14754&edit=1