[
https://issues.apache.org/jira/browse/CASSANDRA-8813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14323547#comment-14323547
]
Philip Thompson commented on CASSANDRA-8813:
--------------------------------------------
What is the schema for the map column? It's unclear if it is defined as int, or
if you are passing in an int. What driver are you using? This is happening when
reading, not writing?
Could you attach reproduction steps if you have them?
> 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
> Fix For: 2.1.4
>
>
> {code}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]
> {code}
> 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)