Giter Club home page Giter Club logo

Comments (3)

hg-ms avatar hg-ms commented on June 15, 2024

The PersistenceExceptionTypeNotPersistable is caused by an unpersistable type. In your case it’s java.lang.Thread. This Exception is thrown at runtime the first time you try to persist such a type and later during the storage startup phase.

To identify the problematic type that references a non-persistable type have a look into the type- dictionary, the PersistenceTypeDictionary.ptd file in the storage directory. It is a human readable text.

To repair a storage that does no more start just delete the affected type-description from the type dictionary file.

from store.

to-do42 avatar to-do42 commented on June 15, 2024

Hi @hg-ms,
thank you for your response.
Unfortunately, there is no type-dictionary: the error occur during the initial start() phase of the Postgresql storage target together with those classloader customization. There are not even the both database tables storage$channel_0 and/or
storage in my Postgresql schema. If I switch to the other / default variant

EmbeddedStorageManager storageManager = EmbeddedStorage.start(fileSystem.ensureDirectoryPath("storage"));

both database tables are created, the table storagecontains an identifier PersistenceTypeDictionary.ptdbut without any Thread in the binary content. But in this case, the error is different: Without any store operation happened, after the next application start, the error TypeId inconsistency for RootData: typeDictionary type definition typeId = 1000072, validated type handler typeId = 1000076 occure, which seems to be related to the classloader issue. Therefor I use those classloader customization afterwards. Maybe this is not the correct way to handle this TypeId inconsistency error ?

from store.

hg-ms avatar hg-ms commented on June 15, 2024

As I am not able to reproduce the error I can give some tips only:
The TypeId inconsistency indicates that the type dictionary does not match the registered type handler. This may happen if you already started a storage with different type handlers configurated using the same Postgresql storage target.
In that case I’d recommend to delete the related Postgresql DB if possible.

An cause might be the SprinBoot Dev tools that may have caused the type differences. You can try to disable them.

An important thing to know is that starting an empty storage (no explicit Root set) cause writes. At least the default type dictionary and an empty internal root element is stored.

from store.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.