[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Antwort: CXF : setting maxChildElements on endpoint


Won't setting the property on the bus be effective for all endpoints in the Camel context? 

Reading the doc you reference, it says: Contextual properties which will be applied to all endpoints and clients using this bus

 Actually, I don't know how Camel manages all the CXF endpoints that are configured in the context. 

 Is there a shared bus for all routes using the CXF component. A bus per route?



-----Message d'origine-----
De : bjoern.ohm@xxxxxxxxxxxxx [mailto:bjoern.ohm@xxxxxxxxxxxxx] 
Envoyé : 4 octobre 2018 08:13
À : users@xxxxxxxxxxxxxxxx
Objet : Antwort: CXF : setting maxChildElements on endpoint

Courriel provenant de l’externe
ATTENTION, avant d’accéder à une pièce jointe ou à un lien de ce courriel, assurez-vous que celui-ci provient d’un tiers de confiance.


perhaps you can use a configuration file (cxf.xml) like in The entry:

<entry key="org.apache.cxf.stax.maxChildElements" value="60000"/>


should work...

Best regards

Von:    "Duchaine, David" <Duchaine.David@xxxxxxxxxxx>
An:     "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Datum:  02.10.2018 16:27
Betreff:        CXF : setting maxChildElements on endpoint

Hello everyone,

Camel version 2.21.2

We have configured a CXF Endpoint and getting the following exception
while returning the response to the client:

Maximum Number of Child Elements limit (50000) Exceeded

While setting the


as a system property on the JVM works, we'd prefer to have the property
applied on a specific endpoint only.

As specified in the CXF Component doc, we tried setting the property on
the URI as follows
but it doesn't work because we still hit the default limit:

We've tried adding the following property but still no avail:

Are we missing something here?



Diese E-Mail könnte vertrauliche und / oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.