Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7591

Add org.hibernate.cache to externally marshallable white list

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.0.0.Final
    • 9.0.0.CR3
    • Core, Marshalling
    • None

    Description

      While running 2LC tests I've discovered that some tests fail with:

      Caused by: java.lang.AssertionError: Check support for: class org.hibernate.cache.spi.entry.StandardCacheEntryImpl
      	at org.infinispan.marshall.core.GlobalMarshaller.writeUnknown(GlobalMarshaller.java:596)
      

      So, org.hibernate.cache.spi.entry.StandardCacheEntryImpl is relying on standard serialization. The problem is that this class does not belong to hibernate-infinispan module and hence cannot be made to extend Infinispan's ExternalPojo.

      On the other hand, the white list in ExternallyMarshallable is hardcoded but there are no plans to make this declaratively configurable for now, since the separation between internal and external marshaller will eventually disappear in favour of internal vs user marshaller.

      So, the easiest thing to do here would be to add org.hibernate.cache package to the white list.

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: