Axis Error In Mime Data Stream Start Boundary Not Found
Community Contact Login/Register Download Now ProductsAnswersExchangeDocsWikiPlanetTracker You are hereHome » Answers » SOAP request put with file attachment SOAP request put with file attachment Posted on July 22, 2011 at 7:06am 0 Hello, I'm trying to use the put operation of the repositorySoapBinding of the JasperServer webservices. Unfortunately it seems I'm doing something wrong when it comes to the upload of files as attachments. Here is what I'm sending to the webservice (captured with tcpmon): POST /jasperserver/services/repository HTTP/1.1 Host: 192.168.145.169:8080 Authorization: Basic amFzcGVyYWRtaW46amFzcGVyYWRtaW4= Connection: close SOAPAction: Transfer-Encoding: chunked Content-Type: multipart/related; type="text/xml"; start="<4B773DC0779D4663BE25950C8083F3F5>"; boundary="--boundary.ipw.201107522131853.148483696.0" Content-Length: 1453 599 ----boundary.ipw.201107522131853.148483696.0 Content-Type: text/xml; charset=UTF-8 Content-Id: <4B773DC0779D4663BE25950C8083F3F5> Content-Transfer-Encoding: binary
not workAgile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Resolved Resolution: Fixed Affects Version/s: beta-3 Fix Version/s: None Component/s: Serialization/Deserialization Labels: None Environment: Operating System: Windows XP Platform: Other Bugzilla Id: https://issues.apache.org/bugzilla/show_bug.cgi?id=12358 Description SOAP MIME attachemnt errors, soap DIME attachments work http://community.jaspersoft.com/questions/539504/soap-request-put-file-attachment First, if we create a soap message and add mime attachments and save it to disk, the first mime headers are filtered, so the file is not correct mime There is a workaround by https://issues.apache.org/jira/browse/AXIS-303 setting the static filter to null org.apache.axis.attachments.MimeUtils.filter=null; Second, the real bug: we cannot read the mime file created before the mime file is ok, but reading it with axis: Error reading data stream: Error in MIME data stream, start boundary not found, expected: --null at org.apache.axis.attachments.MultiPartRelatedInputStream.
this http://mule.1045714.n5.nabble.com/Error-when-invoking-webservice-AXIS-containing-SOAP-Attachments-td2657118.html post in threaded view ♦ ♦ | https://community.oracle.com/thread/1590534 Report Content as Inappropriate ♦ ♦ Error when invoking webservice (AXIS) containing SOAP Attachments Hi Guys, I am trying to invoke a webservice using with attachments but axis error get the following error: "java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... (full error see below)... Caused by: Error reading data stream: Error in MIME data stream, start boundary not found, expected: ------=_Part_0_11906408.1144910285890 ...." I have the following axis error in endpoint configured:
Speaker BureauLog inRegisterSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in JavaMail All PlacesJavaJava EE (Java Enterprise Edition)JavaMail This discussion is archived 10 Replies Latest reply on May 16, 2008 6:11 PM by Bill Shannon-Oracle Problems using JavaMail and activation with Java 1.6 843830 Jul 30, 2007 4:13 PM Hi, I have developed an application with a SOAP architecture using Axis. Everything worked fine until I upgrade the JRE version from 1.5 to 1.6. Since then a "javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related; type="text/xml" " exception is thrown every time I try to connect to the webservices. Debugging the code I've found that the problem is a null value in the "dch" attribute of the ObjectDataContentHandler object returned by the getInputStream method in the DataHandler class. When I launch the application using JRE 1.5 this attribute value is "text_plain" and everthing woks ok but when I launch it with JRE 1.6 the attribute has a wonderful "null" value... Anybody knows what could be the reason for that "null" value? I've looking for this problem in diferent forums and I believe that could be some kind of incompatibility between the activation version provided with the JRE 1.6 and the JavaMail 1.4 version but I'm not sure. Thanks in advance! 110Views Tags: none (add) This content has been marked as final. Show 10 replies 1. Re: Problems using JavaMail and activation with Java 1.6 Bill Shannon-Oracle Aug 20, 2007 7:49 PM (in response to 843830) I've started looking into complaints of JavaMail not working with JDK 1.6 and I haven't yet been able to reproduce any proble