-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Declaring a variable that do not have any value gives a unintuitive error. For example, using this siple configuration:
<plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>${version.plugin.wildfly}</version> <configuration> <env> <TEST>${test}</TEST> </env> </configuration> </plugin>
Provides the following error trace:
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:5.0.0.Final:dev (default-cli) on project solar-system-tours: The server failed to start: Cannot invoke "String.indexOf(int)" because "value" is null -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The error is not intuitive since it says nothing about what is the root cause.
I initially open it as a bug, I don't think the intention was to prevent adding env configurations without values, but if that was the case, at least the error could be improved to understan better which env has no value before passing it to the server launch command.
- is related to
-
WFCORE-6842 The Launcher API should not attempt to pass null environment variables
- Resolved