small medium large xlarge

21 May 2017, 20:05
Yavor Nikolov (2 posts)

Out of the box the book example fails with Guice 4.0 and 4.1.0 (while it works fine with version 3.0). Unable to provision, see the following errors:
      1) Error injecting constructor, java.lang.RuntimeException: Unable to find a free port
        at support.MyWebDriver.<init>(
        at support.MyWebDriver.class(
        while locating support.MyWebDriver
          for the 1st parameter of support.AtmUserInterface.<init>(
        at support.AtmUserInterface.class(
        while locating support.AtmUserInterface
          for the 1st parameter of nicebank.TellerSteps.<init>(
        at nicebank.TellerSteps.class(
        while locating nicebank.TellerSteps

An explicit dependency reference to recent version of Guava seems to solve that problem:

01 Jun 2017, 16:59
Seb Rose (21 posts)

Thanks for letting us know, Yavor.

You must be logged in to comment