axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yura.tkache...@gmail.com
Subject [Axis 1.3] Exception during writting attachment back to client.
Date Tue, 08 Aug 2006 14:25:49 GMT
Hi I've got exception during passing attachment back to client.

I've got method downloadAttachment which is passing in the response attachments:
................
        Attachments responseAttachments = MessageContext.getCurrentContext().getResponseMessage().getAttachmentsImpl();
......................
                    DataHandler dh = new DataHandler(new ByteArrayDataSource(dataValue.getFileContent(),
"UTF-8"));
                    AttachmentPart attach = (AttachmentPart) responseAttachments.createAttachmentPart(dh);
                    attach.setMimeHeader("fileName", dataValue.getFileName());
                    attach.setMimeHeader("fileType", dataValue.getFileType());
                    responseAttachments.addAttachmentPart(attach);
..............
But during of this operation I got exception:

17:16:54,436 ERROR [MimeUtils] javax.mail.MessagingException:
javax.mail.internet.ParseException
        at javax.mail.internet.ContentType.<init>(ContentType.java:72)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1016
)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:790)

        at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:21
6)
        at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021
)
        at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1841)
        at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1822)
        at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtil
s.java:201)
        at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(Atta
chmentsImpl.java:493)
        at org.apache.axis.Message.writeTo(Message.java:545)
        at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.j
ava:902)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:77
7)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:327)

Does anybody knows what does it means? Any help highly appriciated.

Thanks in advance,
Yura Tkachenko.

--
This message was sent on behalf of yura.tkachenko@gmail.com at openSubscriber.com
http://www.opensubscriber.com/messages/axis-user@ws.apache.org/topic.html

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message