Skip to content

IOException thrown while using statz migrate minecraft command. #139

@Gk0Wk

Description

@Gk0Wk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions