How to solve " java.lang.NoSuchMethodError "
Suddenly my maven tests start to fail leaving me frustrated. After figuring out I go through the forum which simply suggested n update to a jar called 'guava'
Error that I was getting:
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.toImmutableSet()Ljava/util/stream/Collector;
Solution :
Update your pom.xml to include
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.0</version>
</dependency>
Thanks a ton buddy.
ReplyDeleteyou rock.
this works.
Thanks a lot!!!
ReplyDeleteThank you for this ! the errors I was seeing was not getting me any solution whatsoever, until I used your solution ..
Deletethis worked...great
ReplyDeleteAfter searching the internet for 4 days this ended my struggle and pain, thank you very much for this
ReplyDeletethis woks great
ReplyDeleteThanks alot buddy !! This was magical
ReplyDelete