|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Error: attempted to dereference a scalar variable
Author: Matt Quackenbush
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56332#304997
Assuming that "Q.q4_a_int" is a recordset, try changing it to
"Q.q4_a_int[1]". I'm kinda grabbing at straws here, but if your recordset
contains more than one record (which I'm guessing it should not), that might
result in the error message you are seeing. Typically speaking though, that
particular error message means that whatever variable is being referenced as
a struct is not actually a struct.
HTH
----- Excess quoted text cut - see Original Post for more -----
Author: Gerald Guido
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56332#304995
We have a live survey and we took a look at the application log and we ran
into this several times in the course of 20 min. I am assuming it is one
user.
>> You have attempted to dereference a scalar variable of type class
java.math.BigDecimal as a structure with members.
It seems to happen in random places The value is always numeric (or a number
in a list) and is getting pulled from MSSQL. It looks like it happens when
we are doing conditionals, either a cfif or an IIF or a ListFind
this is (one of) the line where it threw the error:
<cfif Q.q4_a_int EQ 1 >
Any clues?
--
"The pursuit of truth and beauty is a sphere of activity in which we are
permitted to remain children all our lives."
- Albert Einstein
|
May 24, 2012
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||