ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Mashenkov <andrey.mashen...@gmail.com>
Subject Re: BinaryInvalidTypeException: Unknown pair [platformId=.., typeId=...] when using CacheJdbcPojoStoreFactory and read/write-through
Date Mon, 05 Jun 2017 19:04:48 GMT
Here is a ticket for it [1].

[1] https://issues.apache.org/jira/browse/IGNITE-5411

On Mon, Jun 5, 2017 at 9:39 PM, Andrey Mashenkov <andrey.mashenkov@gmail.com
> wrote:

> HI,
>
> Seems, Ignite does not save binary metadata to store. So, you can't load
> data from store as metadata information is missed.
> Try to add key\value classes in BinaryConfiguration.
>
> On Mon, Jun 5, 2017 at 9:04 PM, Vladimir <vladsz83@yandex.ru> wrote:
>
>> Greetings!
>>
>> Can anyone please help me with cache store feature? Once I add to my cache
>> config CacheJdbcPojoStoreFactory and enable read/write-through I can't get
>> any value from the cache because of the deserialization exception:
>>
>> org.apache.ignite.binary.BinaryInvalidTypeException: Unknown pair
>> [platformId=0, typeId=-596981488]
>>         at
>> org.apache.ignite.internal.binary.BinaryContext.descriptorFo
>> rTypeId(BinaryContext.java:701)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.binary.BinaryReaderExImpl.deseria
>> lize0(BinaryReaderExImpl.java:1745)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.binary.BinaryReaderExImpl.deseria
>> lize(BinaryReaderExImpl.java:1704)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.binary.BinaryObjectImpl.deseriali
>> zeValue(BinaryObjectImpl.java:794)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.binary.BinaryObjectImpl.value(Bin
>> aryObjectImpl.java:142)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.cache.CacheObjectConte
>> xt.unwrapBinary(CacheObjectContext.java:273)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.cache.CacheObjectConte
>> xt.unwrapBinariesIfNeeded(CacheObjectContext.java:186)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.cache.CacheObjectConte
>> xt.unwrapBinariesIfNeeded(CacheObjectContext.java:170)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.cache.GridCacheContext
>> .unwrapBinariesIfNeeded(GridCacheContext.java:1719)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.query.GridQueryCacheOb
>> jectsIterator.next(GridQueryCacheObjectsIterator.java:64)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.query.GridQueryCacheOb
>> jectsIterator.next(GridQueryCacheObjectsIterator.java:29)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.query.h2.IgniteH2Index
>> ing$9$1.next(IgniteH2Indexing.java:1542)
>> ~[ignite-indexing-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.query.h2.IgniteH2Index
>> ing$9$1.next(IgniteH2Indexing.java:1536)
>> ~[ignite-indexing-2.0.0.jar:2.0.0]
>>         at
>> org.apache.ignite.internal.processors.cache.QueryCursorImpl.
>> getAll(QueryCursorImpl.java:113)
>> ~[ignite-core-2.0.0.jar:2.0.0]
>>
>> The same happens if I'm trying to get a value by cache.get()
>>
>> And everything is ok if I do not enable read/write-through and do not set
>> CacheJdbcPojoStoreFactory in the cache config.
>>
>> What's wrong?
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/BinaryInvalidTypeException-Unknown-pair-
>> platformId-typeId-when-using-CacheJdbcPojoStoreFactory-and-r
>> h-tp13384.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Best regards,
> Andrey V. Mashenkov
>



-- 
Best regards,
Andrey V. Mashenkov

Mime
View raw message