Element xxxx is undefined in a Java object of type class coldfusion.runtime.VariableScope.

528 views
Skip to first unread message

John C. Bland II

unread,
Jul 8, 2010, 3:14:52 AM7/8/10
to cfwh...@googlegroups.com
??

Works fine locally. Chunk it up to CF9 on centOS and boom...night down the toilet.

Thoughts?

---
John C. Bland II
http://www.johncblandii.com
http://www.johnandseason.com
http://www.twitter.com/johncblandii
---
Suggested sites:
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"

John C. Bland II

unread,
Jul 8, 2010, 3:18:31 AM7/8/10
to cfwh...@googlegroups.com
For clarity, it burps on variables set in a controller. Simple stuff. I'm 100% sure it isn't my code.

//inside of action
<cfset myvar = 1 />

Something that simple blows up.

---
John C. Bland II
http://www.johncblandii.com
http://www.johnandseason.com
http://www.twitter.com/johncblandii
---
Suggested sites:
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"


Chris Peters

unread,
Jul 8, 2010, 8:29:06 AM7/8/10
to cfwh...@googlegroups.com
Is this in reference to trying out version 1.1?

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

John C. Bland II

unread,
Jul 8, 2010, 10:33:59 AM7/8/10
to cfwh...@googlegroups.com

Actually, it is in 1.1.

On Jul 8, 2010 7:29 AM, "Chris Peters" <ch...@clearcrystalmedia.com> wrote:

Is this in reference to trying out version 1.1?

On Thu, Jul 8, 2010 at 3:18 AM, John C. Bland II <johncb...@gmail.com> wrote:

>
> For clarity, it burps on variables set in a controller. Simple stuff. I'm 100% sure it isn't my ...

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

Chris Peters

unread,
Jul 10, 2010, 12:35:28 AM7/10/10
to cfwh...@googlegroups.com
What is blowing up exactly?

This is a very simple site, but it is running on CentOS + CF9 + Wheels 1.1 fine so far:
http://labs.clearcrystalmedia.com/

I know it rarely helps to say, "Works fine for me," but it does work fine for me. ;)

John C. Bland II

unread,
Jul 10, 2010, 1:14:56 AM7/10/10
to cfwh...@googlegroups.com

I have no idea what's blowing up. The entire thing works locally but not online.

It us like the variables don't make it to the view. Is there a setting or anything for CF I am simply missing?

I have never seen an error like this.

On Jul 9, 2010 11:35 PM, "Chris Peters" <ch...@clearcrystalmedia.com> wrote:

What is blowing up exactly?

This is a very simple site, but it is running on CentOS + CF9 + Wheels 1.1 fine so far:
http://labs.clearcrystalmedia.com/

I know it rarely helps to say, "Works fine for me," but it does work fine for me. ;)



On Thu, Jul 8, 2010 at 10:33 AM, John C. Bland II <johncb...@gmail.com> wrote:
>

> Actually, it...

Randy Johnson

unread,
Jul 10, 2010, 1:23:20 AM7/10/10
to cfwh...@googlegroups.com
Could it have something to do with the case sensitive issues like Application not being capitalized or something?

Also are you on a clean install of 1.1?  IF not install it cleanly and add blocks of code to see if you can narrow it down to something in particular.



Randy



--

John C. Bland II

unread,
Jul 10, 2010, 1:25:30 AM7/10/10
to cfwh...@googlegroups.com

I'm going to check case next.

On Jul 10, 2010 12:23 AM, "Randy Johnson" <ra...@cfconcepts.com> wrote:

Could it have something to do with the case sensitive issues like Application not being capitalized or something?

Also are you on a clean install of 1.1?  IF not install it cleanly and add blocks of code to see if you can narrow it down to something in particular.



Randy



On Sat, Jul 10, 2010 at 1:14 AM, John C. Bland II <johncb...@gmail.com> wrote:

>
> I have no idea what's blowing up. The entire thing works locally but not online.
>

> It us like ...

--

> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" g...


--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels"...

joshua clingenpeel

unread,
Jul 11, 2010, 3:25:25 PM7/11/10
to cfwh...@googlegroups.com
I was getting this a bunch, and it usually happened when a model
instance was referring to an association that didn't exist, or was
misconfigured (or I had a typo). Sometimes it occurred at a findall
when there was a misconfigured select list or includes or calculated
property.

Neve saw it with a plain old local variable in an action.

> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
> To post to this group, send email to cfwh...@googlegroups.com.
> To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
>

--
Josh

John C. Bland II

unread,
Jul 11, 2010, 3:56:04 PM7/11/10
to cfwh...@googlegroups.com

It works 100% locally without fail.

On Jul 11, 2010 2:25 PM, "joshua clingenpeel" <joshua.cl...@gmail.com> wrote:

I was getting this a bunch, and it usually happened when a model
instance was referring to an association that didn't exist, or was
misconfigured (or I had a typo). Sometimes it occurred at a findall
when there was a misconfigured select list or includes or calculated
property.

Neve saw it with a plain old local variable in an action.


On Friday, July 9, 2010, John C. Bland II <johncb...@gmail.com> wrote:

> I'm going to check case...

> --

> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" g...

Josh


--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels...

John C. Bland II

unread,
Jul 12, 2010, 2:07:14 AM7/12/10
to cfwh...@googlegroups.com
BOGUS!

Wheels requires absolute file naming. The "laziness" of coding CF with the "case of the day" (choose camel today, proper tomorrow) bit me here.

Error 1:
- Filename needed to be Blah.cfc [proper case]

Error 2:
- extends="controller" needed to be extends="Controller" [proper case]

Since Wheels, by default, assumes a lot (by convention) the case where blah.cfc != Blah.cfc they assumed a Blah controller and expected a /views/blah/index.cfm view. Since that view existed, Wheels used it. BUT...that view expected some values passed to it.

Convention is basically the killer here and testing on *nix vs a lax' OSX filename system bit me.

This is something to remember and something I'd like Wheels to fix for me. I shouldn't have to worry about case in a language not concerned with it. :-/

---
John C. Bland II
http://www.johncblandii.com
http://www.johnandseason.com
http://www.twitter.com/johncblandii
---
Suggested sites:
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"


Per Djurner

unread,
Jul 12, 2010, 5:38:17 AM7/12/10
to cfwh...@googlegroups.com
That's a good idea.
Wheels could check for both lower case and camel case versions of the
controller files and just use the one that exists.
That would solve error #1.

Not sure how we could fix error #2 though, any ideas?

On Mon, Jul 12, 2010 at 8:07 AM, John C. Bland II

raulriera

unread,
Jul 12, 2010, 6:17:20 AM7/12/10
to ColdFusion on Wheels
Actually I don't think this is a Wheels problem, if you try to refer /
images/Logo.png on Linux and the file is named /images/logo.png you
won't find it either...

On Jul 12, 8:07 am, "John C. Bland II" <johncblan...@gmail.com> wrote:
> BOGUS!
>
> Wheels requires absolute file naming. The "laziness" of coding CF with the
> "case of the day" (choose camel today, proper tomorrow) bit me here.
>
> Error 1:
> - Filename needed to be Blah.cfc [proper case]
>
> Error 2:
> - extends="controller" needed to be extends="Controller" [proper case]
>
> Since Wheels, by default, assumes a lot (by convention) the case where
> blah.cfc != Blah.cfc they assumed a Blah controller and expected a
> /views/blah/index.cfm view. Since that view existed, Wheels used it.
> BUT...that view expected some values passed to it.
>
> Convention is basically the killer here and testing on *nix vs a lax' OSX
> filename system bit me.
>
> This is something to remember and something I'd like Wheels to fix for me. I
> shouldn't have to worry about case in a language not concerned with it. :-/
>
> ---
> John C. Bland IIhttp://www.johncblandii.comhttp://www.johnandseason.comhttp://www.twitter.com/johncblandii
> ---
> Suggested sites:http://www.lifthimhigh.com- "Christian Products for Those Bold Enough to
> Wear Them"http://www.sportsmatchmaker.com- "What are you doing today?"
>
> On Sun, Jul 11, 2010 at 2:56 PM, John C. Bland II <johncblan...@gmail.com>wrote:
>
>
>
> > It works 100% locally without fail.
>
> > On Jul 11, 2010 2:25 PM, "joshua clingenpeel" <
> > joshua.clingenp...@gmail.com> wrote:
>
> > I was getting this a bunch, and it usually happened when a model
> > instance was referring to an association that didn't exist, or was
> > misconfigured (or I had a typo). Sometimes it occurred at a findall
> > when there was a misconfigured select list or includes or calculated
> > property.
>
> > Neve saw it with a plain old local variable in an action.
>

John C. Bland II

unread,
Jul 12, 2010, 12:09:20 PM7/12/10
to cfwh...@googlegroups.com
@per
#2 is a mistake on our behalf. I've informed my team and we're working it out, making notes, and never forgetting it.

@raul
It is absolutely a Wheels problem. You see, your example fails. Wheels...keeps working.

<cfset blah = model("blahStuff").new() />

is different than 

<cfset blah = model("blahstuff").new() />

It literally fails to find the model in one instance and not another. That's a problem because Wheels assumes, by convention, certain things which means it works perfectly fine like nothing is wrong until you have code in there that is supposed to do something on init or a callback or a custom function. So it will assume you mean the "blahstuff" table and look for the BlahStuff.cfc (in the first case) and the "Blahstuff.cfc" (in the second case). One exists...one doesn't. CF is now case sensitive because of this.

I'm not against convention but when a "broken" site appears to work then you get an odd error telling you something is missing (ex - it told me a relationship was missing which was not) you go crazy trying to figure it out.

It isn't about Wheels' way being wrong but it would be super nice if Wheels was able to help debug this. I'm fine with the conventions just not with wasting hours debugging a file naming and string passing into function problem.
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"


raulriera

unread,
Jul 12, 2010, 3:06:18 PM7/12/10
to ColdFusion on Wheels
Fine, do a cfselect query with a tablename badly camelcased and watch
ur app go boom.. I was just illustrating my point
> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c om>
> > .

John C. Bland II

unread,
Jul 12, 2010, 4:09:22 PM7/12/10
to cfwh...@googlegroups.com

Who uses cfselect?

Also, don't take it personal. I was illustrating my point/opinion on how to improve debugging as it relates to deployment.

On Jul 12, 2010 2:06 PM, "raulriera" <rier...@gmail.com> wrote:

Fine, do a cfselect query with a tablename badly camelcased and watch
ur app go boom.. I was just illustrating my point


On Jul 12, 6:09 pm, "John C. Bland II" <johncblan...@gmail.com> wrote:
> @per

> #2 is a mistake on ...

> John C. Bland IIhttp://www.johncblandii.comhttp://www.johnandseason.comhttp://www.twitter.com/john...

> On Mon, Jul 12, 2010 at 5:17 AM, raulriera <rierar...@gmail.com> wrote:

> > Actually I don't think...

> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c om>

> > .
> > For more options, visit this group at
> >http://groups.google.com/group/cfwheels?hl=en.

--

You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" gro...

John C. Bland II

unread,
Jul 14, 2010, 12:48:58 PM7/14/10
to cfwh...@googlegroups.com
I created the feature request here:

Please join in the discussion and/or vote it up. I provided two solutions but others might have different ways of working this out. It would, IMO, be a great enhancement.

---
John C. Bland II
http://www.johncblandii.com
http://www.lifthimhigh.com - "Christian Products for Those Bold Enough to Wear Them"
http://www.sportsmatchmaker.com - "What are you doing today?"

tpet...@gmail.com

unread,
Jul 14, 2010, 7:13:48 PM7/14/10
to ColdFusion on Wheels
@john,

I feel bad that you wasted a lot of time trying to figure this out
only for it to be a case sensitivity issue.

In the future, remember that you have the option to use the class
argument (modelName in trunk) to tell wheels what model to look for,
thus bypassing the wheels "magic". I would suggest doing this if
you're going to be dealing with different oses for your development
and production configurations.


On Jul 14, 12:48 pm, "John C. Bland II" <johncblan...@gmail.com>
wrote:
> I created the feature request here:
> Provided better "reporting" for improperly cased
> models/controllers<detail?id=513&colspec=ID Type Status Severity
> Milestone Owner Summary>
>
> <detail?id=513&colspec=ID Type Status Severity Milestone Owner Summary>Please
> join in the discussion and/or vote it up. I provided two solutions but
> others might have different ways of working this out. It would, IMO, be a
> great enhancement.
>
> ---
> John C. Bland IIhttp://www.johncblandii.comhttp://www.johnandseason.comhttp://www.twitter.com/johncblandii
> ---
> Suggested sites:http://www.lifthimhigh.com- "Christian Products for Those Bold Enough to
> Wear Them"http://www.sportsmatchmaker.com- "What are you doing today?"
>
> On Mon, Jul 12, 2010 at 3:09 PM, John C. Bland II <johncblan...@gmail.com>wrote:
>
> > Who uses cfselect?
>
> > Also, don't take it personal. I was illustrating my point/opinion on how to
> > improve debugging as it relates to deployment.
>
> > On Jul 12, 2010 2:06 PM, "raulriera" <rierar...@gmail.com> wrote:
>
> > Fine, do a cfselect query with a tablename badly camelcased and watch
> > ur app go boom.. I was just illustrating my point
>
> > On Jul 12, 6:09 pm, "John C. Bland II" <johncblan...@gmail.com> wrote:
> > > @per
> > > #2 is a mistake on ...
>
> > > John C. Bland
> > IIhttp://www.johncblandii.comhttp://www.johnandseason.comhttp://
> >www.twitter.com/john...
>
> > > On Mon, Jul 12, 2010 at 5:17 AM, raulriera <rierar...@gmail.com> wrote:
> > > > Actually I don't think...
>
> > > > cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.com>
> > <cfwheels%2Bunsubscr...@googlegroups.c om>

John C. Bland II

unread,
Jul 15, 2010, 10:19:55 AM7/15/10
to cfwh...@googlegroups.com

We noticed that and have made the change to modelName.

No worries. I learned something there.

On Jul 14, 2010 6:13 PM, "tpet...@gmail.com" <tpet...@gmail.com> wrote:

@john,

I feel bad that you wasted a lot of time trying to figure this out
only for it to be a case sensitivity issue.

In the future, remember that you have the option to use the class
argument (modelName in trunk) to tell wheels what model to look for,
thus bypassing the wheels "magic". I would suggest doing this if
you're going to be dealing with different oses for your development
and production configurations.


On Jul 14, 12:48 pm, "John C. Bland II" <johncblan...@gmail.com>
wrote:

> I created the feature request here:
> Provided better "reporting" for improperly cased

> models/controllers<detail?id=513&colspec=ID Type Status Severity
> Milestone Owner Summary>
>
> <detail?id=513&colspec=ID Type Status Severity Milestone Owner Summary>Please

> join in the discussion and/or vote it up. I provided two solutions but

> others might have differe...

> John C. Bland IIhttp://www.johncblandii.comhttp://www.johnandseason.comhttp://www.twitter.com/johncblandii

> ---
> Suggested sites:http://www.lifthimhigh.com- "Christian Products for Those Bold Enough to

> W...

> On Mon, Jul 12, 2010 at 3:09 PM, John C. Bland II <johncblan...@gmail.com>wrote:

>
> > Who uses cfselect?
>
> > Also, don't take it personal. I was illustrating my point/opinion on ...

> > On Jul 12, 2010 2:06 PM, "raulriera" <rierar...@gmail.com> wrote:
>

> > Fine, do a cfselect quer...

> > <cfwheels%2Bunsubscr...@googlegroups.c om>

>
> > > > .
> > > > For more options, visit this group at

> > > >http://groups.google.com/group/cfwh...

--


You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.

To post to this group, send email to cfwh...@googlegroups.com.

To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages