Buggy code:
} final MethodInvocationMessageHandler . ClassLoaderSwitchingClassResolver classResolver = new MethodInvocationMessageHandler . ClassLoaderSwitchingClassResolver ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ; final Unmarshaller unmarshaller = this . prepareForUnMarshalling ( this . marshallerFactory , classResolver , input ) ; final String appName ; final String moduleName ; final String distinctName ; final String beanName ; try { appName = ( ( String ) ( unmarshaller . readObject ( ) ) ) ; moduleName = ( ( String ) ( unmarshaller . readObject ( ) ) ) ; distinctName = ( ( String ) ( unmarshaller . readObject ( ) ) ) ; beanName = ( ( String ) ( unmarshaller . readObject ( ) ) ) ; } catch ( Throwable e ) { throw ROOT_LOGGER . failedToReadEjbInfo ( e ) ; } final EjbDeploymentInformation ejbDeploymentInformation = this . findEJB ( appName , moduleName , distinctName , beanName ) ; if ( ejbDeploymentInformation == null ) { this . writeNoSuchEJBFailureMessage ( channelAssociation , invocationId , appName , moduleName , distinctName , beanName , null ) ; return ; } final ClassLoader tccl = WildFlySecurityManager . getCurrentContextClassLoaderPrivileged ( ) ; Runnable runnable = null ; try { WildFlySecurityManager . setCurrentContextClassLoaderPrivileged ( ejbDeploymentInformation . getDeploymentClassLoader ( ) ) ; classResolver . switchClassLoader ( ejbDeploymentInformation . getDeploymentClassLoader ( ) ) ; final EJBLocator < ? > locator ; try { locator = ( ( EJBLocator < ? > ) ( unmarshaller . readObject ( ) ) ) ; } catch ( Throwable e ) { throw ROOT_LOGGER . failedToReadEJBLocator ( e ) ; } final String viewClassName = locator . getViewType ( ) . getName ( ) ; if ( ! ( ejbDeploymentInformation . isRemoteView ( viewClassName ) ) ) { this . writeNoSuchEJBFailureMessage ( channelAssociation , invocationId , appName , moduleName , distinctName , beanName , viewClassName ) ; return ; } final ComponentView componentView = ejbDeploymentInformation . getView ( viewClassName ) ; final Method invokedMethod = this . findMethod ( componentView , methodName , methodParamTypes ) ; if ( invokedMethod == null ) { this . writeNoSuchEJBMethodFailureMessage ( channelAssociation , invocationId , appName , moduleName , distinctName , beanName , viewClassName , methodName , methodParamTypes ) ; return ; } final Object [ ] methodParams = new Object [ methodParamTypes . length ] ; if ( ( methodParamTypes . length ) > 0 ) { for ( int i = 0 ; i < ( methodParamTypes . length ) ; i ++ ) { try { methodParams [ i ] = unmarshaller . readObject ( ) ; } catch ( Throwable e ) { this . writeException ( channelAssociation , this . marshallerFactory , invocationId , e , null ) ; return ; } } } final Map < String , Object > attachments ; try { attachments = this . readAttachments ( unmarshaller ) ; } catch ( Throwable e ) { this . writeException ( channelAssociation , this . marshallerFactory , invocationId , e , null ) ; return ; } unmarshaller . finish ( ) ; runnable = new Runnable ( ) { @ Override public void run ( ) { if ( componentView . isAsynchronous ( invokedMethod ) ) { try { MethodInvocationMessageHandler . this . writeAsyncMethodNotification ( channelAssociation , invocationId ) ; } catch ( Throwable t ) { ROOT_LOGGER . failedToSendAsyncMethodIndicatorToClient ( t , invokedMethod ) ; } } Object result = null ; SecurityActions . remotingContextSetConnection ( channelAssociation . getChannel ( ) . getConnection ( ) ) ; try { result = invokeMethod ( invocationId , componentView , invokedMethod , methodParams , locator , attachments ) ; } catch ( Throwable throwable ) { try { if ( throwable instanceof EJBComponentUnavailableException ) { <START_BUG> EJB3_INVOCATION_LOGGER . debug ( ( ( ( ( "Cannot<seq2seq4repair_space>handle<seq2seq4repair_space>method<seq2seq4repair_space>invocation:<seq2seq4repair_space>" + invokedMethod ) + "<seq2seq4repair_space>on<seq2seq4repair_space>bean:<seq2seq4repair_space>" ) + beanName ) + "<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>EJB<seq2seq4repair_space>component<seq2seq4repair_space>unavailability<seq2seq4repair_space>exception.<seq2seq4repair_space>Returning<seq2seq4repair_space>a<seq2seq4repair_space>no<seq2seq4repair_space>such<seq2seq4repair_space>EJB<seq2seq4repair_space>available<seq2seq4repair_space>message<seq2seq4repair_space>back<seq2seq4repair_space>to<seq2seq4repair_space>client" ) ) ; <END_BUG> MethodInvocationMessageHandler . this . writeNoSuchEJBFailureMessage ( channelAssociation , invocationId , appName , moduleName , distinctName , beanName , viewClassName ) ; } else { MethodInvocationMessageHandler . this . writeException ( channelAssociation , MethodInvocationMessageHandler . this . marshallerFactory , invocationId , throwable , attachments ) ; } } catch ( Throwable ioe ) { ROOT_LOGGER . errorInvokingMethod ( throwable , invokedMethod , beanName , appName , moduleName , distinctName ) ; ROOT_LOGGER . couldNotWriteMethodInvocation ( ioe , invokedMethod , beanName , appName , moduleName , distinctName ) ; if ( ! ( ioe instanceof ObjectStreamException ) ) { IoUtils . safeClose ( channelAssociation . getChannel ( ) ) ; } } return ; } finally { SecurityActions . remotingContextClear ( ) ; } try { Affinity weakAffinity = null ; if ( ( locator instanceof StatefulEJBLocator ) && ( ( componentView . getComponent ( ) ) instanceof StatefulSessionComponent ) ) { final StatefulSessionComponent statefulSessionComponent = ( ( StatefulSessionComponent ) ( componentView . getComponent ( ) ) ) ; weakAffinity = MethodInvocationMessageHandler . this . getWeakAffinity ( statefulSessionComponent , ( ( StatefulEJBLocator < ? > ) ( locator ) ) ) ; } else if ( ( componentView . getComponent ( ) ) instanceof StatelessSessionComponent ) { final StatelessSessionComponent statelessSessionComponent = ( ( StatelessSessionComponent ) ( componentView . getComponent ( ) ) ) ; weakAffinity = statelessSessionComponent . getWeakAffinity ( ) ; } if ( weakAffinity != null ) { attachments . put ( WEAK_AFFINITY_CONTEXT_KEY , weakAffinity ) ; } writeMethodInvocationResponse ( channelAssociation , invocationId , result , attachments ) ; } catch ( Throwable ioe ) { boolean isAsyncVoid = ( componentView . isAsynchronous ( invokedMethod ) ) && ( invokedMethod . getReturnType ( ) . equals ( Void . TYPE ) ) ; if ( ! isAsyncVoid ) ROOT_LOGGER . couldNotWriteMethodInvocation ( ioe , invokedMethod , beanName , appName , moduleName , distinctName ) ; if ( ! ( ioe instanceof ObjectStreamException ) ) { IoUtils . safeClose ( channelAssociation . getChannel ( ) ) ; } return ; }

Fix:
EJB3_INVOCATION_LOGGER . debugf ( "Cannot<seq2seq4repair_space>handle<seq2seq4repair_space>method<seq2seq4repair_space>invocation:<seq2seq4repair_space>%s<seq2seq4repair_space>on<seq2seq4repair_space>bean:<seq2seq4repair_space>%s<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>EJB<seq2seq4repair_space>component<seq2seq4repair_space>unavailability<seq2seq4repair_space>exception.<seq2seq4repair_space>Returning<seq2seq4repair_space>a<seq2seq4repair_space>no<seq2seq4repair_space>such<seq2seq4repair_space>EJB<seq2seq4repair_space>available<seq2seq4repair_space>message<seq2seq4repair_space>back<seq2seq4repair_space>to<seq2seq4repair_space>client" , invokedMethod , beanName ) ;