Repository navigation
How to configure apache CXF property org.apache.cxf.stax.maxChildElements in quarkus #1325
Answered
by
ppalaga
hikemachado
asked this question in
Q&A
|
Hello guys, How could I configure org.apache.cxf.stax.maxChildElements in quarkus? I'm trying to solve the exception below: jakarta.xml.ws.soap.SOAPFaultException: Unmarshalling Error: Maximum Number of Child Elements limit (50000) Exceeded Thanks |
Answered by
ppalaga
Apr 1, 2024
Replies: 1 comment 2 replies
|
As of Quarkus CXF 3.9.0, there is no way to do it via Around here the CXF docs says it can be done per Bus or Endpoint. If Bus is fine for you, an Init bean like this should work: import jakarta.enterprise.event.Observes;
import org.apache.cxf.Bus;
import org.apache.cxf.BusFactory;
import io.quarkus.runtime.StartupEvent;
public class Init {
void onStart(@Observes StartupEvent ev) {
final Bus bus = BusFactory.getDefaultBus();
bus.setProperty("org.apache.cxf.stax.maxChildElements", "1024");
}
} |
2 replies
Answer selected by
hikemachado
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of Quarkus CXF 3.9.0, there is no way to do it via
application.properties.Around here the CXF docs says it can be done per Bus or Endpoint. If Bus is fine for you, an Init bean like this should work: