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

Error creating reader? Guava? #33

Closed
kss33 opened this issue Oct 4, 2017 · 2 comments
Closed

Error creating reader? Guava? #33

kss33 opened this issue Oct 4, 2017 · 2 comments

Comments

@kss33
Copy link

kss33 commented Oct 4, 2017

Hi,

Using AisLib for the first time, the build process seemed to work well, but upon creating the reader I'm getting an error:

(AisReader reader = AisReaders.createReader("localhost", 4001);)

Exception in thread "Thread-0" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;I)V
at com.google.common.net.HostAndPort.fromParts(HostAndPort.java:143)
at dk.dma.ais.reader.AisReaders.createReader(AisReaders.java:92)

Googling, seems like the culprit could be Guava, the version 21 is the one which seemed to have been installed... Is this a result from something on my end (used M2Eclipse to import and build) or is this an issue with AisLib and its dependencies?

Thanks!

Ha... It appears that it's caused by a class conflict, when run with only the jars generated by this project it works, but not within my greater project... So it's not an issue with AisLib.

@kss33 kss33 closed this as completed Oct 4, 2017
@kss33
Copy link
Author

kss33 commented Oct 4, 2017

In case it could help someone, the conflict was with google-collections-1.0.jar

@tbsalling
Copy link
Contributor

Thank you for the input. Was this a problem isolated to your setup? Or can you derive a pull request from the solution?

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

2 participants