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

java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet() #247

Open
cheetah90 opened this issue Sep 11, 2015 · 4 comments

Comments

@cheetah90
Copy link

Hi, when using WikiBrain Configuration GUI to import simple English edition with default setting, I got the following error,

Exception in thread "main" java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
    at org.wikibrain.core.dao.sql.MetaInfoSqlDao.sync(MetaInfoSqlDao.java:171)
    at org.wikibrain.core.dao.sql.MetaInfoSqlDao.getAllCummulativeInfo(MetaInfoSqlDao.java:326)
    at org.wikibrain.loader.pipeline.PipelineLoader.<init>(PipelineLoader.java:46)
    at org.wikibrain.Loader.<init>(Loader.java:72)
    at org.wikibrain.Loader.main(Loader.java:107)


LOADING FAILED!

Looks like this is a common problem when compiled with JDK 8 targeting Java 6 or 7 https://bugzilla.redhat.com/show_bug.cgi?id=1160683#c6

@shilad
Copy link
Owner

shilad commented Sep 17, 2015

Thank you! This looks like a bug related to Java versions. I think the code
runs under Java8 but not Java7. However, I'm quite certain with a small
change we can support Java7. I'll try to stage a release to fix the problem
in the next few days.

On Fri, Sep 11, 2015 at 3:08 PM, cheetah90 [email protected] wrote:

Hi, when using WikiBrain Configuration GUI to import simple English
edition with default setting, I got the following error,

Exception in thread "main" java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
at org.wikibrain.core.dao.sql.MetaInfoSqlDao.sync(MetaInfoSqlDao.java:171)
at org.wikibrain.core.dao.sql.MetaInfoSqlDao.getAllCummulativeInfo(MetaInfoSqlDao.java:326)
at org.wikibrain.loader.pipeline.PipelineLoader.(PipelineLoader.java:46)
at org.wikibrain.Loader.(Loader.java:72)
at org.wikibrain.Loader.main(Loader.java:107)

LOADING FAILED!

Looks like this is a common problem when compiled with JDK 8 targeting
Java 6 or 7 https://bugzilla.redhat.com/show_bug.cgi?id=1160683#c6


Reply to this email directly or view it on GitHub
#247.

@cheetah90
Copy link
Author

Thanks!

@shilad
Copy link
Owner

shilad commented Nov 23, 2015

I compiled 0.7.4 with Java7. Would you please give it a try?

@cheetah90
Copy link
Author

I'll do later. For now, I am using Java8.

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