Thanks Jim

I just tried the latest version of CXF 2.4.1. This problem doesn't occurs in
this version;
I think maybe some issue fixed in 2.4.1 has fix the problem. But I am not
know which one is.....;


> ----original -----
> Sender: Jim Ma [mailto:mail2ji...@gmail.com]
> Date: 2011/8/9 11:03
> Receiver: users@cxf.apache.org
> Subject: Re: NULL Pointer Exception while processing attachments
> 
> From the information you provided, we can not tell if it's really a
> CXF issue. Can you file a jira issue with your test case to help
> reproduce ?
> 
> Cheers
> Jim
> 
> On Tue, Aug 9, 2011 at 10:43 AM, xuhb <x...@tongtech.com> wrote:
> > Hi:
> > When I use cxf webservice at following situation, there always a null
> > pointer exception occurs
> >
> > 1)MTOM enabled, and multi attachments sent.
> > 2)The first attachment is big enough (etc 2M). and the second
attachments
> is
> > very small (etc: several bytes);
> > 3)the MTOM attachment is mapped to a byte[] attribute (not DataHandler).
> >
> > At such a situation, the server side of cxf can only find the first
> > attachments, And  the second attachment cannot be found , so a
NullPointer
> > exception occurs
> >
> > Stack:
> > Java.lang.NullPointerException
> >        At
> >
> org.apache.cxf.attachment.LazyDataSource.getContentType(LazyDataSource.jav
> a:
> > 61)
> >
> > Is it a bug?
> >
> >
> >
> >
> >


Reply via email to