ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: BinaryInvalidTypeException: Due to usage of Cross Platform Java and .Net
Date Thu, 05 Oct 2017 12:37:08 GMT
So you put data from C# and have a non-binary CacheStore implementation in
Java.
The reason of failure is that Ignite on Java side is not aware of your
CustomerInfo class.

You can fix that by registering the type in config file:

<property name="binaryConfiguration">
    <bean class="org.apache.ignite.configuration.BinaryConfiguration">

        ...

        <property name="typeConfigurations">
            <list>
                <bean
class="org.apache.ignite.binary.BinaryTypeConfiguration">
                    <property name="typeName"
value="com.cachestore.CustomerInfo
"/>
                </bean>
            </list>
        </property>
    </bean>
</property>


Let me know if this helps.

Thanks,
Pavel


On Thu, Oct 5, 2017 at 3:26 PM, JP <jopandy679@gmail.com> wrote:

> I am using Apache Ignite 2.2 Version
>
> Java as server
> -----------------------
> CustomerCacheStore.java
> <http://apache-ignite-users.70518.x6.nabble.com/file/
> t1355/CustomerCacheStore.java>
> CustomerInfo.java
> <http://apache-ignite-users.70518.x6.nabble.com/file/
> t1355/CustomerInfo.java>
> SQLServerTest.java
> <http://apache-ignite-users.70518.x6.nabble.com/file/
> t1355/SQLServerTest.java>
>
>
> c# program as client
> --------------------------------=
> CustomerInfo.cs
> <http://apache-ignite-users.70518.x6.nabble.com/file/t1355/CustomerInfo.cs
> >
> Program.cs
> <http://apache-ignite-users.70518.x6.nabble.com/file/t1355/Program.cs>
>
> Both using same configuration file
> --------------------------------------
> default-config.xml
> <http://apache-ignite-users.70518.x6.nabble.com/file/
> t1355/default-config.xml>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Mime
View raw message