I try to move a project with REST services from Java to Kotlin.It is a simple Java EE 8 application using JAX-RS. The code is running in the same application (ear file).
The following Java code generates JSON and XML.
Converted to Kotlin, JSON still works, XML fails:
XML fails with the following message:
[Payara 5.192] [SCHWERWIEGEND] [org.glassfish.jersey.message.internal.WriterInterceptorExecutor] [tid: _ThreadID=48 _ThreadName=http-thread-pool::http-listener-1(3)] [levelValue: 1000] [[
MessageBodyWriter not found for media type=application/xml, type=class java.util.Vector, genericType=java.util.List<? extends xxx.xxx.xxx.xxx.Tapes>.]]
I am out of ideas, can someone help me?