cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (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)
Date Tue, 17 Feb 2015 09:03:11 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-8813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne resolved CASSANDRA-8813.
-----------------------------------------
    Resolution: Invalid

> 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)

Mime
View raw message