Grails JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
Commentable Plugin
  • Commentable Plugin
  • GPCOMMENTABLE-3

recentComments bug

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open 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)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    RecentComments.patch
    18/Mar/10 10:38 AM
    0.6 kB
    phillip rhodes

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    phillip rhodes
Vote (0)
Watch (0)

Dates

  • Created:
    18/Mar/10 10:38 AM
    Updated:
    25/Mar/11 12:37 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.1#813-sha1:277a546)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Grails project. Try JIRA - bug tracking software for your team.