Preferring changing code over log configuration is rather peculiar.
DelayedReceiver is package protected, application code does not have access to it. Its instances are closed when the owning connection is closed, without thread interruption if I read the code correctly, so the warning should not even happen if the connection is closed properly. This is also something to investigate.
________________________________________
From:
rabbitm...@googlegroups.com <
rabbitm...@googlegroups.com> on behalf of Júlio Brjp <
juli...@gmail.com>
Sent: Monday, January 11, 2021 7:03 AM
To:
rabbitm...@googlegroups.com
Subject: Re: [rabbitmq-users] DelayedReceiver InterruptedException
I'm using slf4j log. However, I would like to find another solution like close DelayedReceiver manually instead change log configuration.
On Fri, 8 Jan 2021 at 17:25, Arnaud Cogoluegnes <
acogol...@vmware.com<mailto:
acogol...@vmware.com>> wrote:
Which log implementation are you using? You should be able to set the level of the root logger to info and the level com.rabbitmq.jms.client.DelayedReceiver to error, this should be only a matter of configuration.
________________________________________
From:
rabbitm...@googlegroups.com<mailto:
rabbitm...@googlegroups.com> <
rabbitm...@googlegroups.com<mailto:
rabbitm...@googlegroups.com>> on behalf of Julio <
juli...@gmail.com<mailto:
juli...@gmail.com>>
Sent: Friday, January 8, 2021 5:58 PM
To: rabbitmq-users
Subject: Re: [rabbitmq-users] DelayedReceiver InterruptedException
That is a solution but, My application have two log files. one for level INFO and another one for level WARN. Even if I set to ERROR it still going to log on INFO level.
I would like to close DelayedMessage connection when server application shutdown.
On Friday 8 January 2021 at 16:11:16 UTC Arnaud Cogoluègnes wrote:
I would simply suggest to set the log level to "error" for the com.rabbitmq.jms.client.DelayedReceiver class.
________________________________________
From:
rabbitm...@googlegroups.com<mailto:
rabbitm...@googlegroups.com> <
rabbitm...@googlegroups.com<mailto:
rabbitm...@googlegroups.com>> on behalf of Julio <
juli...@gmail.com<mailto:
juli...@gmail.com>>
Sent: Friday, January 8, 2021 10:29 AM
To: rabbitmq-users
Subject: [rabbitmq-users] DelayedReceiver InterruptedException
Hi all,
I have been using eclipselink cache coordination with rabbitMQ client JMS.
I'm getting an InterrupedException on DelayedReceiver class when server application shutdown and disconnect to RabbitMQ message broker.
What happening is when server shutdown it disconnect the remote and local JMS rabbitMQ connection. However, DelayedReceiver still listening and throws an InterruptedException.
Nothing us wrong closing connections. I just want to get rid of Log warning.
This is what InterruptedException is logging:
2020-12-17 16:04:56,946 -I- [LocalContainerEntityManagerFactoryBean] Closing JPA EntityManagerFactory for persistence unit 'itcs' 2020-12-17 16:04:56,947 -W- [DelayedReceiver] Get interrupted while buffer.poll-ing. java.lang.InterruptedException: null at java.lang.Object.wait(Native Method) ~[?:1.8.0_232] at java.lang.Object.wait(Object.java:460) ~[?:1.8.0_232] at java.util.concurrent.TimeUnit.timedWait(TimeUnit.java:348) ~[?:1.8.0_232] at com.rabbitmq.jms.util.TimeTracker.timedWait(TimeTracker.java:98) ~[rabbitmq-jms-1.13.0.jar:1.13.0] at com.rabbitmq.jms.client.DelayedReceiver.get(DelayedReceiver.java:55) ~[rabbitmq-jms-1.13.0.jar:1.13.0] at com.rabbitmq.jms.client.RMQMessageConsumer.receive(RMQMessageConsumer.java:351) ~[rabbitmq-jms-1.13.0.jar:1.13.0] at com.rabbitmq.jms.client.RMQMessageConsumer.receive(RMQMessageConsumer.java:241) ~[rabbitmq-jms-1.13.0.jar:1.13.0] at org.eclipse.persistence.internal.sessions.coordination.jms.JMSTopicRemoteConnection.run(JMSTopicRemoteConnection.java:312) ~[org.eclipse.persistence.core-2.7.4.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_232] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_232] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232] 2020-12-17 16:04:56,955 -I- [ShutdownHook] successful provider shutdown
I would like to ask if is there any solution to handle this? I cannot close DelayedReceiver manually as it is managed by RabbitMQ.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rabbitmq-user...@googlegroups.com<mailto:
rabbitmq-user...@googlegroups.com><mailto:
rabbitmq-user...@googlegroups.com<mailto:
rabbitmq-user...@googlegroups.com>>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/rabbitmq-users/a6f6bb31-38d8-463f-91ae-5169bcbeb706n%40googlegroups.com<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181237825%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MrcJRtrS52E5Yp5p%2ByGWA7AYuO0QEyOJMRPN2ro8Ulo%3D&reserved=0><
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com&data=04%7C01%7Cacogoluegnes%40vmware.com%7C7418ff6855844f8300a208d8b3f69e6d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637457219099790513%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dgECPOcHRKBuQI1Yk%2BdIytfoyzQYaYGcaXY9G0soU0I%3D&reserved=0<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181247819%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=M1ATAYdea9umt73ufazACcSl3be5vpKjsG%2FhgHEHTDg%3D&reserved=0>><
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7C425d44eda28242de198708d8b3b7df0b%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637456949602340400%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rY0uQJ06Msia%2Bkh%2FAZo5bG48KX952lu06Rz00VKKzJM%3D&reserved=0<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181247819%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=H%2FrSkPVU2rnbJq0SAWqNpPudRC8j5hSCUmGvPy7H8gQ%3D&reserved=0><
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7C7418ff6855844f8300a208d8b3f69e6d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637457219099790513%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Zc6nAnpb6JwiioXzHLzGBkFWlxJyiVhBBOba6v7Qobg%3D&reserved=0<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2Fa6f6bb31-38d8-463f-91ae-5169bcbeb706n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181257816%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JvrXmJlgpyXl6g8D57UqWOn%2Flpw%2BxtX6vn86RUSb8NY%3D&reserved=0>>>.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rabbitmq-user...@googlegroups.com<mailto:
rabbitmq-users%2Bunsu...@googlegroups.com><mailto:
rabbitmq-user...@googlegroups.com<mailto:
rabbitmq-users%2Bunsu...@googlegroups.com>>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/rabbitmq-users/724ec009-28b6-4e38-a558-cc5bc0ee6b39n%40googlegroups.com<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2F724ec009-28b6-4e38-a558-cc5bc0ee6b39n%2540googlegroups.com&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181257816%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XBsoWiMQazDcqzeMOMRkVlsN6FnWLuaDzBB1ip9Cl9w%3D&reserved=0><
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2F724ec009-28b6-4e38-a558-cc5bc0ee6b39n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7C7418ff6855844f8300a208d8b3f69e6d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637457219099800505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=AIgbvoLy6qZl8ou%2BAG%2FzOY3TyM2Rm2X%2BZAZfLilL1vw%3D&reserved=0<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2F724ec009-28b6-4e38-a558-cc5bc0ee6b39n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181267808%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fTCEGGAR5Xn%2Be9C2qcZH6f%2Bb7VAuk9zSwDnSHLs%2BYC8%3D&reserved=0>>.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
rabbitmq-user...@googlegroups.com<mailto:
rabbitmq-users%2Bunsu...@googlegroups.com>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/rabbitmq-users/SN6PR05MB47330B4EB291DC0B409F8990A9AE0%40SN6PR05MB4733.namprd05.prod.outlook.com<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2FSN6PR05MB47330B4EB291DC0B409F8990A9AE0%2540SN6PR05MB4733.namprd05.prod.outlook.com&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181277803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=sN75NnfDcOBUq3kRQYyl4NOCOVX5f2CcqsZK2X7F3DE%3D&reserved=0>.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/rabbitmq-users/CADj3-o2q1oTLEReHUxdfL5pFFUt4Qc79wG60FQkCKntTThk6fw%40mail.gmail.com<
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Frabbitmq-users%2FCADj3-o2q1oTLEReHUxdfL5pFFUt4Qc79wG60FQkCKntTThk6fw%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cacogoluegnes%40vmware.com%7Cae944f1084e244c21fe608d8b5f6a1e9%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637459418181277803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wAlW0GrHcV8OnDygnatrxGHaWEC9Rjau4VO5B3kwGvI%3D&reserved=0>.