record.get(modelField.name)  in 
component://webtools/webapp/webtools/datafile/viewdatafile.ftl
----------------------------------------------------------------------------------------------

                 Key: OFBIZ-2533
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2533
             Project: OFBiz
          Issue Type: Bug
    Affects Versions: Release Branch 9.04
         Environment: 9.04 unmodified Code for /framework/datafile
            Reporter: BJ Freeman
             Fix For: Release Branch 9.04



have about a 2 meg file, that datafile is converting
it goes along fine then throws this error below.
here is the next to last and last line.
it erros on a string like this one 090497120183

this is the output you see on the ftl page, not a file.

2145    FINISHED_GOOD   "12018"         "GSI Sierra 7.625'' Blue Mixing Bowl"   
"leisure and sport|camping/hiking|accessories"          
http://images.doba.com/products/2/12018.jpg     "GSI"   "Inspired by 
traditional Graniteware over a century ago, SIERRA CAMPWARETM features the 
classic speckled blue enamel finish over heavy gauge steel that's become 
renowned world wide. It's super practical and endures rough handling. Its 
durable heavy glazehas been kiln hardened twice at 1400� F to increase 
resistance to scratches and chipping. Three-ply construction maximizes heat 
distribution so you can reduce cooking temperatures and enhance your culinary 
talents. Great for indoor and outdoor use. It'seasy to clean, dishwasher safe 
and weather resistant.<br><br>"       ""      "0.5799999833"          WT_lb   
""      N       N       N       "GSI Sierra 7.625'' Blue Mixing Bowl"   0.00    
3.10    5.95    7       0000-00-00      7.38    2.00    090497120183    Y       
N
===================================================================================================================
2150    FINISHED_GOOD   "15001"         "GSI Sierra 3 Qt. Percolator Insert"    
"leisure and sport|camping/hiking|accessories"  
http://images.doba.com/products/2/15001.jpg     "GSI"   "<br><br> > 12 cup (3 
qt.) > Dimensions: 3.75\"" x 3.75\"" x 8\"" > Weight: 2.1 oz"     ""      
"0.3300000131"  WT_lb   ""      N       N       N       "GSI Sierra 3 Qt. 
Percolator Insert"    0.00    2.59    4.95    5       0000-00-00      7.38    
2.00  erroronthisparm       


Error on line 117, column 15 in 
component://webtools/webapp/webtools/datafile/viewdatafile.ftl 
record.get(modelField.name) is undefined. It cannot be assigned to value The 
problematic instruction: ---------- ==> assignment: 
value=record.get(modelField.name) [on line 117, column 15 in 
component://webtools/webapp/webtools/datafile/viewdatafile.ftl] in 
user-directive displayrecords [on line 157, column 9 in 
component://webtools/webapp/webtools/datafile/viewdatafile.ftl] ---------- Java 
backtrace for programmers: ---------- 
freemarker.core.InvalidReferenceException: Error on line 117, column 15 in 
component://webtools/webapp/webtools/datafile/viewdatafile.ftl 
record.get(modelField.name) is undefined. It cannot be assigned to value at 
freemarker.core.Assignment.accept(Assignment.java:111) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) at 
freemarker.core.Environment.visit(Environment.java:416) at 
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) at 
freemarker.core.Environment.visit(Environment.java:416) at 
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.Macro$Context.runMacro(Macro.java:168) at 
freemarker.core.Environment.visit(Environment.java:602) at 
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.IfBlock.accept(IfBlock.java:82) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:209) at 
freemarker.core.Environment.process(Environment.java:189) at 
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205)
 at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201) 
at 
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:245)
 at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107) 
at 
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:976)
 at

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to