[ 
https://issues.apache.org/jira/browse/CXF-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-2542.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.6
                   2.1.9


Added some NPE guards.

However, you can work around it with 2.2.4/2.2.5 by calling:
message.put("attachment-directory", "/tmp");
message.put("attachment-memory-threshold",  new Long(1024000l));

or similar.  Those are the properties it's trying to find.



> DelegatingInputStream.close() causes MessageImpl.getContextualProperty throw 
> NullPointerException
> -------------------------------------------------------------------------------------------------
>
>                 Key: CXF-2542
>                 URL: https://issues.apache.org/jira/browse/CXF-2542
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.4
>            Reporter: aaron pieper
>            Assignee: Daniel Kulp
>             Fix For: 2.1.9, 2.2.6
>
>         Attachments: CxfBug0.java, stack-trace.txt
>
>
> Parsing AttachmentDeserializer's attachments causes an NPE in 
> MessageImpl.getContextualProperty sometimes. This can be fixed by adding a 
> null check in MessageImpl's getContextualProperty method.
> This problem exists in 2.2.4, it did not exist in 2.2.2. It was caused by a 
> change in DelegatingInputStream's close behavior.

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

Reply via email to