Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3395

After saving configuration ametys restarts in safe mode

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 4.8.11, 4.9.0
    • None
    • None
    • None
    • 4.3 RC3

      How to reproduce :

      • Log in to the BO or FO _admin interface
      • Open the configiguration tool, and click on "save and restart"
      • >>Ametys restarts in safe mode

      Then if you restart using the restart button it's OK.

       

      2020-04-16 11:09:18,932 ERROR [org.ametys.core.group.directory.GroupDirectoryFactory] (http-nio-8080-exec-7;/_admin/plugins/admin/config/set) An error occured during the initialization of the GroupDirectory utilisateurs-ldap-dev
      java.lang.NullPointerException
      at org.ametys.core.util.Cacheable._createCache(Cacheable.java:143)
      at org.ametys.core.util.Cacheable.createCaches(Cacheable.java:136)
      at org.ametys.plugins.core.impl.group.directory.ldap.LdapGroupDirectory.init(LdapGroupDirectory.java:332)
      at org.ametys.core.group.directory.GroupDirectoryFactory.createGroupDirectory(GroupDirectoryFactory.java:136)
      at org.ametys.core.group.GroupDirectoryDAO._configureGroupDirectory(GroupDirectoryDAO.java:504)
      at org.ametys.core.group.GroupDirectoryDAO._read(GroupDirectoryDAO.java:444)
      at org.ametys.core.group.GroupDirectoryDAO.getGroupDirectories(GroupDirectoryDAO.java:147)
      at org.ametys.core.group.GroupDirectoriesDataSourceConsumer.getUsedDataSourceIds(GroupDirectoriesDataSourceConsumer.java:110)
      at org.ametys.core.datasource.DataSourceConsumerExtensionPoint.getUsedDataSourceIds(DataSourceConsumerExtensionPoint.java:65)
      at org.ametys.core.datasource.AbstractDataSourceManager.checkDataSources(AbstractDataSourceManager.java:538)
      at org.ametys.core.datasource.AbstractDataSourceManager.initialize(AbstractDataSourceManager.java:136)
      at org.ametys.core.datasource.SQLDataSourceManager.initialize(SQLDataSourceManager.java:230)
      at org.ametys.core.datasource.SQLDataSourceManager.initialize(SQLDataSourceManager.java:242)
      
      

          [RUNTIME-3395] After saving configuration ametys restarts in safe mode

          Apparently reproducible when a LDAP Datasource is not reachable.
          When restarting from normal mode => safe mode
          When restarting from safe mode => normal mode

          Cédric Damioli added a comment - Apparently reproducible when a LDAP Datasource is not reachable. When restarting from normal mode => safe mode When restarting from safe mode => normal mode

          Reproduced with 4.3RC4

          Adélaïde Palacios (Inactive) added a comment - Reproduced with 4.3RC4

          I did not find what I wanted in the log. To be retested carefully.

          Raphaël Franchet added a comment - I did not find what I wanted in the log. To be retested carefully.

          Raphaël Franchet added a comment - - edited
          2020-04-22 10:35:09,623 ERROR [org.ametys.plugins.core.impl.group.directory.ldap.LdapGroupDirectory] (http-nio-8080-exec-5;/_admin/plugins/admin/config/set) An error occured during the initialization of LDAPUserDirectory
          java.lang.NullPointerException
          	at org.ametys.core.util.ldap.AbstractLDAPConnector._delayedInitialize(AbstractLDAPConnector.java:93)
          	at org.ametys.plugins.core.impl.group.directory.ldap.LdapGroupDirectory.init(LdapGroupDirectory.java:321) 

           Another init called with no service

          Raphaël Franchet added a comment - - edited 2020-04-22 10:35:09,623 ERROR [org.ametys.plugins.core.impl.group.directory.ldap.LdapGroupDirectory] (http-nio-8080-exec-5;/_admin/plugins/admin/config/set) An error occured during the initialization of LDAPUserDirectory java.lang.NullPointerException at org.ametys.core.util.ldap.AbstractLDAPConnector._delayedInitialize(AbstractLDAPConnector.java:93) at org.ametys.plugins.core.impl.group.directory.ldap.LdapGroupDirectory.init(LdapGroupDirectory.java:321)  Another init called with no service

            Unassigned Unassigned
            adelaide Adélaïde Palacios (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: