Buggy code:
public class EEModuleConfigurationProcessor implements DeploymentUnitProcessor { private static final Logger logger = Logger . getLogger ( EEModuleConfigurationProcessor . class ) ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final EEModuleDescription moduleDescription = deploymentUnit . getAttachment ( EE_MODULE_DESCRIPTION ) ; final Module module = deploymentUnit . getAttachment ( MODULE ) ; final DeploymentClassIndex classIndex = deploymentUnit . getAttachment ( CLASS_INDEX ) ; if ( moduleDescription == null ) { return ; } if ( module == null ) { return ; } final Set < ServiceName > failed = new HashSet < ServiceName > ( ) ; final EEModuleConfiguration moduleConfiguration = new EEModuleConfiguration ( moduleDescription ) ; deploymentUnit . putAttachment ( EE_MODULE_CONFIGURATION , moduleConfiguration ) ; final Iterator < ComponentDescription > iterator = moduleDescription . getComponentDescriptions ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { final ComponentDescription componentDescription = iterator . next ( ) ; EEModuleConfigurationProcessor . logger . debug ( ( ( ( "Configuring<seq2seq4repair_space>component<seq2seq4repair_space>class:<seq2seq4repair_space>" + ( componentDescription . getComponentClassName ( ) ) ) + "<seq2seq4repair_space>named<seq2seq4repair_space>" ) + ( componentDescription . getComponentName ( ) ) ) ) ; final ComponentConfiguration componentConfiguration ; try { componentConfiguration = componentDescription . createConfiguration ( classIndex . classIndex ( componentDescription . getComponentClassName ( ) ) ) ; for ( final ComponentConfigurator componentConfigurator : componentDescription . getConfigurators ( ) ) { componentConfigurator . configure ( phaseContext , componentDescription , componentConfiguration ) ; } moduleConfiguration . addComponentConfiguration ( componentConfiguration ) ; } catch ( Exception e ) { if ( componentDescription . isOptional ( ) ) { EEModuleConfigurationProcessor . logger . warnf ( e , "Not<seq2seq4repair_space>installing<seq2seq4repair_space>optional<seq2seq4repair_space>component<seq2seq4repair_space>%s<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>exception" , componentDescription . getComponentName ( ) ) ; failed . add ( componentDescription . getStartServiceName ( ) ) ; failed . add ( componentDescription . getCreateServiceName ( ) ) ; failed . add ( componentDescription . getServiceName ( ) ) ; iterator . remove ( ) ; } else { <START_BUG> throw new DeploymentUnitProcessingException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>component<seq2seq4repair_space>class<seq2seq4repair_space>" + ( componentDescription . getComponentClassName ( ) ) ) , e ) ; <END_BUG> } } } deploymentUnit . putAttachment ( FAILED_COMPONENTS , Collections . synchronizedSet ( failed ) ) ; } public void undeploy ( DeploymentUnit context ) { } }

Fix:
throw new DeploymentUnitProcessingException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>configure<seq2seq4repair_space>component<seq2seq4repair_space>" + ( componentDescription . getComponentName ( ) ) ) , e ) ;