|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-29 12:25 UTC] j dot kase at privador dot com
This is similar to bug#6990, but since I could no longer append to it, I am opening a new report. The symptoms are the same as descibed in #6990 - on initial execution, all the values from php.ini are imported correctly, including the java.* values so that I can execute custom Java classes from PHP (very cool feature btw). However, after running the page a few times, it gives me the error "Fatal error: Unable to create Java Virtual Machine", which most likely means that it has blown up the paths to JDK and classes which I have specified in php.ini, and cannot create a JVM. The trigger which invokes the error seems to be the moment when I change and recompile my Java class. Sometimes it also triggers the error after I update just my PHP code, but not my Java class. Restarting Apache fixes the error each and every time (for a short period - then it occurs exactly the same way), but obviously this is not the viable solution that I am looking for. Bug#6990 also mentions something about placing the [Java] section of php.ini (i.e. configuration for a dynamic module) before or after loading the extension code (in my case, Extension=php_java.dll). This has zero effect - no matter whether the [Java] section is before or after the Extension statement, it behaves exactly the same way. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
This caused by Multi instance of JVM, check ur server Support Multiple instance of same Class OR Add the following Line of Code before the Line ****= new java("SomeClass"); out.flush(); $myobj = new Java("phptest"); Enjoy........ AHMED