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

GitHub | shawnchain | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    GitHub | 7 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