Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3189

JCARepositoryManager.createNonTransientRepository throws NPE with no JCAManagedConnectionFactory.CONFIGFILE_KEY

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.5
    • Fix Version/s: 2.3.7
    • Component/s: jackrabbit-jca
    • Labels:
      None

      Description

      JCARepositoryManager.createNonTransientRepository fails if

      String configFile = parameters.get(JCAManagedConnectionFactory.CONFIGFILE_KEY);

      is null, because

      config = RepositoryConfig.create(configFile, homeDir);

      will always throw an NPE, perhaps the call should just be

      config = RepositoryConfig.create(homeDir);

        Attachments

          Activity

            People

            • Assignee:
              c_koell Claus Köll
              Reporter:
              dbrosius@apache.org Dave Brosius
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: