Buggy code:
public abstract class EJBComponent extends BasicComponent implements org . jboss . ejb3 . context . spi . EJBComponent , TransactionalComponent { private static Logger log = Logger . getLogger ( EJBComponent . class ) ; private final ConcurrentMap < MethodIntf , ConcurrentMap < String , ConcurrentMap < ArrayKey , TransactionAttributeType > > > txAttrs ; private final EJBUtilities utilities ; private final boolean isBeanManagedTransaction ; private static volatile boolean youHaveBeenWarnedEJBTHREE2120 = false ; private final Map < Class < ? > , ApplicationException > applicationExceptions ; protected EJBComponent ( final EJBComponentCreateService ejbComponentCreateService ) { } @ Override public ApplicationException getApplicationException ( Class < ? > exceptionClass ) { } @ Override public EJBHome getEJBHome ( ) throws IllegalStateException { } @ Override public EJBLocalHome getEJBLocalHome ( ) throws IllegalStateException { } @ Override public boolean getRollbackOnly ( ) throws IllegalStateException { } @ Override public TimerService getTimerService ( ) throws IllegalStateException { } @ Deprecated public TransactionAttributeType getTransactionAttributeType ( Method method ) { } public TransactionAttributeType getTransactionAttributeType ( MethodIntf methodIntf , Method method ) { } @ Override public TransactionManager getTransactionManager ( ) { } public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry ( ) { } @ Override public int getTransactionTimeout ( Method method ) { } @ Override public UserTransaction getUserTransaction ( ) throws IllegalStateException { } private boolean isBeanManagedTransaction ( ) { } @ Override public boolean isCallerInRole ( Principal callerPrincipal , String roleName ) throws IllegalStateException { } @ Override public Object lookup ( String name ) throws IllegalArgumentException { if ( name == null ) { throw new IllegalArgumentException ( "jndi<seq2seq4repair_space>name<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null<seq2seq4repair_space>during<seq2seq4repair_space>lookup" ) ; } final NamespaceContextSelector namespaceContextSelector = NamespaceContextSelector . getCurrentSelector ( ) ; if ( namespaceContextSelector == null ) { throw new IllegalStateException ( ( "No<seq2seq4repair_space>NamespaceContextSelector<seq2seq4repair_space>available,<seq2seq4repair_space>cannot<seq2seq4repair_space>lookup<seq2seq4repair_space>" + name ) ) ; } Context jndiContext = null ; String namespaceStrippedJndiName = name ; if ( name . startsWith ( "java:app//" ) ) { jndiContext = namespaceContextSelector . getContext ( "app" ) ; namespaceStrippedJndiName = name . substring ( "java:app//" . length ( ) ) ; } else if ( name . startsWith ( "java:module//" ) ) { jndiContext = namespaceContextSelector . getContext ( "module" ) ; namespaceStrippedJndiName = name . substring ( "java:module//" . length ( ) ) ; } else if ( name . startsWith ( "java:comp//" ) ) { jndiContext = namespaceContextSelector . getContext ( "comp" ) ; namespaceStrippedJndiName = name . substring ( "java:comp//" . length ( ) ) ; } else if ( ! ( name . startsWith ( "java:" ) ) ) { jndiContext = namespaceContextSelector . getContext ( "comp" ) ; namespaceStrippedJndiName = "env//" + name ; } else if ( name . startsWith ( "java:global//" ) ) { try { jndiContext = new InitialContext ( ) ; } catch ( NamingException ne ) { throw new RuntimeException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>lookup<seq2seq4repair_space>jndi<seq2seq4repair_space>name:<seq2seq4repair_space>" + name ) , ne ) ; } } else { throw new IllegalArgumentException ( ( ( ( "Cannot<seq2seq4repair_space>lookup<seq2seq4repair_space>jndi<seq2seq4repair_space>name:<seq2seq4repair_space>" + name ) + "<seq2seq4repair_space>since<seq2seq4repair_space>it" ) + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>belong<seq2seq4repair_space>to<seq2seq4repair_space>java:app,<seq2seq4repair_space>java:module,<seq2seq4repair_space>java:comp<seq2seq4repair_space>or<seq2seq4repair_space>java:global<seq2seq4repair_space>namespace" ) ) ; } EJBComponent . log . debug ( ( ( ( "Looking<seq2seq4repair_space>up<seq2seq4repair_space>" + namespaceStrippedJndiName ) + "<seq2seq4repair_space>in<seq2seq4repair_space>jndi<seq2seq4repair_space>context:<seq2seq4repair_space>" ) + jndiContext ) ) ; try { return jndiContext . lookup ( namespaceStrippedJndiName ) ; } catch ( NamingException ne ) { <START_BUG> throw new RuntimeException ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>lookup<seq2seq4repair_space>jndi<seq2seq4repair_space>name:<seq2seq4repair_space>" + namespaceStrippedJndiName ) + "<seq2seq4repair_space>in<seq2seq4repair_space>context:<seq2seq4repair_space>" ) + jndiContext ) , ne ) ; <END_BUG> } } @ Override public void setRollbackOnly ( ) throws IllegalStateException { } protected abstract boolean isSetRollbackOnlyAllowed ( final TransactionAttributeType txAttrType ) { } protected abstract boolean isGetRollbackOnlyAllowed ( final TransactionAttributeType txAttrType ) { } private class NonFunctionalTimerService implements TimerService { private final UnsupportedOperationException UNSUPPORTED_OPERATION_EXCEPTION = new UnsupportedOperationException ( ( "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>" + "temporary<seq2seq4repair_space>non-functional<seq2seq4repair_space>timerservice.<seq2seq4repair_space>No<seq2seq4repair_space>operations<seq2seq4repair_space>are<seq2seq4repair_space>allowed<seq2seq4repair_space>on<seq2seq4repair_space>it." ) ) ; @ Override public Timer createCalendarTimer ( ScheduleExpression schedule ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createCalendarTimer ( ScheduleExpression schedule , TimerConfig timerConfig ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createIntervalTimer ( Date initialExpiration , long intervalDuration , TimerConfig timerConfig ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createIntervalTimer ( long initialDuration , long intervalDuration , TimerConfig timerConfig ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createSingleActionTimer ( Date expiration , TimerConfig timerConfig ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createSingleActionTimer ( long duration , TimerConfig timerConfig ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createTimer ( long duration , Serializable info ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createTimer ( long initialDuration , long intervalDuration , Serializable info ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createTimer ( Date expiration , Serializable info ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Timer createTimer ( Date initialExpiration , long intervalDuration , Serializable info ) throws IllegalArgumentException , IllegalStateException , EJBException { } @ Override public Collection < Timer > getTimers ( ) throws IllegalStateException , EJBException { } } }

Fix:
throw new IllegalArgumentException ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>lookup<seq2seq4repair_space>jndi<seq2seq4repair_space>name:<seq2seq4repair_space>" + namespaceStrippedJndiName ) + "<seq2seq4repair_space>in<seq2seq4repair_space>context:<seq2seq4repair_space>" ) + jndiContext ) , ne ) ;