ws-commons-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: (WSCOMMONS-489) StAXUtils incorrectly assumes that XMLInputFactory and XMLOutputFactory instances are thread safe
Date Sat, 25 Jul 2009 09:06:14 GMT

    [ https://issues.apache.org/jira/browse/WSCOMMONS-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735250#action_12735250
] 

Andreas Veithen commented on WSCOMMONS-489:
-------------------------------------------

See also https://sjsxp.dev.java.net/issues/show_bug.cgi?id=4

> StAXUtils incorrectly assumes that XMLInputFactory and XMLOutputFactory instances are
thread safe
> -------------------------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-489
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-489
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>    Affects Versions: Axiom 1.2.8
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>
> StAXUtil uses a single XMLInputFactory or XMLOutputFactory instance (per classloader).
This means that it makes the assumption that these instances are thread safe. However, there
is nothing in the StAX specs that guarantees that, and Sun's implementation in JDK 6 is not
thread safe, at least with the default properties [1] [2].
> [1] http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Modules-com.sun/xml/com/sun/xml/internal/stream/XMLInputFactoryImpl.java.htm
> [2] http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Modules-com.sun/xml/com/sun/xml/internal/stream/XMLOutputFactoryImpl.java.htm

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message