• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF8 compiled code cannot be run in CF9 server

New Here ,
Apr 12, 2011 Apr 12, 2011

Copy link to clipboard

Copied

I have an enterprise application that is developed using ColdFusion. The application is compiled using CF8’s complier (using CFcomple.exe) to enhance performance and prevents un-authorized access to the source code. This application is used by several customers in different countries. Each customer has at least two CF8 servers hosting the application. New features and enhancements are constantly developed and deployed into my customers’ servers each week.

Recently, I have upgraded one of the sites from CF8 server to CF9 server and tried to run the CF8 compiled code. And, to my surprise the CF8 compiled code cannot be run in CF9 server.  Below are some of the errors captured by CF9 server’s log:

"Error","jrpp-3","04/08/11","17:45:10",,"coldfusion.runtime.CfJspPage._validateTagAttrValue(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; The specific sequence of files included or processed is: C:\VESALIUS\vx_uat\his\index.cfm, line: 2 "

java.lang.NoSuchMethodError: coldfusion.runtime.CfJspPage._validateTagAttrValue(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

                at cfapplication2ecfm153200315.runPage(C:\VESALIUS\RSPI_DEV\his\application.cfm:2)

                at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)

                at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)

                at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)

                at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)

                at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:261)

                at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)

                at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)

                at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)

                at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)

                at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)

Initially, I thought it was the Java version compatibility problem. I have tried installing the latest Java SDK version into both CF8 server (for compilation) and CF9 server (for hosting). I have confirmed the “Java Virtual Machine Path” is set to the correct Java path.  But still, the application cannot be launch from CF9 server with same type of error.

I have always thought Coldfusion is backward compatible. Code complied using earlier version of CF servers should have no problem running in later version of CF. Running application using pure source code and upgrading of all CF8 servers to CF9 at one go are not feasible options that I can choose.

Can someone please provide solution to my problem? Your help will be greatly appreciated.

TOPICS
Reporting

Views

1.8K

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
community guidelines
LEGEND ,
Apr 13, 2011 Apr 13, 2011

Copy link to clipboard

Copied

LATEST

I would expect the external interface to the CF engine - ie: the CFML - to be backwards compatible, but I would not expect the inner workings

to be, no.

That said, I would have thought the same as you would: that it's the JAVAC version, rather than the CF version, which would be significant here.  But my reaction to your post was "oh?  OK.  Well fair enough I guess.  It's not that surprising".

Just create two compiled versions: one for CF8, one for CF9.

Does code compiled for CF8 work on CF8.0.1 (or CF9 on CF9.0.1)?

--
Adam

Votes

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
community guidelines
Resources
Documentation