Highlighted

CF 2018 lockdown with update 2 issue

New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

The notes for 2018 update 2 state that this needs to be done manually if you have the auto-lock down applied:

ColdFusion (2018 release) Update 2

I downloaded the update and followed suggestions from Charlie Arehart here:

How to solve common problems with applying ColdFusion updates (in 10 and above) - Charlie Arehart's ...

I stopped the main CF service and tried to run the update using the CF2018 JRE  (java version "10.0.1" 2018-04-17)

from directory: [coldfustion root]\jre\bin:

command: java - jar [coldfusion root]\cfusion\hf-updates\hotfix-002-313961.jar

I got this:

Error: To use 'StartFlightRecording', first unlock using -XX:+UnlockCommercialFeatures.

Error: The unlock option must precede 'StartFlightRecording'.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

What the hell is that? Now what?

Views

540

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CF 2018 lockdown with update 2 issue

New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

The notes for 2018 update 2 state that this needs to be done manually if you have the auto-lock down applied:

ColdFusion (2018 release) Update 2

I downloaded the update and followed suggestions from Charlie Arehart here:

How to solve common problems with applying ColdFusion updates (in 10 and above) - Charlie Arehart's ...

I stopped the main CF service and tried to run the update using the CF2018 JRE  (java version "10.0.1" 2018-04-17)

from directory: [coldfustion root]\jre\bin:

command: java - jar [coldfusion root]\cfusion\hf-updates\hotfix-002-313961.jar

I got this:

Error: To use 'StartFlightRecording', first unlock using -XX:+UnlockCommercialFeatures.

Error: The unlock option must precede 'StartFlightRecording'.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

What the hell is that? Now what?

Views

541

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 01, 2019 0
Enthusiast ,
Mar 01, 2019

Copy link to clipboard

Copied

It is a JVM argument -- what do you have specified in the JVM arguments in the Java And JVM settings of ColdFusion Administrator?

You will probably want to remove this:  -XX:StartFlightRecording

This is a profiling feature in the JVM, you probably don't want that enabled on your production server. More info: How to Produce a Flight Recording

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 01, 2019 0
New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

I figured some it out and now it's really a mess.

I had a space "- jar" between the "-" and "jar".

Running: java -jar [coldfusion root]\cfusion\hf-updates\hotfix-002-313961.jar

I got:

Error: Unable to access jarfile F:\ColdFusion2018\cfusion\hf-updates\hotfix-002-313961.jar

The jar file was in the right place, but the owner was the CFuserAccount used to lock CF down.  I took ownership of the file and then granted my administrator full permissions to it and then ran the command again.  It seemed to go OK and didn't log any errors.  However the CF service wouldn't start.

Rebooted, CF service shows "Starting". Never started.  Tried "Restart Service".  Worked but site shows this error:

"Could not find the ColdFusion component or interface E:/www/Application.cfc.". 

Reboot again. Now get "License Error." and can't open CF administrator page "

The CFML compiler encountered an unexpected java.lang.NullPointerException exception.

"

Tried to unistall the damn thing (gave myself full permission to hf folder).

Get this:

F:\ColdFusion2018\jre\bin>java -jar F:\ColdFusion2018\uninstall\uninstaller.jar

no main manifest attribute, in F:\ColdFusion2018\uninstall\uninstaller.jar

Damn...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 01, 2019 0
New Here ,
Mar 01, 2019

Copy link to clipboard

Copied

I gave up and replaced the contents of my CF installation with a backup from yesterday.

Update#3 just released as I was going through all this.  It doesn't mention any installation issues related to the auto-lockdown configuration in the release notes.  Has this been fixed?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 01, 2019 0
Miguel-F LATEST
Engaged ,
Mar 29, 2019

Copy link to clipboard

Copied

Don't rely on the fact that the latest update does not mention any installation issues like the previous update did. I have noticed that Adobe is no longer copying forward any specific instructions from previous updates. Instead they are posting a note on the new update to refer back to the previous update(s) to see if there were any specific instructions.  So they are leaving it up to us to dig through all the updates and see what we need to do.  i don't like it.

here is the note I am referring to:

Capture.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 29, 2019 0