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

RemoteSpringSessionTest.testCreatingSessionWhenUsingREST always fails

    Details

      Description

      The Spring Boot session references a `java.util.Collections$UnmodifiableList`, which is not in the default allow list.

      org.infinispan.commons.CacheListenerException: ISPN004035: Caught exception [java.lang.reflect.InvocationTargetException] while invoking method [public void org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge.processCacheEntryCreated(org.infinispan.client.hotrod.event.ClientCacheEntryCustomEvent)] on listener instance: org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge@2d06db91
      	at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher$ClientListenerInvocation.invoke(ClientEventDispatcher.java:156) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher.invokeCallbacks(ClientEventDispatcher.java:120) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher.invokeEvent(ClientEventDispatcher.java:102) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher.invokeEvent(ClientEventDispatcher.java:31) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.event.impl.ClientListenerNotifier.invokeEvent(ClientListenerNotifier.java:197) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.invokeEvent(HeaderDecoder.java:198) [infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:167) [infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      Caused by: java.lang.reflect.InvocationTargetException
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
      	at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher$ClientListenerInvocation.invoke(ClientEventDispatcher.java:154) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	...
      Caused by: org.infinispan.client.hotrod.exceptions.HotRodClientException: ISPN004034: Unable to unmarshall bytes ACED0005737200266F7[...]
      	at org.infinispan.client.hotrod.marshall.MarshallerUtil.bytes2obj(MarshallerUtil.java:72) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.DataFormat.valueToObj(DataFormat.java:108) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge.readEvent(RemoteApplicationPublishedBridge.java:77) ~[infinispan-spring5-remote-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge.processCacheEntryCreated(RemoteApplicationPublishedBridge.java:52) ~[infinispan-spring5-remote-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	...
      Caused by: org.infinispan.commons.CacheException: ISPN000936: Class 'java.util.Collections$UnmodifiableList' blocked by deserialization allow list. Adjust the configuration serialization allow list regular expression to include this class.
      	at org.infinispan.commons.marshall.CheckedInputStream.resolveClass(CheckedInputStream.java:25) ~[infinispan-commons-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
          ...
      	at java.util.HashMap.readObject(HashMap.java:1551) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1216) ~[?:?]
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2359) ~[?:?]
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2193) ~[?:?]
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1685) ~[?:?]
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2498) ~[?:?]
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2392) ~[?:?]
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2193) ~[?:?]
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1685) ~[?:?]
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:499) ~[?:?]
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:457) ~[?:?]
      	at org.infinispan.commons.marshall.JavaSerializationMarshaller.objectFromByteBuffer(JavaSerializationMarshaller.java:53) ~[infinispan-commons-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.commons.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:82) ~[infinispan-commons-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	at org.infinispan.client.hotrod.marshall.MarshallerUtil.bytes2obj(MarshallerUtil.java:56) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
      	...
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dan.berindei Dan Berindei
                  Reporter:
                  dan.berindei Dan Berindei
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: