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

NegativeArraySizeException when there's too many rows #8

Open
avargaz opened this issue Mar 26, 2021 · 1 comment
Open

NegativeArraySizeException when there's too many rows #8

avargaz opened this issue Mar 26, 2021 · 1 comment

Comments

@avargaz
Copy link

avargaz commented Mar 26, 2021

I have a DB with more than 2 million of rows and I get a:
Is there a way to split the output in multiple json files?

Exception in thread "main" java.lang.NegativeArraySizeException: -1955501104
        at java.base/java.lang.StringCoding.encodeUTF8(StringCoding.java:904)
        at java.base/java.lang.StringCoding.encode(StringCoding.java:449)
        at java.base/java.lang.String.getBytes(String.java:983)
        at org.apache.commons.io.IOUtils.write(IOUtils.java:1857)
        at org.apache.commons.io.FileUtils.writeStringToFile(FileUtils.java:1982)
        at org.apache.commons.io.FileUtils.write(FileUtils.java:2107)
        at org.apache.commons.io.FileUtils.write(FileUtils.java:2125)
        at org.apache.commons.io.FileUtils.write(FileUtils.java:2090)
        at accessconverter.AccessConverter.Run(AccessConverter.java:151)
        at accessconverter.AccessConverter.main(AccessConverter.java:76)
@clytras
Copy link
Owner

clytras commented Jul 31, 2024

Hey @avargaz,
I know It's been a while since you posted this issue, but I have published a new release with several performance improvements and I would like to tackle this and make the converter work with huge datasets.
You can try it if you have time and will.

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