Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-222

Fix class cast exception with DirectoryEntry#getOrderingProperty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.12.0
    • Component/s: Core
    • Backlog priority:
      650
    • Sprint:
      nxplatform #48, nxplatform #49, nxplatform #50, nxplatform #51
    • Story Points:
      2

      Description

      Calling DirectoryEntry#getOrderingProperty throws a class cast exception:

      An exception occured while executing the Java class. class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')
      

      Sample code:

              DirectoryManager manager = client.directoryManager();
              Directory directory = manager.directory("nature");
              DirectoryEntry e = directory.fetchEntry("application");
              Long l = e.getOrderingProperty();
      

      This occurs with a PostGreSQL and MongoDB backend.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: