grails-samples / grails-petclinic

The introductory sample application for Grails
68 stars 93 forks source link

Error creating owner #1

Closed javiercondor closed 11 years ago

javiercondor commented 11 years ago

Hi,

I'm new in Grails. I first downloaded the zip and import the proyect to my local GGTS, when I ran it was ok, but when I create an owner and got this error: Error 500: Internal Server Error URI:/petclinic/owner/add Class:java.lang.NullPointerExceptionMessage:Cannot set property 'controllerClass' on null object Around line 13 of grails-app\conf\org\grails\samples\ViewSourceFilters.groovy 10: }11: after = { Map model ->12: def controllerClass = grailsApplication.getArtefactByLogicalPropertyName("Controller", controllerName)13: model["controllerClass"] = controllerClass.clazz.name14: model["viewPath"] = "$controllerName:${model['viewName'] ?: actionName}"15: }16: afterView = { Exception e ->

I have installed Grails 2.1.1 and GGTS 3.1.

Then I tried using GIT and cloned it, open cmd and runing as say in readme, but got the same error. It downloaded Grails 2.1.1 previously to run.

What I'm doing bad or is because Grails version?

Thanks

Pd. Sorry for my bad english

burtbeckwith commented 11 years ago

Thanks for the report - the problem was a bug and is fixed. Please update the source and try again.