java.lang.IllegalArgumentException: Principal must not be null Stack trace: java.lang.IllegalArgumentException: Principal must not be null

Stack Overflow | Ali Dufour | 4 months ago
  1. 0

    Spring Boot 1.4: Principal must not be null exception

    Stack Overflow | 4 months ago | Ali Dufour
    java.lang.IllegalArgumentException: Principal must not be null Stack trace: java.lang.IllegalArgumentException: Principal must not be null
  2. 0

    JMS message listener error

    Stack Overflow | 8 months ago | user3649231
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.apache.activemq.ActiveMQConnectionFactory kr.ac.jbnu.sql.rded.config.AppConfig.amqFactory; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'amqConnectionFactory' defined in class path resource [kr/ac/jbnu/sql/rded/config/AppConfig.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.jms.ConnectionFactory]: Error creating bean with name 'cachingConnectionFactory' defined in class path resource [kr/ac/jbnu/sql/rded/config/AppConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jms.connection.CachingConnectionFactory]: Circular reference involving containing bean 'appConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'cachingConnectionFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Target ConnectionFactory must not be null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cachingConnectionFactory' defined in class path resource [kr/ac/jbnu/sql/rded/config/AppConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jms.connection.CachingConnectionFactory]: Circular reference involving containing bean 'appConfig' - consider declaring the factory method as static for independence from its containing instance. Factory method 'cachingConnectionFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Target ConnectionFactory must not be null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    RemoteFileTemplate throws 'remoteDirectoryExpression' is required when using SftpOutboundGateway

    Stack Overflow | 1 year ago | Jimmersons
    java.lang.IllegalArgumentException: 'remoteDirectoryExpression' is required
  5. 0

    Java custom Annotation aggregate multiple annotations

    Stack Overflow | 1 year ago | JafarKhQ
    java.lang.IllegalArgumentException: WebApplicationContext is required
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Principal must not be null Stack trace: java.lang.IllegalArgumentException: Principal must not be null

    at org.springframework.util.Assert.notNull()
  2. Spring Core
    Assert.notNull
    1. org.springframework.util.Assert.notNull(Assert.java:115)[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  3. Spring Boot Actuator
    AuthenticationAuditListener.onApplicationEvent
    1. org.springframework.boot.actuate.audit.AuditEvent.<init>(AuditEvent.java:83)[spring-boot-actuator-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    2. org.springframework.boot.actuate.audit.AuditEvent.<init>(AuditEvent.java:59)[spring-boot-actuator-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3. org.springframework.boot.actuate.security.AuthenticationAuditListener.onAuthenticationFailureEvent(AuthenticationAuditListener.java:67)[spring-boot-actuator-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    4. org.springframework.boot.actuate.security.AuthenticationAuditListener.onApplicationEvent(AuthenticationAuditListener.java:50)[spring-boot-actuator-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    5. org.springframework.boot.actuate.security.AuthenticationAuditListener.onApplicationEvent(AuthenticationAuditListener.java:34)[spring-boot-actuator-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    5 frames
  4. Spring Context
    AbstractApplicationContext.publishEvent
    1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4 frames
  5. spring-security-core
    ProviderManager.authenticate
    1. org.springframework.security.authentication.DefaultAuthenticationEventPublisher.publishAuthenticationFailure(DefaultAuthenticationEventPublisher.java:124)[spring-security-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
    2. org.springframework.security.authentication.ProviderManager.prepareException(ProviderManager.java:240)[spring-security-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
    3. org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:233)[spring-security-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
    4. org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:199)[spring-security-core-4.1.1.RELEASE.jar:4.1.1.RELEASE]
    4 frames
  6. org.springframework.security
    WebSecurityConfigurerAdapter$AuthenticationManagerDelegator.authenticate
    1. org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$AuthenticationManagerDelegator.authenticate(WebSecurityConfigurerAdapter.java:454)[spring-security-config-4.1.1.RELEASE.jar:4.1.1.RELEASE]
    1 frame
  7. com.icentia.tracking
    JwtFilter.doFilterInternal
    1. com.icentia.tracking.security.JwtFilter.doFilterInternal(JwtFilter.java:49)[classes/:na]
    1 frame