|
From: Bob K. <py...@ce...> - 2004-05-31 01:51:19
|
Dear Mo=EFses, Thanks for your report on this bug, but I found that I have fixed and=20 committed to the CVS. (Checking the CVS log, the bug fix is committed on=20 1st April 2004, Revision 1.45 of EbxmlMessage.java) You can checkout the source again and we whether it works now. Regards, Bob Koon Olivier Mo=EFses wrote: > Sorry for the cross posting, but I don't know where exactly put this=20 > mesage. > I use MSH v.pre-1.0.0.0, build from cvs (date : approx 11/03/2004). > I use only mail messaging. > > When I try to build a new EbxmlMessage using EbxmlMessage(File file),=20 > I get a javax.xml.soap.SOAPException: Cannot parse SOAP message > The message is a Ack generated by MSH in the server repository. > This ack doesn't have any content-type header. > After investigations, I get : > javax.xml.soap.SOAPException: Absent Content-Type at=20 > com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:86) > at=20 > com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(Messag= eFactoryImpl.java:32)=20 > at=20 > hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.getMessageFromDataS= ource(EbxmlMessage.java:1681)=20 > > at=20 > hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.<init>(EbxmlMessage= .java:241)=20 > > > The documentation says about this constructor: construct an=20 > EbxmlMessage from File using the logic in MessageServer. The file must=20 > not contain any content header like Content-Type > > In EbxmlMessage.getMessageFromDataSource (about line: 1673), the=20 > following is commented : > /* > final MimeHeaders headers =3D new MimeHeaders(); > headers.addHeader(Constants.CONTENT_TYPE, Constants.TEXT_XML_TYPE); > */ > > this explains why the code fails. > The problem is that an ack must be loaded when retrying to send it,=20 > and it causes error. > > Shall I uncomment the two lines ? > > thanks > > Regards > Olivier Moises > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle=20 > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > ebxmlms-develop mailing list > ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop > |