java - EasyStream and slf4j API Issue -


i needed easystream available @ sourceforge site , added dependency in application. slf4j-api used work fine has disagreement. way using code snippet :

private final map<?, ?> parentcontext;  mdc.setcontextmap(parentcontext); 

for reason getting compile time error message :

the method setcontextmap(map<string,string>) in type mdc not applicable argument map<capture#5of-?,capture#6of-?> 

kindly suggest how can ride of error.

my guess easystream depends on different version of slf4j 1 you're using. having more 1 of same version of dependency on one's classpath leads sorts of weird issues. depending on dependency management system you're using, need tell exclude child slf4j-api dependency or perhaps override it. example, in maven, i'd use <dependencymanagement> system force dependencies use same version of slf4j-api. perhaps if edit question more details dependency management system you're using can more specific answer, , details on how check , prevent such problems in future.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -