Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EDA46200D15 for ; Thu, 5 Oct 2017 14:10:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EC0D61609E1; Thu, 5 Oct 2017 12:10:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E49B81609DA for ; Thu, 5 Oct 2017 14:10:07 +0200 (CEST) Received: (qmail 15050 invoked by uid 500); 5 Oct 2017 12:10:06 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 15041 invoked by uid 99); 5 Oct 2017 12:10:06 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2017 12:10:06 +0000 Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 024C71A0117 for ; Thu, 5 Oct 2017 12:10:05 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id q4so6660267oic.7 for ; Thu, 05 Oct 2017 05:10:04 -0700 (PDT) X-Gm-Message-State: AMCzsaVWv4X1XEdoqpPFCnOKPctkrhRavJpQPw+UG/S62zEW5ul+S8Sv Yw0EpNHbvNbEEQxvfw6a5zrowp4SUW2yMcD14DSxnQ== X-Google-Smtp-Source: AOwi7QDGeAVXxVDuOaMJjaQCsttVi0ZAs2pViq1EP1Q2mT/CmOABRyWv42nIGAYfM1Y6/YOE6BLgxurw1XPKmuYLAHc= X-Received: by 10.157.42.165 with SMTP id e34mr1098009otb.344.1507205403573; Thu, 05 Oct 2017 05:10:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.44.229 with HTTP; Thu, 5 Oct 2017 05:09:33 -0700 (PDT) In-Reply-To: <1507204574733-0.post@n6.nabble.com> References: <1507204574733-0.post@n6.nabble.com> From: Pavel Tupitsyn Date: Thu, 5 Oct 2017 15:09:33 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: BinaryInvalidTypeException: Due to usage of Cross Platform Java and .Net To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="94eb2c11f014af1f13055acb9a54" archived-at: Thu, 05 Oct 2017 12:10:09 -0000 --94eb2c11f014af1f13055acb9a54 Content-Type: text/plain; charset="UTF-8" Hi, 1) Can you attach the code that causes this exception? 2) Which version do you use? Thanks, Pavel On Thu, Oct 5, 2017 at 2:56 PM, JP wrote: > I have one java server node and c# client node. > > From the csharp client, I am trying to send data(Using POJO class) to the > server node. > > In both server and client node started with same configuraions. > > > > > class="org.apache.ignite.binary.BinaryBasicNameMapper"> > > > > > > > > > > > > > *But I am getting this exception: > * > Caused by: class org.apache.ignite.binary.BinaryInvalidTypeException: > Unknown pair [platformId=0, typeId=-417099649] > at > org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId( > BinaryContext.java:695) > at > org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize0( > BinaryReaderExImpl.java:1755) > at > org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize( > BinaryReaderExImpl.java:1714) > at > org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeValue( > BinaryObjectImpl.java:797) > at > org.apache.ignite.internal.binary.BinaryObjectImpl.value( > BinaryObjectImpl.java:143) > at > org.apache.ignite.internal.processors.cache.CacheObjectUtils.unwrapBinary( > CacheObjectUtils.java:161) > at > org.apache.ignite.internal.processors.cache.CacheObjectUtils. > unwrapBinaryIfNeeded(CacheObjectUtils.java:41) > at > org.apache.ignite.internal.processors.cache.CacheObjectContext. > unwrapBinaryIfNeeded(CacheObjectContext.java:125) > at > org.apache.ignite.internal.processors.cache.GridCacheContext. > unwrapBinaryIfNeeded(GridCacheContext.java:1734) > at > org.apache.ignite.internal.processors.cache.GridCacheContext. > unwrapBinaryIfNeeded(GridCacheContext.java:1722) > at > org.apache.ignite.internal.processors.cache.store. > GridCacheStoreManagerAdapter.put(GridCacheStoreManagerAdapter.java:557) > at > org.apache.ignite.internal.processors.cache.GridCacheMapEntry$ > AtomicCacheUpdateClosure.update(GridCacheMapEntry.java:4352) > at > org.apache.ignite.internal.processors.cache.GridCacheMapEntry$ > AtomicCacheUpdateClosure.call(GridCacheMapEntry.java:4172) > at > org.apache.ignite.internal.processors.cache.GridCacheMapEntry$ > AtomicCacheUpdateClosure.call(GridCacheMapEntry.java:3906) > at > org.apache.ignite.internal.processors.cache.persistence. > tree.BPlusTree$Invoke.invokeClosure(BPlusTree.java:2988) > at > org.apache.ignite.internal.processors.cache.persistence. > tree.BPlusTree$Invoke.access$6200(BPlusTree.java:2882) > at > org.apache.ignite.internal.processors.cache.persistence. > tree.BPlusTree.invokeDown(BPlusTree.java:1713) > at > org.apache.ignite.internal.processors.cache.persistence. > tree.BPlusTree.invoke(BPlusTree.java:1602) > ... 22 more > Caused by: java.lang.ClassNotFoundException: Unknown pair [platformId=0, > typeId=-417099649] > at > org.apache.ignite.internal.MarshallerContextImpl.getClassName( > MarshallerContextImpl.java:392) > at > org.apache.ignite.internal.MarshallerContextImpl.getClass( > MarshallerContextImpl.java:342) > at > org.apache.ignite.internal.binary.BinaryContext.descriptorForTypeId( > BinaryContext.java:686) > ... 39 more > > * > I have added the same model class in c# and java. > I understand that there is some conflict happening in serialization and > deserialization. > > Any hints on configuring c# client node and server node(java) > * > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > --94eb2c11f014af1f13055acb9a54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

1) Can you attach the code that cau= ses this exception?
2) Which version do you use?

Thanks,
Pavel

=
On Thu, Oct 5, 2017 at 2:56 PM, JP <jopandy6= 79@gmail.com> wrote:
I have= one java server node and c# client node.

From the csharp client, I am trying to send data(Using POJO class) to the server node.

In both server and client node started with same configuraions.
<property name=3D"binaryConfiguration">
=C2=A0 =C2=A0 =C2=A0<bean class=3D"org.apache.ignite.configura= tion.BinaryConfiguration">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<property name=3D"compactF= ooter" value=3D"false"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<property name=3D"nameMapp= er">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean
class=3D"org.apache.ignite.binary.BinaryBasicNameMapper">=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <p= roperty name=3D"simpleName" value=3D"true"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<property name=3D"IdMapper= ">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D&q= uot;org.apache.ignite.binary.BinaryBasicIdMapper">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <p= roperty name=3D"lowerCase" value=3D"true"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 </property>


*But I am getting this exception:
*
Caused by: class org.apache.ignite.binary.BinaryInvalidTypeException:<= br> Unknown pair [platformId=3D0, typeId=3D-417099649]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.binary.BinaryContext.descriptorForType= Id(BinaryContext.java:695)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize0= (BinaryReaderExImpl.java:1755)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(= BinaryReaderExImpl.java:1714)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeVal= ue(BinaryObjectImpl.java:797)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.binary.BinaryObjectImpl.value(BinaryOb= jectImpl.java:143)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.CacheObjectUtils.unwr= apBinary(CacheObjectUtils.java:161)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.CacheObjectUtils.unwrapBinaryIfNeeded(CacheObjectUtils.java:41)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:125)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.GridCacheContext.unwrapBinaryIfNeeded(GridCacheContext.java:1734)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.GridCacheContext.unwrapBinaryIfNeeded(GridCacheContext.java:1722)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.store.GridCacheStoreM= anagerAdapter.put(GridCacheStoreManagerAdapter.java:557)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.update(GridCacheMapEntry.java:4352) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.call(GridCacheMapEntry.java:4172)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.call(GridCacheMapEntry.java:3906)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlu= sTree$Invoke.invokeClosure(BPlusTree.java:2988)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlu= sTree$Invoke.access$6200(BPlusTree.java:2882)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlu= sTree.invokeDown(BPlusTree.java:1713)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.persistence.tree.BPlu= sTree.invoke(BPlusTree.java:1602)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 22 more
Caused by: java.lang.ClassNotFoundException: Unknown pair [platformId= =3D0,
typeId=3D-417099649]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.MarshallerContextImpl.getClassName(MarshallerContextImpl.java:392)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.MarshallerContextImpl.getClass(Ma= rshallerContextImpl.java:342)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.binary.BinaryContext.descriptorForType= Id(BinaryContext.java:686)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 39 more

*
I have added the same model class in c# and java.
I understand that there is some conflict happening in serialization and
deserialization.

Any hints on configuring c# client node and server node(java)
*



--
Sent from: http://apache-ignite-users.70518.x6.= nabble.com/

--94eb2c11f014af1f13055acb9a54--