Buggy code:
private OrderByType buildOrderByType ( final Order order ) { } @ Override public List < Category > getCategoriesUnrelatedToProcessDefinition ( final long processDefinitionId , final int startIndex , final int maxResults , final CategoryCriterion sortingCriterion ) { } @ Override public void updateCategory ( final long categoryId , final CategoryUpdater updater ) throws CategoryNotFoundException , UpdateException { } private EntityUpdateDescriptor getCategoryUpdateDescriptor ( final SCategoryUpdateBuilder descriptorBuilder , final CategoryUpdater updater ) { } @ Override public void deleteCategory ( final long categoryId ) throws DeletionException { } @ Override public long getNumberOfUncategorizedProcessDefinitions ( ) { } @ Override public List < ProcessDeploymentInfo > getUncategorizedProcessDeploymentInfos ( final int startIndex , final int maxResults , final ProcessDeploymentInfoCriterion sortCriterion ) { } @ Override public long getNumberOfProcessDeploymentInfosUnrelatedToCategory ( final long categoryId ) { } @ Override public List < ProcessDeploymentInfo > getProcessDeploymentInfosUnrelatedToCategory ( final long categoryId , final int startIndex , final int maxResults , final ProcessDeploymentInfoCriterion sortingCriterion ) { } @ Deprecated @ Override public void removeAllCategoriesFromProcessDefinition ( final long processDefinitionId ) throws DeletionException { } @ Deprecated @ Override public void removeAllProcessDefinitionsFromCategory ( final long categoryId ) throws DeletionException { } @ Override public long removeCategoriesFromProcessDefinition ( final long processDefinitionId , final int startIndex , final int maxResults ) throws DeletionException { } @ Override public long removeProcessDefinitionsFromCategory ( final long categoryId , final int startIndex , final int maxResults ) throws DeletionException { } @ Override public List < EventInstance > getEventInstances ( final long rootContainerId , final int startIndex , final int maxResults , final EventCriterion criterion ) { } @ Override public void assignUserTask ( final long userTaskId , final long userId ) throws UpdateException { } @ Override public void updateActorsOfUserTask ( final long userTaskId ) throws UpdateException { } private void createPendingMappingsAndAssignHumanTask ( final long humanTaskInstanceId , final FilterResult result ) throws SBonitaException { } private FilterResult executeFilter ( final long processDefinitionId , final long humanTaskInstanceId , final String actorName , final SUserFilterDefinition sUserFilterDefinition ) throws SClassLoaderException , SUserFilterExecutionException { } private void cleanPendingMappingsAndUnassignHumanTask ( final long userTaskId , final SHumanTaskInstance humanTaskInstance ) throws SActivityModificationException , SFlowNodeNotFoundException , SFlowNodeReadException { } private SHumanTaskInstance getSHumanTaskInstance ( final long userTaskId ) throws SFlowNodeNotFoundException , SFlowNodeReadException , UpdateException { } private void createPendingMappingForUser ( final long humanTaskInstanceId , final Long userId ) throws SBonitaException { } @ Override public List < DataDefinition > getActivityDataDefinitions ( final long processDefinitionId , final String activityName , final int startIndex , final int maxResults ) throws ActivityDefinitionNotFoundException , ProcessDefinitionNotFoundException { } @ Override public List < DataDefinition > getProcessDataDefinitions ( final long processDefinitionId , final int startIndex , final int maxResults ) throws ProcessDefinitionNotFoundException { } @ Override public HumanTaskInstance getHumanTaskInstance ( final long activityInstanceId ) throws ActivityInstanceNotFoundException { } @ Override public long getNumberOfAssignedHumanTaskInstances ( final long userId ) { } @ Override public Map < Long , Long > getNumberOfOpenTasks ( final List < Long > userIds ) { } @ Override public Map < String , byte [ ] > getProcessResources ( final long processDefinitionId , final String filenamesPattern ) throws RetrieveException { } protected String generateRelativeResourcePath ( final File processDirectory , final File f ) { } @ Override public long getLatestProcessDefinitionId ( final String processName ) throws ProcessDefinitionNotFoundException { } @ Override public List < DataInstance > getProcessDataInstances ( final long processInstanceId , final int startIndex , final int maxResults ) { } @ Override public DataInstance getProcessDataInstance ( final String dataName , final long processInstanceId ) throws DataNotFoundException { } @ Override public void updateProcessDataInstance ( final String dataName , final long processInstanceId , final Serializable dataValue ) throws UpdateException { } @ Override public void updateProcessDataInstances ( final long processInstanceId , final Map < String , Serializable > dataNameValues ) throws UpdateException { } private void updateDataInstances ( final List < SDataInstance > sDataInstances , final Map < String , Serializable > dataNameValues ) throws ClassNotFoundException , SDataInstanceException , UpdateException { } private void updateDataInstance ( final DataInstanceService dataInstanceService , final SDataInstance sDataInstance , final Serializable dataNewValue ) throws SDataInstanceException , UpdateException { } private void verifyTypeOfNewDataValue ( final SDataInstance sDataInstance , final Serializable dataValue ) throws UpdateException { final String dataClassName = sDataInstance . getClassName ( ) ; Class < ? > dataClass ; try { <START_BUG> dataClass = Class . forName ( dataClassName ) ; <END_BUG> } catch ( final ClassNotFoundException e ) { throw new UpdateException ( e ) ; } if ( ! ( dataClass . isInstance ( dataValue ) ) ) { final UpdateException e = new UpdateException ( ( ( "The<seq2seq4repair_space>type<seq2seq4repair_space>of<seq2seq4repair_space>new<seq2seq4repair_space>value<seq2seq4repair_space>[" + ( dataValue . getClass ( ) . getName ( ) ) ) + "]<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>compatible<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>type<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>data." ) ) ; e . setDataName ( sDataInstance . getName ( ) ) ; e . setDataClassName ( dataClassName ) ; throw e ; } } private EntityUpdateDescriptor buildEntityUpdateDescriptorForData ( final Serializable dataValue ) { } protected ClassLoader getProcessInstanceClassloader ( final TenantServiceAccessor tenantAccessor , final long processInstanceId ) throws SClassLoaderException , SProcessInstanceNotFoundException , SProcessInstanceReadException { } @ Override public List < DataInstance > getActivityDataInstances ( final long activityInstanceId , final int startIndex , final int maxResults ) { } @ Override public DataInstance getActivityDataInstance ( final String dataName , final long activityInstanceId ) throws DataNotFoundException { } @ Override public void updateActivityDataInstance ( final String dataName , final long activityInstanceId , final Serializable dataValue ) throws UpdateException { } @ Override public DataInstance getActivityTransientDataInstance ( final String dataName , final long activityInstanceId ) throws DataNotFoundException { } protected DataInstance convertModeltoDataInstance ( final SDataInstance data ) { } @ Override public List < DataInstance > getActivityTransientDataInstances ( final long activityInstanceId , final int startIndex , final int maxResults ) { } protected List < DataInstance > convertModelToDataInstances ( final List < SDataInstance > dataInstances ) { } @ Override public void updateActivityTransientDataInstance ( final String dataName , final long activityInstanceId , final Serializable dataValue ) throws UpdateException { }

Fix:
dataClass = Class . forName ( dataClassName , true , Thread . currentThread ( ) . getContextClassLoader ( ) ) ;