Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2769

Use DefaultConfigurationBuilder#build with two arguments

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.1.0
    • None
    • None
    • 1 - Middle term
    • 2 - Normal

      In order to avoid error stacktraces such as

      [ERROR] Missing child element at null:56:60
      

      instead of doing

      configuration = new DefaultConfigurationBuilder().build(is);
      

      We must use :

      // configPath is src.getURI(), of file.getPath(), etc.
      configuration = new DefaultConfigurationBuilder().build(is, configPath);
      

      Then it will generate the following errors :

      [ERROR] Missing child element at /webapp/WEB-INF/search/formation.xml:56:60
      

      It will be very useful to search and find where the error occured.
      Search "DefaultConfigurationBuilder" in Eclipse for all "*.java" files to resolve this issue.

      You can see examples :

      • in PluginsManager:1335
      • RuntimeServlet:400
      • SkinTagProvider:154
      • etc.

      See also dev meeting of 2017-05-15, page 8

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: