Assert.hasText() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.Assert.hasText
(source)

Typical Exception Messages

  1. 'uriTemplate' must not be null
  2. A granted authority textual representation is required
  3. An id is required to lookup a FlowDefinition
  4. Failed to load ApplicationContext
  5. Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.IllegalArgumentException: Pattern cannot be null or empty
  6. 'beanName' must not be empty
  7. Could not read document: Template must not be null or empty! (through reference chain: com.enterprise.platform.persistence.entity.FatturaCliente ["tipoDocumento"] ); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Template must not be null or empty! (through reference chain: com.enterprise.platform.persistence.entity.FatturaCliente ["tipoDocumento"] )
  8. Driver name cannot be empty
  9. Name for parameter binding must not be null or empty! For named parameters you need to use @Param for query method parameters on Java versions < 8.; nested exception is java.lang.IllegalArgumentException: Name for parameter binding must not be null or empty! For named parameters you need to use @Param for query method parameters on Java versions < 8.
  10. Principal required

Specific cases

External results for this pattern (59)

  1. anhduc1985via GitHub3 days ago
    Error creating bean with name 'elasticsearchJavaClientDemoApplication': Unsatisfied dependency expressed through field 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [com/example/elasticsearchjavaclientdemo/ElasticsearchConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalArgumentException: [Assertion failed] clusterNodes settings missing.
    Show stack trace
  2. ontologiaevia GitHub2 months ago
    Error creating bean with name 'innerEntityManagerFactory' defined in class path resource [net/bitnine/agensbrowser/bundle/config/dao/PersistenceInnerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactory' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'innerDataSource' defined in class path resource [net/bitnine/agensbrowser/bundle/config/dao/PersistenceInnerConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalArgumentException: Property 'driverClassName' must not be empty
    Show stack trace
  3. danielvaughanvia GitHub2 months ago
    Failed to updated state of envelope with ID 5b0835dcac80bd0007712325 to state PENDING
    Show stack trace
  4. renannpradovia GitHub2 months ago
    Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Unsatisfied dependency expressed through method 'dataSource' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cloudSqlDataSourceProperties' defined in class path resource [org/springframework/cloud/gcp/autoconfigure/sql/GcpCloudSqlAutoConfiguration$CloudSqlDataSourcePropertiesConfiguration.class]: Unsatisfied dependency expressed through method 'cloudSqlDataSourceProperties' parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultPostgreSqlJdbcInfoProvider' defined in class path resource [org/springframework/cloud/gcp/autoconfigure/sql/GcpCloudSqlAutoConfiguration$PostgreSqlJdbcInfoProviderConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.sql.CloudSqlJdbcInfoProvider]: Factory method 'defaultPostgreSqlJdbcInfoProvider' threw exception; nested exception is java.lang.IllegalArgumentException: A database name must be provided.
    Show stack trace
  5. mraiblevia GitHub3 months ago
  6. nycLivevia GitHub3 months ago
  7. finelychengvia GitHub3 months ago
    issuer cannot be empty
    Show stack trace
  8. mancini0via GitHub4 months ago
  9. Matthew T. Adamsvia Spring JIRA4 months ago