MATLAB Answers

Java exception, serialization, MATLAB, WEKA, CHIRP

3 views (last 30 days)
Krzysztof Fajst
Krzysztof Fajst on 12 Nov 2016
Edited: Walter Roberson on 12 Nov 2016
I'm using MATLAB-WEKA interface to run some classifiers. But when I use CHIRP classifier and save/load classifier object and try to use itI'm getting Java exception. There is no problem with using this object directly from the memory without saving. There is also no problem for saving/loading and using classifier object from other algorithms like e.g. Spegasos.
According to MATLAB doc object to be saved/load must implement Serializable
but according to doc from CHIRP it is done already so perhaps some part of implementation is missing or is a MATLAB problem. MATLAB saves\loads this object and don't complain. So my question is how to troubleshoot such problem i.e. how to find out what is missing and where the fault lies.
Java exception occurred:
at weka.classifiers.misc.chirp.Trainer.tranformTesting(
at weka.classifiers.misc.chirp.Classifier.classifyInstance(
at weka.classifiers.misc.CHIRP.classifyInstance(
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(
at com.mathworks.jmi.MatlabMCR.mtFevalConsoleOutput(
at com.mathworks.timer.MWCallback$
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(


Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!