Hi Andreas!
The complete stacktrace (as attach file)
Thanks for your answer
Joan
-----Mensaje original-----
De: Andreas Veithen [mailto:[email protected]]
Enviado el: sábado, 04 de abril de 2009 15:06
Para: [email protected]
Asunto: Re: RV: problems with Axis2
Can you post the complete stacktrace of the UnsupportedDataTypeException?
Andreas
On Fri, Apr 3, 2009 at 15:32, Alcaraz Galofre, Joan Eugeni
<[email protected]> wrote:
>
> Sr Developers of Axis2:
>
> I have a problem with Axis2 after a couple of days working without
> success
>
> I develop a axis2 webservice client embeded into a web application.
> The objective is download a binary file using MTOM technology
>
> The webservice client generate the following exception
>
> Caused by: javax.activation.UnsupportedDataTypeException:
> no object DCH for MIME type text/xml; charset=UTF-8
> at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851
> )
>
> The code of the web service client is like this:
>
> EndpointReference targetEPR = new EndpointReference(URLConnexion);
> Options options = new Options(); options.setTo(targetEPR);
> options.setAction("urn:"+functionName);
> options.setProperty(Constants.Configuration.ENABLE_MTOM,
> Constants.VALUE_TRUE); //configure MTOM at client side
> options.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_
> HTTP, false); //optimize MTOM at client side
> options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI)
> ; options.setProperty(Constants.Configuration.MIME_BOUNDARY,
> "Axis2_MIME_Boundary"); //force Axis2 MIME head
> options.setProperty(HTTPConstants.CHUNKED,Constants.VALUE_TRUE);
>
> options.setTimeOutInMilliSeconds(10000); //delay a maximum of 10
> seconds ServiceClient sender = new ServiceClient();
> sender.setOptions(options); OperationClient mepClient =
> sender.createClient(ServiceClient.ANON_OUT_IN_OP); //use the
> OperationClient method MessageContext mc = new MessageContext();
> SOAPEnvelope env = createEnvelope(XML,functionName);
> mc.setEnvelope(env);
>
> mepClient.addMessageContext(mc);
> mepClient.execute(true); <== GENERATE THE EXCEPTION AT THIS POINT
>
> What's it happend? Have anyone any idea?
>
> I work with axis2 1.3.jar
> for MIME support I use activation.jar (1.1v) and mail.jar (1.4v).
>
> Both (client and server) uses the same version of activation.jar and
> mail.jar
>
> Compiled with WSAD 5.1.1 (WebSphere v5 JRE)
>
> The web application is deployed into a WAS 6.1 Both SO are Windows
> 2000 SP4
>
> I hope your answers and thanks in advance!
>
> Sincerely
>
> Joan Alcaraz
>
> PD: sorry my poor english
>
> This e-mail and any attachments may contain confidential or privileged
> information. Any unauthorised copying, use or distribution of this
> information is strictly prohibited.
>
This e-mail and any attachments may contain confidential or
privileged information. Any unauthorised copying, use or distribution of
this information is strictly prohibited.[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R
org.apache.axiom.om.OMException: Error while writing to the OutputStream.
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:75)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:126)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:422)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.connection.clientWS.Axis2WithAttachmentClient(clientWS.java:209)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.connection.clientWS.webServiceCall(clientWS.java:153)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.connection.clientWS.executeWS(clientWS.java:87)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.ExClientWebService.executeWS(ExClientWebService.java:169)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.ExClientWebService.processInformation(ExClientWebService.java:233)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.servlets.ProcessWebService.performTask(ProcessWebService.java:161)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
allianz.cliente.file.servlets.ProcessWebService.doPost(ProcessWebService.java:86)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1102)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:570)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
[3/04/09 14:03:26:600 CEST] 00000030 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R Caused by:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
text/xml; charset=UTF-8
at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
at javax.activation.DataHandler.writeTo(DataHandler.java:305)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1021)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:571)
at
org.apache.axiom.om.impl.MIMEOutputUtils.writeBodyPart(MIMEOutputUtils.java:131)
at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:63)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:126)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:422)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68)
at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
allianz.cliente.file.connection.clientWS.Axis2WithAttachmentClient(clientWS.java:209)
at
allianz.cliente.file.connection.clientWS.webServiceCall(clientWS.java:153)
at allianz.cliente.file.connection.clientWS.executeWS(clientWS.java:87)
at
allianz.cliente.file.ExClientWebService.executeWS(ExClientWebService.java:169)
at
allianz.cliente.file.ExClientWebService.processInformation(ExClientWebService.java:233)
at
allianz.cliente.file.servlets.ProcessWebService.performTask(ProcessWebService.java:161)
at
allianz.cliente.file.servlets.ProcessWebService.doPost(ProcessWebService.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1102)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:570)
at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
javax.activation.DataHandler.writeTo(DataHandler.java:305)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1021)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:571)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
org.apache.axiom.om.impl.MIMEOutputUtils.writeBodyPart(MIMEOutputUtils.java:131)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R at
org.apache.axiom.om.impl.MIMEOutputUtils.complete(MIMEOutputUtils.java:63)
[3/04/09 14:03:26:616 CEST] 00000030 SystemErr R ... 47 more