RapidMiner

Plugin initialization problem

Regular Contributor

Plugin initialization problem

Hello,

one of user of our extenstion (cutom developed for him) has problem with loading it. It works properly on our computers but not on his. He has the same version of the RapidMiner Studio (we tried 7.1 and 7.2). The only differrence is installed plugins.

When RM starts this error appears:

incompatible.png

 

 

 

 

 

 

 

 

 

 

This is part of starting log with the error:

WARNING: Plugin initializer com.burgsys.invoices.PluginInitInvoices.initPlugin o
f Plugin Invoices caused an error: com/rapidminer/gui/MainFrame
java.lang.NoClassDefFoundError: com/rapidminer/gui/MainFrame
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at com.rapidminer.tools.plugin.Plugin.callInitMethod(Plugin.java:913)
        at com.rapidminer.tools.plugin.Plugin.callPluginInitMethods(Plugin.java:
887)
        at com.rapidminer.tools.plugin.Plugin.initPlugins(Plugin.java:867)
        at com.rapidminer.tools.plugin.Plugin.initAll(Plugin.java:1071)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:620)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:562)
        at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:311)
        at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:740)
        at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:716)
        at com.rapidminer.launcher.GUILauncher.main(GUILauncher.java:334)
Caused by: java.lang.ClassNotFoundException: com.rapidminer.gui.MainFrame
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 15 more

 

This is the comlete logt from RM start:

C:\Program Files\RapidMiner\RapidMiner Studio>"RapidMiner-Studio.bat"
RAPIDMINER_HOME environment variable is not set. Trying the directory 'C:\Progra
m Files\RapidMiner\RapidMiner Studio'...
Using local jre: C:\Program Files\RapidMiner\RapidMiner Studio\jre\bin\java.exe.
..
Java Version: 1.8.0_51
Launching RapidMiner Studio GUI now...
Aug 02, 2016 10:06:49 AM com.rapidminer.launcher.GUILauncher main
INFO: Launching RapidMiner, platform WIN64
Aug 02, 2016 10:06:50 AM com.rapidminer.tools.LaunchListener readHelloMessage
INFO: Found other RapidMiner instance.
Aug 02, 2016 10:06:50 AM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Aug 02, 2016 10:06:50 AM com.rapidminer.tools.PlatformUtilities logInfo
INFO: rapidminer.home is 'C:\Program Files\RapidMiner\RapidMiner Studio'.
Aug 02, 2016 10:06:50 AM com.rapidminer.core.license.ProductConstraintManager in
itialize
INFO: Initializing license manager.
Aug 02, 2016 10:06:50 AM com.rapidminer.core.license.ProductConstraintManager in
itialize
INFO: Using default license location.
Aug 02, 2016 10:06:50 AM com.rapidminer.core.license.ProductConstraintManager in
itialize
INFO: Registering default product.
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Invoices
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: R Scripting
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Tableau Table Writer
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Anomaly Detection
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Information Selection
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: AYLIEN Text Analysis
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Text Processing
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Web Mining
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
WARNING: The jar file C:\Program Files\RapidMiner\RapidMiner Studio\lib\plugins\
gentlyWEB.jar does not contain an entry RapidMiner-Type in its manifest and will
therefore not be loaded (if this file actually is a plugin updating the plugin
file might help).
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
WARNING: The jar file C:\Program Files\RapidMiner\RapidMiner Studio\lib\plugins\
jdom-1.0.jar does not contain an entry RapidMiner-Type in its manifest and will
therefore not be loaded (if this file actually is a plugin updating the plugin f
ile might help).
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Cloud Connectivity
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Cloud Execution
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Data Editor
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Operator Recommender
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Process Scheduling
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Advanced File Connectors
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Invoices
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: JDBC Connectors
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Legacy Result Access
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Productivity
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Remote Repository
Aug 02, 2016 10:06:51 AM com.rapidminer.tools.plugin.Plugin registerPlugins
INFO: Register plugin: Social Media
Aug 02, 2016 10:06:53 AM com.rapidminer.tools.config.ConfigurationManager regist
er
INFO: Registered configurator Aylien Text Analysis Connection.
Aug 02, 2016 10:06:53 AM com.rapidminer.tools.config.ConfigurationManager regist
er
INFO: Registered configurator Salesforce Connection.
Aug 02, 2016 10:06:53 AM com.rapidminer.tools.config.ConfigurationManager regist
er
INFO: Registered configurator Amazon S3 Connection.
Aug 02, 2016 10:06:53 AM com.rapidminer.tools.config.ConfigurationManager regist
er
INFO: Registered configurator Dropbox Connection.
Aug 02, 2016 10:06:54 AM com.rapidminer.tools.plugin.Plugin callInitMethod
WARNING: Plugin initializer com.burgsys.invoices.PluginInitInvoices.initPlugin o
f Plugin Invoices caused an error: com/rapidminer/gui/MainFrame
java.lang.NoClassDefFoundError: com/rapidminer/gui/MainFrame
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
        at java.lang.Class.getMethod0(Class.java:3018)
        at java.lang.Class.getMethod(Class.java:1784)
        at com.rapidminer.tools.plugin.Plugin.callInitMethod(Plugin.java:913)
        at com.rapidminer.tools.plugin.Plugin.callPluginInitMethods(Plugin.java:
887)
        at com.rapidminer.tools.plugin.Plugin.initPlugins(Plugin.java:867)
        at com.rapidminer.tools.plugin.Plugin.initAll(Plugin.java:1071)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:620)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:562)
        at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:311)
        at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:740)
        at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:716)
        at com.rapidminer.launcher.GUILauncher.main(GUILauncher.java:334)
Caused by: java.lang.ClassNotFoundException: com.rapidminer.gui.MainFrame
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 15 more
 
Aug 02, 2016 10:06:54 AM com.rapidminer.extension.jdbc.tools.jdbc.JDBCProperties
<init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Aug 02, 2016 10:06:54 AM com.rapidminer.extension.jdbc.tools.jdbc.JDBCProperties
<init>
WARNING: Missing database driver class name for Ingres
Aug 02, 2016 10:06:58 AM com.rapidminer.tools.config.ConfigurationManager regist
er
INFO: Registered configurator Twitter Connection.
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.OperatorService parseOperators
WARNING: Cannot create operator description: rmx_prules : weka_sel
java.lang.NoClassDefFoundError: main/core/exception/NotEnoughInstancesException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at com.rapidminer.operator.OperatorDescription.<init>(OperatorDescriptio
n.java:124)
        at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
ava:316)
        at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
ava:308)
        at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
ava:308)
        at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
ava:282)
        at com.rapidminer.tools.OperatorService.registerOperators(OperatorServic
e.java:232)
        at com.rapidminer.tools.plugin.Plugin.registerOperators(Plugin.java:524)
 
        at com.rapidminer.tools.plugin.Plugin.registerAllPluginOperators(Plugin.
java:813)
        at com.rapidminer.tools.OperatorService.init(OperatorService.java:172)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:624)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:562)
        at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:311)
        at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:740)
        at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:716)
        at com.rapidminer.launcher.GUILauncher.main(GUILauncher.java:334)
Caused by: java.lang.ClassNotFoundException: main.core.exception.NotEnoughInstan
cesException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at com.rapidminer.tools.plugin.PluginClassLoader.loadClass(PluginClassLo
ader.java:105)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 17 more
 
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:01 AM com.rapidminer.tools.math.similarity.DistanceMeasureHel
per updateMeasure
WARNING: While updating distance measure: com.rapidminer.parameter.UndefinedPara
meterError: A value for the parameter 'measure_types' of operator 'Expected inte
ger but found 'null'.' must be specified! {2}
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Load configuration for Aylien Text Analysis Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Loaded configurations for 1 objects of type Aylien Text Analysis Connectio
n.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Load configuration for Amazon S3 Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Loaded configurations for 0 objects of type Amazon S3 Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Load configuration for Dropbox Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Loaded configurations for 0 objects of type Dropbox Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Load configuration for Salesforce Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Loaded configurations for 0 objects of type Salesforce Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Load configuration for Twitter Connection.
Aug 02, 2016 10:07:05 AM com.rapidminer.tools.config.ConfigurationManager loadCo
nfiguration
INFO: Loaded configurations for 1 objects of type Twitter Connection.

 And here is the plugin init class (I made no changes):

package com.burgsys.invoices;

import com.rapidminer.gui.MainFrame;


/**
 * This class provides hooks for initialization and its methods are called via reflection by
 * RapidMiner Studio. Without this class and its predefined methods, an extension will not be
 * loaded.
 *
 * @author Vaclav Uher
 */
public final class PluginInitInvoices {

		private PluginInitInvoices() {
				// Utility class constructor
		}

		/**
		 * This method will be called directly after the extension is initialized. This is the first
		 * hook during start up. No initialization of the operators or renderers has taken place when
		 * this is called.
		 */
		public static void initPlugin() {}

		/**
		 * This method is called during start up as the second hook. It is called before the gui of the
		 * mainframe is created. The Mainframe is given to adapt the gui. The operators and renderers
		 * have been registered in the meanwhile.
		 *
		 * @param mainframe
		 *            the RapidMiner Studio {@link MainFrame}.
		 */
		public static void initGui(MainFrame mainframe) {
		    
		}

		/**
		 * The last hook before the splash screen is closed. Third in the row.
		 */
		public static void initFinalChecks() {}

		/**
		 * Will be called as fourth method, directly before the UpdateManager is used for checking
		 * updates. Location for exchanging the UpdateManager. The name of this method unfortunately is
		 * a result of a historical typo, so it's a little bit misleading.
		 */
		public static void initPluginManager() {}
}

Thank you for any advice.

 

Best wieshes,

Vaclav

Image plugin developer
www.burgsys.com

See more topics labeled with:

6 REPLIES
Moderator

Re: Plugin initialization problem

Hi,

 

this looks extremely weird and I have never seen this before. Can your customer please:

 

1. Install RapidMiner Studio into a fresh folder (NOT into an existing installation) and try again with that one?

or if that does not work:

2. Close Studio, rename his .Rapidminer folder and try again.

 

Regards,

Marco

_________________________________________________________
Team Lead Software Engineering | RapidMiner GmbH
Regular Contributor

Re: Plugin initialization problem

Hi Marco,

thank you. He tried it and the problem persists.

 

What can we do next? Should I connect you with the customer? Or do you have any other idea?

 

Best wishes,

Vaclav

Image plugin developer
www.burgsys.com
Moderator

Re: Plugin initialization problem

Hi,

 

how does your build.gradle look like? This error is extremely weird.

 

Regards,

Marco

_________________________________________________________
Team Lead Software Engineering | RapidMiner GmbH
Regular Contributor

Re: Plugin initialization problem

Hello,

the gradle sript looks like this:

buildscript {
	repositories {
	    jcenter()
		maven { url 'https://maven.rapidminer.com/content/groups/public/' }
	}
}

plugins { id 'com.rapidminer.extension' version '0.8.2' }

// Define Maven artifact repositories
repositories {
    jcenter()
	maven { url 'https://maven.rapidminer.com/content/groups/public/' }
}

extensionConfig {

    // The extension name
    name 'Invoices'

    /*
     * The artifact group which will be used when publishing the extensions Jar
     * and for package customization when initializing the project repository.
     *
     * It is 'com.rapidminer.extension' by default.
     */
    groupId = 'com.burgsys.invoices'

    /*
     * The extension vendor which will be displayed in the extensions about box
     * and for customizing the license headers when initializing the project repository.
     *
     * It is 'RapidMiner GmbH' by default.
     */
    vendor = "Burgsys, a. s."

    /*
     * The vendor homepage which will be displayed in the extensions about box
     * and for customizing the license headers when initializing the project repository.
     *
     * It is 'www.rapidminer.com' by default.
     */
    homepage = "www.burgsys.com"

	// define RapidMiner version and extension dependencies
	dependencies {
       rapidminer '7.1.0'
		//extension namespace: 'text', version: '6.1.0'
	}
}

// Define third party library dependencies
dependencies {
	compile 'net.imagej:ij:1.51d'
	compile 'org.apache.pdfbox:pdfbox:2.0.2'
	compile 'org.apache.pdfbox:pdfbox-tools:2.0.2'
	compile 'net.sf.trove4j:trove4j:3.0.3'
	compile 'net.sourceforge.tess4j:tess4j:3.2.1'
}

It is standard build.gradle with few added libraries.

Best wishes,

Vaclav

Image plugin developer
www.burgsys.com
Contributor

Re: Plugin initialization problem

I have the same problem since I updated RapidMiner to 7.2.001 with another Plugin, namely RapidProm. Although I have got the newest version of that as well (3.0.7)

Contributor II

Re: Plugin initialization problem

Hi Grace,

 

We (RapidProM dev. team) are aware of the incompatibility of 3.0.7 with RM 7.2+

We are working on a new version 4.0.0 which will be RM7.2+ compatible.

We are planning to release it in the beginning of next week.

 

kind regards,

 

Bas.