How To Solve Issues Related to Log – Plugin: implementing onModule with no parameters or more than one parameter

How To Solve Issues Related to Log – Plugin: implementing onModule with no parameters or more than one parameter

Updated: Feb-20

Elasticsearch Version: 1.7-8.0

Background

Before you begin reading this guide try our beta Elasticsearch Health Check-Up it analyses JSON’s to provide personalized recommendations that can improve your clusters performance.


To troubleshoot log “Plugin: implementing onModule with no parameters or more than one parameter” it’s important to understand a few problems related to Elasticsearch concepts plugins. See bellow important tips and explanations on these concepts

Log Context

Log”Plugin: {} implementing onModule with no parameters or more than one parameter” classname is PluginsService.java
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                 // this is a deprecated final method; so all Plugin subclasses have it
                if (method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(IndexModule.class)) {
                    continue;
                }
                if (method.getParameterTypes().length == 0 || method.getParameterTypes().length > 1) {
                    logger.warn("Plugin: {} implementing onModule with no parameters or more than one parameter"; plugin.name());
                    continue;
                }
                Class moduleClass = method.getParameterTypes()[0];
                if (!Module.class.isAssignableFrom(moduleClass)) {
                    logger.warn("Plugin: {} implementing onModule by the type is not of Module type {}"; plugin.name(); moduleClass);




Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 Ellij Inspection Gives Cannot Resol  

Able To Evaluate Expression Whilst  

About Opster

Opster detects root causes of Elasticsearch problems, provides automated recommendations and can perform various actions to prevent issues and optimize performance

Find Configuration Errors

Analyze Now