2 Replies Latest reply on Apr 13, 2017 4:22 AM by Wolfram Huesken

    Wrong return type from cache.getAllCacheEntries()

    Wolfram Huesken Newbie

      I'm not sure if this is a bug or if I configured something wrong. I'm using Infinispan 9.0.0.Final embedded.

       

      That's the example code:

       

      Map<String, CacheEntry<String, byte[]>> result = ispanCache.getAllCacheEntries(set);

      CacheEntry<String, byte[]> item = result.get("hallo");

       

      My cache has String keys and byte[] values, which works fine when I only get a single item via AdcancedCache.getCacheEntry(). With AdvancedCache.getCacheEntryies() the CacheEntry object contains a String key and a WrappedByteArray value, so I can't get the data back, because a byte[] is expected.

       

      Is this a bug or a configuration issue where I have to set a flag that the values are not wrapped?

      I attached a screenshot from the debugger where you can see the values.