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

Saving a wordlist with IOObjectWriter does not work

kochankochan Member Posts: 11 Contributor II
edited November 2018 in Help

IOObjectWriter gives me the possibility of saving a WordList object. However, when I run the process I get a NotSerializableException. Is that because WVTWordList does not implement the Serializable interface?

Regards,

Andreas

Answers

  • fischerfischer Member Posts: 439 Maven
    Hi Kochan,

    in such cases, please always attach stack traces. What is it that is not serializable?

    Best,
    Simon
  • fischerfischer Member Posts: 439 Maven
    Hi again,

    ok, I checked myself. In fact, the WordList which was introduced as an IOObject only in the last version, is serializable. However, the classes in the word vector tool library (over which we do not have control) are not. Hence, you cannot serialize it as "binary". XML serialization, however, works.

    For 5.0, when the text plugin moves to the core, we will add full serialization support for the word lists.

    Best,
    Simon
Sign In or Register to comment.