Uploaded image for project: 'MyFaces Orchestra'
  1. MyFaces Orchestra
  2. ORCHESTRA-68

RequestParameterProviderManager.encodeAndAttachParameters might throw NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6
    • None

    Description

      Under certain circumstances which I unfortunately can not reproduce all the time (during a heavy load selenium test with ajax) the method RequestParameterProviderManager.encodeAndAttachParameters throws an expection because a provider in the list providers is null.

      The assumption is that due to multi-threading the array list might get corrupt under certain conditions. When I replace the list with a synchronized list the error does not occur. Fixing the bug can therefor achieved by replacing getProviders with:

          protected List getProviders() {
              if (providers == null) {
                  providers = Collections.synchronizedList(new ArrayList());
              }
      
              return providers;
          }
      

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            leo.buettiker@elca.ch Leo Büttiker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: