]
Darran Lofthouse commented on AS7-1437:
---------------------------------------
One thing to consider is that a default value would only make sense on standalone, for
managed domain servers this name is used to register the host with the master domain
controller so multiple hosts with the same default would fail.
Alternatively maybe a random name could be generated but each time a host is started it
would be assigned a new name so hard to track which host is which when managing.
Unresolvable host name aborts server startup
--------------------------------------------
Key: AS7-1437
URL:
https://issues.jboss.org/browse/AS7-1437
Project: Application Server 7
Issue Type: Bug
Components: Server
Affects Versions: 7.0.0.Final
Reporter: Nicklas Karlsson
Assignee: Jason Greene
Starting AS7 on a host with a non-resolvable hostname fails with
13:48:46,158 ERROR [stderr] Exception in thread "Controller Boot Thread"
java.lang.RuntimeException:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
13:48:46,159 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)
13:48:46,159 ERROR [stderr] at java.lang.Thread.run(Thread.java:722)
13:48:46,159 ERROR [stderr] Caused by:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
13:48:46,160 ERROR [stderr] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)
13:48:46,160 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)
13:48:46,160 ERROR [stderr] at
org.jboss.as.server.ServerService.boot(ServerService.java:193)
13:48:46,160 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
13:48:46,164 ERROR [stderr] ... 1 more
13:48:46,164 ERROR [stderr] Caused by: java.lang.RuntimeException: Unable to determine a
default name based on the local host name
13:48:46,165 ERROR [stderr] at
org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:184)
13:48:46,165 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:137)
13:48:46,165 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)
13:48:46,165 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)
13:48:46,165 ERROR [stderr] at
org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)
13:48:46,174 ERROR [stderr] at
org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
13:48:46,174 ERROR [stderr] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)
13:48:46,175 ERROR [stderr] ... 4 more
13:48:46,175 ERROR [stderr] Caused by: java.net.UnknownHostException: nikbox.fi.dom:
nikbox.fi.dom
13:48:46,175 ERROR [stderr] at
java.net.InetAddress.getLocalHost(InetAddress.java:1438)
13:48:46,175 ERROR [stderr] at
org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:182)
13:48:46,175 ERROR [stderr] ... 10 more
13:48:46,176 ERROR [stderr] Caused by: java.net.UnknownHostException: nikbox.fi.dom
13:48:46,176 ERROR [stderr] at java.net.Inet4AddressImpl.lookupAllHostAddr(Native
Method)
13:48:46,177 ERROR [stderr] at
java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
13:48:46,177 ERROR [stderr] at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1258)
13:48:46,177 ERROR [stderr] at
java.net.InetAddress.getLocalHost(InetAddress.java:1434)
13:48:46,177 ERROR [stderr] ... 11 more
One option would be to default to something if the operation fails so this wouldn't
prevent server startup
--
This message is automatically generated by JIRA.
For more information on JIRA, see: