UIMA
  1. UIMA
  2. UIMA-2044

UIMA AS Spring Container throws ava.lang.IllegalArgumentException: Display name must not be empty

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1AS
    • Component/s: Async Scaleout
    • Labels:
      None

      Description

      Spring throws java.lang.IllegalArgumentException: Display name must not be empty when deploying UIMA AS service using AE descriptor which does not specify <name..> element or its value is an empty string. Modify UIMA AS Spring Deployer component to check for missing name and generate one instead. The generated name will be the AE Class name (minus the package part).

        Activity

        Hide
        Jerry Cwiklik added a comment -

        Modified to handle missing name in the AE descriptor. If the name is not specified and the service is top level and primitive, the name is extracted from the class implementing the AE. If top level and aggregate, use constant "Top Level Aggregate Service". If not top level, the name comes from UimaContextAdmin.getQualifiedContextName() which has a format: AE1/AE2/../AEn, where AE1 is toplevel, AE2 is a child of AE1, and so on. The code will log a message stating that the name is not defined in the AE descriptor and that a new one is generated.

        Show
        Jerry Cwiklik added a comment - Modified to handle missing name in the AE descriptor. If the name is not specified and the service is top level and primitive, the name is extracted from the class implementing the AE. If top level and aggregate, use constant "Top Level Aggregate Service". If not top level, the name comes from UimaContextAdmin.getQualifiedContextName() which has a format: AE1/AE2/../AEn, where AE1 is toplevel, AE2 is a child of AE1, and so on. The code will log a message stating that the name is not defined in the AE descriptor and that a new one is generated.

          People

          • Assignee:
            Jerry Cwiklik
            Reporter:
            Jerry Cwiklik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development