axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5616) OOM with AbstractJSONOMBuilder
Date Sat, 04 Jul 2015 16:25:05 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613932#comment-14613932
] 

Andreas Veithen commented on AXIS2-5616:
----------------------------------------

I think that the Reader is constructed form the InputStream passed to Builder#processDocument,
and that stream is closed by Axis2.

> OOM with AbstractJSONOMBuilder
> ------------------------------
>
>                 Key: AXIS2-5616
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5616
>             Project: Axis2
>          Issue Type: Bug
>          Components: json
>    Affects Versions: 1.6.2
>            Reporter: Ben Jaing
>         Attachments: AXIS2-5616.patch
>
>
> At line 123 in AbstractJSONOMBuilder.java, 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 reader.read() returns -1, which means end of stream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message