Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      N/A
    • Patch Submitted:
      Yes

      Description

      If you call a domain objects "getRecentComments" method that this plugin injects, an exception is throw.
      This patch fixes this method. Very small fix

      java.lang.IllegalArgumentException: argument type mismatch
      at CommentableGrailsPlugin$_closure2_closure4_closure5_closure11_closure12.doCall(CommentableGrailsPlugin.groovy:59)
      at CommentableGrailsPlugin$_closure2_closure4_closure5_closure11_closure12.doCall(CommentableGrailsPlugin.groovy)
      at grails.orm.HibernateCriteriaBuilder.invokeClosureNode(HibernateCriteriaBuilder.java:1233)
      at grails.orm.HibernateCriteriaBuilder.invokeMethod(HibernateCriteriaBuilder.java:992)
      at CommentableGrailsPlugin$_closure2_closure4_closure5_closure11.doCall(CommentableGrailsPlugin.groovy:57)
      at georepo.services.MobileService.getSpotResponse(MobileService.groovy:198)
      at georepo.services.MobileService$$FastClassByCGLIB$$7001860e.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at georepo.services.MobileService$$EnhancerByCGLIB$$a63122cc.getSpotResponse(<generated>)
      at georepo.services.MobileService$getSpotResponse.call(Unknown Source)
      at georepo.MobileServiceTests.testSpotWithComments(MobileServiceTests.groovy:68)
      at junit.framework.Test$run.call(Unknown Source)
      at _GrailsTest_groovy$_run_closure4.doCall(_GrailsTest_groovy:262)
      at _GrailsTest_groovy$_run_closure4.call(_GrailsTest_groovy)
      at _GrailsTest_groovy$_run_closure2.doCall(_GrailsTest_groovy:221)
      at _GrailsTest_groovy$_run_closure1_closure21.doCall(_GrailsTest_groovy:181)
      at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:168)
      at TestApp$_run_closure1.doCall(TestApp:102)
      at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
      at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
      at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
      at gant.Gant.withBuildListeners(Gant.groovy:344)
      at gant.Gant.this$2$withBuildListeners(Gant.groovy)
      at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
      at gant.Gant.dispatch(Gant.groovy:334)
      at gant.Gant.this$2$dispatch(Gant.groovy)
      at gant.Gant.invokeMethod(Gant.groovy)
      at gant.Gant.processTargets(Gant.groovy:495)
      at gant.Gant.processTargets(Gant.groovy:480)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            phillip rhodes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: