-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
info.magnolia.module.delta.BootstrapFileUtil wraps IOException and JDOMException into RuntimeException without meaningful error message. This is problem for example with info.magnolia.module.delta.PartialBootstrapTask because we should not catch RuntimeException there and then we don't know which resources was cause of fail.
2015-04-17 10:27:28,280 ERROR info.magnolia.module.InstallContextImpl : > Could not perform installation: java.net.MalformedURLException java.lang.RuntimeException: java.net.MalformedURLException at info.magnolia.module.delta.BootstrapFileUtil.getDocument(BootstrapFileUtil.java:68) at info.magnolia.module.delta.BootstrapFileUtil.getElementsFromXPath(BootstrapFileUtil.java:74) at info.magnolia.module.delta.BootstrapFileUtil.getElementFromXPath(BootstrapFileUtil.java:93)
info.magnolia.module.delta.BootstrapFileUtil also fails on NPE when hierarchy in bootstrap file doesn't contain the node path.
java.lang.NullPointerException at info.magnolia.module.delta.BootstrapFileUtil.getElementAsStream(BootstrapFileUtil.java:102)
Acceptance criteria