Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!

Route configured with Apache Camel split xtokenize fails in Studio

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Route configured with Apache Camel split xtokenize fails in Studio

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:19:48 AM

Problem Description

A route configured to use the split xtokenize method, as described on the Apache Camel Splitter page, runs as expected outside of Talend Studio, but fails to run in Studio, with the following exception:

javax.xml.stream.XMLStreamException: reader not supporting Location
    at org.apache.camel.support.XMLTokenExpressionIterator$XMLTokenIterator.getNextToken(XMLTokenExpressionIterator.java:470)
    at org.apache.camel.support.XMLTokenExpressionIterator$XMLTokenIterator.<init>(XMLTokenExpressionIterator.java:233)
    at org.apache.camel.support.XMLTokenExpressionIterator$XMLTokenIterator.<init>(XMLTokenExpressionIterator.java:185)
    at org.apache.camel.support.XMLTokenExpressionIterator.createIterator(XMLTokenExpressionIterator.java:92)
...

 

Root Cause

Camel split xtokenize uses StAX Location API and requires a StAX Reader implementation (for example, woodstox). These require stax2-api and woodstox-core libraries.

 

Solution

Add a cConfig to the route, then select the following JAR files from the drop-down list of libraries:

  • stax2-api-3.1.4
  • woodstox-core-asl-4.4.1
Version history
Last update:
‎2024-02-09 01:22 PM
Updated by: