Fix for issue 2243.
Set the proper port in the UserData object.
Add some logging lines that might be helpful to fix other issues that we could have in this area of the code.
| | |
| | | |
| | | String[] args = new String[argList.size()]; |
| | | argList.toArray(args); |
| | | StringBuffer cmd = new StringBuffer(); |
| | | for (String s : argList) |
| | | { |
| | | if (cmd.length() > 0) |
| | | { |
| | | cmd.append(" "); |
| | | } |
| | | cmd.append(s); |
| | | } |
| | | LOG.log(Level.INFO, "configure DS cmd: "+cmd); |
| | | try |
| | | { |
| | | InstallerHelper helper = new InstallerHelper(); |
| | |
| | | if (argParser.jmxPortArg.isPresent()) |
| | | { |
| | | int jmxPort = argParser.jmxPortArg.getIntValue(); |
| | | uData.setServerPort(jmxPort); |
| | | uData.setServerJMXPort(jmxPort); |
| | | // Check if the port can be used. |
| | | if (!argParser.skipPortCheckArg.isPresent()) |
| | | { |