Grails Scaffolding Plugin
  1. Grails Scaffolding Plugin
  2. GPSCAFFOLD-71

Scaffolded views reloading glitch if base class properties are changed.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      i found a small glitch in reloading of scaffolded views

      1. create domain classes (see below) with inheritance
      2. create scaffolded = yes controller
      3. run-app
      4. open the http://localhost:8080/project/multiLevelKpi/create (inherting class)
      5. comment out or rename the String property in the base class
      6. reload http://localhost:8080/project/multiLevelKpi/create
      7. error (see below) will occur
      8. only after editing/updating multiLevelKpi as well it will work again

      class PreorderTreeNode

      { static mapWith = "mongo" Integer left; Integer right; String x // comment out to test }

      }

      class MultiLevelKpi extends PreorderTreeNode

      { static mapWith = "mongo" }
      Error 2011-12-09 01:25:19,779 ["http-bio-8080"-exec-6] ERROR errors.GrailsExceptionResolver - NoSuchMethodError occurred when processing request: [GET] /TreeTest/multiLevelKpi/create
      com.sp.PreorderTreeNode.getX()Ljava/lang/String;. Stacktrace follows:
      Message: Error processing GroovyPageView: Error executing tag <g:form>: Error executing tag <g:render>: Error evaluating expression [multiLevelKpiInstance?.x] on line [34]: java.lang.NoSuchMethodError: com.sp.PreorderTreeNode.getX()Ljava/lang/String;
      Line
      Method
      ->> 36
      doFilter in /multiLevelKpi/create
      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Caused by GrailsTagException: Error executing tag <g:form>: Error executing tag <g:render>: Error evaluating expression [multiLevelKpiInstance?.x] on line [34]: java.lang.NoSuchMethodError: com.sp.PreorderTreeNode.getX()Ljava/lang/String;
        ->> 36
      doCall in /multiLevelKpi/create
      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Caused by GrailsTagException: Error executing tag <g:render>: Error evaluating expression [multiLevelKpiInstance?.x] on line [34]: java.lang.NoSuchMethodError: com.sp.PreorderTreeNode.getX()Ljava/lang/String;
        ->> 31
      doCall in /multiLevelKpi/create
      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Caused by GroovyPagesException: Error evaluating expression [multiLevelKpiInstance?.x] on line [34]: java.lang.NoSuchMethodError: com.sp.PreorderTreeNode.getX()Ljava/lang/String;
        ->> 34
      run in /multiLevelKpi/_form.gsp
      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Caused by InvokerInvocationException: java.lang.NoSuchMethodError: com.sp.PreorderTreeNode.getX()Ljava/lang/String;
        ->> 34
      run in multiLevelKpi__form_gsp
      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      31 doCall in multiLevelKpi_create$_run_closure2_closure23
      36 doCall . in multiLevelKpi_create$_run_closure2
      38 run in multiLevelKpi_create
      270 doFilter in com.planetj.servlet.filter.compression.CompressingFilter
      886 runTask in java.util.concurrent.ThreadPoolExecutor$Worker
      908 run . . in ''
      ^ 662
      run in java.lang.Thread
      Caused by NoSuchMethodError: com.sp.PreorderTreeNode.getX()Ljava/lang/String;
      ->> 34
      doCall in multiLevelKpi__form_gsp$_run_closure24
      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      31 doCall in multiLevelKpi_create$_run_closure2_closure23
      36 doCall . in multiLevelKpi_create$_run_closure2
      38 run in multiLevelKpi_create
      270 doFilter in com.planetj.servlet.filter.compression.CompressingFilter
      886 runTask in java.util.concurrent.ThreadPoolExecutor$Worker
      908 run . . in ''
      ^ 662
      run in java.lang.Thread

        Activity

        Hide
        Lari Hotari added a comment -

        This might be fixed by GPSCAFFOLD-62 , in scaffold plugin version 2.0.1 . Could you test it?

        Show
        Lari Hotari added a comment - This might be fixed by GPSCAFFOLD-62 , in scaffold plugin version 2.0.1 . Could you test it?

          People

          • Assignee:
            Unassigned
            Reporter:
            Andre
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: