RapidMiner

RapidMiner

AlreadyRegisteredException?!

SOLVED
Contributor II

AlreadyRegisteredException?!

Hello,
I was ready to launch my application for the first time and I got a com/rapidminer/license/AlreadyRegisteredException. Now, since I'm developing on the very same machine I've got RapidMiner installed on, what is he complaining for?!? RapidMiner is initialized like in the FAQ post, btw.
Thank you!
12 REPLIES
Elite III

Re: AlreadyRegisteredException?!

Which version of RapidMiner do you have & which licence?  You might need a developer licence from the sales guys at RM to be able to integrate like that with the latest RM. 
-- Training, Consulting, Sales in China, Hong Kong & Taiwan --
www.RapidMinerChina.com
Contributor II

Re: AlreadyRegisteredException?!

I've got 7.1.00 version. The fact is: how can my company buy RapidMiner without first knowing if it's suitable for its development needs? As a mining tool is state of art and it seemed logical to use it as the engine of mining tools built inside our own software, but it's difficult to take any step without any possibility to try it.
RMStaff

Re: AlreadyRegisteredException?!

Hi,

we can simply talk to find a solution Smiley Happy. Just contact me directly at mschmitz @ rapidminer.com and I will distribute your request to the appropriate persons in our organization.

Best,
Martin
--------------------------------------------------------------------------
Head of Data Science Services at RapidMiner
Moderator

Re: AlreadyRegisteredException?!

Hi,

Can you please post the entire stacktrace? Your code that triggers it would be helpful as well.

Regards,
Marco
_________________________________________________________
Team Lead Software Engineering | RapidMiner GmbH
Contributor II

Re: AlreadyRegisteredException?!

I have the same problem.

Here is the trace when compiled jar is imported into a new project:


Exception in thread "main" java.lang.NoClassDefFoundError: com/rapidminer/license/AlreadyRegisteredException
at Main.main(Main.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassNotFoundException: com.rapidminer.license.AlreadyRegisteredException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more


Program fails when setting the execution mode:

    public static void main(String[] args) throws OperatorException, RepositoryException, IOException, XMLException {
        // write your code here

        System.setProperty("RAPIDMINER_HOME", "C:\\dev\\tools\\rapidminer-studio-master");

        RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
        RapidMiner.init();
      ...


Same problem is present in RM6.5. Is the error related to a license you mentioned before?
Moderator

Re: AlreadyRegisteredException?!

Hi,

thank you for the feedback! Could you please also post the contents of your build.gradle file? I cannot reproduce the problem on my end so far Smiley Sad

Regards,
Marco
_________________________________________________________
Team Lead Software Engineering | RapidMiner GmbH
Contributor II

Re: AlreadyRegisteredException?!

I have several problems when compiling. The only way that worked for me was to set the version in props.gradle to XXX-SNAPSHOT. Otherwise an error regarding signing a jar was thrown:


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jar'.
> Cannot create signed jar for rapidminer-studio-master. Missing keystore property.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED



If the version name consisted of "*-SNAPSHOT" the build proceeded and stucked at task generateGitRevFile with an error that a repository was not found. A quick fix consisted of commenting out the offending lines, manually defining the revision number and creating a file tmp/generateGitRev/gitrev. After that the build was successful.

Next step was was to make a process with the compiled rapidminer jar. The problem like described by Sguish  was the exception described in the previous post.

Here are some config files:
build.gradle
gradle.properties
props.gradle

ps: I am missing something or there is no option how to attach a pic or file in the forum?





Contributor II

Re: AlreadyRegisteredException?!

Here I am, a bit late. Smiley Happy

My stacktrace is very similar to Merto's:


Exception in thread "main" java.lang.NoClassDefFoundError: com/rapidminer/license/AlreadyRegisteredException
at rapidminerstuff.modelCore.init(modelCore.java:126)
at rapidminerstuff.TEVTree.init(TEVTree.java:27)
at rapidminerstuff.GUIMinerStuff.<init>(GUIMinerStuff.java:26)
at rapidminerstuff.RapidMinerStuff.main(RapidMinerStuff.java:21)
Caused by: java.lang.ClassNotFoundException: com.rapidminer.license.AlreadyRegisteredException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more
C:\PATH\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)


If I comment the RapidMiner init() stuff, of course, it works. 
Contributor II

Re: AlreadyRegisteredException?!

Hei,
have maybe anyone of you found a solution for this issue?