Skip to main content
Ripley Casdorph
Participating Frequently
June 7, 2013
Question

Upgrade to CF10 and App is Broken

  • June 7, 2013
  • 1 reply
  • 1097 views

We are upgrading from CF8 to 10 and our major application a content management software is now broken. 

It uses Javascript, CF,  and XML. This code work perfect in CF 7, 8 and 9, but now in 10 we are screwed! I can provide more detail.

Trying to debug code in firebug.  The post looks like this

<methodCall>

<methodName>display.lock</methodName>

<params>

<param>

<value>

<string>9C7bd8c93CaCbc6A</string>

</value>

</param>

<param>
<value>
<string>mlongwell</string>

</value>

</param>

<param>
<value>
<string>31559-73666-19542</string>

</value>

</param>

</params>

</methodCall>

The error we are getting is below.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; BRI/1; .NET4.0E; InfoPath.2)

Timestamp: Fri, 7 Jun 2013 19:52:51 UTC

Message: Unable to get value of the property 'nodeName': object is null or undefined

Line: 116

Char: 4

Code: 0

URI: http://test-coldfusion:84/wframework/js/wcWidget/wcXmlRpc.js

This topic has been closed for replies.

1 reply

p_sim
Participating Frequently
June 7, 2013

Search for 'nodeName' on your code base, then trace it where the nodeName gets its value.

Anit_Kumar
Community Manager
Community Manager
June 7, 2013

Hello rcasdorph,

Along with the suggestion by p.sim, We would suggest you to use the Code Analyzer to check the custom codes http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec0d04c-7fee.html , before you migrate your application. The architecture of ColdFusion changed from JRun(till ColdFusion 9) to Tomcat (ColdFusion 10). Thus, there are possibly many codes changes from ColdFusion 7/8 to ColdFusion 10.

Regards,

Anit Kumar

Ripley Casdorph
Participating Frequently
June 10, 2013

Thanks for the suggestion.  I ran it, but there are no specific errors. However, there are 240 pages that are using a local. var and that seems to have gone away in 10.

In ColdFusion9 LOCAL is a reserved word and built-in scope now. This means that Variables and structures should not be named as LOCAL. Naming a structure or array LOCAL may produce data discrepanies.

There is miles of code like this ...

{

65:                             for(local.i=1; local.i lte ArrayLen(_columns[arguments.column]); local.i++)

66:                             {

67:                                  local.module = StructNew();

68:                                  local.module.id = _columns[arguments.column][local.i];

Actually, 2500 instances of the local var.  I didn't write this. 

Do you have a suggestion for what to change that to? 

Or can I just change it to somethjng like _local?

Thanks for the help!