Hi, I'm using jboss 4.0.0. and am having problems with attachments when using saaj. The only success I have is if I attach using MIME type text/plain and set content to a String. If I try to set MIME type to application/xml or text/xml and set content to be JDOMSource then I get IllegalArgument exception:
If I try to set MIME type to application/xml or text/xml and set content to javax.xml.transform.stream.StreamSource then I get null pointer exception : anonymous wrote : 13:40:03,032 ERROR [EBXMLTransportActivatorBean] java.lang.NullPointerException | 13:40:03,032 INFO [STDOUT] java.lang.NullPointerException | 13:40:03,042 INFO [STDOUT] at org.apache.axis.attachments.ManagedMemoryData | Source.(ManagedMemoryDataSource.java:202) | 13:40:03,042 INFO [STDOUT] at org.apache.axis.attachments.AttachmentPartImp | l.setContent(AttachmentPartImpl.java:491) anonymous wrote : 13:47:57,683 ERROR [EBXMLTransportActivatorBean] java.lang.IllegalArgumentExcep | ion: Cannot content type 'text/xml' for: [EMAIL PROTECTED] | 13:47:57,723 INFO [STDOUT] java.lang.IllegalArgumentException: Cannot content | ype 'text/xml' for: [EMAIL PROTECTED] | 13:47:57,763 INFO [STDOUT] at org.apache.axis.attachments.AttachmentPartIm | l.setContent(AttachmentPartImpl.java:486) I would gratefully appreciate it if someone has some experience to offer on adding a StreamSource as an attachment with jboss-saaj. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859030#3859030 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859030 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development