-
Task
-
Resolution: Unresolved
-
Major
-
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