Buggy code:
public class BasicDatabase implements Database , JarReader , ModuleControl , ModuleSupportable , PropertySetCallback { private boolean active ; private AuthenticationService authenticationService ; protected AccessFactory af ; protected PropertyFactory pf ; protected ClassFactory cfDB ; protected LanguageConnectionFactory lcf ; protected LanguageFactory lf ; protected Object resourceAdapter ; private Locale databaseLocale ; private RuleBasedCollator ruleBasedCollator ; private int spaceInt ; private boolean spaceIntSet ; private DateFormat dateFormat ; private DateFormat timeFormat ; private DateFormat timestampFormat ; private UUID myUUID ; private boolean normalizeToUpper = true ; protected boolean lastToBoot ; public boolean canSupport ( Properties startParams ) { } protected Properties allParams ; public void boot ( boolean create , Properties startParams ) throws StandardException { } public void stop ( ) { } public int getEngineType ( ) { } public boolean isReadOnly ( ) { } public LanguageConnectionContext setupConnection ( ContextManager cm , String user , String drdaID , String dbname ) throws StandardException { } public void pushDbContext ( ContextManager cm ) { } public final AuthenticationService getAuthenticationService ( ) { } public void freeze ( ) throws SQLException { } public void unfreeze ( ) throws SQLException { } public void backup ( String backupDir ) throws SQLException { } public void backup ( File backupDir ) throws SQLException { } public void backupAndEnableLogArchiveMode ( String backupDir , boolean deleteOnlineArchivedLogFiles ) throws SQLException { } public void backupAndEnableLogArchiveMode ( File backupDir , boolean deleteOnlineArchivedLogFiles ) throws SQLException { } public void disableLogArchiveMode ( boolean deleteOnlineArchivedLogFiles ) throws SQLException { } public void checkpoint ( ) throws SQLException { } public Locale getLocale ( ) { } public final UUID getId ( ) { } public Locale getCurrentLocale ( ) throws StandardException { } public RuleBasedCollator getCollator ( ) throws StandardException { } public DateFormat getDateFormat ( ) throws StandardException { } public DateFormat getTimeFormat ( ) throws StandardException { } public DateFormat getTimestampFormat ( ) throws StandardException { } private static StandardException noLocale ( ) { } public void setLocale ( Locale locale ) { } public boolean isActive ( ) { } public BasicDatabase ( ) { } protected UUID makeDatabaseID ( boolean create , Properties startParams ) throws StandardException { } public void dropAllJDBCMetaDataSPSes ( ) throws SQLException { } public Object getResourceAdapter ( ) { } public void init ( boolean dbOnly , Dictionary p ) { } public boolean validate ( String key , Serializable value , Dictionary p ) throws StandardException { } public Serviceable apply ( String key , Serializable value , Dictionary p ) throws StandardException { } public Serializable map ( String key , Serializable value , Dictionary p ) { } protected void createFinished ( ) throws StandardException { } protected String getClasspath ( Properties startParams ) { } protected void bootClassFactory ( boolean create , Properties startParams ) throws StandardException { } protected TransactionController getConnectionTransaction ( ContextManager cm ) throws StandardException { } protected AuthenticationService bootAuthenticationService ( boolean create , Properties props ) throws StandardException { } protected void bootValidation ( boolean create , Properties startParams ) throws StandardException { } protected void bootStore ( boolean create , Properties startParams ) throws StandardException { } protected Properties getAllDatabaseProperties ( ) throws StandardException { } protected void bootResourceAdapter ( boolean create , Properties startParams ) { } protected void pushClassFactoryContext ( ContextManager cm , ClassFactory cf ) { } public Object readJarFile ( String schemaName , String sqlName ) throws StandardException { DataDictionaryContext ddc = ( ( DataDictionaryContext ) ( ContextService . getContext ( CONTEXT_ID ) ) ) ; DataDictionary dd = ddc . getDataDictionary ( ) ; SchemaDescriptor sd = dd . getSchemaDescriptor ( schemaName , null , true ) ; FileInfoDescriptor fid = dd . getFileInfoDescriptor ( sd , sqlName ) ; if ( fid == null ) throw StandardException . newException ( LANG_FILE_DOES_NOT_EXIST , sqlName , schemaName ) ; long generationId = fid . getGenerationId ( ) ; FileResource fr = af . getTransaction ( ddc . getContextManager ( ) ) . getFileHandler ( ) ; String externalName = JarDDL . mkExternalName ( schemaName , sqlName , fr . getSeparatorChar ( ) ) ; Object f = fr . getAsFile ( externalName , generationId ) ; if ( f instanceof File ) return f ; try { return fr . getAsStream ( externalName , generationId ) ; } catch ( IOException ioe ) { <START_BUG> throw StandardException . newException ( LANG_FILE_ERROR , ioe . toString ( ) , ioe ) ; <END_BUG> } } }

Fix:
throw StandardException . newException ( LANG_FILE_ERROR , ioe , ioe . toString ( ) ) ;