IllegalAnnotationsException "JAXB can't handle interfaces." in BRMS 6.2 decision server
Issue
- After upgrading to BRMS 6.2.0, whenever there is a marker interface as part of facts, we get a JAXB exception as :
org.jboss.resteasy.spi.UnhandledException: org.kie.server.api.marshalling.MarshallingException: Error while creating JAXB context from default classes! 1 counts of IllegalAnnotationExceptions
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:367)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:235)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:211)
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:576)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:543)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:128)
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.kie.server.services.impl.security.web.CaptureHttpRequestFilter.doFilter(CaptureHttpRequestFilter.java:42)
root cause
org.kie.server.api.marshalling.MarshallingException: Error while creating JAXB context from default classes! 1 counts of IllegalAnnotationExceptions
org.kie.server.api.marshalling.jaxb.JaxbMarshaller.<init>(JaxbMarshaller.java:208)
org.kie.server.api.marshalling.MarshallerFactory.getMarshaller(MarshallerFactory.java:39)
org.kie.server.services.impl.KieContainerInstanceImpl.getMarshaller(KieContainerInstanceImpl.java:111)
Request XML
<batch-execution lookup="defaultSession">
<insert out-identifier="cust" return-object="true">
<com.sample.Customer>
<age>38</age>
</com.sample.Customer>
</insert>
<fire-all-rules out-identifier="firedActivations"/>
</batch-execution>
Environment
- Red Hat JBoss BRMS
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
