House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Error: attempted to dereference a scalar variable

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
05/09/2008 10:28 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matt Quackenbush
05/09/2008 10:34 AM

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 -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

March 18, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31