Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Strange Grouper-Loader Error

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Strange Grouper-Loader Error

Chronological Thread 
  • From: Holger Dippel <>
  • To: "grouper-users " <>
  • Subject: [grouper-users] Strange Grouper-Loader Error
  • Date: Wed, 6 Jun 2012 12:19:51 -0400 (EDT)


I am seeing this error in the logs when testing the grouper loader configuration:

2012-06-06 12:03:08,956: [DefaultQuartzScheduler_Worker-9] ERROR GrouperLoaderConfig.retrieveDbProfile(243) -  - Cant have a database named 'grouper' in the  This is a special name for the database

Which seems to be related to this code:
  public static GrouperLoaderDb retrieveDbProfile(String name) {
    String pass = null;
    String url = "null;"
    String driver = null;
    boolean isGrouper = StringUtils.equals(name, GROUPER_DB_NAME);
    String user = null;
    if (isGrouper) {
      //the name "hibernate" is a special term, which could be in the, 
      //but defaults to
      Properties properties = GrouperUtil.propertiesFromResourceName(
      user = properties.getProperty("hibernate.connection.username");
      pass = properties.getProperty("hibernate.connection.password");
      url = "properties.getProperty("hibernate.connection.url");"
      driver = properties.getProperty("hibernate.connection.driver_class");
    } else {      
      //first look in
      user = getPropertyString("db." + name + ".user");
      if (!StringUtils.isBlank(user)) {
        if (isGrouper) {
          throw new RuntimeException("Cant have a database named 'grouper' in " +
          		"the  This is a special name for the " +
          		" database");
        pass = getPropertyString("db." + name + ".pass");
        url = "getPropertyString("db."" + name + ".url");
        driver = getPropertyString("db." + name + ".driver");
      } else {
        throw new RuntimeException("Cant find the db connection named: '" + name + "' in " +
        		"the  Should have entries: db." + name + ".user, db." + name 
        		+ ".pass, db." + name + ".url, db." + name + ".driver");
    //might be in external file
    pass = Morph.decryptIfFile(pass);
    GrouperLoaderDb grouperLoaderDb = new GrouperLoaderDb(user, pass, url, driver);
    return grouperLoaderDb;
Our loader database name is "dev_db" which clearly bypasses the first if (isGrouper) check because isGrouper = false but then throws the exception in the second if (isGrouper) for no good reason. From what I can tell there's nothing related to database config in our file that is named "grouper".

Otherwise it seems to work though.


Holger Dippel
Assistant Director for Infrastructure Integration
University of Massachusetts Dartmouth
285 Old Westport Road • North Dartmouth, MA 02747

508-999-9181 •

CITS will never ask you for your password or other confidential information via email. Beware of phishing scams where email and/or malicious web sites try to trick users into entering their username and password.
For more information about password security please visit:

Archive powered by MHonArc 2.6.16.

Top of Page