org.springframework.beans.factory.BeanCreationException: 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 org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: N/A (through reference chain: com.dogjaw.services.authentication.b2c.AzurePolicyMetaData["http_logout_supported"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: N/A (through reference chain: com.dogjaw.services.authentication.b2c.AzurePolicyMetaData["http_logout_supported"])

GitHub | crazyquark | 4 months ago
  1. 0

    Project no longer works with the latest Azure AD

    GitHub | 4 months ago | crazyquark
    org.springframework.beans.factory.BeanCreationException: 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 org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: N/A (through reference chain: com.dogjaw.services.authentication.b2c.AzurePolicyMetaData["http_logout_supported"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: N/A (through reference chain: com.dogjaw.services.authentication.b2c.AzurePolicyMetaData["http_logout_supported"])
  2. 0

    HQL Exception (org.hibernate.dialect.Dialect$3)

    Stack Overflow | 4 years ago | Hari
    java.lang.NullPointerException: null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error loading model properties in JPA on play 2.0.3

    Stack Overflow | 4 years ago | Chappies
    java.lang.NullPointerException: null
  5. 0

    Why lift can't find my "db.properties"

    Stack Overflow | 5 years ago | Freewind
    java.lang.NullPointerException: null

    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.NullPointerException

      null

      at com.dogjaw.services.authentication.b2c.AzurePolicyMetaData.setAdditionalProperty()
    2. com.dogjaw.services
      AzurePolicyMetaData.setAdditionalProperty
      1. com.dogjaw.services.authentication.b2c.AzurePolicyMetaData.setAdditionalProperty(AzurePolicyMetaData.java:159)[classes/:na]
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
      4 frames
    4. Jackson
      ObjectMapper.readValue
      1. com.fasterxml.jackson.databind.deser.SettableAnyProperty.set(SettableAnyProperty.java:145)[jackson-databind-2.6.5.jar:2.6.5]
      2. com.fasterxml.jackson.databind.deser.SettableAnyProperty.deserializeAndSet(SettableAnyProperty.java:118)[jackson-databind-2.6.5.jar:2.6.5]
      3. com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1324)[jackson-databind-2.6.5.jar:2.6.5]
      4. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:345)[jackson-databind-2.6.5.jar:2.6.5]
      5. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)[jackson-databind-2.6.5.jar:2.6.5]
      6. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)[jackson-databind-2.6.5.jar:2.6.5]
      7. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2810)[jackson-databind-2.6.5.jar:2.6.5]
      7 frames
    5. Spring
      RestTemplate.exchange
      1. org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:221)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:208)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3. org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:95)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      4. org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:835)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      5. org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:819)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      6. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:599)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      7. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      8. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:475)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      8 frames
    6. com.dogjaw.services
      MetaDataClient$$FastClassBySpringCGLIB$$52ae2458.invoke
      1. com.dogjaw.services.authentication.b2c.MetaDataClient.getAzurePolicyMetaData(MetaDataClient.java:85)[classes/:na]
      2. com.dogjaw.services.authentication.b2c.MetaDataClient.getSigninMetaData(MetaDataClient.java:39)[classes/:na]
      3. com.dogjaw.services.authentication.b2c.MetaDataClient$$FastClassBySpringCGLIB$$52ae2458.invoke(<generated>)[classes/:na]
      3 frames
    7. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      1 frame
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    9. Spring Context
      CacheInterceptor.invoke
      1. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:306)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3 frames
    10. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    11. com.dogjaw.services
      RsaKeyClient$$FastClassBySpringCGLIB$$2c56b488.invoke
      1. com.dogjaw.services.authentication.b2c.MetaDataClient$$EnhancerBySpringCGLIB$$129102ed.getSigninMetaData(<generated>)[classes/:na]
      2. com.dogjaw.services.authentication.b2c.RsaKeyClient.getSigninRsaKey(RsaKeyClient.java:41)[classes/:na]
      3. com.dogjaw.services.authentication.b2c.RsaKeyClient$$FastClassBySpringCGLIB$$2c56b488.invoke(<generated>)[classes/:na]
      3 frames
    12. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      1 frame
    13. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    14. Spring Context
      CacheInterceptor.invoke
      1. org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:52)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:306)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3. org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3 frames
    15. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    16. com.dogjaw.services
      SecurityConfiguration.configure
      1. com.dogjaw.services.authentication.b2c.RsaKeyClient$$EnhancerBySpringCGLIB$$7633d1d.getSigninRsaKey(<generated>)[classes/:na]
      2. com.dogjaw.services.authentication.services.RsaKeyCachingService.loadSigninRsaKey(RsaKeyCachingService.java:84)[classes/:na]
      3. com.dogjaw.services.authentication.services.RsaKeyCachingService.refreshRsaKeys(RsaKeyCachingService.java:41)[classes/:na]
      4. com.dogjaw.services.authentication.b2c.AoidJwtAccessTokenConverter.afterPropertiesSet(AoidJwtAccessTokenConverter.java:103)[classes/:na]
      5. com.dogjaw.services.authentication.SecurityConfiguration.ssoFilter(SecurityConfiguration.java:290)[classes/:na]
      6. com.dogjaw.services.authentication.SecurityConfiguration.ssoFilter(SecurityConfiguration.java:267)[classes/:na]
      7. com.dogjaw.services.authentication.SecurityConfiguration.configure(SecurityConfiguration.java:115)[classes/:na]
      7 frames
    17. org.springframework.security
      WebSecurityConfigurerAdapter.getHttp
      1. org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.getHttp(WebSecurityConfigurerAdapter.java:199)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      1 frame
    18. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
      4 frames
    19. Spring Core
      ReflectionUtils.invokeMethod
      1. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:201)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    20. org.springframework.boot
      OAuth2SsoCustomConfiguration$SsoSecurityAdapter.invoke
      1. org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2SsoCustomConfiguration$SsoSecurityAdapter.invoke(OAuth2SsoCustomConfiguration.java:105)[spring-boot-autoconfigure-1.3.2.RELEASE.jar:1.3.2.RELEASE]
      1 frame
    21. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)[spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2 frames
    22. com.dogjaw.services
      SecurityConfiguration$$EnhancerBySpringCGLIB$$b37744a6.init
      1. com.dogjaw.services.authentication.SecurityConfiguration$$EnhancerBySpringCGLIB$$b37744a6.init(<generated>)[classes/:na]
      1 frame
    23. org.springframework.security
      WebSecurityConfiguration$$EnhancerBySpringCGLIB$$e2cffca1$$FastClassBySpringCGLIB$$ce330f28.invoke
      1. org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.init(AbstractConfiguredSecurityBuilder.java:370)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      2. org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.doBuild(AbstractConfiguredSecurityBuilder.java:324)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      3. org.springframework.security.config.annotation.AbstractSecurityBuilder.build(AbstractSecurityBuilder.java:41)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      4. org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.springSecurityFilterChain(WebSecurityConfiguration.java:105)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      5. org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$$EnhancerBySpringCGLIB$$e2cffca1.CGLIB$springSecurityFilterChain$2(<generated>)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      6. org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$$EnhancerBySpringCGLIB$$e2cffca1$$FastClassBySpringCGLIB$$ce330f28.invoke(<generated>)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      6 frames
    24. Spring Core
      MethodProxy.invokeSuper
      1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      1 frame
    25. Spring Context
      ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
      1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:355)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      1 frame
    26. org.springframework.security
      WebSecurityConfiguration$$EnhancerBySpringCGLIB$$e2cffca1.springSecurityFilterChain
      1. org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$$EnhancerBySpringCGLIB$$e2cffca1.springSecurityFilterChain(<generated>)[spring-security-config-4.0.3.RELEASE.jar:4.0.3.RELEASE]
      1 frame
    27. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
      4 frames
    28. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      10 frames
    29. Spring Context
      AbstractApplicationContext.getBean
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1060)[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      1 frame
    30. Spring
      GenericFilterBean.init
      1. org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:326)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      2. org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:235)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3. org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:199)[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
      3 frames
    31. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)[tomcat-embed-core-8.0.30.jar:8.0.30]
      2. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:109)[tomcat-embed-core-8.0.30.jar:8.0.30]
      3. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4659)[tomcat-embed-core-8.0.30.jar:8.0.30]
      4. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281)[tomcat-embed-core-8.0.30.jar:8.0.30]
      5. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[tomcat-embed-core-8.0.30.jar:8.0.30]
      6. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)[tomcat-embed-core-8.0.30.jar:8.0.30]
      7. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)[tomcat-embed-core-8.0.30.jar:8.0.30]
      7 frames
    32. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91]
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91]
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91]
      4. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
      4 frames