List of usage examples for java.lang NoClassDefFoundError getMessage
public String getMessage()
From source file:sos.settings.SOSSettingsDialog.java
/** * Rechte lesen/*from w ww. jav a2s . c om*/ * * @param application * Name der Applikation * @param section * Name der Sektion * @param entry * Name des Entries * @return boolean Fehlerzustand */ private boolean getRights(String application, String section, String entry) throws Exception { this.debug(3, "getRights : application = " + application + " section = " + section + " entry = " + entry + " this.aclRange = " + this.aclRange); this.resetRights(); if (this.hasAcls) { if (this.aclRange.equals("application")) { // Rechte einer bestimmten Applikation if (this.allAcls.containsKey("[" + application + "][application]")) { String identifier = this.allAcls.get("[" + application + "][application]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte fr alle Applikationen else if (this.allAcls.containsKey("[" + this.allAclNote + "][application]")) { String identifier = this.allAcls.get("[" + this.allAclNote + "][application]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } } // range application else if (this.aclRange.equals("section")) { // Rechte fr eine bestimmte Sektion einer bestimmten // Applikation if (this.allAcls.containsKey("[" + application + "][section][" + section + "]")) { String identifier = this.allAcls.get("[" + application + "][section][" + section + "]") .toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } //Rechte fr alle Sektionen einer bestimmten Applikation else if (this.allAcls.containsKey("[" + application + "][section][" + this.allAclNote + "]")) { String identifier = this.allAcls.get("[" + application + "][section][" + this.allAclNote + "]") .toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte einer bestimmten Applikation else if (this.allAcls.containsKey("[" + application + "][application]")) { String identifier = this.allAcls.get("[" + application + "][application]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte fr alle Applikationen else if (this.allAcls.containsKey("[" + this.allAclNote + "][application]")) { String identifier = this.allAcls.get("[" + this.allAclNote + "][application]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } } // range section else if (this.aclRange.equals("entry")) { //Rechte fr einen bestimmten Entry in einer bestimmten Sektion // einer bestimmten Applikation if (this.allAcls.containsKey("[" + application + "][entry][" + section + "][" + entry + "]")) { String identifier = this.allAcls .get("[" + application + "][entry][" + section + "][" + entry + "]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte fr alle Entry in einer bestimmten Sektion einer // bestimmten Applikation else if (this.allAcls .containsKey("[" + application + "][entry][" + section + "][" + this.allAclNote + "]")) { String identifier = this.allAcls .get("[" + application + "][entry][" + section + "][" + this.allAclNote + "]") .toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte fr eine bestimmte Sektion einer bestimmten // Applikation else if (this.allAcls.containsKey("[" + application + "][section][" + section + "]")) { String identifier = this.allAcls.get("[" + application + "][section][" + section + "]") .toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } //Rechte fr alle Sektionen einer bestimmten Applikation else if (this.allAcls.containsKey("[" + application + "][section][" + this.allAclNote + "]")) { String identifier = this.allAcls.get("[" + application + "][section][" + this.allAclNote + "]") .toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte einer bestimmten Applikation else if (this.allAcls.containsKey("[" + application + "][application]")) { String identifier = this.allAcls.get("[" + application + "][application]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } // Rechte fr alle Applikationen else if (this.allAcls.containsKey("[" + this.allAclNote + "][application]")) { String identifier = this.allAcls.get("[" + this.allAclNote + "][application]").toString(); try { sos.acl.SOSAcl acl = new sos.acl.SOSAcl(identifier); acl.setLocale(this.locale); if (this.debugLevel > 0) { acl.setOut(this.out); acl.setDebugLevel(this.debugLevel); } acl.setTableAcls(this.tableAcls); acl.setConnection(this.connection); acl.get(identifier); this.setRights(acl); } catch (NoClassDefFoundError e) { throw new Exception("Class not found (sos.acl.jar) : " + e.getMessage()); } catch (Exception e) { throw new Exception(e.getMessage()); } } } // range entry else { throw new Exception(this.rb.getMessage("sos.settings.dialog.err_acls_invalid_scope")); } } // if hasAcl return true; }