Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-31473

(8.1.z) Incompatible versions of Infinispan and JBoss Threads in EAP 8.1.1

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      We have decided to go with a change in JBoss Threads – https://github.com/jboss/jboss-threads/pull/275

      JBoss Threads upgrade 2.5 is going to be needed to resolve the issue in 8.1.2.

      EAP 8.1.1 (and others) contain incompatible versions of Infinispan and JBoss Threads.

      Caused by: java.lang.NoSuchMethodError: 'org.jboss.threads.EnhancedQueueExecutor$Builder org.jboss.threads.EnhancedQueueExecutor$Builder.setKeepAliveTime(java.time.Duration)'
      at org.infinispan.core@15.0.19.Final-redhat-00001//org.infinispan.factories.threads.EnhancedQueueExecutorFactory.lambda$createExecutor$1(EnhancedQueueExecutorFactory.java:43)
      That call is in infinispan-core-15.0.19.Final-redhat-00001.jar
      org.infinispan.factories.threads.EnhancedQueueExecutorFactory line 43:

      builder.setKeepAliveTime(Duration.of(keepAlive, ChronoUnit.MILLIS));
      Which is trying to call jboss-threads-2.4.0.Final-redhat-00001.jar
      org.jboss.threads.EnhancedQueueExecutor$Builder line 549

      public Builder setKeepAliveTime(final long keepAliveTime, final TimeUnit
      keepAliveUnits) {
      But is sending (Duration), instead of the (long, TimeUnit) that it expects.
      RHDG 8.5.5 that this Infinispan version is from uses the newer jboss-threads-3.6.1.Final-redhat-00001 instead, which has added setKeepAliveTime(Duration) and deprecated the older call.

              rhn-engineering-rhusar Radoslav Husar
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: