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

No Such Device Error EntityLoad - output

New Here ,
Nov 23, 2010 Nov 23, 2010

Getting an odd error 'No such device' on CF9.1 @ Linux Server

Error refers to:

C:\work\ColdFusion\cf9_u1_final_hotfix\cfusion\wwwroot\WEB-INF\cftags\dump.cfm

on Linux?

No such device

ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.

Resources:

Browser  Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.11 (KHTML, like Gecko) Chrome/9.0.570.1 Safari/534.11
Remote Address  192.168.56.101
Referrer 
Date/Time  23-Nov-10 02:53 PM
Stack Trace
at cfdump2ecfm1346696724._factor1(C:\work\ColdFusion\cf9_u1_final_hotfix\cfusion\wwwroot\WEB-INF\cftags\dump.cfm) at cfdump2ecfm1346696724._factor4(C:\work\ColdFusion\cf9_u1_final_hotfix\cfusion\wwwroot\WEB-INF\cftags\dump.cfm) at cfcat2ecfm2074738090.runPage(/var/www/walks/story.cfm:27)

Code:

Modified from:  http://www.manjukiran.net/2009/07/14/101/

stories = EntityLoad( "Story");

for (i=1; i<ArrayLen(stories);i++) {

    storyObj = stories;

    

     WriteOutput("Story ID: " & storyObj.getStoryID() & "<br>");

     WriteOutput("Story Title: " & storyObj.getStoryTitle() & " <br>");

     WriteOutput(" <br>");

     }

</cfscript>

<cfdump var="#stories#"/>

Outputs

2 array items and 3 'dump items'

----------------------------------------------------------------

Story ID: 1
Story Title: A return to Forbidden Britain

Story ID: 2
Story Title: The Countryside Code

array
1[undefined array element] No such device
2[undefined array element] No such device
3[see cfc6 for Story details]

----------------------------------------------------------------

Trying to fix triggers error above

Very Strange

TOPICS
Advanced techniques
1.1K
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
New Here ,
Nov 23, 2010 Nov 23, 2010

That error means something went wrong in the cfdump output.

Can you post the code for the Story.cfc?

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
New Here ,
Nov 23, 2010 Nov 23, 2010
LATEST

Hello Sam

Thanks for reply

Object of type 'class coldfusion.orm.PersistentTemplateProxy' cannot be used as an array Came up

- a little clearer - if I knew what 'class coldfusion.orm.PersistentTemplateProxy' was!

The code is wrapped in Model-Glue - so code post would not be helpful -

a  <message name="ModelGlue.genericRead"> call in ModelGlue.xml

I've bypassed and rolled in EntityLoad - sick of hitting my head here

The windows C:\  path spooked me a bit - I'll post problem to Model Glue forum

Once again

Many thanks

G

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