groovy.lang.GroovyRuntimeException: Cannot set read-only property: session

GitHub | shawnchain | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    grails 3.1.9 can not set request attribute named "session" in interceptor or action

    GitHub | 8 months ago | shawnchain
    groovy.lang.GroovyRuntimeException: Cannot set read-only property: session

    Root Cause Analysis

    1. groovy.lang.GroovyRuntimeException

      Cannot set read-only property: session

      at hellog3.UserInterceptor.before()
    2. hellog3
      UserInterceptor.before
      1. hellog3.UserInterceptor.before(UserInterceptor.groovy:8)
      1 frame
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames