You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chhavi Gangwal (JIRA)" <ji...@apache.org> on 2015/02/16 19:03:11 UTC

[jira] [Created] (CASSANDRA-8813) MapType.compose throws java.lang.IllegalArgumentException: null when either of the key or value pair in map type object is of type int (Int32Type)

Chhavi Gangwal created CASSANDRA-8813:
-----------------------------------------

             Summary: MapType.compose throws java.lang.IllegalArgumentException: null when either of the key or value pair in map type object is of type int (Int32Type)
                 Key: CASSANDRA-8813
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8813
             Project: Cassandra
          Issue Type: Bug
          Components: API, Drivers (now out of tree)
            Reporter: Chhavi Gangwal


java.lang.IllegalArgumentException: null at java.nio.Buffer.limit(Buffer.java:267) ~[na:1.7.0] 	at org.apache.cassandra.utils.ByteBufferUtil.readBytes(ByteBufferUtil.java:543) ~[cassandra-all-2.1.2.jar:2.1.2] 	at org.apache.cassandra.serializers.CollectionSerializer.readValue(CollectionSerializer.java:122) ~[cassandra-all-2.1.2.jar:2.1.2] 	at org.apache.cassandra.serializers.MapSerializer.deserializeForNativeProtocol(MapSerializer.java:99) ~[cassandra-all-2.1.2.jar:2.1.2] 	at org.apache.cassandra.serializers.MapSerializer.deserializeForNativeProtocol(MapSerializer.java:28) ~[cassandra-all-2.1.2.jar:2.1.2] 	at org.apache.cassandra.serializers.CollectionSerializer.deserialize(CollectionSerializer.java:48) ~[cassandra-all-2.1.2.jar:2.1.2] 	at org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:66) ~[cassandra-all-2.1.2.jar:2.1.2]

The issue mainly occurs due to forced readBytes function in CollectionSerializer with version 3 for all collection types as well as UDT



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)