Re: JVM not created



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. .



Relevant Pages

  • Re: JVM not created
    ... > But,when using the COM with ASP,opening the page in Browser once it is ... I know nothing of ASP and only a little about COM, ... You can't do that -- a process has exactly one chance to create a JVM ... As to how to fix it, I'm afraid I have no idea. ...
    (comp.lang.java.programmer)
  • JVM not created
    ... I am facing an error while running JNI COM object in ASP. ... In that I am Creating JVM and Destroying the JVM. ... When restarting the IIS server it gives the right result. ...
    (comp.lang.java.programmer)
  • Re: JDBC and Stored procedure performance problems
    ... There is an overhead on the iSeries in getting the JVM started, ... > connection if all are in use and opening it in advance. ... > The same SQL statement takes just a second in STRSQL, ...
    (comp.sys.ibm.as400.misc)
  • RE: calling java from asp
    ... That will intercept jsp code and redirect it to Sun's script processor. ... Here is a link to a reference on Sun's site, ... | I wonder if anyone knows if it is possible to call a method in a javaclass from asp NOT using Microsoft's JVM. ... (I must use Sun's JVM for some reasons). ...
    (microsoft.public.inetserver.asp.general)
  • Re: Cant open an ASP page
    ... You can't "browse" to the asp page from file system... ... >try to open an ASP page (not listed on my HTTP file types ... >could be fixed by opening My Computer>View Menu> ... >Options> File Types and Editing. ...
    (microsoft.public.windowsxp.security_admin)