You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by GedupuriRamesh <ra...@gmail.com> on 2019/05/27 05:46:26 UTC

Artemis broker.xml paramter issues

Dear Team,

We are not able to start the artemis when we add the below stanzas in
broker.xml.

<blockOnNonDurableSend>true</blockOnNonDurableSend>
<block-On-NonDurable-Send>true</block-On-NonDurable-Send>

<blockOnDurableSend>true</blockOnDurableSend>

<BlockOnAcknowledge>true</BlockOnAcknowledge>
<journal-sync-transactional>true</journal-sync-transactional>
<journal-sync-non-transactional>true</journal-sync-non-transactional>

We are getting the below error as shown below for all stanza's. Could you
please help at the earliest.

2019-05-27 13:11:12,022 ERROR [org.apache.activemq.artemis.core.client]
AMQ214019: Invalid configuration: org.xml.sax.SAXParseException;
cvc-complex-type.2.4.a: Invalid content was found starting with element
'blockOnNonDurableSend'. One of
'{"urn:activemq:core":system-property-prefix,
"urn:activemq:core":internal-naming-prefix,
"urn:activemq:core":amqp-use-core-subscription-naming,
"urn:activemq:core":resolve-protocols, "urn:activemq:core":journal-datasync,
"urn:activemq:core":scheduled-thread-pool-max-size,
"urn:activemq:core":thread-pool-max-size,
"urn:activemq:core":graceful-shutdown-enabled,
"urn:activemq:core":graceful-shutdown-timeout,
"urn:activemq:core":security-enabled,
"urn:activemq:core":security-invalidation-interval,
"urn:activemq:core":journal-lock-acquisition-timeout,
"urn:activemq:core":wild-card-routing-enabled,
"urn:activemq:core":management-address,
"urn:activemq:core":management-notification-address,
"urn:activemq:core":cluster-user, "urn:activemq:core":cluster-password,
"urn:activemq:core":password-codec, "urn:activemq:core":mask-password,
"urn:activemq:core":log-delegate-factory-class-name,
"urn:activemq:core":jmx-management-enabled, "urn:activemq:core":jmx-domain,
"urn:activemq:core":jmx-use-broker-name,
"urn:activemq:core":message-counter-enabled,
"urn:activemq:core":message-counter-sample-period,
"urn:activemq:core":message-counter-max-day-history,
"urn:activemq:core":connection-ttl-override,
"urn:activemq:core":connection-ttl-check-interval,
"urn:activemq:core":configuration-file-refresh-period,
"urn:activemq:core":async-connection-execution-enabled,
"urn:activemq:core":transaction-timeout,
"urn:activemq:core":transaction-timeout-scan-period,
"urn:activemq:core":message-expiry-scan-period,
"urn:activemq:core":message-expiry-thread-priority,
"urn:activemq:core":id-cache-size, "urn:activemq:core":persist-id-cache,
"urn:activemq:core":remoting-incoming-interceptors,
"urn:activemq:core":remoting-outgoing-interceptors,
"urn:activemq:core":persist-delivery-count-before-delivery,
"urn:activemq:core":populate-validated-user, "urn:activemq:core":connectors,
"urn:activemq:core":acceptors, "urn:activemq:core":broadcast-groups,
"urn:activemq:core":discovery-groups, "urn:activemq:core":diverts,
"urn:activemq:core":queues, "urn:activemq:core":bridges,
"urn:activemq:core":ha-policy, "urn:activemq:core":cluster-connections,
"urn:activemq:core":grouping-handler, "urn:activemq:core":paging-directory,
"urn:activemq:core":bindings-directory,
"urn:activemq:core":create-bindings-dir,
"urn:activemq:core":page-max-concurrent-io,
"urn:activemq:core":journal-directory,
"urn:activemq:core":create-journal-dir, "urn:activemq:core":journal-type,
"urn:activemq:core":journal-buffer-timeout,
"urn:activemq:core":journal-buffer-size,
"urn:activemq:core":journal-sync-transactional,
"urn:activemq:core":journal-sync-non-transactional,
"urn:activemq:core":log-journal-write-rate,
"urn:activemq:core":journal-file-size,
"urn:activemq:core":journal-min-files,
"urn:activemq:core":journal-pool-files,
"urn:activemq:core":journal-compact-percentage,
"urn:activemq:core":journal-compact-min-files,
"urn:activemq:core":journal-max-io,
"urn:activemq:core":journal-file-open-timeout,
"urn:activemq:core":server-dump-interval,
"urn:activemq:core":global-max-size, "urn:activemq:core":max-disk-usage,
"urn:activemq:core":disk-scan-period,
"urn:activemq:core":memory-warning-threshold,
"urn:activemq:core":memory-measure-interval,
"urn:activemq:core":large-messages-directory, "urn:activemq:core":store,
"urn:activemq:core":critical-analyzer,
"urn:activemq:core":critical-analyzer-timeout,
"urn:activemq:core":critical-analyzer-check-period,
"urn:activemq:core":critical-analyzer-policy,
"urn:activemq:core":security-settings, "urn:activemq:core":broker-plugins,
"urn:activemq:core":address-settings,
"urn:activemq:core":resource-limit-settings,
"urn:activemq:core":connector-services, "urn:activemq:core":addresses,
"urn:activemq:core":network-check-list,
"urn:activemq:core":network-check-URL-list,
"urn:activemq:core":network-check-period,
"urn:activemq:core":network-check-timeout,
"urn:activemq:core":network-check-NIC,
"urn:activemq:core":network-check-ping-command,
"urn:activemq:core":network-check-ping6-command,
"urn:activemq:core":wildcard-addresses}' is expected.
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
[rt.jar:1.8.0_161]
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
[rt.jar:1.8.0_161]
        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
[rt.jar:1.8.0_161]
        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
[rt.jar:1.8.0_161]
        at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
[rt.jar:1.8.0_161]
        at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:453)
[rt.jar:1





--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis broker.xml paramter issues

Posted by Francesco Nigro <ni...@gmail.com>.
Please take a look to the artemis doc online:
https://activemq.apache.org/components/artemis/documentation/latest/send-guarantees.html

Non Transactional Message Sends

If you are sending messages to a server using a non transacted session,
Apache ActiveMQ Artemis can be configured to block the call to send until
the message has definitely reached the server, and a response has been sent
back to the client. This can be configured individually for durable and
non-durable messages, and is determined by the *following two URL
parameters*:

   -

   blockOnDurableSend. If this is set to true then all calls to send for
   durable messages on non transacted sessions will block until the message
   has reached the server, and a response has been sent back. The default
   value is true.
   -

   blockOnNonDurableSend. If this is set to true then all calls to send for
   non-durable messages on non transacted sessions will block until the
   message has reached the server, and a response has been sent back. The
   default value is false.


The parametres you've configuread need to be URL parameters, not XML
elements!

Il giorno lun 27 mag 2019 alle ore 14:55 GedupuriRamesh <
rameshbabudocs@gmail.com> ha scritto:

> Dear Team,
>
> We are not able to start the artemis when we add the below stanzas in
> broker.xml.
>
> <blockOnNonDurableSend>true</blockOnNonDurableSend>
> <block-On-NonDurable-Send>true</block-On-NonDurable-Send>
>
> <blockOnDurableSend>true</blockOnDurableSend>
>
> <BlockOnAcknowledge>true</BlockOnAcknowledge>
> <journal-sync-transactional>true</journal-sync-transactional>
> <journal-sync-non-transactional>true</journal-sync-non-transactional>
>
> We are getting the below error as shown below for all stanza's. Could you
> please help at the earliest.
>
> 2019-05-27 13:11:12,022 ERROR [org.apache.activemq.artemis.core.client]
> AMQ214019: Invalid configuration: org.xml.sax.SAXParseException;
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'blockOnNonDurableSend'. One of
> '{"urn:activemq:core":system-property-prefix,
> "urn:activemq:core":internal-naming-prefix,
> "urn:activemq:core":amqp-use-core-subscription-naming,
> "urn:activemq:core":resolve-protocols,
> "urn:activemq:core":journal-datasync,
> "urn:activemq:core":scheduled-thread-pool-max-size,
> "urn:activemq:core":thread-pool-max-size,
> "urn:activemq:core":graceful-shutdown-enabled,
> "urn:activemq:core":graceful-shutdown-timeout,
> "urn:activemq:core":security-enabled,
> "urn:activemq:core":security-invalidation-interval,
> "urn:activemq:core":journal-lock-acquisition-timeout,
> "urn:activemq:core":wild-card-routing-enabled,
> "urn:activemq:core":management-address,
> "urn:activemq:core":management-notification-address,
> "urn:activemq:core":cluster-user, "urn:activemq:core":cluster-password,
> "urn:activemq:core":password-codec, "urn:activemq:core":mask-password,
> "urn:activemq:core":log-delegate-factory-class-name,
> "urn:activemq:core":jmx-management-enabled, "urn:activemq:core":jmx-domain,
> "urn:activemq:core":jmx-use-broker-name,
> "urn:activemq:core":message-counter-enabled,
> "urn:activemq:core":message-counter-sample-period,
> "urn:activemq:core":message-counter-max-day-history,
> "urn:activemq:core":connection-ttl-override,
> "urn:activemq:core":connection-ttl-check-interval,
> "urn:activemq:core":configuration-file-refresh-period,
> "urn:activemq:core":async-connection-execution-enabled,
> "urn:activemq:core":transaction-timeout,
> "urn:activemq:core":transaction-timeout-scan-period,
> "urn:activemq:core":message-expiry-scan-period,
> "urn:activemq:core":message-expiry-thread-priority,
> "urn:activemq:core":id-cache-size, "urn:activemq:core":persist-id-cache,
> "urn:activemq:core":remoting-incoming-interceptors,
> "urn:activemq:core":remoting-outgoing-interceptors,
> "urn:activemq:core":persist-delivery-count-before-delivery,
> "urn:activemq:core":populate-validated-user,
> "urn:activemq:core":connectors,
> "urn:activemq:core":acceptors, "urn:activemq:core":broadcast-groups,
> "urn:activemq:core":discovery-groups, "urn:activemq:core":diverts,
> "urn:activemq:core":queues, "urn:activemq:core":bridges,
> "urn:activemq:core":ha-policy, "urn:activemq:core":cluster-connections,
> "urn:activemq:core":grouping-handler, "urn:activemq:core":paging-directory,
> "urn:activemq:core":bindings-directory,
> "urn:activemq:core":create-bindings-dir,
> "urn:activemq:core":page-max-concurrent-io,
> "urn:activemq:core":journal-directory,
> "urn:activemq:core":create-journal-dir, "urn:activemq:core":journal-type,
> "urn:activemq:core":journal-buffer-timeout,
> "urn:activemq:core":journal-buffer-size,
> "urn:activemq:core":journal-sync-transactional,
> "urn:activemq:core":journal-sync-non-transactional,
> "urn:activemq:core":log-journal-write-rate,
> "urn:activemq:core":journal-file-size,
> "urn:activemq:core":journal-min-files,
> "urn:activemq:core":journal-pool-files,
> "urn:activemq:core":journal-compact-percentage,
> "urn:activemq:core":journal-compact-min-files,
> "urn:activemq:core":journal-max-io,
> "urn:activemq:core":journal-file-open-timeout,
> "urn:activemq:core":server-dump-interval,
> "urn:activemq:core":global-max-size, "urn:activemq:core":max-disk-usage,
> "urn:activemq:core":disk-scan-period,
> "urn:activemq:core":memory-warning-threshold,
> "urn:activemq:core":memory-measure-interval,
> "urn:activemq:core":large-messages-directory, "urn:activemq:core":store,
> "urn:activemq:core":critical-analyzer,
> "urn:activemq:core":critical-analyzer-timeout,
> "urn:activemq:core":critical-analyzer-check-period,
> "urn:activemq:core":critical-analyzer-policy,
> "urn:activemq:core":security-settings, "urn:activemq:core":broker-plugins,
> "urn:activemq:core":address-settings,
> "urn:activemq:core":resource-limit-settings,
> "urn:activemq:core":connector-services, "urn:activemq:core":addresses,
> "urn:activemq:core":network-check-list,
> "urn:activemq:core":network-check-URL-list,
> "urn:activemq:core":network-check-period,
> "urn:activemq:core":network-check-timeout,
> "urn:activemq:core":network-check-NIC,
> "urn:activemq:core":network-check-ping-command,
> "urn:activemq:core":network-check-ping6-command,
> "urn:activemq:core":wildcard-addresses}' is expected.
>         at
>
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
> [rt.jar:1.8.0_161]
>         at
>
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
> [rt.jar:1.8.0_161]
>         at
>
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
> [rt.jar:1.8.0_161]
>         at
>
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
> [rt.jar:1.8.0_161]
>         at
>
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
> [rt.jar:1.8.0_161]
>         at
>
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:453)
> [rt.jar:1
>
>
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>