I have a service which serves files and that's why I am using Mtom to
transfer them.
I have read that using FastInfoSet improves performance and reduces the size
of message.
I invoke the service, I get the response from the server, but when I try to
get the InputStream from the DataHandler, I get a NullPonterException.
I am using:
- Jdk 1.5
- CXF 2.2.10
- AegisDataBinding
Here is my server config:
<bean id="fastinfoset" class="org.apache.cxf.feature.FastInfosetFeature"/>
<simple:server id="documentMetadataSignatureWS"
serviceClass="es.aragon.ccsv.core.ws.IDocumentMetadataSignatureService"
address="/DocumentMetadataSignatureWS">
<simple:serviceBean>
<ref bean="documentMetadataSignatureService"/>
</simple:serviceBean>
<simple:features>
<ref bean="fastinfoset"/>
</simple:features>
<simple:dataBinding>
<bean
class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
</simple:dataBinding>
<simple:inInterceptors>
<ref bean="authorizeInterceptor" />
</simple:inInterceptors>
</simple:server>
I have also set this system property:
com.sun.xml.fastinfoset.parser.string-interning a true because I read a post
that recommends it.
Am I missing some kind of configuration to get files properly?
Thank you in advance,
Javier M.
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-2-2-10-FastInfoset-with-attachments-tp5727487.html
Sent from the cxf-user mailing list archive at Nabble.com.