[jboss-jira] [JBoss JIRA] Commented: (AS7-669) Missing error message for composite operations

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Apr 26 22:20:18 EDT 2011


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

Brian Stansberry commented on AS7-669:
--------------------------------------

The CLI shows the core management layer is reporting the failure:

[localhost:9999 /] :composite(steps=[{"operation"=>"write-attribute","address"=>[("host"=>"local"),("server-config"=>"server-one")],"name"=>"socket-binding-group","value"=>"standard-sockets"},{"operation" => "write-attribute", "address" => [ ("host" => "local"), ("server-config" => "server-one") ], "name" => "socket-binding-port-offset", "value" => 0}],child-type=x)
{
    "outcome" => "failed",
    "failure-description" => {"domain-failure-description" => {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "0 is an invalid value for parameter socket-binding-port-offset. A minimum value of 1 is required"}}}
}

So the issue is perhaps in how DomainApiHandler is handling "outcome"=>"failed". Although looking at it, it seems it should output the full response value.

The specific error itself is bogus; there is nothing wrong with a value of 0.

> Missing error message for composite operations
> ----------------------------------------------
>
>                 Key: AS7-669
>                 URL: https://issues.jboss.org/browse/AS7-669
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 7.0.0.Beta3
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>             Fix For: 7.0.0.Beta4
>
>
> Heiko Braun reports:
> I don't see any error details when composite op's fail.
> Is it just me or a general problem?
> Request
> {
>      "operation" => "composite",
>      "address" => [],
>      "steps" => [
>          {
>              "operation" => "write-attribute",
>              "address" => [
>                  ("host" => "local"),
>                  ("server-config" => "server-one")
>              ],
>              "name" => "socket-binding-group",
>              "value" => "standard-sockets"
>          },
>          {
>              "operation" => "write-attribute",
>              "address" => [
>                  ("host" => "local"),
>                  ("server-config" => "server-one")
>              ],
>              "name" => "socket-binding-port-offset",
>              "value" => 0
>         }
>      ],
>      "child-type" => undefined
> }
>  
> Response
>  
> Internal Server Error

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list