ID:               14754
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Java related
 Operating System: Windows XP Home / Apache 1.3.24
 PHP Version:      4.2.1 & 4.3.0-dev
 New Comment:

Some people have suggested that switching to use PHP in CGI-mode
alleviates this problem.  (However, I am unwilling to do this to solve
the problem anyway.)  Does this recommendation maybe shed some light on
the cause?


Previous Comments:
------------------------------------------------------------------------

[2002-11-05 09:58:27] [EMAIL PROTECTED]

I have switched from hotspot jvm to classic jvm but the problem
continues.

------------------------------------------------------------------------

[2002-10-27 12:31:34] [EMAIL PROTECTED]

I have experienced the same problem.
But switched from hotspot jvm to classic
and problem disappeared.
I am using:
php 4.2.1, apache 1.3.xx
Win2k,
php.ini
[Java]
java.class.path = E:\php4.2.1\extensions\php_java.jar
java.home = E:\jdk1.3\jre
java.library = E:\jdk1.3\jre\bin\classic\jvm.dll

------------------------------------------------------------------------

[2002-10-24 06:23:03] [EMAIL PROTECTED]

I experimented this from php 4.2.2. Now, I'm running php 4.2.4 (the
snapshot from 23-Oct-2002 17:22) on Apache 1.3.27 and WinNT 4.0 and the
error still appears.

------------------------------------------------------------------------

[2002-10-08 14:51:48] [EMAIL PROTECTED]

Marking as open and updating version

------------------------------------------------------------------------

[2002-10-08 11:12:20] [EMAIL PROTECTED]

Iam still facing this bug even after trying with the snapshot
specified.Iam running on apache 1.3.26 and win2K.
I first experienced this on Php 4.2.2.

Actually I took a closer look at the source.It seems to me that the
reference to the global pointer to jvm( java.c ) seems to be reset
resulting in the call to jvm_create after the first request(when it
shouldnt, as the pointer should still be valid as we are not releasing
the jvm pointer). Since there was no call to jvm_destroy, I guess some
internal resource has been locked up resulting in JNI_CreateVM
returning -1(undefined error in JNI.h) on the subsequent calls.

Any help would be highly appeciated

------------------------------------------------------------------------

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

Reply via email to