[jbossws-issues] [JBoss JIRA] Created: (JBWS-3277) Unexpected bytes are serialized in MTOM attachment when the mime type is text/xml

Jim Ma (JIRA) jira-events at lists.jboss.org
Thu Apr 21 09:56:18 EDT 2011


Unexpected bytes are serialized in MTOM attachment when the mime type is text/xml
---------------------------------------------------------------------------------

                 Key: JBWS-3277
                 URL: https://issues.jboss.org/browse/JBWS-3277
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: jbossws-native
    Affects Versions: jbossws-native-3.4.1
            Reporter: Jim Ma
            Assignee: Jim Ma
             Fix For: jbossws-native-4.0


Send the DOMRequest with text/xml mime type content,
public class MTOMRequest
{
   private String id;
   @XmlMimeType("text/xml")
   protected Source content;
   
   public Source getContent() {
       return content;
   }

Server throws TransformerException :

1:32:46,033 ERROR [STDERR] javax.xml.transform.TransformerException:
                           org.xml.sax.SAXParseException: Content is not allowed in trailing section.
21:32:46,033 ERROR [STDERR] at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
 
 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossws-issues mailing list