Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
just to push it a little forward...
The problem seems to appear only with recent versions of Grails (and of Groovy).

Grails Melody plugin is here:
http://plugins.grails.org/grails-grails-melody/trunk/GrailsMelodyGrailsPlugin.gr
oovy
and the exception thrown is in the else of the plugin (line 158) because it 
seems
that the metaMethod is not found.

But this code seems ok when I read some examples on the Internet like the last 
one in
http://groovy.codehaus.org/ExpandoMetaClass+Domain-Specific+Language

All that I see from examples on Internet is that perhaps we can try to replace
"delegate.metaClass.getMetaMethod(name, args)" by
"delegate.class.metaClass.getMetaMethod(name, args)" (but I did not test that).

The FilterService.groovy is here:
http://plugins.grails.org/grails-filterpane/trunk/grails-app/services/com/zeddwa
re/grails/plugins/filterpane/FilterService.groovy
Is there a problem with "def params" in the "filter" method?
Or is there a problem with the fact that there is 2 "filter" methods in this 
file?

And for reference, MetaMethod, MetaClass and ExpandoMetaClass of Groovy 1.7.2 
are here:
http://www.jarvana.com/jarvana/view/org/codehaus/groovy/groovy/1.7.2/groovy-1.7.
2-sources.jar!/groovy/lang/MetaMethod.java?format=ok
http://www.jarvana.com/jarvana/view/org/codehaus/groovy/groovy/1.7.2/groovy-1.7.
2-sources.jar!/groovy/lang/MetaClassImpl.java?format=ok
http://www.jarvana.com/jarvana/view/org/codehaus/groovy/groovy/1.7.2/groovy-1.7.
2-sources.jar!/groovy/lang/ExpandoMetaClass.java?format=ok

Any idea?

Original comment by [email protected] on 16 May 2010 at 4:58

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
I have just seen this post with a similar issue:
http://groups.google.com/group/nimbleproject/browse_thread/thread/3a2b38e968f3de
10/828cfa957569816d?q=javamelody#828cfa957569816d

And it was solved by replacing "def init = " with "public void init() " in the 
service:
http://github.com/bradleybeddoes/nimble/commit/1a965cac113fd0a56077a2c327b553e6e
b872dbd

How could we change "def filter(def params, Class filterClass) {" in
http://plugins.grails.org/grails-filterpane/trunk/grails-app/services/com/zeddwa
re/grails/plugins/filterpane/FilterService.groovy
?

Would it work?

Original comment by [email protected] on 17 May 2010 at 9:58

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
It doesn't look like the exact same issue. Nimble had a problem with a closure
defined in a service; whereas there are no closures in FilterPane's 
FilterService.
Maybe the "private" methods are a problem? Could Steve move those methods to a 
Groovy
class or make them public?

Original comment by ogourment on 18 May 2010 at 1:58

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Fixed by Liu Chao in JavaMelody Grails plugin v0.3 which is now released 
(including
JavaMelody v1.15.0).

http://www.grails.org/plugin/grails-melody

Original comment by [email protected] on 25 May 2010 at 7:18

  • Changed state: Fixed

from javamelody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.