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
grails grails-2.4


source to share


No one has answered this question yet

Check out similar questions:

13
Grails - Removing an item from a hasMany Databinding List?
4
Exclude Grails filter from 2 (or more) controllers
4
Grails 3 Spring Security No hibernate session
2
WAR error: start failing for grails war
1
The [com.docu.MemberInfo] class method was used outside of a Grails application
1
Grails: Is Domain.executeUpdate session running?
1
Linking a collection of domain objects in a Grails command object
1
How to get content from response in grails 2.4.4
1
Error removing .grails folder from home in grails
0
Grails Controller var from session scope (Grails 3)



All Articles
Loading...
X
Show
Funny
Dev
Pics