Skip to content

InvalidClassException during FlexCompRowMatrix deserialization #537

@AlexanderScherbatiy

Description

@AlexanderScherbatiy

We use the HTM to detect anomalies in our Spark Streaming process.

After running our project the following exception arises during the deserialization:
java.io.InvalidClassException: no.uib.cipr.matrix.sparse.FlexCompRowMatrix; no valid constructor

It seems that the SDRClassifier uses FlexCompRowMatrix class and the FlexCompRowMatrix extends AbstractMatrix class which neither implements Serializable interface nor has a constructor with no-arg arguments.

Is it possible to do something to avoid the InvalidClassException in our case?

The used version is org.numenta/htm.java 0.6.13.

See also discussion: https://discourse.numenta.org/t/sdrclassifier-serialization/3505

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions