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

IOException thrown while using statz migrate minecraft command. #139

Open
Gk0Wk opened this issue Mar 30, 2021 · 0 comments
Open

IOException thrown while using statz migrate minecraft command. #139

Gk0Wk opened this issue Mar 30, 2021 · 0 comments

Comments

@Gk0Wk
Copy link

Gk0Wk commented Mar 30, 2021

I have a lot of players on my server, so there are plenty of JSON files in world/stats. When I tried to execute statz migrate minecraft on the console, there came a lot of IOExceptions (The console alerted me with an INFO-level log, even though you caught all exceptions of that type in ImportManager.java). The logs are like: [Server] [15:44:58 INFO]: IO: Too many open files..

I found that in the method getUserStatisticsFile of ImportManager.java, just open a FileReader using JSONObject rootObject = (JSONObject) new JSONParser().parse(new FileReader(playerStatistics));. May be manually close it?

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

1 participant