com.atlassian.jira.util.dbc.Assertions$NullArgumentException: username should not be null!

Atlassian JIRA | Ribbles | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    There is no way to get JIRA to reliably connect to an MSSQL database using windows authentication. Tested both with and without the username XML element. SQL connection string: {code:xml} <jdbc-datasource> <url>jdbc:jtds:sqlserver://dbserver:1439/JIRADB</url> <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class> <username>windowsUser</username> </jdbc-datasource> {code} Per JTDS documentation: (README.SSO) {code} In order for Single Sign On to work, jTDS must be able to load the native SPPI library (ntlmauth.dll). Place this DLL anywhere in the system path (defined by the PATH system variable) and you're all set. {code} JIRA startup error: {code} 2013-04-11 14:48:30,861 localhost-startStop-1 ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA. com.atlassian.jira.util.dbc.Assertions$NullArgumentException: username should not be null! at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:28) at com.atlassian.jira.util.dbc.Assertions.notBlank(Assertions.java:112) at com.atlassian.jira.config.database.JdbcDatasource.<init>(JdbcDatasource.java:177) at com.atlassian.jira.config.database.JdbcDatasource.<init>(JdbcDatasource.java:30) at com.atlassian.jira.config.database.JdbcDatasource$Builder.build(JdbcDatasource.java:605) at com.atlassian.jira.config.database.JdbcDatasource.parse(JdbcDatasource.java:408) at com.atlassian.jira.config.database.DatabaseConfigHandler.parseDatasource(DatabaseConfigHandler.java:73) at com.atlassian.jira.config.database.DatabaseConfigHandler.parse(DatabaseConfigHandler.java:33) at com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader.loadDatabaseConfiguration(AbstractJiraHomeDatabaseConfigurationLoader.java:57) at com.atlassian.jira.startup.SystemTenantProvider.getSystemDatabaseConfig(SystemTenantProvider.java:69) at com.atlassian.jira.startup.SystemTenantProvider.getSystemTenant(SystemTenantProvider.java:46) at com.atlassian.multitenant.MultiTenantContext.getSystemTenant(MultiTenantContext.java:473) at com.atlassian.multitenant.MultiTenantContext.defaultInit(MultiTenantContext.java:112) at com.atlassian.jira.startup.LauncherContextListener.initMultiTenantSystem(LauncherContextListener.java:145) at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:69) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code}

    Atlassian JIRA | 4 years ago | Ribbles
    com.atlassian.jira.util.dbc.Assertions$NullArgumentException: username should not be null!
  2. 0

    There is no way to get JIRA to reliably connect to an MSSQL database using windows authentication. Tested both with and without the username XML element. SQL connection string: {code:xml} <jdbc-datasource> <url>jdbc:jtds:sqlserver://dbserver:1439/JIRADB</url> <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class> <username>windowsUser</username> </jdbc-datasource> {code} Per JTDS documentation: (README.SSO) {code} In order for Single Sign On to work, jTDS must be able to load the native SPPI library (ntlmauth.dll). Place this DLL anywhere in the system path (defined by the PATH system variable) and you're all set. {code} JIRA startup error: {code} 2013-04-11 14:48:30,861 localhost-startStop-1 ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA. com.atlassian.jira.util.dbc.Assertions$NullArgumentException: username should not be null! at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:28) at com.atlassian.jira.util.dbc.Assertions.notBlank(Assertions.java:112) at com.atlassian.jira.config.database.JdbcDatasource.<init>(JdbcDatasource.java:177) at com.atlassian.jira.config.database.JdbcDatasource.<init>(JdbcDatasource.java:30) at com.atlassian.jira.config.database.JdbcDatasource$Builder.build(JdbcDatasource.java:605) at com.atlassian.jira.config.database.JdbcDatasource.parse(JdbcDatasource.java:408) at com.atlassian.jira.config.database.DatabaseConfigHandler.parseDatasource(DatabaseConfigHandler.java:73) at com.atlassian.jira.config.database.DatabaseConfigHandler.parse(DatabaseConfigHandler.java:33) at com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader.loadDatabaseConfiguration(AbstractJiraHomeDatabaseConfigurationLoader.java:57) at com.atlassian.jira.startup.SystemTenantProvider.getSystemDatabaseConfig(SystemTenantProvider.java:69) at com.atlassian.jira.startup.SystemTenantProvider.getSystemTenant(SystemTenantProvider.java:46) at com.atlassian.multitenant.MultiTenantContext.getSystemTenant(MultiTenantContext.java:473) at com.atlassian.multitenant.MultiTenantContext.defaultInit(MultiTenantContext.java:112) at com.atlassian.jira.startup.LauncherContextListener.initMultiTenantSystem(LauncherContextListener.java:145) at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:69) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code}

    Atlassian JIRA | 4 years ago | Ribbles
    com.atlassian.jira.util.dbc.Assertions$NullArgumentException: username should not be null!

    Root Cause Analysis

    1. com.atlassian.jira.util.dbc.Assertions$NullArgumentException

      username should not be null!

      at com.atlassian.jira.util.dbc.Assertions.notNull()
    2. com.atlassian.jira
      SystemTenantProvider.getSystemTenant
      1. com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:28)
      2. com.atlassian.jira.util.dbc.Assertions.notBlank(Assertions.java:112)
      3. com.atlassian.jira.config.database.JdbcDatasource.<init>(JdbcDatasource.java:177)
      4. com.atlassian.jira.config.database.JdbcDatasource.<init>(JdbcDatasource.java:30)
      5. com.atlassian.jira.config.database.JdbcDatasource$Builder.build(JdbcDatasource.java:605)
      6. com.atlassian.jira.config.database.JdbcDatasource.parse(JdbcDatasource.java:408)
      7. com.atlassian.jira.config.database.DatabaseConfigHandler.parseDatasource(DatabaseConfigHandler.java:73)
      8. com.atlassian.jira.config.database.DatabaseConfigHandler.parse(DatabaseConfigHandler.java:33)
      9. com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader.loadDatabaseConfiguration(AbstractJiraHomeDatabaseConfigurationLoader.java:57)
      10. com.atlassian.jira.startup.SystemTenantProvider.getSystemDatabaseConfig(SystemTenantProvider.java:69)
      11. com.atlassian.jira.startup.SystemTenantProvider.getSystemTenant(SystemTenantProvider.java:46)
      11 frames
    3. com.atlassian.multitenant
      MultiTenantContext.defaultInit
      1. com.atlassian.multitenant.MultiTenantContext.getSystemTenant(MultiTenantContext.java:473)
      2. com.atlassian.multitenant.MultiTenantContext.defaultInit(MultiTenantContext.java:112)
      2 frames
    4. com.atlassian.jira
      LauncherContextListener.contextInitialized
      1. com.atlassian.jira.startup.LauncherContextListener.initMultiTenantSystem(LauncherContextListener.java:145)
      2. com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:69)
      2 frames
    5. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      5 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames