Details
-
Bug
-
Resolution: Fixed
-
Minor
-
4.6.0
-
None
Description
Tracked down to commit in 4.6.0 GRP-4927: subject source intermittently disappears when there are database connection issues. In this commit, if the hibernate connection fails, it tries again with a simpler select statement. But if you're using the standalone client, there is no hibernate connection, so the second test will also fail.
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000 -jar grouperClient-4.6.0.jar --operation=getSubjectsWs --subjectIds=GrouperSystem --debug=true
|
Listening for transport dt_socket at address: 8000
|
Exception in thread "main" java.lang.ExceptionInInitializerError
|
Caused by: java.lang.RuntimeException: Problem reading config: 'database:grouper'
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase$ConfigFile.retrieveContents(ConfigPropertiesCascadeBase.java:765)
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFiles(ConfigPropertiesCascadeBase.java:1012)
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFiles(ConfigPropertiesCascadeBase.java:892)
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveFromConfigFileOrCache(ConfigPropertiesCascadeBase.java:1114)
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase.retrieveConfig(ConfigPropertiesCascadeBase.java:108)
|
at edu.internet2.middleware.grouperClient.util.GrouperClientConfig.retrieveConfig(GrouperClientConfig.java:51)
|
at edu.internet2.middleware.grouperClient.util.GrouperClientUtils.retrieveLog(GrouperClientUtils.java:380)
|
at edu.internet2.middleware.grouperClient.GrouperClient.<clinit>(GrouperClient.java:190)
|
Caused by: java.lang.RuntimeException: error
|
at edu.internet2.middleware.grouperClient.config.db.ConfigDatabaseLogic.retrieveConfigMap(ConfigDatabaseLogic.java:312)
|
at edu.internet2.middleware.grouperClient.config.db.ConfigDatabaseLogic.retrieveConfigInputStream(ConfigDatabaseLogic.java:172)
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase$ConfigFileType$1.inputStream(ConfigPropertiesCascadeBase.java:598)
|
at edu.internet2.middleware.grouperClient.config.ConfigPropertiesCascadeBase$ConfigFile.retrieveContents(ConfigPropertiesCascadeBase.java:758)
|
... 7 more
|
Caused by: java.lang.RuntimeException: Error connection to database to get configuration
|
at edu.internet2.middleware.grouperClient.config.db.ConfigDatabaseLogic.configTableExistsHelper(ConfigDatabaseLogic.java:1115)
|
at edu.internet2.middleware.grouperClient.config.db.ConfigDatabaseLogic.configTableExists(ConfigDatabaseLogic.java:1046)
|
at edu.internet2.middleware.grouperClient.config.db.ConfigDatabaseLogic.retrieveConfigMap(ConfigDatabaseLogic.java:244)
|
... 10 more
|
Caused by: java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "theConnection" is null
|
at edu.internet2.middleware.grouperClient.config.db.ConfigDatabaseLogic.configTableExistsHelper(ConfigDatabaseLogic.java:1107)
|
... 12 more
|
grouper.client.properties
grouperClient.webService.url = https://localhost:8443/grouper-ws/servicesRest
|
grouperClient.webService.login = GrouperSystem
|
grouperClient.webService.password = pass
|
grouperClient.https.customSocketFactory = edu.internet2.middleware.grouperClient.ssl.EasySslSocketFactory
|