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

CharBuffer throws unhelpful exceptions #5367

Closed
barchetta opened this issue Nov 10, 2022 · 0 comments
Closed

CharBuffer throws unhelpful exceptions #5367

barchetta opened this issue Nov 10, 2022 · 0 comments
Assignees
Labels
media-support Media type processing in SE P3

Comments

@barchetta
Copy link
Member

Saw this is Helidon 2.x. User reported:

java.lang.OutOfMemoryError
        at io.helidon.media.common.CharBuffer.hugeCapacity(CharBuffer.java:98)
        at io.helidon.media.common.CharBuffer.grow(CharBuffer.java:91)
        at io.helidon.media.common.CharBuffer.ensureCapacity(CharBuffer.java:78)
        at io.helidon.media.common.CharBuffer.write(CharBuffer.java:49)
        at org.glassfish.json.JsonGeneratorImpl.flushBuffer(JsonGeneratorImpl.java:631)

This caused initial confusion that this was a JVM heap issue. It was not.

This exception should include a helpful error message and the value of any parameters.

This class also does throw new IndexOutOfBoundsException();. Again, should add information including the value of parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
media-support Media type processing in SE P3
Projects
Archived in project
Development

No branches or pull requests

2 participants