-
Bug
-
Resolution: Done
-
Major
-
9.2.0.Final
-
None
When executing test from PR got an exception:
java.lang.IllegalArgumentException: No marshaller registered for java.lang.String at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:301) at org.infinispan.protostream.ProtobufUtil.readFrom(ProtobufUtil.java:122) at org.infinispan.protostream.ProtobufUtil.fromByteArray(ProtobufUtil.java:131) at org.infinispan.query.remote.impl.dataconversion.ProtostreamTextTranscoder.transcode(ProtostreamTextTranscoder.java:38) at org.infinispan.query.remote.impl.dataconversion.ProtostreamTextTranscoderTest.testTranscoderTranscode(ProtostreamTextTranscoderTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
If I change ProtostreamTextTranscoder::transcode line 38 to
return ProtobufUtil.fromWrappedByteArray(ctx, (byte[]) content);
then test passes.