MTOM byte arrays problem
------------------------
Key: CXF-2457
URL: https://issues.apache.org/jira/browse/CXF-2457
Project: CXF
Issue Type: Bug
Components: Aegis Databinding
Affects Versions: 2.2.4
Reporter: Vitaly V. Litvak
Priority: Critical
Attachments: cxf_test2.jar
There is a web service created using cxf-2.2.4-snapshot. It provides a method,
which returns a byte array. Simple frontend is used. In such case it should be
threated as an attachment. When calling this method following exception is
thrown:
java.lang.NullPointerException
at
org.apache.cxf.aegis.type.mtom.AbstractXOPType.writeObject(AbstractXOPType.java:164)
at
org.apache.cxf.aegis.type.basic.Base64Type.writeObject(Base64Type.java:114)
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:112)
at
org.apache.cxf.aegis.databinding.XMLStreamDataWriter.write(XMLStreamDataWriter.java:48)
at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:114)
at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
at $Proxy35.setExcelTemplate(Unknown Source)
at
com.fundcount.fcoffice.client.api.CClientAPI.setExcelTemplate(CClientAPI.java:2314)
at
com.fundcount.fcoffice.gui.export.CExportFrame$CDataExporter.run(CExportFrame.java:626)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Source code for this test case is attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.