You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Eduard Rakhmankulov (Jira)" <ji...@apache.org> on 2025/04/09 12:02:00 UTC

[jira] [Created] (IGNITE-25078) InvalidProgramException on System.DateTime mapping on .NET platform

Eduard Rakhmankulov created IGNITE-25078:
--------------------------------------------

             Summary: InvalidProgramException on System.DateTime mapping on .NET platform
                 Key: IGNITE-25078
                 URL: https://issues.apache.org/jira/browse/IGNITE-25078
             Project: Ignite
          Issue Type: Bug
          Components: .NET
    Affects Versions: 3.0
            Reporter: Eduard Rakhmankulov


Provided you have a table Person with timestamp column birthday and corresponding class where timestamp column mapped to DateTime field.



class Person {
  string name;
  DateTime birthday;

}



When quering through this table using mentioned class (ISql#ExecuteAsync<Person>) causes exception:

```
Unhandled exception. System.AggregateException: One or more errors occurred. (Common Language Runtime detected an invalid program.)
 ---> System.InvalidProgramException: Common Language Runtime detected an invalid program.
   at UninitializedObjectFromBinaryTupleReader_Hatch.Dpd.Ignite.Data.Model.Objects.ObjectPropertyMapping_1(IReadOnlyList`1, BinaryTupleReader&)
   at Apache.Ignite.Internal.Sql.ResultSet`1.ReadRow(IReadOnlyList`1 cols, MsgPackReader& reader)
   at Apache.Ignite.Internal.Sql.ResultSet`1.<>c__DisplayClass37_0.<<EnumerateRows>g__EnumeratePage|0>d.MoveNext()
   at Apache.Ignite.Internal.Sql.ResultSet`1.EnumerateRows()+MoveNext()
   at Apache.Ignite.Internal.Sql.ResultSet`1.EnumerateRows()+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)