|
I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors.
Does anyone have any bright ideas what might be happening or areas to investigate? grails> compile | Compiling 40 source files Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. | Compiling 36 source files. | Error Compilation error: startup failed: /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. @ line -1, column -1. /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. @ line -1, column -1. /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. @ line -1, column -1. /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. @ line -1, column -1. /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. @ line -1, column -1. /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. @ line -1, column -1. /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. @ line -1, column -1. 7 errors | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Administrator
|
You probably have a property called "errors" in your domain. Please
raise an issue and attach an example Thanks On Mon, Aug 1, 2011 at 11:26 AM, Sam Carr <[hidden email]> wrote: > I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors. > > Does anyone have any bright ideas what might be happening or areas to investigate? > > > grails> compile > | Compiling 40 source files > Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > | Compiling 36 source files. > | Error Compilation error: startup failed: > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. > @ line -1, column -1. > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. > @ line -1, column -1. > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. > @ line -1, column -1. > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. > @ line -1, column -1. > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. > @ line -1, column -1. > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. > @ line -1, column -1. > /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. > @ line -1, column -1. > 7 errors > | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
My domain class is very simple (after I stripped out all its content in trying to figure out this problem) and definitely doesn't contain an errors property :-)
class User { } So I figure something else is fighting over it at compile time in trying to add properties. I suspected that perhaps a plugin was clashing with Grails new compile-time injection of domain functionality. Those plugins I have are listed below, but I would only expect Spring Security as a potential culprit. However if I change the SS config to state something different as its userDomainClassName object the error remains, so it seems unlikely SS is to blame. plugins.geb=0.6 plugins.hibernate=2.0.0.M1 plugins.spock=0.6-SNAPSHOT plugins.spring-security-core=1.2 plugins.svn=1.0.0.M1 plugins.tomcat=2.0.0.M1 As it stands I'd have to attach my whole app as an example (I haven't yet reproduced this in a trivial app) which I'd rather not do, so I was appealing to the community for ideas that might help me figure it out for myself before resorting to that. Thanks On 1 Aug 2011, at 11:52, Graeme Rocher wrote: > You probably have a property called "errors" in your domain. Please > raise an issue and attach an example > > Thanks > > On Mon, Aug 1, 2011 at 11:26 AM, Sam Carr <[hidden email]> wrote: >> I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors. >> >> Does anyone have any bright ideas what might be happening or areas to investigate? >> >> >> grails> compile >> | Compiling 40 source files >> Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. >> Note: Recompile with -Xlint:deprecation for details. >> | Compiling 36 source files. >> | Error Compilation error: startup failed: >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. >> @ line -1, column -1. >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. >> @ line -1, column -1. >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. >> @ line -1, column -1. >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. >> @ line -1, column -1. >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. >> @ line -1, column -1. >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. >> @ line -1, column -1. >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. >> @ line -1, column -1. >> 7 errors >> | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > > > -- > Graeme Rocher > Grails Project Lead > SpringSource - A Division of VMware > http://www.springsource.com > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
I'm hit by the same error.
We have hibernate, spring-sec and tomcat plugins in common. Am Montag, den 01.08.2011, 13:04 +0100 schrieb Sam Carr: > My domain class is very simple (after I stripped out all its content in trying to figure out this problem) and definitely doesn't contain an errors property :-) > > class User { } > > So I figure something else is fighting over it at compile time in trying to add properties. I suspected that perhaps a plugin was clashing with Grails new compile-time injection of domain functionality. Those plugins I have are listed below, but I would only expect Spring Security as a potential culprit. However if I change the SS config to state something different as its userDomainClassName object the error remains, so it seems unlikely SS is to blame. > > plugins.geb=0.6 > plugins.hibernate=2.0.0.M1 > plugins.spock=0.6-SNAPSHOT > plugins.spring-security-core=1.2 > plugins.svn=1.0.0.M1 > plugins.tomcat=2.0.0.M1 > > As it stands I'd have to attach my whole app as an example (I haven't yet reproduced this in a trivial app) which I'd rather not do, so I was appealing to the community for ideas that might help me figure it out for myself before resorting to that. > > Thanks > > > On 1 Aug 2011, at 11:52, Graeme Rocher wrote: > > > You probably have a property called "errors" in your domain. Please > > raise an issue and attach an example > > > > Thanks > > > > On Mon, Aug 1, 2011 at 11:26 AM, Sam Carr <[hidden email]> wrote: > >> I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors. > >> > >> Does anyone have any bright ideas what might be happening or areas to investigate? > >> > >> > >> grails> compile > >> | Compiling 40 source files > >> Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. > >> Note: Recompile with -Xlint:deprecation for details. > >> | Compiling 36 source files. > >> | Error Compilation error: startup failed: > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. > >> @ line -1, column -1. > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. > >> @ line -1, column -1. > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. > >> @ line -1, column -1. > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. > >> @ line -1, column -1. > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. > >> @ line -1, column -1. > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. > >> @ line -1, column -1. > >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. > >> @ line -1, column -1. > >> 7 errors > >> | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > >> > >> http://xircles.codehaus.org/manage_email > >> > >> > >> > > > > > > > > -- > > Graeme Rocher > > Grails Project Lead > > SpringSource - A Division of VMware > > http://www.springsource.com > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Administrator
|
If someone can JIRA with an example we'll take a look
Thanks On Mon, Aug 1, 2011 at 4:42 PM, Finn Herpich <[hidden email]> wrote: > I'm hit by the same error. > We have hibernate, spring-sec and tomcat plugins in common. > > > Am Montag, den 01.08.2011, 13:04 +0100 schrieb Sam Carr: >> My domain class is very simple (after I stripped out all its content in trying to figure out this problem) and definitely doesn't contain an errors property :-) >> >> class User { } >> >> So I figure something else is fighting over it at compile time in trying to add properties. I suspected that perhaps a plugin was clashing with Grails new compile-time injection of domain functionality. Those plugins I have are listed below, but I would only expect Spring Security as a potential culprit. However if I change the SS config to state something different as its userDomainClassName object the error remains, so it seems unlikely SS is to blame. >> >> plugins.geb=0.6 >> plugins.hibernate=2.0.0.M1 >> plugins.spock=0.6-SNAPSHOT >> plugins.spring-security-core=1.2 >> plugins.svn=1.0.0.M1 >> plugins.tomcat=2.0.0.M1 >> >> As it stands I'd have to attach my whole app as an example (I haven't yet reproduced this in a trivial app) which I'd rather not do, so I was appealing to the community for ideas that might help me figure it out for myself before resorting to that. >> >> Thanks >> >> >> On 1 Aug 2011, at 11:52, Graeme Rocher wrote: >> >> > You probably have a property called "errors" in your domain. Please >> > raise an issue and attach an example >> > >> > Thanks >> > >> > On Mon, Aug 1, 2011 at 11:26 AM, Sam Carr <[hidden email]> wrote: >> >> I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors. >> >> >> >> Does anyone have any bright ideas what might be happening or areas to investigate? >> >> >> >> >> >> grails> compile >> >> | Compiling 40 source files >> >> Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. >> >> Note: Recompile with -Xlint:deprecation for details. >> >> | Compiling 36 source files. >> >> | Error Compilation error: startup failed: >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. >> >> @ line -1, column -1. >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. >> >> @ line -1, column -1. >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. >> >> @ line -1, column -1. >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. >> >> @ line -1, column -1. >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. >> >> @ line -1, column -1. >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. >> >> @ line -1, column -1. >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. >> >> @ line -1, column -1. >> >> 7 errors >> >> | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe from this list, please visit: >> >> >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> >> >> > >> > >> > >> > -- >> > Graeme Rocher >> > Grails Project Lead >> > SpringSource - A Division of VMware >> > http://www.springsource.com >> > >> > --------------------------------------------------------------------- >> > To unsubscribe from this list, please visit: >> > >> > http://xircles.codehaus.org/manage_email >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
I'm currently trying to reproduce it in a sample-app but with no luck so
far. Am Montag, den 01.08.2011, 16:52 +0200 schrieb Graeme Rocher: > If someone can JIRA with an example we'll take a look > > Thanks > > On Mon, Aug 1, 2011 at 4:42 PM, Finn Herpich <[hidden email]> wrote: > > I'm hit by the same error. > > We have hibernate, spring-sec and tomcat plugins in common. > > > > > > Am Montag, den 01.08.2011, 13:04 +0100 schrieb Sam Carr: > >> My domain class is very simple (after I stripped out all its content in trying to figure out this problem) and definitely doesn't contain an errors property :-) > >> > >> class User { } > >> > >> So I figure something else is fighting over it at compile time in trying to add properties. I suspected that perhaps a plugin was clashing with Grails new compile-time injection of domain functionality. Those plugins I have are listed below, but I would only expect Spring Security as a potential culprit. However if I change the SS config to state something different as its userDomainClassName object the error remains, so it seems unlikely SS is to blame. > >> > >> plugins.geb=0.6 > >> plugins.hibernate=2.0.0.M1 > >> plugins.spock=0.6-SNAPSHOT > >> plugins.spring-security-core=1.2 > >> plugins.svn=1.0.0.M1 > >> plugins.tomcat=2.0.0.M1 > >> > >> As it stands I'd have to attach my whole app as an example (I haven't yet reproduced this in a trivial app) which I'd rather not do, so I was appealing to the community for ideas that might help me figure it out for myself before resorting to that. > >> > >> Thanks > >> > >> > >> On 1 Aug 2011, at 11:52, Graeme Rocher wrote: > >> > >> > You probably have a property called "errors" in your domain. Please > >> > raise an issue and attach an example > >> > > >> > Thanks > >> > > >> > On Mon, Aug 1, 2011 at 11:26 AM, Sam Carr <[hidden email]> wrote: > >> >> I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors. > >> >> > >> >> Does anyone have any bright ideas what might be happening or areas to investigate? > >> >> > >> >> > >> >> grails> compile > >> >> | Compiling 40 source files > >> >> Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. > >> >> Note: Recompile with -Xlint:deprecation for details. > >> >> | Compiling 36 source files. > >> >> | Error Compilation error: startup failed: > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. > >> >> @ line -1, column -1. > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. > >> >> @ line -1, column -1. > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. > >> >> @ line -1, column -1. > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. > >> >> @ line -1, column -1. > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. > >> >> @ line -1, column -1. > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. > >> >> @ line -1, column -1. > >> >> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. > >> >> @ line -1, column -1. > >> >> 7 errors > >> >> | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe from this list, please visit: > >> >> > >> >> http://xircles.codehaus.org/manage_email > >> >> > >> >> > >> >> > >> > > >> > > >> > > >> > -- > >> > Graeme Rocher > >> > Grails Project Lead > >> > SpringSource - A Division of VMware > >> > http://www.springsource.com > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe from this list, please visit: > >> > > >> > http://xircles.codehaus.org/manage_email > >> > > >> > > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list, please visit: > >> > >> http://xircles.codehaus.org/manage_email > >> > >> > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Finn Herpich-3
> I'm hit by the same error.
> We have hibernate, spring-sec and tomcat plugins in common. Are you using command objects at all? The @Validateable annotation? Does uninstalling the Spring Security Core plugin fix the problem? -- Peter Ledbrook Grails Advocate SpringSource - A Division of VMware --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Am Montag, den 01.08.2011, 16:05 +0100 schrieb Peter Ledbrook:
> > I'm hit by the same error. > > We have hibernate, spring-sec and tomcat plugins in common. > > Are you using command objects at all? The @Validateable annotation? > Does uninstalling the Spring Security Core plugin fix the problem? > No to all three questions for me --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Finn Herpich-3
I upgraded a 1.3.7 to 2.0.M1 and was getting these errors too, the compilation message errors were the same as of you, but the problem was not on my domains but on my controllers were i have def methods defined, eg: def someMethod(String s), when i changed them to private someMethod(String s) the errors go away. HTH.
On Aug 1, 2011, at 11:42 PM, Finn Herpich wrote: > I'm hit by the same error. > We have hibernate, spring-sec and tomcat plugins in common. > > > Am Montag, den 01.08.2011, 13:04 +0100 schrieb Sam Carr: >> My domain class is very simple (after I stripped out all its content in trying to figure out this problem) and definitely doesn't contain an errors property :-) >> >> class User { } >> >> So I figure something else is fighting over it at compile time in trying to add properties. I suspected that perhaps a plugin was clashing with Grails new compile-time injection of domain functionality. Those plugins I have are listed below, but I would only expect Spring Security as a potential culprit. However if I change the SS config to state something different as its userDomainClassName object the error remains, so it seems unlikely SS is to blame. >> >> plugins.geb=0.6 >> plugins.hibernate=2.0.0.M1 >> plugins.spock=0.6-SNAPSHOT >> plugins.spring-security-core=1.2 >> plugins.svn=1.0.0.M1 >> plugins.tomcat=2.0.0.M1 >> >> As it stands I'd have to attach my whole app as an example (I haven't yet reproduced this in a trivial app) which I'd rather not do, so I was appealing to the community for ideas that might help me figure it out for myself before resorting to that. >> >> Thanks >> >> >> On 1 Aug 2011, at 11:52, Graeme Rocher wrote: >> >>> You probably have a property called "errors" in your domain. Please >>> raise an issue and attach an example >>> >>> Thanks >>> >>> On Mon, Aug 1, 2011 at 11:26 AM, Sam Carr <[hidden email]> wrote: >>>> I've been trying to upgrade my app to Grails 2.0M1, but I've hit a roadblock I just can't get past. When I compile it throws up a bunch of errors about my User domain object having repetitive method name/sig for various validation related methods like hasErrors(), getErrors() etc. My class is fairly vanilla, doesn't inherit from anything and in fact if I comment out the entire implementation (so just an empty class definition) I still get these errors. >>>> >>>> Does anyone have any bright ideas what might be happening or areas to investigate? >>>> >>>> >>>> grails> compile >>>> | Compiling 40 source files >>>> Note: /Users/samcarr/.grails/2.0.0.M1/projects/LunchApp20T2/plugins/spring-security-core-1.2/src/java/org/codehaus/groovy/grails/plugins/springsecurity/AnnotationFilterInvocationDefinition.java uses or overrides a deprecated API. >>>> Note: Recompile with -Xlint:deprecation for details. >>>> | Compiling 36 source files. >>>> | Error Compilation error: startup failed: >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: The field 'errors' is declared multiple times. >>>> @ line -1, column -1. >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. >>>> @ line -1, column -1. >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. >>>> @ line -1, column -1. >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. >>>> @ line -1, column -1. >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'java.lang.Boolean hasErrors()' in class 'com.softwire.lunchapp.User'. >>>> @ line -1, column -1. >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'org.springframework.validation.Errors getErrors()' in class 'com.softwire.lunchapp.User'. >>>> @ line -1, column -1. >>>> /Users/samcarr/Dev/GroovyGrails/LunchApp20T2/grails-app/domain/com/softwire/lunchapp/User.groovy: -1: Repetitive method name/signature for method 'void setErrors(org.springframework.validation.Errors)' in class 'com.softwire.lunchapp.User'. >>>> @ line -1, column -1. >>>> 7 errors >>>> | Error Error running script compile: org.codehaus.groovy.grails.cli.ScriptExitException (Use --stacktrace to see the full trace) >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>> >>> >>> >>> -- >>> Graeme Rocher >>> Grails Project Lead >>> SpringSource - A Division of VMware >>> http://www.springsource.com >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
On Mon, Aug 1, 2011 at 11:13 AM, Wilson Akira Ikeda
<[hidden email]> wrote: > I upgraded a 1.3.7 to 2.0.M1 and was getting these errors too, the compilation message errors were the same as of you, but the problem was not on my domains but on my controllers were i have def methods defined, eg: def someMethod(String s), when i changed them to private someMethod(String s) the errors go away. HTH. > The example you show there uses String as a param. Is that just because you were typing a simple example or is it really the case that a method that accepts a String arg triggers the problem? The argument type may be relevant if this is related to recent command object related changes. Thanks for your help. jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
That was just an example, i have to change all my methods doesn't matter the args types, eg: object, String, int, i discovered it by isolation:
I remembered that there was some mention to use private method syntaxes on the release notes or some inexplicable problems could occur, tried that and it worked, at last for me. HTH. On Aug 2, 2011, at 1:36 AM, Jeff Brown wrote:
|
|
On Mon, Aug 1, 2011 at 12:09 PM, Wilson Akira Ikeda
<[hidden email]> wrote: > That was just an example, i have to change all my methods doesn't matter the > args types, eg: object, String, int, i discovered it by isolation: > > created a plain vanilla app > added the spring security plugin (no errors) > added the domain classes that were throwing errors (including domains not > related to my user domain) (no errors) > when i added (copied) the controllers the problem appears > Example : def sendRegistrationThanksEmail(Member member, String title) -> > private void sendRegistrationThanksEmail(Member member, String title) > > I remembered that there was some mention to use private method syntaxes on > the release notes or some inexplicable problems could occur, tried that and > it worked, at last for me. > HTH. > On Aug Is Member a domain class? jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by wilsonaikeda@gmail.com
On Mon, Aug 1, 2011 at 12:09 PM, Wilson Akira Ikeda
<[hidden email]> wrote: > That was just an example, i have to change all my methods doesn't matter the > args types, eg: object, String, int, i discovered it by isolation: > > created a plain vanilla app > added the spring security plugin (no errors) > added the domain classes that were throwing errors (including domains not > related to my user domain) (no errors) > when i added (copied) the controllers the problem appears > Example : def sendRegistrationThanksEmail(Member member, String title) -> > private void sendRegistrationThanksEmail(Member member, String title) > > I remembered that there was some mention to use private method syntaxes on > the release notes or some inexplicable problems could occur, tried that and > it worked, at last for me. > HTH. > On Aug 2, 2011, at 1:36 AM, Jeff Brown wrote: > The problem is simple to reproduce. See http://jira.grails.org/browse/GRAILS-7812. I will get this straightened out right away. Thanks for the help. jb -- Jeff Brown SpringSource http://www.springsource.com/ Autism Strikes 1 in 166 Find The Cause ~ Find The Cure http://www.autismspeaks.org/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Bingo - well done Jeff for figuring out what's causing it!
Note that in my case it was a 'helper method' in my controller that had the following signature, so my User class wasn't even being used as a Command strictly (I had a second class for that, which just happens to also be passed to this helper) though I imagine it's all kind of the same with the new 2.0 feature where params are mapped to action arguments. def handlePost(UserCommand cmd, User user) Setting this method to private suddenly made the compilation errors go away, as it was no longer treating it as an action with arguments that needed binding from the request. Thanks On 1 Aug 2011, at 19:12, Jeff Brown wrote: > The problem is simple to reproduce. See > http://jira.grails.org/browse/GRAILS-7812. > > I will get this straightened out right away. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
