WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

UBjson cant write with array with object reader, and read the array back in #3

@ronnyek

Description

@ronnyek

I've created a relatively simple example trying to understand how this is SUPPOSED to work...

I've created a simple user object wiht name email and age on it. I used object writer to write out the stream to disk, then when to read it back out as the original object and get:

org.ubjson.io.UBJFormatException: Encountered an unknown type marker of byte value 5 (char='�') at stream position 2.
at org.ubjson.io.UBJInputStreamParser.nextType(UBJInputStreamParser.java:121)
at org.ubjson.io.reflect.ObjectReader.readObject(ObjectReader.java:51)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions