|
Hi,
I have this code inside LidController package blauweregen import org.springframework.dao.DataIntegrityViolationException class LidController { static scaffold = true static beforeInterceptor = [action: this.&isIngelogd, except: ['login', 'authenticate']] def login() { } def mijnAccount() { } private isIngelogd() { if(!session.lid) { redirect(action: 'login') return false } else { return true } } def authenticate() { def lid = Lid.findByIdAndWachtwoord(params.lidnummer, params.wachtwoord) if (lid) { session.lid = lid flash.message = "Hallo ${lid.voornaam}!" redirect(action: "mijnAccount") } else { flash.message = "Foute gegevens. Probeer opnieuw!" redirect(action: "login") } } def logout = { flash.message = "Tot ziens ${session.persoon}" session.lid = null redirect(action: "login") } } I always get an error when I try to go to /app/lid/mijnAccount GRAILS-7799: Subtype 'java.lang.Class' of reloadable type blauweregen.LidController is not reloadable: may not see changes reloaded in this hierarchy (please comment on that jira) | Error 2012-01-10 03:26:26,910 ["http-bio-8080"-exec-3] ERROR errors.GrailsExceptionResolver - IllegalArgumentException occurred when processing request: [GET] /blauweregen/lid/mijnAccount object is not an instance of declaring class. Stacktrace follows: Message: object is not an instance of declaring class Line | Method ->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 908 | run in '' ^ 680 | run . . in java.lang.Thread |
|
you are on the 2.0.0 final release?
On Jan 9, 2012, at 8:28 PM, joelcraenhals wrote: > Hi, > > I have this code inside LidController > > *package blauweregen > > import org.springframework.dao.DataIntegrityViolationException > > class LidController { > > static scaffold = true > > static beforeInterceptor = [action: this.&isIngelogd, except: ['login', > 'authenticate']] > > def login() { > } > > def mijnAccount() { > } > > private isIngelogd() { > if(!session.lid) { > redirect(action: 'login') > return false > } else { > return true > } > } > > def authenticate() { > def lid = Lid.findByIdAndWachtwoord(params.lidnummer, params.wachtwoord) > if (lid) { > session.lid = lid > flash.message = "Hallo ${lid.voornaam}!" > redirect(action: "mijnAccount") > } else { > flash.message = "Foute gegevens. Probeer opnieuw!" > redirect(action: "login") > } > } > > def logout = { > flash.message = "Tot ziens ${session.persoon}" > session.lid = null > redirect(action: "login") > } > } > * > > I always get an error when I try to go to /app/lid/mijnAccount > > GRAILS-7799: Subtype 'java.lang.Class' of reloadable type > blauweregen.LidController is not reloadable: may not see changes reloaded in > this hierarchy (please comment on that jira) > | Error 2012-01-10 03:26:26,910 ["http-bio-8080"-exec-3] ERROR > errors.GrailsExceptionResolver - IllegalArgumentException occurred when > processing request: [GET] /blauweregen/lid/mijnAccount > object is not an instance of declaring class. Stacktrace follows: > Message: object is not an instance of declaring class > Line | Method > ->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > | 908 | run in '' > ^ 680 | run . . in java.lang.Thread > > -- > View this message in context: http://grails.1312388.n4.nabble.com/Beforeinterceptor-problem-tp4280862p4280862.html > Sent from the Grails - user mailing list archive at Nabble.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 |
|
Yes
Met vriendelijke groet,
Joël Craenhals Gsm: +32 473 27 65 55 Mail: [hidden email] Web: craenhals.eu Op 10-jan.-2012, om 16:18 heeft basejump (Josh) [via Grails] het volgende geschreven: you are on the 2.0.0 final release? |
|
Hi,
did you manage to get it fixed? I'm facing this problem now. Regards, Eduardo |
| Powered by Nabble | Edit this page |
