[
https://issues.jboss.org/browse/JBAS-9201?page=com.atlassian.jira.plugin....
]
Heiko Rupp commented on JBAS-9201:
----------------------------------
Well, the NPE is gone, but the result does not make a lot of sense to me:
{"outcome" : "success", "result" : null}
NPE in Server on bad input
--------------------------
Key: JBAS-9201
URL:
https://issues.jboss.org/browse/JBAS-9201
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Domain Management
Affects Versions: 7.0.0.Beta1
Reporter: Heiko Rupp
Priority: Minor
Fix For: 7.0.0.Beta4
With this (bogus) input over the json interface, the server throws a NPE and does not
return an error message to the caller
{"address":[{"host":"/host/pintsize"},{"server-config":"newServer"}],"operation":"add","name":"newServer","auto-start":"true","group":"main-server-group"}
Stack trace is
[Host Controller] 11:55:21,170 ERROR [org.jboss.as.domain.http.api] (pool-1-thread-10)
Unexpected error executing model request: java.lang.NullPointerException
[Host Controller] at
org.jboss.as.domain.controller.DomainControllerImpl.execute(DomainControllerImpl.java:354)
[Host Controller] at
org.jboss.as.controller.AbstractModelController.execute(AbstractModelController.java:101)
[Host Controller] at
org.jboss.as.domain.controller.DomainControllerImpl.execute(DomainControllerImpl.java:219)
[Host Controller] at
org.jboss.as.domain.http.server.DomainHttpServer.processRequest(DomainHttpServer.java:173)
[Host Controller] at
org.jboss.as.domain.http.server.DomainHttpServer.handle(DomainHttpServer.java:104)
[Host Controller] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
[:1.6.0_24]
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira