[infinispan-issues] [JBoss JIRA] (ISPN-6328) Improper configuration of marshalling can lead to com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)

Adrian Nistor (JIRA) issues at jboss.org
Sun Mar 6 06:24:00 EST 2016


Adrian Nistor created ISPN-6328:
-----------------------------------

             Summary: Improper configuration of marshalling can lead to com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)
                 Key: ISPN-6328
                 URL: https://issues.jboss.org/browse/ISPN-6328
             Project: Infinispan
          Issue Type: Bug
          Components: Remote Querying
    Affects Versions: 8.2.0.CR1
            Reporter: Adrian Nistor
            Assignee: Adrian Nistor
             Fix For: 8.2.0.Final


Running queries on a remote cache that was previously populated by an app that did not use protobuf marshalling should be allowed, and all those entities that were not encoded using protobuf should be ignored by the query engine and a warning should be logged instructing the user about the potential issue and how to fix the configuration. 

The current behaviour in this case is not user friendly, especially in case of non-indexed query.  An error is thrown during query evaluation: "com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)." which indicates the unmarshalling of the queried entities is not possible. The actual cause of the bad encoding should be explained to the user and no exception should be thrown as if the type of entities does not match the requested type. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list