saif-hmk / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

[Grails] i'm using this in grails app and monitoring work fine but http://localhost:8080/EBlast/monitoring. #294

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.monitoring work's fine with :grails-melody:1.13"
2.but when i try to access dashboard and other page of my app it gave me 
exception like 
3.| Error 2013-03-19 11:13:29,403 [http-bio-8080-exec-1] ERROR 
errors.GrailsExceptionResolver  - MissingMethodException occurred when 
processing request: [GET] /EBlast/
No signature of method: com.campaign.TrackingService$_closure4.doCall() is 
applicable for argument types: ([Ljava.lang.Object;) values: 
[[com.campaign.Email : 1]]
Possible solutions: doCall(com.campaign.Email), call([Ljava.lang.Object;), 
call(), call(java.lang.Object), call(com.campaign.Email), findAll(). Stacktrace 
follows:
Message: No signature of method: 
com.campaign.TrackingService$_closure4.doCall() is applicable for argument 
types: ([Ljava.lang.Object;) values: [[com.campaign.Email : 1]]
Possible solutions: doCall(com.campaign.Email), call([Ljava.lang.Object;), 
call(), call(java.lang.Object), call(com.campaign.Email), findAll()
    Line | Method
->>  152 | doCall    in 
GrailsMelodyGrailsPlugin$_closure5_closure18_closure19_closure21
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    162 | doCall    in GrailsMelodyGrailsPlugin$_closure5_closure18_closure19
|     25 | doCall .  in com.campaign.DashboardService$_closure1_closure5
|     24 | doCall    in com.campaign.DashboardService$_closure1
|    152 | doCall .  in 
GrailsMelodyGrailsPlugin$_closure5_closure18_closure19_closure21
|    162 | doCall    in GrailsMelodyGrailsPlugin$_closure5_closure18_closure19
|     16 | index . . in com.campaign.DashboardController
|    195 | doFilter  in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter  in grails.plugin.cache.web.filter.AbstractFilter
|    117 | invoke    in net.bull.javamelody.JspWrapper
|    233 | invoke .  in 
net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler
|     53 | doFilter  in 
grails.plugin.multitenant.core.servlet.CurrentTenantServletFilter
|    197 | doFilter  in net.bull.javamelody.MonitoringFilter
|    171 | doFilter  in     ''
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . in java.lang.Thread

Process finished with exit code -1

 java version 1.7
 operating system window 7
application server apche tomcate 7
grails 2.21

Please provide any additional information below.

Original issue reported on code.google.com by anandkus...@gmail.com on 19 Mar 2013 at 5:57

GoogleCodeExporter commented 9 years ago
GrailsMelodyCponfig.groovy

/*
You can find all detailed parameter usage from
http://code.google.com/p/javamelody/wiki/UserGuide#6._Optional_parameters
Any parameter with 'javamelody.' prefix configured in this file will be add as 
init-param of java melody MonitoringFilter.
 */

/*
The parameter disabled (false by default) just disables the monitoring.
 */
javamelody.disabled = false

/*
The parameter system-actions-enabled (true by default) enables some system 
actions.
 */
javamelody.'system-actions-enabled' = true

/*
Turn on Grails Service monitoring by adding 'spring' in displayed-counters 
parameter.
 */
javamelody.'displayed-counters' = 'http,sql,error,log,spring,jsp'

/*
The parameter url-exclude-pattern is a regular expression to exclude some urls 
from monitoring as written above.
 */
//javamelody.'url-exclude-pattern' = '/static/.*'

/*
Specify jndi name of datasource to monitor in production environment
 */
/*environments {
    production {
        javamelody.datasources = 'java:comp/env/myapp/mydatasource'
    }
}*/

*******************************************************************************
DataSource.groovy
dataSource {
    pooled = true
    driverClassName = "com.mysql.jdbc.Driver"
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = false
    cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
    development {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
            url = "jdbc:mysql://localhost:3306/eblast?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
            username="root"
            password="root"
        }
    }
    test {
        dataSource {
            dbCreate = "update"
            url = "jdbc:mysql://localhost:3306/eblast?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
        }
    }
    production {
        dataSource {
            dbCreate = "update"
            url = "jdbc:mysql://localhost:3306/eblast?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
            pooled = true
            username="root"
            password="root"
            properties {
                maxActive = -1
                minEvictableIdleTimeMillis=1800000
                timeBetweenEvictionRunsMillis=1800000
                numTestsPerEvictionRun=3
                testOnBorrow=true
                testWhileIdle=true
                testOnReturn=true
                validationQuery="SELECT 1"
            }
        }
    }
}

Original comment by anandkus...@gmail.com on 19 Mar 2013 at 6:35

GoogleCodeExporter commented 9 years ago
It seems to be a duplicate of issue 165.
In particular the following thread has MissingMethodException:
https://groups.google.com/forum/?fromgroups=#!topic/javamelody/Ewc4vfxaUOg
It was said in the thread that changing (removing) the type of the parameters 
in the method declaration workarounds the problem.

I am open to any patch to fix the issue:
https://svn.codehaus.org/grails-plugins/grails-grails-melody/trunk/GrailsMelodyG
railsPlugin.groovy

Original comment by evernat@free.fr on 19 Mar 2013 at 10:27

GoogleCodeExporter commented 9 years ago
any news?

Original comment by evernat@free.fr on 28 Mar 2013 at 11:07

GoogleCodeExporter commented 9 years ago
Hi anandkushwahakiet (quite a good and unique name by the way!),
No response from you, so resolving the issue as duplicate of issue 165.

Original comment by evernat@free.fr on 4 Apr 2013 at 8:31