[infinispan-issues] [JBoss JIRA] (ISPN-8692) java.lang.IllegalArgumentException: No marshaller registered for java.lang.String when using org.infinispan.query.remote.impl.dataconversion.ProtostreamTextTranscoder

Dmitrii Puzikov (JIRA) issues at jboss.org
Tue Jan 16 08:41:00 EST 2018


Dmitrii Puzikov created ISPN-8692:
-------------------------------------

             Summary: java.lang.IllegalArgumentException: No marshaller registered for java.lang.String when using org.infinispan.query.remote.impl.dataconversion.ProtostreamTextTranscoder
                 Key: ISPN-8692
                 URL: https://issues.jboss.org/browse/ISPN-8692
             Project: Infinispan
          Issue Type: Bug
          Components: Remote Querying
    Affects Versions: 9.2.0.Beta2
            Reporter: Dmitrii Puzikov


When executing test from [PR|https://github.com/infinispan/infinispan/pull/5681/files#diff-87106d8535cd9f3b0b20075ca64d2ab3] got an exception:
{code}
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)
{code}

If I change ProtostreamTextTranscoder::transcode line 38 to 
{code}
return ProtobufUtil.fromWrappedByteArray(ctx, (byte[]) content); 
{code}

then test passes.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list