{"record":{"id":"5bade456c2458fa5","repo":"conductor-oss/conductor","slug":"password-is-null-or-empty","errorCode":null,"errorMessage":"Password is null or empty","messagePattern":"Password is null or empty","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"amqp/src/main/java/com/netflix/conductor/contribs/queue/amqp/AMQPObservableQueue.java","lineNumber":480,"sourceCode":"            if (StringUtils.isEmpty(hosts)) {\n                throw new IllegalArgumentException(\"Hosts are undefined\");\n            }\n            return Address.parseAddresses(hosts);\n        }\n\n        private ConnectionFactory buildConnectionFactory() {\n            final ConnectionFactory factory = new ConnectionFactory();\n            // Get rabbitmq username from config\n            final String username = properties.getUsername();\n            if (StringUtils.isEmpty(username)) {\n                throw new IllegalArgumentException(\"Username is null or empty\");\n            } else {\n                factory.setUsername(username);\n            }\n            // Get rabbitmq password from config\n            final String password = properties.getPassword();\n            if (StringUtils.isEmpty(password)) {\n                throw new IllegalArgumentException(\"Password is null or empty\");\n            } else {\n                factory.setPassword(password);\n            }\n            // Get vHost from config\n            final String virtualHost = properties.getVirtualHost();\n            ;\n            if (StringUtils.isEmpty(virtualHost)) {\n                throw new IllegalArgumentException(\"Virtual host is null or empty\");\n            } else {\n                factory.setVirtualHost(virtualHost);\n            }\n            // Get server port from config\n            final int port = properties.getPort();\n            if (port <= 0) {\n                throw new IllegalArgumentException(\"Port must be greater than 0\");\n            } else {\n                factory.setPort(port);\n            }","sourceCodeStart":462,"sourceCodeEnd":498,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/amqp/src/main/java/com/netflix/conductor/contribs/queue/amqp/AMQPObservableQueue.java#L462-L498","documentation":"Builder.buildConnectionFactory() reads AMQPEventQueueProperties.getPassword(); if it is null or empty the Builder constructor throws. The password is set on the rabbitmq ConnectionFactory, so it is mandatory.","triggerScenarios":"Constructing `new AMQPObservableQueue.Builder(properties)` when the AMQP password property is missing or blank.","commonSituations":"The AMQP password property is not set; the secret store providing the password was not mounted or resolved to empty; the property key is misspelled.","solutions":["Set the password property to a non-empty value (preferably sourced from a secret store).","Confirm the secret/env backing the password is mounted before the Builder runs.","Verify the property key matches AMQPEventQueueProperties.getPassword()."],"exampleFix":"# before: password missing -> 'Password is null or empty'\n# (no conductor.amqp.password)\n\n# after: set the password (from a secret in production)\nconductor.amqp.password=guest","handlingStrategy":"validation","validationCode":"if (StringUtils.isEmpty(properties.getPassword())) {\n    throw new IllegalArgumentException(\"conductor.amqp.password must be set\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Set the AMQP password property from a secret store.","Confirm the secret/env backing the password is mounted and non-empty before the Builder runs.","Validate required credential properties at startup (without logging the value)."],"tags":["amqp","config","validation","credentials"],"backgroundTag":null,"analyzedSha":"cf7c3e4a8adfb158be778ab1ec525323c363cd3a","analyzedAt":"2026-08-14T03:33:19.897Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}