jBPM 7.67.0 - Unable to start process using kie api start process.

90 views
Skip to first unread message

Mattia Piccirillo

unread,
Mar 14, 2024, 6:59:13 AM3/14/24
to jBPM Usage
Hi,

we're moving from jbpm 7.33 to 7.67, keep using java 8.
If we try to start a simple process, with no external dependency to another jar, we have no problem.
When we try to start a deployed process, that has external dependency to a jar (rest client with a CustomWorkItemHandler, using kie-api 7.67.2.Final-redhat-00008) we run into this exception:

"Unexpected error during processing Error while creating JAXB context from default classes! 7 counts of IllegalAnnotationExceptions: org.kie.server.api.marshalling.MarshallingException: Error while creating JAXB context from default classes! 7 counts of IllegalAnnotationExceptions".

We had no issues until we try to use new version of jBPM.

Anyone who can help us to solve this issue?

Thanks in advance.
Regards,
Mattia.


Gonzalo Muñoz

unread,
Mar 14, 2024, 9:26:15 AM3/14/24
to jBPM Usage
Hi,
Do you have @org.kie.api.remote.Remotable annotation in your kjar datamodel classes?

@org.kie.api.remote.Remotable public class Customer implements java.io.Serializable { ... }Also set system property org.drools.server.filter.classes' = true

Mattia Piccirillo

unread,
Mar 15, 2024, 7:50:29 AM3/15/24
to jBPM Usage
Hi Gonzalo,

thanks for your reply. 
We do not have @Remotable on our datamodel classes of kjar.
Setting org.drools.server.filter.classes = true  and org.drools.server.ext.disabled value=true solved the issue though.

Anyway,  we still facing another issue when we try to execute startProcess from kie api.

Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not 1 (position: START_DOCUMENT seen 1... @1:2)
        at io.github.xstream.mxparser.MXParser.parseProlog(MXParser.java:1528)
        at io.github.xstream.mxparser.MXParser.nextImpl(MXParser.java:1406)
        at io.github.xstream.mxparser.MXParser.next(MXParser.java:1104)
        at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
        ... 120 more

11:53:06,963 ERROR [org.kie.server.remote.rest.jbpm.ProcessResource] (default task-2) Unexpected error during processing : com.thoughtworks.xstream.io.StreamException:

According to redhat support (https://access.redhat.com/solutions/6981604), actually we had some itemdefinition defined with no FQCN, but after updating them,  kie client still throw the exception.

Any hint or suggestion?

Thanks in advance, 
Regards,

Mattia.
Reply all
Reply to author
Forward
0 new messages