>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.java: > 61) > > Is it a bug? > > > > >