Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messaging send throws InterruptedException #136

Open
lcollazosDivisa opened this issue Dec 12, 2024 · 0 comments
Open

Messaging send throws InterruptedException #136

lcollazosDivisa opened this issue Dec 12, 2024 · 0 comments

Comments

@lcollazosDivisa
Copy link

Some of the HL7 messages we send from our application throw an InterruptedException.
It happens in some cases but we don't see what can happen.

In the log you see the following:
java.util.concurrent.ExecutionException: java.lang.InterruptedException
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at ca.uhn.hl7v2.app.ActiveInitiator.sendAndReceive(ActiveInitiator.java:133)
at com.divisait.idcsalud.dao.Hl7ClientDAO.sendMessage(Hl7ClientDAO.java:149)
...
Caused by: java.lang.InterruptedException
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1081)
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1369)
at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278)
at ca.uhn.hl7v2.concurrent.BlockingHashMap.poll(BlockingHashMap.java:103)
at ca.uhn.hl7v2.concurrent.BlockingHashMap.lambda$asyncPoll$1(BlockingHashMap.java:112)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

Could you help us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant