Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / IIS / IIS General Topics / December 2005

Tip: Looking for answers? Try searching our database.

JVM Error in ASP IIS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kapil - 29 Dec 2005 20:22 GMT
Hi everybody,
I am facing an error while running JNI COM object in ASP. I was
wondering if someone have the solution to the problem.
Thanks in advance.
The problem is...

Steps are:

1.Created one C++ Win32 dll to call a Java code Using JNI.
In that I am Creating JVM and Destroying the JVM.

to create the JVM Code-

JavaVMOption options[2];
options[0].optionString ="-Djava.class.path=" ";
options[1].optionString = buffer;
vm_args.version = JNI_VERSION_1_4;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = 1;
JNI_CreateJavaVM (&jvm, (void**)&env,&vm_args);

For destroying it Code-

jvm->DestroyJavaVM();

2.Created 1 COM wrapper in VB to call the method of Win32 dll.
when using the COM Wrapper with .NET application its working fine.
But,when using the COM with ASP ,opening the page in Browser once it is

working fine,but next time when opening it says that JVM is not
created.
When restarting the IIS server it gives the right result.
To get the correct result everytime i need to restart the IIS server
and inetinfo preocess.
Can anybody tell me what is the problem and how to resolve it.

Thanks
mk - 30 Dec 2005 09:43 GMT
Hi,

this behaviour is quite strange, but I can reproduce it with an even
simpler example.
I have written a simple ISAPI extension dll in pure C using JNI to just
start and stop a VM each time a request get processed (to be sure that
the VM is terminated and restarted independent of ISAPI dll caching).

Actually this produces the same behaviour: Every second attempt fails,
even the VM termination succeeded and the jvm.dll got unloaded fine.

When I put the same code into an EXE and letting it run in a loop, it
works every time.

So the problems seems to be IIS related. Maybe there is a Java killer
inside of IIS... ?

Markus

P.S.: I'm using IIS 5.0 inside of W2K (latest SP + Rollup).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.