Skip to content
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

Fix managed transformations retrieval #4574

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nadahar
Copy link

@Nadahar Nadahar commented Jan 22, 2025

As discussed here, after installing transformations from the marketplace, retrieval of managed transformations from storage during OH startup fails with:

Couldn't deserialize value 'org.openhab.core.storage.json.internal.StorageEntry@168c2c9b'. Root cause is: org.openhab.core.transform.ManagedTransformationProvider$PersistedTransformation cannot be found by org.openhab.core.storage.json_5.0.0.202501210532

This PR fixes it according to my testing, the problem is that the correct classloader isn't available to JsonStorage.

I can't comply with the CLA as I don't submit real name and e-mail in public, but this should be small enough for the exception to apply. It was a one-liner until Spotless interfered.

@Nadahar Nadahar requested a review from a team as a code owner January 22, 2025 05:11
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/marketplace-versioning-with-embedded-resource/161421/106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants