The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"[SOLVED] Wordnet rapidminer extension exception"
Hello Everybody!
I am writing a Wordnet extension for rapidminer which eliminates synonyms. I managed to integrate it in Rapidminer, but I am having a strange exception that says:
WARNING: Caught exception in concurrent execution of Stem Synonyms (Stem Synonyms): java.lang.ClassCastException: com.rapidminer.operator.text.Document cannot be cast to com.rapidminer.operator.text.Document
Can anyone help with this?
I am writing a Wordnet extension for rapidminer which eliminates synonyms. I managed to integrate it in Rapidminer, but I am having a strange exception that says:
WARNING: Caught exception in concurrent execution of Stem Synonyms (Stem Synonyms): java.lang.ClassCastException: com.rapidminer.operator.text.Document cannot be cast to com.rapidminer.operator.text.Document
Can anyone help with this?
Tagged:
0
Answers
Best,
Marius
I set it to false but still the exception happened.
I had this error before myself and parallelization was not the reason. As far as I remember, the reason was that each extension uses an own class loader and hence there might be a scenario where two classes Document exist, one loaded by each class loader (one of the text extension, one for your extension if you extend Document for example).
I am not 100% sure but it could be that the solution is to use the dependency mechanism, so you could define that your extension depends on the text extension in the manifest.
Cheers,
Ingo
I did the following as you suggested:
<property name="extension.dependencies" value="rmx_text[5.1]" />
Sadly it did not work either! Any further suggestions?!
Greetings,
Sara
and what is you project setup? I think that you should have no jar file with text extension in your lib folder. Because than it is included in your jar extension and thats problem.
Best,
Vaclav
Problem fixed!
Thank you!