
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[solved] Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
Im creating a simple webservice that search in my database and then show the result in the response. My problem comes when the query gets 0 rows. The service is working fine but in the case i havent any result im getting this errors:
org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
org.apache.cxf.interceptor.Fault: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [2,0].
The part of the job failing is something like this:
tDBInput -> tXMLMap -> tESBProviderResponse
I tried to solve this using a tESBProviderFault but im not able to configurate it right. I create the fault in Services and then import the WSDL Schema but is not working. Is mandatory to use a tESBConsumer to make the tESBProviderFault work?
What im looking for is a way to not show in the response this error when i get any result.
Thanks in advance.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ended up using the solution i found in this other thread [resolved] How to use SOAP messages to filter Oracle recordset usign one flow when i get 0 rows in my query and other when i get a correct response.
The tXMLMap was correct. This error was showing when i got 0 rows in my query so i just wanted to control the response.
@xdshi thanks so much for your help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The Unexpected EOF in prolog error is a CXF error.
Is your tXMLMap setup within job correct? Could you please post your tXMLMap component setting screenshot on forum?
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ended up using the solution i found in this other thread [resolved] How to use SOAP messages to filter Oracle recordset usign one flow when i get 0 rows in my query and other when i get a correct response.
The tXMLMap was correct. This error was showing when i got 0 rows in my query so i just wanted to control the response.
@xdshi thanks so much for your help.
