Application Server 7
  1. Application Server 7
  2. AS7-4709

Duplicate keys in model -- Host controller complains

    Details

    • Bugzilla Update:
      Perform
    • Similar Issues:
      Show 10 results 

      Description

      Host controller complains sometimes

      [Host Controller] 14:38:03,748 ERROR [org.jboss.as.domain.http.api] (HttpManagementService-threads - 2) JBAS015100: Unexpected error executing model request: org.jboss.as.controller.OperationFailedRuntimeException: JBAS014662: Duplicate path element 'server' found [ "JBAS014662: Duplicate path element 'server' found" ]

      Enabling check for dups in RHQ shows that one culprit is the runtime info on mail

      [domain@localhost:9999 mail-session=java:jboss/mail/Default] :read-children-types

      { "outcome" => "success", "result" => ["server"] }

      [domain@localhost:9999 mail-session=java:jboss/mail/Default] pwd
      /host=master/server=server-one/subsystem=mail/mail-session=java:jboss/mail/Default

      [10:51:50] <pilhuhn> [domain@localhost:9999 mail-session=java:jboss/mail/Default] pwd
      [10:52:23] <pilhuhn> here the child-type from a mail-session is named "server", which collides with the /host=x/server=y key

        Activity

        Hide
        Tomaz Cerar
        added a comment -

        After discussion on irc we decided that proper fix is to allow server and host paths to be repeated.
        New duplication checking now skips host=/server= part.

        Show
        Tomaz Cerar
        added a comment - After discussion on irc we decided that proper fix is to allow server and host paths to be repeated. New duplication checking now skips host= /server= part.
        Show
        Kabir Khan
        added a comment - Done for https://github.com/jbossas/jboss-as/compare/167bc42...1a39a9c
        Hide
        Ian Springer
        added a comment -

        I'm still seeing a bunch of similar errors when I run the as7 plugin itests against EAP6 ER8...

        11:01:27,172 WARN [ASConnection] Received 500 (Internal Server
        Error)
        response to Operation{operation='read-resource',
        address=Address

        {path: host=master,server=server-one,subsystem=mail,mail-session=java:jboss/mail/Default,server=smtp}

        ,
        additionalProperties={}} - response body was ["JBAS014662: Duplicate
        path element 'server' found"].
        11:01:27,172 ERROR [ASConnection] Can not instantiate value of type
        [simple type, class org.rhq.modules.plugins.jbossas7.json.Result]
        from
        JSON String; no single-String constructor/factory method
        11:01:27,223 WARN [ASConnection] Received 500 (Internal Server
        Error)
        response to Operation{operation='read-resource',
        address=Address

        {path: host=master,server=server-one,subsystem=mail,mail-session=java:jboss/mail/Default,server=imap}

        ,
        additionalProperties={}} - response body was ["JBAS014662: Duplicate
        path element 'server' found"].
        11:01:27,223 ERROR [ASConnection] Can not instantiate value of type
        [simple type, class org.rhq.modules.plugins.jbossas7.json.Result]
        from
        JSON String; no single-String constructor/factory method
        11:01:27,275 WARN [ASConnection] Received 500 (Internal Server
        Error)
        response to Operation{operation='read-resource',
        address=Address

        {path: host=master,server=server-one,subsystem=mail,mail-session=java:jboss/mail/Default,server=pop3}

        ,
        additionalProperties={}} - response body was ["JBAS014662: Duplicate
        path element 'server' found"].

        Show
        Ian Springer
        added a comment - I'm still seeing a bunch of similar errors when I run the as7 plugin itests against EAP6 ER8... 11:01:27,172 WARN [ASConnection] Received 500 (Internal Server Error) response to Operation{operation='read-resource', address=Address {path: host=master,server=server-one,subsystem=mail,mail-session=java:jboss/mail/Default,server=smtp} , additionalProperties={}} - response body was ["JBAS014662: Duplicate path element 'server' found"]. 11:01:27,172 ERROR [ASConnection] Can not instantiate value of type [simple type, class org.rhq.modules.plugins.jbossas7.json.Result] from JSON String; no single-String constructor/factory method 11:01:27,223 WARN [ASConnection] Received 500 (Internal Server Error) response to Operation{operation='read-resource', address=Address {path: host=master,server=server-one,subsystem=mail,mail-session=java:jboss/mail/Default,server=imap} , additionalProperties={}} - response body was ["JBAS014662: Duplicate path element 'server' found"]. 11:01:27,223 ERROR [ASConnection] Can not instantiate value of type [simple type, class org.rhq.modules.plugins.jbossas7.json.Result] from JSON String; no single-String constructor/factory method 11:01:27,275 WARN [ASConnection] Received 500 (Internal Server Error) response to Operation{operation='read-resource', address=Address {path: host=master,server=server-one,subsystem=mail,mail-session=java:jboss/mail/Default,server=pop3} , additionalProperties={}} - response body was ["JBAS014662: Duplicate path element 'server' found"].
        Hide
        Tomaz Cerar
        added a comment -

        What does the code that does this work?
        What does it check?
        As the fix was not to the mail subsystem but how the paths are handled in general.

        Show
        Tomaz Cerar
        added a comment - What does the code that does this work? What does it check? As the fix was not to the mail subsystem but how the paths are handled in general.
        Hide
        Stefan Negrea
        added a comment - - edited

        Tomaz,

        Here is a simple test case:
        1) Start the EAP6 ER6/ER7 in domain mode.
        2) Using the CLI, note the following errors:
        [domain@localhost:9999 /] cd host=master/server=server-one/subsystem=mail/mail-session=java\:jboss\/mail\/Default/server=smtp
        [domain@localhost:9999 server=smtp] pwd
        /host=master/server=server-one/subsystem=mail/mail-session=java:jboss/mail/Default/server=smtp
        [domain@localhost:9999 server=smtp] :read-resource()

        { "outcome" => "failed", *"failure-description" => "org.jboss.as.controller.OperationFailedRuntimeException:JBAS014662: Duplicate path element 'server' found"* }

        [domain@localhost:9999 server=smtp]
        [domain@localhost:9999 server=smtp] :read-resource-description()

        { "outcome" => "failed", *"failure-description" => "org.jboss.as.controller.OperationFailedRuntimeException:JBAS014662: Duplicate path element 'server' found"* }
        Show
        Stefan Negrea
        added a comment - - edited Tomaz, Here is a simple test case: 1) Start the EAP6 ER6/ER7 in domain mode. 2) Using the CLI, note the following errors: [domain@localhost:9999 /] cd host=master/server=server-one/subsystem=mail/mail-session=java\:jboss\/mail\/Default/server=smtp [domain@localhost:9999 server=smtp] pwd /host=master/server=server-one/subsystem=mail/mail-session=java:jboss/mail/Default/server=smtp [domain@localhost:9999 server=smtp] :read-resource() { "outcome" => "failed", *"failure-description" => "org.jboss.as.controller.OperationFailedRuntimeException:JBAS014662: Duplicate path element 'server' found"* } [domain@localhost:9999 server=smtp] [domain@localhost:9999 server=smtp] :read-resource-description() { "outcome" => "failed", *"failure-description" => "org.jboss.as.controller.OperationFailedRuntimeException:JBAS014662: Duplicate path element 'server' found"* }
        Hide
        Stefan Negrea
        added a comment -

        This was fixed in EAP6 ER8.

        Here is the CLI output:
        [domain@localhost:9999 /] cd host=master/server=server-one/subsystem=mail/mail-session=java\:jboss\/mail\/Default/server=smtp
        [domain@localhost:9999 server=smtp] pwd
        /host=master/server=server-one/subsystem=mail/mail-session=java:jboss/mail/Default/server=smtp
        [domain@localhost:9999 server=smtp] :read-resource
        {
        "outcome" => "success",
        "result" =>

        { "outbound-socket-binding-ref" => "mail-smtp", "password" => undefined, "ssl" => false, "username" => undefined }

        }

        Show
        Stefan Negrea
        added a comment - This was fixed in EAP6 ER8. Here is the CLI output: [domain@localhost:9999 /] cd host=master/server=server-one/subsystem=mail/mail-session=java\:jboss\/mail\/Default/server=smtp [domain@localhost:9999 server=smtp] pwd /host=master/server=server-one/subsystem=mail/mail-session=java:jboss/mail/Default/server=smtp [domain@localhost:9999 server=smtp] :read-resource { "outcome" => "success", "result" => { "outbound-socket-binding-ref" => "mail-smtp", "password" => undefined, "ssl" => false, "username" => undefined } }
        Hide
        Tomaz Cerar
        added a comment -

        @Stefan, yes as you noted this was fix for 7.1.2.Final / EAP ER8
        given that I am closing this issue.

        Show
        Tomaz Cerar
        added a comment - @Stefan, yes as you noted this was fix for 7.1.2.Final / EAP ER8 given that I am closing this issue.

          People

          • Assignee:
            Kabir Khan
            Reporter:
            Heiko Rupp
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: