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

Can't create JBrowserDriver anymore since some hours #137

Closed
PatrickHuetter opened this issue Jun 18, 2016 · 2 comments
Closed

Can't create JBrowserDriver anymore since some hours #137

PatrickHuetter opened this issue Jun 18, 2016 · 2 comments
Labels

Comments

@PatrickHuetter
Copy link

PatrickHuetter commented Jun 18, 2016

I'm building my software with clean java docker containers with all dependencies for jBrowserDriver installed (so there can't anything change) but since today i can't run newly built projects with jBrowserDriver anymore. When a JBrowserDriver instance get created while runtime i get the following exception.

Caused by: org.openqa.selenium.WebDriverException: java.lang.NoSuchMethodError: io.github.lukehutch.fastclasspathscanner.classpath.ClasspathFinder.getUniqueClasspathElements()Ljava/util/ArrayList;
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'Patricks-Macbook-Pro.local', ip: '192.168.188.21', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.5', java.version: '1.8.0_25'
Driver info: driver.version: JBrowserDriver
        at com.machinepublishers.jbrowserdriver.Util.handleException(Util.java:128)
        at com.machinepublishers.jbrowserdriver.JBrowserDriver.<clinit>(JBrowserDriver.java:161)
        ... 22 more
Caused by: java.lang.NoSuchMethodError: io.github.lukehutch.fastclasspathscanner.classpath.ClasspathFinder.getUniqueClasspathElements()Ljava/util/ArrayList;
        at com.machinepublishers.jbrowserdriver.JBrowserDriver.<clinit>(JBrowserDriver.java:128)
        ... 22 more
java.lang.NoClassDefFoundError: Could not initialize class com.machinepublishers.jbrowserdriver.JBrowserDriver

I think something has changed with the lukehutch fastclasspathscanner dependency as i also could figure out that you've already done some fixes within the current jBrowserDriver version 0.14.5 (which i am using). Or may this be because i'm using groovy?

@Bbbrinks
Copy link

Bbbrinks commented Jun 20, 2016

Same problem using Java here.

Currently using the following in my pom as a work around. Seems to be a problem with https://github.com/lukehutch/fast-classpath-scanner

<dependency>
                <groupId>io.github.lukehutch</groupId>
                <artifactId>fast-classpath-scanner</artifactId>
                <version>1.9.19</version>
            </dependency>

@hollingsworthd
Copy link
Collaborator

Thanks for the info. Fixed in v0.14.6 which is released to Maven Central.

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

No branches or pull requests

3 participants