Skip to content

Instantly share code, notes, and snippets.

@KevinGreene
Created January 13, 2014 16:46
Show Gist options
  • Select an option

  • Save KevinGreene/8403559 to your computer and use it in GitHub Desktop.

Select an option

Save KevinGreene/8403559 to your computer and use it in GitHub Desktop.
Examples showing order matters in Grails bean builder
Offending resource: file [$projectPath/resources/spring/fails.groovy]; nested exception is groovy.lang.MissingPropertyException: No such property: locationHourFormat for class: grails.spring.BeanBuilder
Line | Method
->> 479 | loadBeans in grails.spring.BeanBuilder
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 441 | loadBeans in ''
| 194 | importBeans . . . . . . . in ''
| 3 | doCall in resources$_run_closure1
| 757 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
| 584 | beans in ''
| 757 | invokeBeanDefiningClosure in ''
| 584 | beans in ''
| 527 | invokeMethod . . . . . . in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 724 | run . . . . . . . . . . . in java.lang.Thread
Caused by MissingPropertyException: No such property: locationHourFormat for class: grails.spring.BeanBuilder
->> 156 | doCall in spring.Script1$_run_closure1_closure10
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 706 | invokeBeanDefiningMethod in grails.spring.BeanBuilder
| 561 | invokeMethod . . . . . . in ''
| 155 | doCall in spring.Script1$_run_closure1
| 757 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
| 455 | call in grails.spring.BeanBuilder$1
| 27 | run . . . . . . . . . . . in spring.Script1
| 476 | loadBeans in grails.spring.BeanBuilder
| 441 | loadBeans . . . . . . . . in ''
| 194 | importBeans in ''
| 3 | doCall . . . . . . . . . in resources$_run_closure1
| 757 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
| 584 | beans . . . . . . . . . . in ''
| 757 | invokeBeanDefiningClosure in ''
| 584 | beans . . . . . . . . . . in ''
| 527 | invokeMethod in ''
| 262 | run . . . . . . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 724 | run in java.lang.Thread
locationRowMapper(LocationRowMapper){
hourFormat = locationHourFormat
}
locationHourFormat(SimpleDateFormat, "h:mm a")
locationHourFormat(SimpleDateFormat, "h:mm a")
locationRowMapper(LocationRowMapper){
hourFormat = locationHourFormat
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment