You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2026/07/20 12:37:00 UTC
[jira] [Comment Edited] (CAMEL-24026) Fix flaky XsltFromFileExceptionTest
[ https://issues.apache.org/jira/browse/CAMEL-24026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18097550#comment-18097550 ]
Aurélien Pupier edited comment on CAMEL-24026 at 7/20/26 12:36 PM:
-------------------------------------------------------------------
develocity is reporting also these kinds of errors on other attempts:
{noformat}
org.apache.camel.FailedToCreateRouteException: Failed to create route: route8150 at: >>> to[xslt:org/apache/camel/component/xslt/example.xsl] <<< in route: Route(route8150)[From[file:/tmp/junit-11867091151342813293?m... because: Failed to resolve endpoint: xslt://org/apache/camel/component/xslt/example.xsl due to: javax.xml.transform.TransformerConfigurationException: JAXP0801003: the compiler encountered XPath expressions with an accumulated '2' operators that exceeds the '1' limit set by 'system property'.
at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:248)
at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:89)
at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
at org.apache.camel.impl.DefaultCamelContext.lambda$doStartRouteDefinitions$3(DefaultCamelContext.java:780)
at org.apache.camel.util.concurrent.ContextValueFactory.lambda$where$0(ContextValueFactory.java:82)
at org.apache.camel.util.concurrent.ContextValueFactory.where(ContextValueFactory.java:65)
at org.apache.camel.util.concurrent.ContextValueFactory.where(ContextValueFactory.java:81)
at org.apache.camel.util.concurrent.ContextValue.where(ContextValue.java:186)
at org.apache.camel.impl.engine.DefaultCamelContextExtension.createRoute(DefaultCamelContextExtension.java:436)
at org.apache.camel.impl.DefaultCamelContext.doStartRouteDefinitions(DefaultCamelContext.java:778)
at org.apache.camel.impl.DefaultCamelContext.lambda$startRouteDefinitions$0(DefaultCamelContext.java:641)
at org.apache.camel.impl.engine.AbstractCamelContext.lambda$startingRoutes$2(AbstractCamelContext.java:1193)
at org.apache.camel.util.concurrent.ContextValueFactory.where(ContextValueFactory.java:65)
at org.apache.camel.util.concurrent.ContextValue.where(ContextValue.java:174)
at org.apache.camel.impl.engine.AbstractCamelContext.startingRoutes(AbstractCamelContext.java:1191)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:640)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:622)
at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2745)
at org.apache.camel.support.service.BaseService.init(BaseService.java:94)
at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2356)
at org.apache.camel.support.service.BaseService.start(BaseService.java:124)
at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2375)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:214)
at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:696)
at org.apache.camel.ContextTestSupport.doSetUp(ContextTestSupport.java:493)
at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:328)
{noformat}
which seems that shoudl be totally unrelated to this specific test, wondering if the tempdir used is not potentially shared by other tests causing troubles
EDIT: it is related to this test, this specific example.xsl is used in the route
was (Author: apupier):
develocity is reporting also these kinds of errors on other attempts:
{noformat}
org.apache.camel.FailedToCreateRouteException: Failed to create route: route8150 at: >>> to[xslt:org/apache/camel/component/xslt/example.xsl] <<< in route: Route(route8150)[From[file:/tmp/junit-11867091151342813293?m... because: Failed to resolve endpoint: xslt://org/apache/camel/component/xslt/example.xsl due to: javax.xml.transform.TransformerConfigurationException: JAXP0801003: the compiler encountered XPath expressions with an accumulated '2' operators that exceeds the '1' limit set by 'system property'.
at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:248)
at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:89)
at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49)
at org.apache.camel.impl.DefaultCamelContext.lambda$doStartRouteDefinitions$3(DefaultCamelContext.java:780)
at org.apache.camel.util.concurrent.ContextValueFactory.lambda$where$0(ContextValueFactory.java:82)
at org.apache.camel.util.concurrent.ContextValueFactory.where(ContextValueFactory.java:65)
at org.apache.camel.util.concurrent.ContextValueFactory.where(ContextValueFactory.java:81)
at org.apache.camel.util.concurrent.ContextValue.where(ContextValue.java:186)
at org.apache.camel.impl.engine.DefaultCamelContextExtension.createRoute(DefaultCamelContextExtension.java:436)
at org.apache.camel.impl.DefaultCamelContext.doStartRouteDefinitions(DefaultCamelContext.java:778)
at org.apache.camel.impl.DefaultCamelContext.lambda$startRouteDefinitions$0(DefaultCamelContext.java:641)
at org.apache.camel.impl.engine.AbstractCamelContext.lambda$startingRoutes$2(AbstractCamelContext.java:1193)
at org.apache.camel.util.concurrent.ContextValueFactory.where(ContextValueFactory.java:65)
at org.apache.camel.util.concurrent.ContextValue.where(ContextValue.java:174)
at org.apache.camel.impl.engine.AbstractCamelContext.startingRoutes(AbstractCamelContext.java:1191)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:640)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:622)
at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2745)
at org.apache.camel.support.service.BaseService.init(BaseService.java:94)
at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2356)
at org.apache.camel.support.service.BaseService.start(BaseService.java:124)
at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2375)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:214)
at org.apache.camel.ContextTestSupport.startCamelContext(ContextTestSupport.java:696)
at org.apache.camel.ContextTestSupport.doSetUp(ContextTestSupport.java:493)
at org.apache.camel.ContextTestSupport.setUp(ContextTestSupport.java:328)
{noformat}
which seems that shoudl be totally unrelated to this specific test, wondering if the tempdir used is not potentially shared by other tests causing troubles
> Fix flaky XsltFromFileExceptionTest
> -----------------------------------
>
> Key: CAMEL-24026
> URL: https://issues.apache.org/jira/browse/CAMEL-24026
> Project: Camel
> Issue Type: Test
> Components: camel-core
> Reporter: Guillaume Nodet
> Assignee: Aurélien Pupier
> Priority: Major
> Fix For: 4.22.0
>
>
> The XsltFromFileExceptionTest is flaky because it calls assertMockEndpointsSatisfied() before waiting for the file consumer to pick up and process the file. The oneExchangeDone latch must be awaited BEFORE asserting mock expectations, otherwise the mock assertion can time out on slow CI because the file has not been consumed yet.
> Fix: reorder the assertions to wait for oneExchangeDone first, then assert mocks, then check file positions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)