axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiranya Jayathilaka (JIRA)" <>
Subject [jira] [Updated] (AXIS2-5616) OOM with AbstractJSONOMBuilder
Date Fri, 03 Jul 2015 23:21:04 GMT


Hiranya Jayathilaka updated AXIS2-5616:
    Attachment: AXIS2-5616.patch

AbstractJSONOMBuilder has changed (and improved) since the issue was reported. I think the
original issue no longer exists. 

However, I noticed that AbstractJSONDataSource class, which is the entity that actually reads
from the InputStreamReader, never actually closes it. I'm not sure if that can lead to any
issues (maybe this gets closed somewhere else in the Axis2 pipeline). If that's not the case,
the attached patch should take care of it. Otherwise, I guess we can just close the issue
as fixed.

> OOM with AbstractJSONOMBuilder
> ------------------------------
>                 Key: AXIS2-5616
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: json
>    Affects Versions: 1.6.2
>            Reporter: Ben Jaing
>         Attachments: AXIS2-5616.patch
> At line 123 in, it doesn't check if the Reader has reached
the end of the stream. The result is Out of memory in JVM.
> Fix: check if returns -1, which means end of stream.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message