Example usage for java.lang IllegalAccessError printStackTrace

List of usage examples for java.lang IllegalAccessError printStackTrace

Introduction

In this page you can find the example usage for java.lang IllegalAccessError printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.apache.webdav.ui.WebdavSystemView.java

public WebdavSystemView(String uri, String rootPath, String username, String password)
        throws IllegalAccessError, URIException, IOException {
    try {/*from   ww w .jav a 2  s.c  om*/
        this.rootURL = uriToHttpURL(uri + rootPath);
        this.uri = uri;
        this.rootURL.setUserinfo(username, password);
        this.username = username;
        this.password = password;
        this.rootPath = rootPath;

        this.connect();
        //System.out.println("Connected successfully to  : " + this.rootURL);
        this.disconnect();

        // Create home directory object
        this.homedir = new WebdavFile(this.rootURL, this.rootURL);
        //System.out.println("Homedir : " + this.homedir);
    } catch (IllegalAccessError e) {
        System.err.println(e.toString());
        e.printStackTrace();
        throw e;
    } catch (URIException e) {
        System.err.println(e.toString());
        e.printStackTrace();
        throw e;
    } catch (IOException e) {
        System.err.println(e.toString());
        e.printStackTrace();
        throw e;
    }

}

From source file:org.columba.calendar.CalendarComponent.java

/**
 * /* w ww . j a va  2s .  com*/
 */
public CalendarComponent() throws Exception {
    super();

    try {
        // com.miginfocom.util.LicenseValidator.setLicenseKey("Cu=Frederik_Dietz\nCo=OpenSource\nDm=false\nEx=0\nSignature=302C021408B54A0B041E79362B1951E9FDB9AFEAD0EBFBDD021409F4830B4AD832766388107CB1D38126A9473C0C");
        com.miginfocom.util.LicenseValidator.setLicenseKey(getClass().getResourceAsStream("/license.lic"));

    } catch (IllegalAccessError e) {
        System.out.println("License Code Invalid");

        e.printStackTrace();
    }
}