Remove flash object from Grails session

I want to remove a Flash object from a session in a Grails application. I do with

session.removeAttribute('org.codehaus.groovy.grails.FLASH_SCOPE')

but it throws the following error:

com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.web.servlet.GrailsFlashScope
java.util.concurrent.ExecutionException: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.web.servlet.GrailsFlashScope
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.7.0_51]
at java.util.concurrent.FutureTask.get(FutureTask.java:188) ~[na:1.7.0_51]

      

Is there a better solution for removing the flash object from the session?

+3


source to share





All Articles