Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3.0-m1, 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-5875Missing Error Message Not Handled Well
      KULRICE-1235Doc Search throws error - missing key
      KULRICE-10005several message with key not found errors in KRMS
      KULRICE-6948KRMS is treating RemotableAttributeErrors as message keys instead of messages
      KULRICE-9642Error message not being resolved
      KULRICE-7463Validation messaging - info missing in section headers & incorrect # of validation messages
      KULRICE-13920Error message missing when attempting to add a third colo AO
      KULRICE-12904Info messages missing at page level
      KULRICE-5462Rice Dev: User Preferences gives error message
      KULRICE-9095KRAD Error messages in section not displayed correctly
    • Rice Module:
      KNS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Getting an exception stating invalid (blank) errorKey when ValidationPatterns detect invalid input during maintenance rule execution. The code to retrieve the errorKey from the DataDictionaryServiceImpl has been commented out and always returns null. I'm attaching a patch with the changes we made to fix the problem. Here is the stack trace we were getting:

      2013-02-13 17:20:00,577 [http-8080-3] u:sgibson/d: ERROR org.kuali.rice.kns.web.struts.form.pojo.StrutsExceptionIncidentHandler :: Exception being handled by Exception Handler
      java.lang.IllegalArgumentException: invalid (blank) errorKey. Message parameters were null or empty.
      at org.kuali.rice.krad.util.ErrorMessage.<init>(ErrorMessage.java:67)
      at org.kuali.rice.krad.util.MessageMap.putError(MessageMap.java:118)
      at org.kuali.rice.kns.service.impl.DictionaryValidationServiceImpl.validateAttributeFormat(DictionaryValidationServiceImpl.java:358)
      at org.kuali.rice.kns.service.impl.DictionaryValidationServiceImpl.validateAttributeFormat(DictionaryValidationServiceImpl.java:234)
      at org.kuali.rice.kns.service.impl.DictionaryValidationServiceImpl.validateBusinessObjectOnMaintenanceDocumentHelper(DictionaryValidationServiceImpl.java:149)
      at org.kuali.rice.kns.service.impl.DictionaryValidationServiceImpl.validateBusinessObjectOnMaintenanceDocument(DictionaryValidationServiceImpl.java:128)
      at org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase.dataDictionaryValidate(MaintenanceDocumentRuleBase.java:703)
      at org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase.processGlobalSaveDocumentBusinessRules(MaintenanceDocumentRuleBase.java:903)
      at org.kuali.rice.kns.maintenance.rules.MaintenanceDocumentRuleBase.processRouteDocument(MaintenanceDocumentRuleBase.java:209)
      ...

        Activity

        Hide
        Jeff Ruch added a comment -

        The code in this patch already exists in both 2.1 and 2.3. I did some research and it looked like the code was commented out on 12/1 to fix the DataDictionarySearchableAttribute test. Since then the code was uncommented. I verified that the DataDictionarySearchableAttribute test is passing with the code in place.

        Show
        Jeff Ruch added a comment - The code in this patch already exists in both 2.1 and 2.3. I did some research and it looked like the code was commented out on 12/1 to fix the DataDictionarySearchableAttribute test. Since then the code was uncommented. I verified that the DataDictionarySearchableAttribute test is passing with the code in place.

          People

          • Assignee:
            Jeff Ruch
            Reporter:
            Scott Gibson (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel