Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-8824

.NET: Invalid header on deserialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5
    • None
    • binary, platforms

    Description

      The issue happens when we save an object with java.util.Date field in Java and retrieves that one on .NET side (DateTime). According to the docs these types should be compatible [1].

      Apache.Ignite.Core.Binary.BinaryObjectException: 'Invalid header on deserialization [pos=34, hdr=11]'
      

      The workaround is java.sql.Timestamp instead of Date type.

      Java and C# code examples to reproduce the issue are attached: ServerNode.javaInteropreabilityTest.cs

      [1] https://apacheignite-net.readme.io/v2.1/docs/platform-interoperability#section-type-compatibility

      Attachments

        1. ServerNode.java
          3 kB
          Roman Guseinov
        2. InteropreabilityTest.cs
          2 kB
          Roman Guseinov

        Activity

          People

            Unassigned Unassigned
            guseinov Roman Guseinov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: