Example usage for org.apache.commons.configuration ConfigurationException printStackTrace

List of usage examples for org.apache.commons.configuration ConfigurationException printStackTrace

Introduction

In this page you can find the example usage for org.apache.commons.configuration ConfigurationException printStackTrace.

Prototype

public void printStackTrace(PrintStream out) 

Source Link

Usage

From source file:com.shmsoft.dmass.main.ColumnMetadata.java

private void init() {
    try {/*from  w w  w  .j  av a  2  s  . com*/
        metadataNames = new SHMcloudConfiguration(metadataNamesFile);
    } catch (ConfigurationException e) {
        System.out.println("Error: file " + metadataNamesFile + " could not be read");
        e.printStackTrace(System.out);
    }
    Iterator numberKeys = metadataNames.getKeys();
    ArrayList<String> stringKeys = new ArrayList<String>();
    while (numberKeys.hasNext()) {
        stringKeys.add((String) numberKeys.next());
    }
    Collections.sort(stringKeys);
    for (String key : stringKeys) {
        String[] aka = metadataNames.getStringArray(key);
        String realName = aka[0];
        addMetadataValue(realName, "");
        // skip the  first one, which is the alias of itself
        for (int i = 1; i < aka.length; ++i) {
            String alias = aka[i];
            aliases.put(alias, realName);
        }
    }
    standardHeaderSize = headers.size();
}

From source file:org.rockyroadshub.planner.loader.PropertyLoader.java

public void commit() {
    try {//from  w  ww. j  av  a 2s  .  c om
        save();
    } catch (ConfigurationException ex) {
        ex.printStackTrace(System.out);
    }
}