Buggy code:
public UUIDProvider uuidProvider = new DefaultUUIDProvider ( ) ; protected final Class < ? extends AtmosphereInterceptor > [ ] defaultInterceptors = new Class [ ] { CorsInterceptor . class , CacheHeadersInterceptor . class , PaddingAtmosphereInterceptor . class , AndroidAtmosphereInterceptor . class , HeartbeatInterceptor . class , SSEAtmosphereInterceptor . class , JSONPAtmosphereInterceptor . class , JavaScriptProtocol . class , WebSocketMessageSuspendInterceptor . class , OnDisconnectInterceptor . class , IdleResourceInterceptor . class } ; public static final AtmosphereHandler REFLECTOR_ATMOSPHEREHANDLER = new AbstractReflectorAtmosphereHandler ( ) { @ Override public void onRequest ( AtmosphereResource resource ) throws IOException { } @ Override public void destroy ( ) { } } ; public void setAndConfigureAtmosphereResourceFactory ( AtmosphereResourceFactory arFactory ) { } public static final class AtmosphereHandlerWrapper { public final AtmosphereHandler atmosphereHandler ; public Broadcaster broadcaster ; public String mapping ; public LinkedList < AtmosphereInterceptor > interceptors = new LinkedList < AtmosphereInterceptor > ( ) ; public boolean create ; public AtmosphereHandlerWrapper ( BroadcasterFactory broadcasterFactory , AtmosphereHandler atmosphereHandler , String mapping ) { } public AtmosphereHandlerWrapper ( AtmosphereHandler atmosphereHandler , Broadcaster broadcaster ) { } @ Override public String toString ( ) { } } public static enum MetaServiceAction { INSTALL ( new AtmosphereFramework . MetaServiceAction . InstallMetaServiceProcedure ( ) ) , EXCLUDE ( new AtmosphereFramework . MetaServiceAction . ExcludeMetaServiceProcedure ( ) ) ; private AtmosphereFramework . MetaServiceAction . MetaServiceProcedure procedure ; private MetaServiceAction ( final AtmosphereFramework . MetaServiceAction . MetaServiceProcedure p ) { } public void apply ( final AtmosphereFramework fwk , final Class < ? > clazz ) throws Exception { } private static interface MetaServiceProcedure { void apply ( final AtmosphereFramework fwk , final Class < ? > clazz ) throws Exception { } } private static class InstallMetaServiceProcedure implements AtmosphereFramework . MetaServiceAction . MetaServiceProcedure { @ Override public void apply ( final AtmosphereFramework fwk , final Class c ) throws Exception { } } private static class ExcludeMetaServiceProcedure implements AtmosphereFramework . MetaServiceAction . MetaServiceProcedure { @ Override public void apply ( final AtmosphereFramework fwk , final Class < ? > c ) { } } } public static class DefaultAtmosphereObjectFactory implements AtmosphereObjectFactory < Object > { public String toString ( ) { } @ Override public void configure ( AtmosphereConfig config ) { } @ Override public < T , U extends T > U newClassInstance ( Class < T > classType , Class < U > defaultType ) throws IllegalAccessException , InstantiationException { } @ Override public AtmosphereObjectFactory allowInjectionOf ( Object o ) { } } public AtmosphereFramework ( ) { } public AtmosphereFramework ( ServletConfig sc ) throws ServletException { } public AtmosphereFramework ( boolean isFilter , boolean autoDetectHandlers ) { } private void populateBroadcasterType ( ) { } private void populateObjectFactoryType ( ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , List < AtmosphereInterceptor > l ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h ) { } private AtmosphereFramework addMapping ( String path , AtmosphereFramework . AtmosphereHandlerWrapper w ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , String broadcasterId , List < AtmosphereInterceptor > l ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , String broadcasterId ) { } private void initServletProcessor ( AtmosphereHandler h ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , Broadcaster broadcaster , List < AtmosphereInterceptor > l ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , Broadcaster broadcaster ) { } public AtmosphereFramework removeAtmosphereHandler ( String mapping ) { } public AtmosphereFramework removeAllAtmosphereHandler ( ) { } public AtmosphereFramework removeAllInitParams ( ) { } public AtmosphereFramework addInitParameter ( String name , String value ) { } protected void readSystemProperties ( ) { } public void patchContainer ( ) { } public AtmosphereFramework init ( ) { } public AtmosphereFramework init ( final ServletConfig sc ) throws ServletException { } protected void preventOOM ( ) { } public AtmosphereFramework init ( final ServletConfig sc , boolean wrap ) throws ServletException { } protected ServletConfig servletConfig ( final ServletConfig sc , boolean wrap ) { } public void reconfigureInitParams ( boolean reconfigureInitParams ) { } private void info ( ) { } protected void universe ( ) { } private void configureAnnotationPackages ( ) { } protected void analytics ( ) { } protected void configureAtmosphereInterceptor ( ServletConfig sc ) { } protected AtmosphereInterceptor newAInterceptor ( Class < ? extends AtmosphereInterceptor > a ) { } protected void initGlobalInterceptors ( ) { } public void initHandlerInterceptors ( LinkedList < AtmosphereInterceptor > l ) { } protected void initInterceptors ( ) { } protected void configureWebDotXmlAtmosphereHandler ( ServletConfig sc ) { } protected void configureScanningPackage ( ServletConfig sc , String value ) { } protected void defaultPackagesToScan ( ) { } public void configureBroadcasterFactory ( ) { } protected void configureBroadcaster ( ) { } protected void installAnnotationProcessor ( ServletConfig sc ) { } protected void doInitParamsForWebSocket ( ServletConfig sc ) { } protected void doInitParams ( ServletConfig sc ) { } protected void doInitParams ( ServletConfig sc , boolean reconfigure ) { } public void loadConfiguration ( ServletConfig sc ) throws ServletException { } protected boolean detectSupportedFramework ( ServletConfig sc ) throws Exception { } protected void configureDetectedFramework ( ReflectorServletProcessor rsp , boolean isJersey ) { } protected String lookupDefaultBroadcasterType ( String defaultB ) { } protected AtmosphereObjectFactory lookupDefaultObjectFactoryType ( ) { } public void sessionSupport ( boolean sessionSupport ) { } public void initAtmosphereHandler ( ServletConfig sc ) throws ServletException { } public void initWebSocket ( ) { } public void initEndpointMapper ( ) { } public AtmosphereFramework destroy ( ) { } public AtmosphereFramework resetStates ( ) { } protected void loadMetaService ( ) { } protected void loadAtmosphereDotXml ( InputStream stream , URLClassLoader c ) throws IOException , ServletException { } public AtmosphereFramework setAsyncSupport ( AsyncSupport asyncSupport ) { } public AtmosphereFramework setCometSupport ( AsyncSupport asyncSupport ) { } public AsyncSupport getAsyncSupport ( ) { } public AsyncSupport getCometSupport ( ) { } protected AsyncSupportResolver createAsyncSupportResolver ( ) { } protected void autoDetectContainer ( ) { } public void autoDetectAtmosphereHandlers ( ServletContext servletContext , URLClassLoader classloader ) throws MalformedURLException , URISyntaxException { } public void loadAtmosphereHandlersFromPath ( URLClassLoader classloader , String realPath ) { } protected void autoDetectWebSocketHandler ( ServletContext servletContext , URLClassLoader classloader ) throws MalformedURLException , URISyntaxException { } protected void loadWebSocketFromPath ( URLClassLoader classloader , String realPath ) { } private void getFiles ( File f ) { } public AtmosphereFramework configureRequestResponse ( AtmosphereRequest req , AtmosphereResponse res ) throws UnsupportedEncodingException { } public Action doCometSupport ( AtmosphereRequest req , AtmosphereResponse res ) throws IOException , ServletException { if ( isDestroyed . get ( ) ) return Action . CANCELLED ; Action a = null ; try { configureRequestResponse ( req , res ) ; a = asyncSupport . service ( req , res ) ; } catch ( IllegalStateException ex ) { <START_BUG> boolean isJBoss = ex . getMessage ( ) . startsWith ( "JBoss<seq2seq4repair_space>failed" ) ; <END_BUG>

Fix:
boolean isJBoss = ( ( ex . getMessage ( ) ) == null ) ? false : ex . getMessage ( ) . startsWith ( "JBoss<seq2seq4repair_space>failed" ) ;