You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Iv...@tdameritrade.com on 2021/07/26 08:57:14 UTC

Re: NullPointerException With Using ThinClient (ignite 2.9. 0)

Here is the bug report that I’ve created a couple of weeks ago:
https://issues.apache.org/jira/browse/IGNITE-15138

They are trying to register your binary configuration in cluster before initializing the TCP channel.

Best regards,
Ivan Fedorenkov

From: y <ht...@163.com>
Reply-To: "user@ignite.apache.org" <us...@ignite.apache.org>
Date: Monday, July 26, 2021 at 10:51 AM
To: "user@ignite.apache.org" <us...@ignite.apache.org>
Subject: NullPointerException With Using ThinClient (ignite 2.9.0)

Hi Igniters:
When i uses Binary Object Marshaller with ThinClient, I used the following configuration:
   java:
     [cid:image001.png@01D7820C.FA7F63B0]
     [cid:image002.png@01D7820C.FA7F63B0]

xml:
    [cid:image003.png@01D7820C.FA7F63B0]

The following error was reported during the program:
Exception in thread "main" java.lang.NullPointerException
at org.apache.ignite.internal.client.thin.TcpIgniteClient$ClientBinaryMetadataHandler.addMeta(TcpIgniteClient.java:311)
at org.apache.ignite.internal.binary.BinaryContext.registerUserType(BinaryContext.java:1100)
at org.apache.ignite.internal.binary.BinaryContext.configure(BinaryContext.java:414)
at org.apache.ignite.internal.binary.BinaryContext.configure(BinaryContext.java:348)
at org.apache.ignite.internal.client.thin.ClientBinaryMarshaller.createImpl(ClientBinaryMarshaller.java:117)
at org.apache.ignite.internal.client.thin.ClientBinaryMarshaller.setBinaryConfiguration(ClientBinaryMarshaller.java:89)
at org.apache.ignite.internal.client.thin.TcpIgniteClient.<init>(TcpIgniteClient.java:110)
at org.apache.ignite.internal.client.thin.TcpIgniteClient.<init>(TcpIgniteClient.java:96)
at org.apache.ignite.internal.client.thin.TcpIgniteClient.start(TcpIgniteClient.java:258)
at org.apache.ignite.Ignition.startClient(Ignition.java:612)
at hutianyue.TestBinarySerializer.main(TestBinarySerializer.java:61)
....

Does any one know how to solve it? Do I need to use a newer version of ignite?

Thanks!!
Ti-Yong






Re:Re: NullPointerException With Using ThinClient (ignite 2.9. 0)

Posted by y <ht...@163.com>.
Thank you Ivan!!Thank you very much for your answers.

I just got an email from the developers saying that they are about to release version 2.11.0. Can this problem be solved with version 2.10.0 ? Or.....Maybe I should wait for the new version to come out?








At 2021-07-26 15:57:14, Ivan.Fedorenkov@tdameritrade.com wrote:
>Here is the bug report that I’ve created a couple of weeks ago:
>https://issues.apache.org/jira/browse/IGNITE-15138
>
>They are trying to register your binary configuration in cluster before initializing the TCP channel.
>
>Best regards,
>Ivan Fedorenkov
>
>From: y <ht...@163.com>
>Reply-To: "user@ignite.apache.org" <us...@ignite.apache.org>
>Date: Monday, July 26, 2021 at 10:51 AM
>To: "user@ignite.apache.org" <us...@ignite.apache.org>
>Subject: NullPointerException With Using ThinClient (ignite 2.9.0)
>
>Hi Igniters:
>When i uses Binary Object Marshaller with ThinClient, I used the following configuration:
>   java:
>     [cid:image001.png@01D7820C.FA7F63B0]
>     [cid:image002.png@01D7820C.FA7F63B0]
>
>xml:
>    [cid:image003.png@01D7820C.FA7F63B0]
>
>The following error was reported during the program:
>Exception in thread "main" java.lang.NullPointerException
>at org.apache.ignite.internal.client.thin.TcpIgniteClient$ClientBinaryMetadataHandler.addMeta(TcpIgniteClient.java:311)
>at org.apache.ignite.internal.binary.BinaryContext.registerUserType(BinaryContext.java:1100)
>at org.apache.ignite.internal.binary.BinaryContext.configure(BinaryContext.java:414)
>at org.apache.ignite.internal.binary.BinaryContext.configure(BinaryContext.java:348)
>at org.apache.ignite.internal.client.thin.ClientBinaryMarshaller.createImpl(ClientBinaryMarshaller.java:117)
>at org.apache.ignite.internal.client.thin.ClientBinaryMarshaller.setBinaryConfiguration(ClientBinaryMarshaller.java:89)
>at org.apache.ignite.internal.client.thin.TcpIgniteClient.<init>(TcpIgniteClient.java:110)
>at org.apache.ignite.internal.client.thin.TcpIgniteClient.<init>(TcpIgniteClient.java:96)
>at org.apache.ignite.internal.client.thin.TcpIgniteClient.start(TcpIgniteClient.java:258)
>at org.apache.ignite.Ignition.startClient(Ignition.java:612)
>at hutianyue.TestBinarySerializer.main(TestBinarySerializer.java:61)
>....
>
>Does any one know how to solve it? Do I need to use a newer version of ignite?
>
>Thanks!!
>Ti-Yong
>
>
>
>
>