ID: 18600 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Java related Operating System: Windows 2000 PHP Version: 4.2.3 New Comment:
I found this problem using Apache 1.x on Win2k. PHP 4.2.3 causes the JVM create failure (although I couldn't get any access violations). Under IIS4 , the access violation causes some serious problems, albeit intermittently. I found that starting small with Java-inclusive scripts allowed some java work to be done (such as retrieving JVM versions, etc). However, when I started some more serious Java work with some custom classes I got both the JVM create failure and an access violation which crashed IIS. A reboot was necessary to bring IIS back up (Win2k wouldn't even let me force kill the process!!). I took a look at the latest snapshot posted below, but this caused an immediate crash in Apache upon starting the service. Any other suggestions? Previous Comments: ------------------------------------------------------------------------ [2002-09-27 12:00:04] [EMAIL PROTECTED] just to add to the list of symptoms. First time I run a script, I get Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0 when the script is ending. The next time I try to load the same script, I get Fatal error: Unable to create Java Virtual Machine in c:\web\qvc\reports\test.php on line 2 win2k, j2sdk1.4, php 4.2.3. Does that help? ------------------------------------------------------------------------ [2002-09-25 05:02:59] [EMAIL PROTECTED] FYI have tried it now on another system under Apache 2 / Windows NT 4. Exactly the same problem: runs for a limited time period then reports "Unable to load virtual machine". Made sure Sablotron is not running also. ------------------------------------------------------------------------ [2002-09-21 13:05:14] [EMAIL PROTECTED] One further comment - just tried is with JRE 1.3.0 - exactly the same problem. ------------------------------------------------------------------------ [2002-09-21 12:56:21] [EMAIL PROTECTED] Experiencing very similar problems to the first posted here - looks like some kind of timeout issue. Running Windows XP, PHP 4.2.2, j2sdk1.4.0_02, Apache/1.3.26 Running the first sample PHP/Java script from the manual, PHP successfully loads the Java Virtual machine straight after an Apache restart. After that I can run the script as long as it was run in roughly the last 30-60 seconds. If I wait longer that this time period, the script can no longer load the JVM. If you want to re-create the PHP environment, I'm using Firepages phpdev5: http://www.firepages.com.au/dev5.htm ini settings; [Java] java.class.path = "c:\phpdev5\php\extensions\php_java.jar;c:\phpdev5\classes" java.home = "C:\Programme\Java\j2sdk1.4.0_02\jre" java.library = "C:\Programme\Java\j2sdk1.4.0_02\jre\bin\server\jvm.dll" java.library.path = "c:\phpdev5\php\extensions" ------------------------------------------------------------------------ [2002-09-09 14:50:46] [EMAIL PROTECTED] Yes, it's PHP. The message shown is similar to 'PHP has encountered an Access Violation at 77FCB2B9'. Nelio ------------------------------------------------------------------------ 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/18600 -- Edit this bug report at http://bugs.php.net/?id=18600&edit=1