TomEE 9.1.0 throws jakarta.xml.bind.PropertyException

[email protected]
Newsgroups gmane.comp.java.openejb.user
Message-ID <trinity-1f8bb28f-aec6-43eb-85de-b8d6046f7e43-1689856092760__4663.45319743908$1689856114$gmane$org@3c-app-webde-bs10>
Hi guys,

when I'm running this example without any changes from the scratch:
https://github.com/apache/tomee/blob/tomee-project-9.1.0/examples/simple-webservice/src/test/java/org/superbiz/calculator/ws/CalculatorTest.java

The test case will be run through and the result will be passed.

Taking a deeper look inside the logs excpetions will be thrown :

Jul 20, 2023 2:10:48 PM org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://superbiz.org/wsdl}CalculatorService from WSDL: http://localhost:46763/simple-webservice/Calculator?wsdl
Jul 20, 2023 2:10:48 PM org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://superbiz.org/wsdl}CalculatorService from WSDL: http://localhost:46763/simple-webservice/Calculator?wsdl
Jul 20, 2023 2:10:48 PM org.apache.cxf.common.jaxb.JAXBUtils setEscapeHandler
INFO: Failed to set MinumEscapeHandler to jaxb marshaller
jakarta.xml.bind.PropertyException: name: com.sun.xml.bind.characterEscapeHandler value: null
	at jakarta.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:343)
	at org.glassfish.jaxb.runtime.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:499)
	at org.apache.cxf.common.jaxb.JAXBUtils.setEscapeHandler(JAXBUtils.java:1135)
	at org.apache.cxf.jaxb.io.DataWriterImpl.lambda$createMarshaller$0(DataWriterImpl.java:140)
	at org.apache.cxf.jaxb.JAXBDataBinding.applyEscapeHandler(JAXBDataBinding.java:277)
	at org.apache.cxf.jaxb.io.DataWriterImpl.createMarshaller(DataWriterImpl.java:140)
	at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:239)
	at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:118)
	at org.apache.cxf.wsdl.interceptors.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
[...]


The background of my question is that I see the excpetion in the catalina.out in production too.

Can I avoid this logging?

Thanks,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.