[
https://issues.jboss.org/browse/AS7-4136?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry updated AS7-4136:
----------------------------------
Summary: Not configuring port-offset in host.xml server element's socket-bindings
element results in NPE (was: Enhance Error Reporting)
The XSD should be updated to state that this attribute is optional. It already has the
correct 'default="0"'. The behavior of the code should match, both in
the parser and if any admin client invokes an operation affecting this config.
Not configuring port-offset in host.xml server element's
socket-bindings element results in NPE
-----------------------------------------------------------------------------------------------
Key: AS7-4136
URL:
https://issues.jboss.org/browse/AS7-4136
Project: Application Server 7
Issue Type: Enhancement
Affects Versions: 7.1.1.Final
Reporter: Juergen Hoffmann
Assignee: Tomaz Cerar
Priority: Minor
If you do not have a port offset configured in our host.xml servers socket binding
definition, you will receive a Null Pointer Exception:
<servers>
<server name="MY-AS-PROD" group="MY-AS-PROD"
auto-start="true">
<jvm name="default">
<jvm-options>
<option
value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
</jvm-options>
</jvm>
<socket-bindings socket-binding-group="standard-sockets"/>
</server>
</servers>
after adding port-offset="0" the NPE vanished
15:18:16,740 ERROR [org.jboss.as.controller] (Controller Boot Thread) JBAS014601: Error
booting the container: java.lang.RuntimeException:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed
to parse configuration
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:161)
[jboss-as-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_30]
Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException:
JBAS014676: Failed to parse configuration
at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:125)
[jboss-as-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at
org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:155)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at
org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:311)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155)
[jboss-as-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
... 1 more
Caused by: java.lang.NullPointerException
at
org.jboss.as.host.controller.parsing.HostXml.parseServerSocketBindings(HostXml.java:1156)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.as.host.controller.parsing.HostXml.parseServerContent1_1(HostXml.java:1044)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.as.host.controller.parsing.HostXml.parseServer(HostXml.java:958)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.as.host.controller.parsing.HostXml.parseServers(HostXml.java:935)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.as.host.controller.parsing.HostXml.readHostElement_1_1(HostXml.java:398)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:123)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:101)
[jboss-as-host-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
[staxmapper-1.1.0.Final-redhat-1.jar:1.1.0.Final-redhat-1]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
[staxmapper-1.1.0.Final-redhat-1.jar:1.1.0.Final-redhat-1]
at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:117)
[jboss-as-controller-7.1.0.Final-redhat-1.jar:7.1.0.Final-redhat-1]
... 4 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira