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
quarkus-infinispan-client Unable to read (unMarshall) a cached item before you write (Marshall) one. #3548
Comments
I should note, that near cache must be enabled to reproduce the error |
It seems that the near cache is proactively loading upon startup, and encountering this error. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you! |
I could reproduce the error, I opened a JIRA in infinispan https://issues.redhat.com/browse/ISPN-11281 |
Is no-one actually using the Infinispan extension, or is there some workaround I am unaware of? |
I got a chance to look at this. The error is ignorable and has nothing to do with the get/put. It is the automatic registration of the protostream definitions. The problem is that when registering the schemas for a second time it is already present and the server sends back a client event to tell the client that it has been modified, but can't deserialize this object (as it doesn't support this in near cache). You can workaround this until a fix is done by adding the specific caches to the regex for near cache in the |
I should have updated this after I determined the cause.
|
👍 |
I have set up a remote Infinispan server. And have code that will read and write from a cache on that server.
The issue is that Quarkus is unable to unmarshall items from the cache, unless it has first marshaled into the cache.
Expected behavior
I am able to read cached items without first writing to the cache
Actual behavior
If you read a cached item before writing one, you get this exception
To Reproduce
Steps to reproduce the behavior:
I believe that the Marshaller Beans are not loaded appropriately until you WRITE to a cache. Writing to the cache creates the bean... and if you don't do that first, then you can't unmarshall.
The text was updated successfully, but these errors were encountered: