Skip to main content
Known Participant
June 7, 2012
Question

Downgrading the Java VM - ColdFusion 10

  • June 7, 2012
  • 1 reply
  • 5463 views

Hello....

I currently have a production server that runs:

Windows Server 2008 R2 64 Bit

IIS 7.5

Cold Fusion 9.0.1 32 Bit (JVM version 1.6.0_17)

Our website uses a COM object to generate JPG images which emulate a GIS system.  Everything works well on this config.

I need to setup a new production server, with Windows Server 2008 R2 64 Bit, IIS 7.5

I have tried to install both ColdFusion 9.0.2 (JVM Version 1.6.0_29) as well as ColdFusion 10.0.0 (JVM Version 1.6.0_29).

In both cases, I cannot invoke my COM object.  I receive an object instantiation error.

Here is what the CF Log says:

An exception occurred when instantiating a COM object.The cause of this exception was that: java.lang.RuntimeException: Can not use native code: Initialisation failed.

I confirmed that on this server, ColdFusion 9.0.0 (JVM version 1.6.0_14) works, so I'm pretty certain that it is not an object registration error or anything.

I have attempted to install ColdFusion 10.0.0 with JVM version 1.6.0_17, but cannot start the coldfusion application after making these adjustments.  Does anyone have any suggestions to either:

Get my COM object to work under a standard 10.0.0 (1.6.0_29) environment

-or-

Downgrade Java VM in CF10 to 1.6.0_17

Thanks for your time!

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 7, 2012

    Just to make sure it is a JVM version issue and not something else, I'd try to upgrade the 9.0.0 box to 1.6.0_29 and see if the COM calls suddenly start failing.

    You might be chasing a red herring...

    --

    Adam

    AeopileAuthor
    Known Participant
    June 7, 2012

    I am attempting this, but need help with process to install 1.6.0_29.  I installed this by going to this site and downloading the "runtime environment update 29"  http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u17-oth-JPR

    However, adjusting the config file as follows:

    java.home=C:/ColdFusion9/runtime/jre

    to:

    java.home=C:/Program Files (x86)/Java/jre6

    Makes it so that I cannot start the coldfusion service.  Anyone have experience troubleshooting this type of upgrade, and why the CF service won't start?

    AeopileAuthor
    Known Participant
    June 7, 2012

    Follow-up, I got the JVM 29 update installed on the 9.0.0 box, and my COM object still worked, so it wasn't an issue with the JVM, it is something else.