Em qua., 11 de fev. de 2026 às 17:07, Sen, Surjit (CCI-Atlanta) via users <[email protected]> escreveu: > > I have to upgrade libraries for an existing JBoss EAP 7.4 application, with > JDK 11 > One of the upgrades is replacing Camel 2.25.4 with Camel 3.22.4. > In our application we use a subclass of DefaultCamelContext, without any > explicit initialization. > However, after migrating to Camel 3.22.4, a NPE gets thrown as the > HeadersMapFactory member is null in AbstractCamelContext. > Exception details shown below. > Explicitly adding setHeadersMapFactory(new DefaultHeadersMapFactory()) fixes > the issue. > But why should this step be needed?
It may be an internal change, as these are long gone unsupported versions, hard to track why internal behavior may change, but glad that it's working. So you would have to dig in the code history to get an understanding of why the code changed. Be aware that the 3.x major version don't receive fixed anymore, the LTS versions are listed in https://camel.apache.org/download -- Claudio Miranda [email protected] http://www.claudius.com.br
