Buggy code:
public abstract class EJRWTApplicationLauncher implements ApplicationConfiguration { private static final String THEME_DEFAULT_CSS = "theme//default.css" ; private static final String ICONS_FAVICON_ICO = "icons//favicon.ico" ; protected static final String THEME_DEFAULT = "org.entirej.applicationframework.rwt.Default" ; public void configure ( Application configuration ) { } protected String getFavicon ( ) { } protected String getLoadingImage ( ) { } protected String getLoadingMessage ( ) { } protected String getBaseThemeCSSLocation ( ) { } protected String getThemeCSSLocation ( ) { } protected String getWebPathContext ( ) { } protected String getBodyHtml ( ) { } protected void addOtherResources ( final Application configuration ) { } void addResource ( final Application configuration , final IResource resource ) { } public void createEntryPoint ( final Application configuration ) { configuration . setOperationMode ( SWT_COMPATIBILITY ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; if ( ( this . getClass ( ) . getClassLoader ( ) . getResource ( "application.ejprop" ) ) != null ) { EJFrameworkInitialiser . initialiseFramework ( "application.ejprop" ) ; } else if ( ( this . getClass ( ) . getClassLoader ( ) . getResource ( "EntireJApplication.properties" ) ) != null ) { EJFrameworkInitialiser . initialiseFramework ( "EntireJApplication.properties" ) ; } else { throw new RuntimeException ( "application.ejprop<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ; } EJCoreLayoutContainer layoutContainer = EJCoreProperties . getInstance ( ) . getLayoutContainer ( ) ; properties . put ( PAGE_TITLE , layoutContainer . getTitle ( ) ) ; String favicon = getFavicon ( ) ; if ( favicon == null ) { favicon = EJRWTApplicationLauncher . ICONS_FAVICON_ICO ; } else { try { <START_BUG> Image image = EJRWTImageRetriever . get ( favicon ) ; <END_BUG> if ( image == null ) { favicon = EJRWTApplicationLauncher . ICONS_FAVICON_ICO ; } } catch ( Exception e ) { favicon = EJRWTApplicationLauncher . ICONS_FAVICON_ICO ; } } properties . put ( FAVICON , favicon ) ; properties . put ( BODY_HTML , getBodyHtml ( ) ) ; properties . put ( THEME_ID , EJRWTApplicationLauncher . THEME_DEFAULT ) ; addOtherResources ( configuration ) ; configuration . addResource ( favicon , new EJRWTApplicationLauncher . FileResource ( ) ) ; configuration . addResource ( getLoadingImage ( ) , new EJRWTApplicationLauncher . FileResource ( ) ) ; configuration . addStyleSheet ( EJRWTApplicationLauncher . THEME_DEFAULT , "resource//theme//default.css" ) ; String baseThemeCSSLocation = getBaseThemeCSSLocation ( ) ; if ( baseThemeCSSLocation == null ) { baseThemeCSSLocation = EJRWTApplicationLauncher . THEME_DEFAULT_CSS ; } configuration . addStyleSheet ( EJRWTApplicationLauncher . THEME_DEFAULT , baseThemeCSSLocation ) ; configuration . addResource ( baseThemeCSSLocation , new EJRWTApplicationLauncher . FileResource ( ) ) ; if ( ( getThemeCSSLocation ( ) ) != null ) { configuration . addStyleSheet ( EJRWTApplicationLauncher . THEME_DEFAULT , getThemeCSSLocation ( ) ) ; configuration . addResource ( getThemeCSSLocation ( ) , new EJRWTApplicationLauncher . FileResource ( ) ) ; } configuration . addEntryPoint ( String . format ( "//%s" , getWebPathContext ( ) ) , new EntryPointFactory ( ) { public EntryPoint create ( ) { try { RWT . getServiceManager ( ) . registerServiceHandler ( SERVICE_HANDLER , new VACSSServiceHandler ( ) ) ; RWT . getServiceManager ( ) . registerServiceHandler ( EJRWTFileDownload . SERVICE_HANDLER , EJRWTFileDownload . newServiceHandler ( ) ) ; registerServiceHandlers ( ) ; } catch ( IllegalArgumentException e ) { } registerWidgetHandlers ( ) ; return new EntryPoint ( ) { public int createUI ( ) { EJRWTContext . initContext ( ) ; EJRWTImageRetriever . setGraphicsProvider ( new EJRWTGraphicsProvider ( ) { public Image getImage ( String name , ClassLoader loader ) { return RWTUtils . getImage ( name , loader ) ; } @ Override public void open ( String output , String outputName ) { EJRWTFileDownload . download ( output , outputName ) ; } public float getAvgCharWidth ( Font font ) { return RWTUtils . getAvgCharWidth ( font ) ; } public int getCharHeight ( Font font ) { return RWTUtils . getCharHeight ( font ) ; } public void rendererSection ( final Section section ) { section . removeListener ( Dispose , section . getListeners ( Dispose ) [ 0 ] ) ; section . removeListener ( Resize , section . getListeners ( Resize ) [ 0 ] ) ; section . setFont ( section . getParent ( ) . getFont ( ) ) ; section . setForeground ( section . getParent ( ) . getForeground ( ) ) ; Object adapter = section . getAdapter ( IWidgetGraphicsAdapter . class ) ; IWidgetGraphicsAdapter gfxAdapter = ( ( IWidgetGraphicsAdapter ) ( adapter ) ) ; gfxAdapter . setRoundedBorder ( 1 , section . getTitleBarBackground ( ) , 2 , 2 , 0 , 0 ) ; Listener listener = new Listener ( ) { public void handleEvent ( Event e ) { Object adapter = section . getAdapter ( IWidgetGraphicsAdapter . class ) ; IWidgetGraphicsAdapter gfxAdapter = ( ( IWidgetGraphicsAdapter ) ( adapter ) ) ; Color [ ] gradientColors = new Color [ ] { section . getTitleBarBorderColor ( ) , section . getBackground ( ) , section . getTitleBarBackground ( ) , section . getBackground ( ) , section . getBackground ( ) } ; int gradientPercent = 0 ; Rectangle bounds = section . getClientArea ( ) ; if ( ( bounds . height ) != 0 ) { gradientPercent = ( 30 * 100 ) // ( bounds . height ) ; if ( gradientPercent > 100 ) { gradientPercent = 100 ; } } int [ ] percents = new int [ ] { 0 , 1 , 2 , gradientPercent , 100 } ; gfxAdapter . setBackgroundGradient ( gradientColors , percents , true ) ; gfxAdapter . setRoundedBorder ( 1 , section . getBackground ( ) , 4 , 4 , 0 , 0 ) ; } } ; section . addListener ( Dispose , listener ) ; section . addListener ( Resize , listener ) ; } } ) ; EJRWTApplicationManager applicationManager = null ;

Fix:
Image image = RWTUtils . getImage ( favicon , getClass ( ) . getClassLoader ( ) ) ;