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

Alessio Soldano (JIRA) issues at jboss.org
Mon Oct 19 15:31:00 EDT 2015


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

Alessio Soldano commented on WFLY-5541:
---------------------------------------

I've just pushed a PR for returning 0 for the 7 ws metrics when statistics are disabled (0 is btw the value that the underlying WS layer has for each of them before any request is processed).
I've verified the behaviour with the CLI, but I could not get actual metrics values in the web console when statistics are enabled.

> 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
>             Fix For: 10.0.0.CR3
>
>
> 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