I think I'm going to need an actual reproducable test case.   I've tried 
duplicating this here and cannot.   It all seems to work OK.

(That is providing the input messages are correct.    The logs you sent 
definitely had some issues, but that may be due to the mailers or 
similar trying to text format it and converting some cr/lf type 
things. )

Couple things to try:
1) In your provider, call msg.saveChanges() before returning.   I notice 
we're not doing that.  (I'll go ahead and add that)

2) Try in tomcat standalone instead of in JBoss.   I'm wondering if 
you're getting a different SAAJ implementation.

Dan


On Thursday 18 October 2007, Cencio wrote:
> Hi Dan,
>
> i tryed the snap apache-cxf-2.0.3-incubator-20071016.175632-4 to check
> if attachments are ok, but there is still some problem...
>
> After tons of testing i finally reproduce thos scenarios (Message send
> have 2 zip attachments):
>
> Client send and service simply echo the message:
>    Client throws org.xml.sax.SAXParseException: Content is not allowed
> in prolog.
>    With tcpmon i can see a little difference in attachment
> formatting.. tcpmon log [1]
>
> Client send and service write attachments on files before send back
>    Attachments are perfects.. then same errors of first scenario
>
> Client send and service write the whole message, then the attachments,
> then send back:
>    Writing the whole message with writeTo seems to corrupt the
> content: Looking the file written the second attachment is gone...
>    When iterate the attachments to write them only one is found
>    The attachment written is corrupt
>    The message send back is cutted : tcpmon log [2]
>    The client throws the same error
>
>
> I hope this can help...
> I wait 4 ur news
> Tell me if u build a snapshot with some fix so i can deeply test it.
>
> Thx,
> Lorenzo
>
> LOGS:
> [1] http://www.nabble.com/file/p13276118/scenario_1and2.log
> scenario_1and2.log
> [2] http://www.nabble.com/file/p13276118/scenario_3.log scenario_3.log



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to