Re: JVM not created
- From: Raymond DeCampo <nospam@xxxxxxxxxxxx>
- Date: Tue, 03 Jan 2006 14:36:30 GMT
Chris Uppal wrote:
kapil wrote:
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.
I know nothing of ASP (and care less) and only a little about COM, so I may be wrong, but this sounds as if the COM object is being closed between the two pages. You can't do that -- a process has exactly one chance to create a JVM instance, once it has created it, it cannot /ever/ create a second one. It doesn't matter whether you close the first one cleanly, you are still not allowed to create a second one.
Chris,
That is a very interesting fact. Do you have any resources where I can learn more?
Thanks, Ray
As to how to fix it, I'm afraid I have no idea. You can't do it by messing around with the JVM, you'll have to fix the way that the COM objects are handled somehow.
The most obvious (but hacky) way would be to invoke the JVM as a separate process.
-- XML is the programmer's duct tape. .
- Follow-Ups:
- Re: JVM not created
- From: Chris Uppal
- Re: JVM not created
- References:
- Re: JVM not created
- From: Chris Uppal
- Re: JVM not created
- Prev by Date: Re: Runtime.exec on Win98: stdin, stdout with long DOS command line?
- Next by Date: Variable naming convention
- Previous by thread: Re: JVM not created
- Next by thread: Re: JVM not created
- Index(es):
Relevant Pages
|