NoSuchMethodError: org.camunda.spin.impl.xml.dom.DomXmlElement.<init>()

Hi there :slight_smile:

Version info:
Spin Version: 1.4.1
Camunda Engine Version: 7.10.0
Camunda Commons Utils Version: 1.4.0

Problem description:
I’m having a problem using a self altered version of Spin.XML("XML_GOES_HERE").

Why I'm using extended classes to alter Spin's behaviour?
  • I do it, because Spin has activated pretty printing by default and there is no easy way to turn it off other than extending some classes and creating your own org.camunda.spin.impl.xml.dom.format.DataFormatWriter.
    (If there’s an easier way, I’m open to suggestions. :wink: )

The java.lang.NoSuchMethodError occurrs between the end of the task where I set the created Spin variable in the execution like this…

final SpinXmlElement xml = AbstractSFSpin.XML(“<root></root>”);
execution.setVariable(“xml”, xml);

…and the following task. The exception seems to happen only in tasks that are called by sub-workflows. (Workflows that where called by another workflow using call activity)
It definitely happens as soon as Camunda calls this internal function org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatMapper.mapInternalToJava(Object parameter, Class<T> javaClass)

Exact line of code where the exception occurrs:

JAXBElement<T> root = unmarshaller.unmarshal(new DOMSource(xmlNode), javaClass);

(The exception stack trace can be found down below.)

The biggest mystery is that my code already works in an older major version of the application and is not altered or dependent on any code in the rest of the application.
I’m pretty sure something has gone missing after upgrading to the new major version of the application.

Uploaded files:

If there are any questions, simply ask. :smiley:

Exception stack trace:

Open stack trace

2019-04-29T17:19:52,979 WARN [pool-4-thread-3] org.camunda.bpm.engine.jobexecutor: ENGINE-14006 Exception while executing job eff84945-6a8d-11e9-b93a-0a0027000004:
org.camunda.bpm.engine.ProcessEngineException: ENGINE-14025 Exception while executing job MessageEntity[repeat=null, id=eff84945-6a8d-11e9-b93a-0a0027000004, revision=7, duedate=null, lockOwner=16f00bbd-6784-4c3e-aef1-b7514363ce54, lockExpirationTime=Mon Apr 29 15:49:52 UTC 2019, executionId=eddeb80f-6a8d-11e9-b93a-0a0027000004, processInstanceId=eddeb80f-6a8d-11e9-b93a-0a0027000004, isExclusive=true, retries=1, jobHandlerType=async-continuation, jobHandlerConfiguration=transition-notify-listener-take$SequenceFlow_02ex34o, exceptionByteArray=null, exceptionByteArrayId=f1eb8dc8-6a8d-11e9-b93a-0a0027000004, exceptionMessage=org.camunda.spin.impl.xml.dom.DomXmlElement.(), deploymentId=604cfd79-6a8a-11e9-ae17-0a0027000004]:
at org.camunda.bpm.engine.impl.jobexecutor.JobExecutorLogger.wrapJobExecutionFailure(JobExecutorLogger.java:161) [camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:43) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:91) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:60) [camunda-engine-7.10.0.jar:7.10.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_172]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_172]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
Caused by: java.lang.NoSuchMethodError: org.camunda.spin.impl.xml.dom.DomXmlElement.()
at com.sun.xml.internal.bind.v2.ClassFactory.create0(ClassFactory.java:96) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.createInstance(ClassBeanInfoImpl.java:270) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(UnmarshallingContext.java:684) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:171) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:45) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:559) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:538) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:153) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:229) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:112) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:354) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:333) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:279) ~[?:1.8.0_172]
at org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatMapper.mapInternalToJava(DomXmlDataFormatMapper.java:106) ~[camunda-spin-dataformat-xml-dom-1.4.1.jar:1.4.1]
at org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatMapper.mapInternalToJava(DomXmlDataFormatMapper.java:121) ~[camunda-spin-dataformat-xml-dom-1.4.1.jar:1.4.1]
at org.camunda.spin.plugin.impl.SpinObjectValueSerializer.deserializeFromByteArray(SpinObjectValueSerializer.java:96) ~[camunda-engine-plugin-spin-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer.deserializeFromByteArray(AbstractObjectValueSerializer.java:112) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer.readValue(AbstractSerializableValueSerializer.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer.readValue(AbstractSerializableValueSerializer.java:30) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.util.TypedValueField.getTypedValue(TypedValueField.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.getTypedValue(VariableInstanceEntity.java:268) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.collectVariables(AbstractVariableScope.java:113) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.collectVariables(AbstractVariableScope.java:120) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariablesTyped(AbstractVariableScope.java:88) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariablesTyped(AbstractVariableScope.java:83) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariables(AbstractVariableScope.java:79) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariables(AbstractVariableScope.java:50) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.model.CallableElementParameter.applyTo(CallableElementParameter.java:58) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.model.CallableElement.getVariables(CallableElement.java:130) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.model.CallableElement.getInputVariables(CallableElement.java:89) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.bpmn.behavior.CallableElementActivityBehavior.getInputVariables(CallableElementActivityBehavior.java:187) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.bpmn.behavior.CallableElementActivityBehavior.execute(CallableElementActivityBehavior.java:115) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute$2.callback(PvmAtomicOperationActivityExecute.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute$2.callback(PvmAtomicOperationActivityExecute.java:49) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.continueIfExecutionDoesNotAffectNextOperation(PvmExecutionImpl.java:1988) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:41) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:30) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:640) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:614) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl$6.callback(PvmExecutionImpl.java:1927) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl$6.callback(PvmExecutionImpl.java:1924) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.continueExecutionIfNotCanceled(PvmExecutionImpl.java:1994) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.dispatchDelayedEventsAndPerformOperation(PvmExecutionImpl.java:1943) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.dispatchDelayedEventsAndPerformOperation(PvmExecutionImpl.java:1924) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:30) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:67) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:649) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:624) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:649) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:624) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:649) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:624) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:640) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:614) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionCreateScope.scopeCreated(PvmAtomicOperationTransitionCreateScope.java:37) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationCreateScope.execute(PvmAtomicOperationCreateScope.java:53) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationCreateScope.execute(PvmAtomicOperationCreateScope.java:27) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:114) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:80) ~[camunda-engine-7.10.0.jar:7.10.0]
at de.sitefusion.workflows.handlers.SFAuthenticationJobHandler.execute(SFAuthenticationJobHandler.java:104) ~[workflows-6.0.4-SNAPSHOT.jar:?]
at de.sitefusion.workflows.handlers.SFAuthenticationJobHandler.execute(SFAuthenticationJobHandler.java:25) ~[workflows-6.0.4-SNAPSHOT.jar:?]
at org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:138) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:102) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:39) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:27) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:106) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:45) ~[camunda-engine-spring-7.10.0.jar:7.10.0]
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:43) ~[camunda-engine-spring-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:69) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:50) ~[camunda-engine-7.10.0.jar:7.10.0]
… 6 more
Caused by: java.lang.NoSuchMethodException: org.camunda.spin.impl.xml.dom.DomXmlElement.()
at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_172]
at java.lang.Class.getDeclaredConstructor(Class.java:2178) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.ClassFactory.create0(ClassFactory.java:89) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.createInstance(ClassBeanInfoImpl.java:270) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(UnmarshallingContext.java:684) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:171) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:45) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:559) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:538) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:153) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:229) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:112) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:354) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:333) ~[?:1.8.0_172]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:279) ~[?:1.8.0_172]
at org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatMapper.mapInternalToJava(DomXmlDataFormatMapper.java:106) ~[camunda-spin-dataformat-xml-dom-1.4.1.jar:1.4.1]
at org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatMapper.mapInternalToJava(DomXmlDataFormatMapper.java:121) ~[camunda-spin-dataformat-xml-dom-1.4.1.jar:1.4.1]
at org.camunda.spin.plugin.impl.SpinObjectValueSerializer.deserializeFromByteArray(SpinObjectValueSerializer.java:96) ~[camunda-engine-plugin-spin-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.variable.serializer.AbstractObjectValueSerializer.deserializeFromByteArray(AbstractObjectValueSerializer.java:112) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer.readValue(AbstractSerializableValueSerializer.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer.readValue(AbstractSerializableValueSerializer.java:30) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.util.TypedValueField.getTypedValue(TypedValueField.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.getTypedValue(VariableInstanceEntity.java:268) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.collectVariables(AbstractVariableScope.java:113) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.collectVariables(AbstractVariableScope.java:120) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariablesTyped(AbstractVariableScope.java:88) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariablesTyped(AbstractVariableScope.java:83) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariables(AbstractVariableScope.java:79) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope.getVariables(AbstractVariableScope.java:50) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.model.CallableElementParameter.applyTo(CallableElementParameter.java:58) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.model.CallableElement.getVariables(CallableElement.java:130) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.model.CallableElement.getInputVariables(CallableElement.java:89) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.bpmn.behavior.CallableElementActivityBehavior.getInputVariables(CallableElementActivityBehavior.java:187) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.bpmn.behavior.CallableElementActivityBehavior.execute(CallableElementActivityBehavior.java:115) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute$2.callback(PvmAtomicOperationActivityExecute.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute$2.callback(PvmAtomicOperationActivityExecute.java:49) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.continueIfExecutionDoesNotAffectNextOperation(PvmExecutionImpl.java:1988) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:41) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:30) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:640) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:614) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl$6.callback(PvmExecutionImpl.java:1927) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl$6.callback(PvmExecutionImpl.java:1924) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.continueExecutionIfNotCanceled(PvmExecutionImpl.java:1994) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.dispatchDelayedEventsAndPerformOperation(PvmExecutionImpl.java:1943) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.dispatchDelayedEventsAndPerformOperation(PvmExecutionImpl.java:1924) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:30) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:67) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:649) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:624) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:649) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:624) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:72) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:649) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:624) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:60) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.AtomicOperationInvocation.execute(AtomicOperationInvocation.java:95) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.invokeNext(CommandInvocationContext.java:127) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performNext(CommandInvocationContext.java:107) ~[camunda-engine-7.10.0.jar:7.10.0]
at org.camunda.bpm.engine.impl.interceptor.CommandInvocationContext.performOperation(CommandInvocationContext.java:82) ~[camunda-engine-7.10.0.jar:7.10.0]

Testcase is now uploaded.

EDIT:
Unit test for example workflow was added.

Solution:

I have found the solution to my problem! HEUREKA :smiley:

I use Spring along with Camunda.
I needed to add a custom pre-variable-serializer to the SpringProcessEngineConfiguration.

Code:
SpringProcessEngineConfiguration.setCustomPreVariableSerializers()

1 Like

Thanks for posting the solution!