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

CF 9 issue with cfinvoke

New Here ,
Aug 01, 2010 Aug 01, 2010

I ran into a really odd behavior using cfinvoke in CF9. This came up for an application that has run fine on earlier version of CF and then broke on CF9.

The basic error comes up when we do something like (not actual code, but what seems to cause the problem):

<cfset stObject = structnew() />

<cfinvoke component="...."

     method="get"

     returnVariable="stObject" />

In this case where stObject is defined prior to running the cfinvoke, the get() method won't populate stObject.

However, if we do the same thing using the following:

<cfset stObject = createObject(....).get() />

then stObject is properly populated.

To make the older application work, we've had to go through the code and rewrite the cfinvoke's into CreateObject(...).method(). That gets past the errors but doesn't make any sense.

Has anyone else seen anything like this?

d

461
Translate
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 ,
Aug 02, 2010 Aug 02, 2010
LATEST

I have not experienced this, no.  However I have to say I very seldom use <cfinvoke>.

Can you contrive a stand-alone / simple reproduction case of this?

--
Adam

Translate
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