Comments (3)
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.
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 storage
contains an identifier PersistenceTypeDictionary.ptd
but 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.
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)
- Handling checked exceptions HOT 1
- IndexOutOfBoundsException when using values().stream() on empty LazyHashMap HOT 1
- Entity and Wrapper code generators in Gradle - please document HOT 3
- Versioning layer exception HOT 4
- --add-exports java.base/jdk.internal.misc=ALL-UNNAMED - please fix the docs!
- Issue with generated layered entity code - may need documentation?
- ES 1.3.1 testing against a Minio (S3-compatible ) storage backend - please help! HOT 2
- Not able to download the GUI client from MAVEN as well as the direct URl HOT 3
- Gcp Cloud storage storage target HOT 1
- java.lang.ClassNotFoundException: sun.misc.Unsafe HOT 2
- Rest Client GUI link is broken HOT 2
- Foundation type handler registration depends on order of api calls
- ObjectCopier class not found HOT 2
- The documentation for the layered entities configuration section is incorrect HOT 1
- Need help with "Error occurred in storage channel" HOT 9
- About Creating Database Issues HOT 1
- About Creating Database Issues HOT 12
- Layered entity generator issue?
- Real "read-only" mode with optimized memory consumption HOT 1
- eclipse store data loading is very very slow when app starts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from store.