-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type not persistable: "class java.lang.Thread" for customized class loader and Postgresql storage target #171
Comments
The PersistenceExceptionTypeNotPersistable is caused by an unpersistable type. In your case it’s 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. |
Hi @hg-ms,
both database tables are created, the table |
As I am not able to reproduce the error I can give some tips only: 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. |
As mentioned in the docs a customization is necessary if there are issues regarding different classloaders. For file based storagees the given solution works perfectly. Now I've switched to Postgresql as Storage targets and also use the code example given in the docs here.
But in this case, the following error occur:
org.eclipse.serializer.persistence.exceptions.PersistenceExceptionTypeNotPersistable: Type not persistable: "class java.lang.Thread".
This is the whole Spring Bean Config:
What config is neccessary for Postgresql storage target plus the classloader customization ?
The text was updated successfully, but these errors were encountered: