# Fatal Error

**URL:** <https://techcommunity.softwareag.com/t/fatal-error/58490>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [May 27, 2003, 4:49pm UTC](https://techcommunity.softwareag.com/t/fatal-error/58490 "2003-05-27T16:49:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ucef](https://avatars.discourse-cdn.com/v4/letter/u/46a35a/32.png) [@Ucef](https://techcommunity.softwareag.com/u/Ucef)\
**Post date:** [May 27, 2003, 4:49pm UTC](https://techcommunity.softwareag.com/t/fatal-error/58490/1 "2003-05-27T16:49:44Z")

</div>

I have written a servlet that posts an xml document to a sequence but I am getting 2 errors. One at Tomcat level and the other is at the mediator level.  
  
The first is at the tomcat level:  
  
Server returned HTTP response code: 400 for URL: [http://localhost:8080/orchestra](http://localhost:8080/orchestra)  
tor/OrchestratorGateway?xbd.sequence.uri=[http://localhost:8080/orchestrator/Sequ](http://localhost:8080/orchestrator/Sequ)  
ences/UpdateSequence.xml  
  
  
The second one is at the Mediator level:  
  
2003-05-27 11:22:36,345 FATAL - Public ID: null, System ID: null@(line, column):  
 (1, 1), org.xml.sax.SAXParseException: The markup in the document preceding the  
 root element must be well-formed.  
2003-05-27 11:22:36,345 ERROR - SagSequencer - com.softwareag.xbridge.exceptions  
.XException MessageSAXParser.parse: org.xml.sax.SAXException: Public ID: null, S  
ystem ID: null@(line, column): (1, 1), org.xml.sax.SAXParseException: The markup  
 in the document preceding the root element must be well-formed.  
2003-05-27 11:22:36,345 ERROR - SagSequencer - Sequencer detected Error processi  
ng  
com.softwareag.xbridge.exceptions.XException: com.softwareag.xbridge.exceptions.  
XException com.softwareag.xbridge.exceptions.XException MessageSAXParser.parse:  
org.xml.sax.SAXException: Public ID: null, System ID: null@(line, column): (1, 1  
), org.xml.sax.SAXParseException: The markup in the document preceding the root  
element must be well-formed.  
 at com.softwareag.xbridge.infrastructure.MessageSAXParser.parse(Unknown  
Source)  
 at com.softwareag.xbridge.infrastructure.Message.setPayload(Unknown Sour  
ce)  
 at com.softwareag.xbridge.gateways.HttpGatewayImpl.httpReceive(Unknown S  
ource)  
 at com.softwareag.xbridge.gateways.HttpGatewayImpl.modify(Unknown Source  
)  
 at com.softwareag.xbridge.infrastructure.ModifierProxy.modify(Unknown So  
urce)  
 at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(Unknown Source)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.execute(Unknown Source  
)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(Unknown Sourc  
e)  
 at com.softwareag.xbridge.infrastructure.DispatcherImpl$MessageDispatche  
r.perform(Unknown Source)  
 at com.softwareag.xbridge.util.WorkerThread.run(Unknown Source)  
  
  
  
I am using the following:   
Mediator 7.2.1   
Tomcat 4  
JDK 1.3.1  
  
Please find attached the servlet I am using. Below is the update sequence I am usinf and an exmaple of the xml document I am constructing in my servlet to be posted.  
  
  
  
  
  
  
  
  
  
  
“\<?xml version="1.0" encoding="UTF-8"?\>\<B  
ranchIssuer\>SiteA8\<Ser  
ialNumber\>888\<Produ  
ctQty\>88200\<Recip  
ient\>82003-5-26Defect\</Order  
\>”  
  
  
Thanks for your assistance :mad:

---

<div class="post-metadata">

**Author:** ![Stuart\_Fyffe-Collins](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Stuart\_Fyffe-Collins](https://techcommunity.softwareag.com/u/Stuart_Fyffe-Collins)\
**Post date:** [May 27, 2003, 6:37pm UTC](https://techcommunity.softwareag.com/t/fatal-error/58490/2 "2003-05-27T18:37:54Z")

</div>

The HTTP PUT to store the document into Tamino does not respond with a body. The payload being returned to the client has to be XML but it is empty after the HTTP PUT. What you could do it use a SagPayloadSetter step after the SagHttpGateway step to return some response document. If the HTTP PUT fails an on\_error will be triggered and this too could use SagPayloadSetter to return some failure document.  
  
Hope this helps.  
  
Stuart Fyffe-Collins  
Software AG (UK) Ltd.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/fatal-error/58490/3 "2021-04-02T14:39:17Z")

</div>


