What version of ActiveMQ are you using? That line is written when a consumer closes with unconsumed messages. Is that occurring here? Your description of the consumer code sounds like you're creating a consumer per message consumed (an anti-pattern), in which case 1) unconsumed messages when closing the consumer is expected, and 2) you probably shouldn't be closing and re-creating the consumer each time.
I'd expect to see that message in your consumer's logs, but your message made it sound like you were seeing it in the broker's logs. Can you confirm that? Finally, and most importantly, this log line comes out at *DEBUG*. Why are you asking questions about a DEBUG log line? Your message gave no indication of incorrect behavior, so just change your Log4J config to INFO for the ActiveMQ packages and be done with it. Tim On Wed, May 1, 2019, 11:08 PM Shireen mirza <mirza.shiree...@gmail.com> wrote: > This is the peace of code which i am using to receive message from queue. > i call that method in while loop every time it create connection with > apache mq and recievw message and then close connection or session . > it runs fine for 1 - 2 days but after some time . i got and error in my > activeMq.log > > *"on close, rollback duplicate: ID:********554721317961-1:1:1:1:1"* > > continously for every message . > > > :::: > And this configuration i have used in activeMq.xml > > > > > > > > > * <transportConnectors> <!-- DOS protection, limit concurrent > connections to 1000 and frame size to 100MB --> > <transportConnector name="openwire" > uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=304857600 > <http://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=304857600>"/> > <transportConnector name="amqp" > uri="amqp://0.0.0.0:5672?maximumConnections=5&wireFormat.maxFrameSize=304857600 > <http://0.0.0.0:5672?maximumConnections=5&wireFormat.maxFrameSize=304857600>"/> > <transportConnector name="stomp" > uri="stomp://0.0.0.0:61613?maximumConnections=5&wireFormat.maxFrameSize=304857600 > <http://0.0.0.0:61613?maximumConnections=5&wireFormat.maxFrameSize=304857600>"/> > <transportConnector name="mqtt" > uri="mqtt://0.0.0.0:1883?maximumConnection0s=5&wireFormat.maxFrameSize=304857600 > <http://0.0.0.0:1883?maximumConnection0s=5&wireFormat.maxFrameSize=304857600>"/> > <transportConnector name="ws" > uri="ws://0.0.0.0:61614?maximumConnections=5&wireFormat.maxFrameSize=304857600 > <http://0.0.0.0:61614?maximumConnections=5&wireFormat.maxFrameSize=304857600>"/> > </transportConnectors>* > > > > > On Wed, May 1, 2019 at 8:54 PM Clebert Suconic <clebert.suco...@gmail.com> > wrote: > >> I’m sorry. You need to add more context to the issue. Nobody will be able >> to help you without information. >> >> On Wed, May 1, 2019 at 2:18 AM Shireen mirza <mirza.shiree...@gmail.com> >> wrote: >> >> > I got this error while receiving messgaes on close, rollback >> duplicate: . >> > I need your help to resolve this issue. >> > >> > Thanks in advance. >> > >> -- >> Clebert Suconic >> >