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] Cannot retreive stored Weka model: java.io.InvalidClassException
Hi all,
probably after java update 17 December, Retrieving Stored Weka model (Random Forest) crashes with error:
SEVERE: Process failed: Cannot retrieve repository data from entry '...'. Reason: Cannot load data from 'C:\...': java.io.InvalidClassException: weka.classifiers.trees.RandomForest; local class incompatible: stream classdesc serialVersionUID = -226....., local class serialVersionUID = 421......
Store and Retrieve is done on the same machine. It started to crash recently, I suppose it could be due to java version update released in December (windows 7 machine). But I have no clue how to fix this.
Or this could be connected with RM update to 6.2, I didn't try Storing/Retrieving with 6.2 before.
Anybody has an idea how to fix this?
Thanks,
Alex.
probably after java update 17 December, Retrieving Stored Weka model (Random Forest) crashes with error:
SEVERE: Process failed: Cannot retrieve repository data from entry '...'. Reason: Cannot load data from 'C:\...': java.io.InvalidClassException: weka.classifiers.trees.RandomForest; local class incompatible: stream classdesc serialVersionUID = -226....., local class serialVersionUID = 421......
Store and Retrieve is done on the same machine. It started to crash recently, I suppose it could be due to java version update released in December (windows 7 machine). But I have no clue how to fix this.
Or this could be connected with RM update to 6.2, I didn't try Storing/Retrieving with 6.2 before.
Anybody has an idea how to fix this?
Thanks,
Alex.
0
Answers
reading Weka model from file using "Read Model" operator now also crashes:
Process failed: Could not read file 'C:\....mod': java.io.IOException: Cannot read from XML stream, wrong format: No such field weka.classifiers.trees.RandomTree.m_Tree
Previously it worked fine. Seems there is major problems with Weka models after RM/java updates.
Dortmund, Germany
Here is simple process:
Have you tried to reinstall weka?
Do you have full accsess to the location where the repo is located? Has the hard disc free disc space?
Best.
Martin
Dortmund, Germany
Disk space, etc. is enough. Error occurs not when Storing or Writing model, but when Retreiveing or Reading model. Also, standard RM models works fine, problem with Weka models only.
So nothing special on both of our sides..
Dortmund, Germany
Solved: turn off RapidProM extension if installed -).
Martin, thanks for the help!
Good to know that there is some "tension" between those plugins..
Dortmund, Germany