Hi everyone,
I've created proxy in Karaf(4.4.2) using Camel(3.18.3) route and I have this
error:
2023-02-28T15:25:50,291 | WARN | qtp1127554786-541 | 160 -
org.apache.cxf.cxf-core - 3.5.3 | PhaseInterceptorChain:
Interceptor for {http://mytns.org/ws}MyWebService has thrown exception,
unwinding now
java.lang.NumberFormatException: For input string:
"{{Proxy.maxChildElements:50176}}"
...
My code from blueprint:
- endpoint looks like this:
<camelcxf:cxfEndpoint id="MyEndpoint"
address="{{Proxy.urlsuffix}}"
wsdlURL="file:etc/wsdl/{{Proxy.wsdl.file}}"
xmlns:tns="http://mytns.org/ws"
serviceName="tns:MyWebService"
endpointName="tns:MyPort"
>
<camelcxf:properties>
<entry key="dataFormat" value="CXF_MESSAGE" />
<entry key="ws-security.ut.no-callbacks" value="true"/>
<entry key="ws-security.validate.token" value="false"/>
<entry key="schema-validation-enabled" value="true" />
<entry key="continuationTimeout"
value="{{Proxy.responseTimeout:53000}}" />
<entry key="org.apache.cxf.stax.maxChildElements"
value="{{Proxy.maxChildElements:50176}}" />
<entry key="org.apache.cxf.stax.maxTextLength"
value="{{Proxy.maxTextLength:134217728}}" />
<entry key="mtom-enabled" value="false" />
<entry key="lazyStartProducer" value="true" />
</camelcxf:properties>
...
- configuration of properties:
<camelContext id="MyRoute" trace="false"
xmlns="http://camel.apache.org/schema/blueprint">
<propertyPlaceholder id="MyProperties" location="file:etc/myprop.cfg"/>
...
I've googled that I should repair my code like this:
https://camel.apache.org/manual/using-propertyplaceholder.html#_using_property_placeholders_for_any_kind_of_attribute_in_spring_xml_files
But than I've found out that it doesn't work anymore:
https://camel.apache.org/manual/camel-3x-upgrade-guide-3_1.html#_property_placeholders
If I set it without property placeholders, it works too:
<entry key="org.apache.cxf.stax.maxChildElements" value="1000000" />
<entry key="org.apache.cxf.stax.maxTextLength" value="1073741824" />
So my question is: Why maxChildElements and maxTextLength doesn't work when
responseTimeout works fine?
Thanks
Tom