[jboss-jira] [JBoss JIRA] (WFLY-5541) Webservice subsystem abuses attribute values for error handling

Brian Stansberry (JIRA) issues at jboss.org
Mon Oct 19 10:03:00 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119489#comment-13119489 ] 

Brian Stansberry commented on WFLY-5541:
----------------------------------------

Points V. and VI. in that description are the most directly relevant one to situations where statistics are disabled.

If fixing this will result in changes to the management API (e.g. by declaring that metrics may now return undefined whereas before they wouldn't because an exception would be thrown) then it's quite important to get this fixed in WF 10 so we aren't forced to make API changes later.

> Webservice subsystem abuses attribute values for error handling
> ---------------------------------------------------------------
>
>                 Key: WFLY-5541
>                 URL: https://issues.jboss.org/browse/WFLY-5541
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web Services
>            Reporter: Heiko Braun
>            Assignee: Alessio Soldano
>
> See for instance attribute request-count. It's of type integer but reports an error message (when statistics not enabled). Please use the DMR headers to indicate failed operations. This is a bad hack.
> {noformat}
> [standalone at localhost:9990 /] /deployment=jboss-helloworld-ws.war/subsystem=webservices/endpoint=*:read-resource(include-runtime=true)
> {
>     "outcome" => "success",
>     "result" => [{
>         "address" => [
>             ("deployment" => "jboss-helloworld-ws.war"),
>             ("subsystem" => "webservices"),
>             ("endpoint" => "jboss-helloworld-ws%3Aorg.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl")
>         ],
>         "outcome" => "success",
>         "result" => {
>             "average-processing-time" => "WFLYWS0037: No metrics available",
>             "class" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
>             "context" => "jboss-helloworld-ws",
>             "fault-count" => "WFLYWS0037: No metrics available",
>             "max-processing-time" => "WFLYWS0037: No metrics available",
>             "min-processing-time" => "WFLYWS0037: No metrics available",
>             "name" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
>             "request-count" => "WFLYWS0037: No metrics available",
>             "response-count" => "WFLYWS0037: No metrics available",
>             "total-processing-time" => "WFLYWS0037: No metrics available",
>             "type" => "JAXWS_JSE",
>             "wsdl-url" => "http://localhost:8080/jboss-helloworld-ws/HelloWorldService?wsdl"
>         }
>     }],
>     "response-headers" => {"process-state" => "reload-required"}
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list