[solved] Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

Highlighted
Six Stars

[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.

 

soap.PNG

Thanks in advance.

 

 

 


Accepted Solutions
Six Stars

Re: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

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. 


All Replies
Moderator

Re: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

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. 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog