Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-4739

Null reference exception when using CLI reflection serializer and default constructor is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • native client
    • None

    Description

      When using reflection based auto serialization and the CLI Geode Native client, it is required that any domain objects implement default constructors.  If a default constructor isn't implemented, then serialization fails ungracefully with a null reference exception.  Better error handling for this case should be added.

      Steps to reproduce:

      1. Open the PdxAutoSerializer example in the examples packaged with geode-native
      2. Remove the default constructor from the Order class
      3. Run the example and observe the null reference exception

      Acceptance criteria:

      A test should be written which captures the same steps to reproduce described above. Better error handling which indicates the root of the issue should be implemented, rather than throwing a null reference exception.

      Attachments

        1. image.png
          37 kB
          Blake Bender

        Activity

          People

            Unassigned Unassigned
            rmcmahon Ryan McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: