[jboss-jira] [JBoss JIRA] (WFLY-6741) Missing validation for messaging-activemq (journal-buffer-size)

Jeff Mesnil (JIRA) issues at jboss.org
Fri Jun 17 10:43:00 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-6741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Mesnil moved JBEAP-5075 to WFLY-6741:
------------------------------------------

              Project: WildFly  (was: JBoss Enterprise Application Platform)
                  Key: WFLY-6741  (was: JBEAP-5075)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: JMS
                           (was: JMS)
       Target Release:   (was: 7.backlog.GA)
    Affects Version/s: 10.0.0.Final
                           (was: 7.0.1.CR1)


> Missing validation for messaging-activemq (journal-buffer-size)
> ---------------------------------------------------------------
>
>                 Key: WFLY-6741
>                 URL: https://issues.jboss.org/browse/WFLY-6741
>             Project: WildFly
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 10.0.0.Final
>            Reporter: Jeff Mesnil
>            Assignee: Dmitrii Tikhomirov
>
> There is no validation for journal-buffer-size attribute. 
> The following request shouldn't be successful:
> {noformat}
> [standalone at localhost:9990 /] /subsystem=messaging-activemq/server=default:write-attribute(name=journal-buffer-size, value=-8L
> {
>     "outcome" => "success",
> }
> [standalone at localhost:9990 /] reload
> {noformat}
> server.log
> {noformat}
> 15:11:57,787 ERROR [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ224000: Failure in initialisation: java.lang.IllegalArgumentException: initialCapacity: -8 (expectd: 0+)
> 	at io.netty.buffer.AbstractByteBufAllocator.validate(AbstractByteBufAllocator.java:196)
> 	at io.netty.buffer.AbstractByteBufAllocator.heapBuffer(AbstractByteBufAllocator.java:135)
> 	at io.netty.buffer.Unpooled.buffer(Unpooled.java:135)
> 	at org.apache.activemq.artemis.api.core.ActiveMQBuffers.fixedBuffer(ActiveMQBuffers.java:86)
> 	at org.apache.activemq.artemis.core.io.buffer.TimedBuffer.<init>(TimedBuffer.java:108)
> 	at org.apache.activemq.artemis.core.io.AbstractSequentialFileFactory.<init>(AbstractSequentialFileFactory.java:74)
> 	at org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.<init>(AIOSequentialFileFactory.java:77)
> 	at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.<init>(JournalStorageManager.java:251)
> 	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createStorageManager(ActiveMQServerImpl.java:1421)
> 	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart1(ActiveMQServerImpl.java:1540)
> 	at org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:61)
> 	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:396)
> 	at org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:381)
> 	at org.wildfly.extension.messaging.activemq.jms.JMSService.doStart(JMSService.java:199)
> 	at org.wildfly.extension.messaging.activemq.jms.JMSService.access$000(JMSService.java:63)
> 	at org.wildfly.extension.messaging.activemq.jms.JMSService$1.run(JMSService.java:97)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> 	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
> {noformat}
> This issue can occur on other subsystem resources as well.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list