Dominik Derwiński created WFLY-11456:
----------------------------------------
Summary: IllegalArgumentException in EJBClientInvocationContext.java:1116
Key: WFLY-11456
URL:
https://issues.jboss.org/browse/WFLY-11456
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 14.0.1.Final
Environment: jboss-ejb-client-4.0.11.Final
Reporter: Dominik Derwiński
Some calls to get throw IllegalArgumentException from wait method:
{noformat}
java.lang.IllegalArgumentException: nanosecond timeout value out of range
at java.lang.Object.wait(Object.java:452)
at
org.jboss.ejb.client.EJBClientInvocationContext$FutureResponse.get(EJBClientInvocationContext.java:1116)
{noformat}
The code in line 1116 is:
{code:java}
lock.wait(remaining / 1_000_000_000L, (int) (remaining % 1_000_000_000L));
{code}
JavaDoc of method wait(long timeout, int nanos) says that it will throw:
{noformat}
IllegalArgumentException - if the value of timeout is negative or the value of nanos is
not in the range 0-999999.
{noformat}
The problem is division/modulo by 1_000_000_000, instead of 1_000_000. In other places in
the same class this bug is not present, for example in line 904.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)