-
Notifications
You must be signed in to change notification settings - Fork 9
PersistenceExceptionTypeHandlerConsistencyUnhandledTypeId #176
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
Comments
Okay, I found this Seems I need to register my class?
|
This works, too (without registering my Kunde class).
In my log I see: Type dictionary is empty or not existing. Initializing type handler manager with a new default type dictionary Wonder what's the problem in my original code... |
The Exception is thrown because the serialized data does not contain type information by default. To solve that you have several options how to sync type information between different serializer instances, please have a look at the docu for details. The options are:
|
Maybe one suggestion for method 2 of the docu is to stress that it is really the content of the file and not the path of the file one needs to pass in:
|
Using a storage-type-dictionary-file to initialize a serializer instance is only one of many option to configure the serializer. |
Understand. How to create the appropriate string from storageManager.typeDictionary() ? This is wrong: |
You need to use the String typeDictionaryString = PersistenceTypeDictionaryAssembler.New().assemble(storageManager.typeDictionary()); |
Wonder what I am doing wrongly...
Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.eclipse.serializer.persistence.exceptions.PersistenceExceptionTypeHandlerConsistencyUnhandledTypeId: No type handler found for type id "1000061".
Have this in my dictionary:
Using serializer version 2.1.2
The text was updated successfully, but these errors were encountered: