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

GitHub | shawnchain | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

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