You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michal Toth (JIRA)" <ji...@apache.org> on 2018/06/21 12:19:00 UTC

[jira] [Commented] (ARTEMIS-1569) Add 'user' attribute to queue in XML/JMX

    [ https://issues.apache.org/jira/browse/ARTEMIS-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16519283#comment-16519283 ] 

Michal Toth commented on ARTEMIS-1569:
--------------------------------------

This is not working in 2.6.0 nor in the latest 2.7.0 snapshot built from source code.

 
{code:java}
0,mtoth@jaguar apache-artemis-2.7.0-SNAPSHOT] master(!)$ activemq-artemis/artemis-distribution/target/apache-artemis-2.7.0-SNAPSHOT/brk/bin/artemis run
     _        _               _
    / \  ____| |_  ___ __  __(_) _____
   / _ \|  _ \ __|/ _ \  \/  | |/  __/
  / ___ \ | \/ |_/  __/ |\/| | |\___ \
 /_/   \_\|   \__\____|_|  |_|_|/___ /
 Apache ActiveMQ Artemis 2.7.0-SNAPSHOT


2018-06-21 14:16:21,115 ERROR [org.apache.activemq.artemis.core.client] AMQ214019: Invalid configuration: org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute 'user' is not allowed to appear in element 'queue'.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:453) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3231) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2708) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2051) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:277) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:244) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:190) [rt.jar:1.8.0_171]
    at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:109) [rt.jar:1.8.0_171]
    at javax.xml.validation.Validator.validate(Validator.java:124) [rt.jar:1.8.0_171]
    at org.apache.activemq.artemis.utils.XMLUtil.validate(XMLUtil.java:331) [artemis-core-client-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.core.config.FileDeploymentManager.readConfiguration(FileDeploymentManager.java:85) [artemis-server-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:68) [artemis-cli-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:82) [artemis-cli-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:149) [artemis-cli-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:97) [artemis-cli-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:124) [artemis-cli-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_171]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_171]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_171]
    at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_171]
    at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) [artemis-boot.jar:2.7.0-SNAPSHOT]
    at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) [artemis-boot.jar:2.7.0-SNAPSHOT]

Invalid configuration

usage: artemis <command> [<args>]
{code}

{code:xml}
      <addresses>
         <address name="DLQ">
            <anycast>
               <queue name="DLQ" />
            </anycast>
         </address>
         <address name="ExpiryQueue">
            <anycast>
               <queue name="ExpiryQueue" />
            </anycast>
         </address>

         <address name="ExpiryQueue2">
            <anycast>
               <queue name="ExpiryQueue2" user="admin"/>
            </anycast>
        </address>

         <address name="EQueue">
            <anycast>
               <queue name="EQueue" user='bob'/>
            </anycast>
         </address>
      </addresses>
{code}

> Add 'user' attribute to queue in XML/JMX
> ----------------------------------------
>
>                 Key: ARTEMIS-1569
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1569
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Michael Andre Pearce
>            Assignee: Michael Andre Pearce
>            Priority: Major
>             Fix For: 2.5.0
>
>
> Currently a queue is tagged with the user who created it, if it is created over the wire.
> This leaves out keeping audit of the user who may have created if declared in broker.xml, as such should be possible to tag a queue with a user that would be associated with creation.
> Also whilst this is exposed over the bespoke views for the console (new panels), the attribute isn't exposed over JMX and is useful to capture.
> This JIRA is to implement both the ability to add a user tag to broker.xml to associate the creator user, and like wise simply expose the extra attribute in QueueControl JMX.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)