https://issues.apache.org/bugzilla/show_bug.cgi?id=56809
Bug ID: 56809
Summary: JMSSampler closes InitialContext too early
Product: JMeter
Version: 2.11
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31869
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31869&action=edit
Patch to fix problem
JMSSampler closes the InitialContext in threadStarted, before the individual
requests are sent. When authentication is required for the queue, the
credentials are then lost with the closure of the InitialContext. As a result,
all send-operations run into the following error:
JMSSecurityException: Access denied to resource: type=<jms>, application=xxxx,
destinationType=queue, resource=xxxx, action=send
at
weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
at
weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncTran(DispatcherAdapter.java:53)
at weblogic.jms.client.JMSProducer.toFEProducer(JMSProducer.java:1300)
at
weblogic.jms.client.JMSProducer.deliveryInternal(JMSProducer.java:807)
at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:543)
at
weblogic.jms.client.JMSProducer.sendWithListener(JMSProducer.java:394)
at weblogic.jms.client.JMSProducer.send(JMSProducer.java:384)
at weblogic.jms.client.WLProducerImpl.send(WLProducerImpl.java:970)
at
org.apache.jmeter.protocol.jms.sampler.FixedQueueExecutor.sendAndReceive(FixedQueueExecutor.java:87)
at
org.apache.jmeter.protocol.jms.sampler.JMSSampler.sample(JMSSampler.java:151)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Thread.java:744)
Caused by: weblogic.jms.common.JMSSecurityException: Access denied to resource:
type=<jms>, application=ppit-jms-module, destinationType=queue,
resource=Sebula.Prepaid.Asynch.Request, action=send
at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused by: weblogic.jms.common.JMSSecurityException: Access denied to resource:
type=<jms>, application=ppit-jms-module, destinationType=queue,
resource=Sebula.Prepaid.Asynch.Request, action=send
... 1 more
Caused by: weblogic.jms.common.JMSSecurityException: Access denied to resource:
type=<jms>, application=ppit-jms-module, destinationType=queue,
resource=Sebula.Prepaid.Asynch.Request, action=send
... 1 more
The solution is to close the InitialContext in threadFinished instead. A patch
is attached.
(Running against a JMS-queue on Weblogic 12.1.2)
--
You are receiving this mail because:
You are the assignee for the bug.