{"action":"created","issue":{"url":"https://api.github.com/repos/okta/okta-spring-boot/issues/30","repository_url":"https://api.github.com/repos/okta/okta-spring-boot","labels_url":"https://api.github.com/repos/okta/okta-spring-boot/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/okta/okta-spring-boot/issues/30/comments","events_url":"https://api.github.com/repos/okta/okta-spring-boot/issues/30/events","html_url":"https://github.com/okta/okta-spring-boot/issues/30","id":275051244,"number":30,"title":"Okta Spring Boot Starter doesn't work with Spring Boot 2.0","user":{"login":"Prophet32j","id":4540634,"avatar_url":"https://avatars1.githubusercontent.com/u/4540634?v=4","gravatar_id":"","url":"https://api.github.com/users/Prophet32j","html_url":"https://github.com/Prophet32j","followers_url":"https://api.github.com/users/Prophet32j/followers","following_url":"https://api.github.com/users/Prophet32j/following{/other_user}","gists_url":"https://api.github.com/users/Prophet32j/gists{/gist_id}","starred_url":"https://api.github.com/users/Prophet32j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prophet32j/subscriptions","organizations_url":"https://api.github.com/users/Prophet32j/orgs","repos_url":"https://api.github.com/users/Prophet32j/repos","events_url":"https://api.github.com/users/Prophet32j/events{/privacy}","received_events_url":"https://api.github.com/users/Prophet32j/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-11-18T04:04:56Z","updated_at":"2018-05-17T10:55:02Z","closed_at":null,"author_association":"NONE","body":"Related to #22 \r\nI'm getting this same IllegalAccessError on the Implicit flow configuration.  \r\nMy app is a springboot starter `2.0.0.M3`.  \r\n```xml\r\n<dependency>\r\n    <groupId>com.okta.spring</groupId>\r\n    <artifactId>okta-spring-boot-starter</artifactId>\r\n    <version>0.2.0</version>\r\n</dependency>\r\n```\r\n```java\r\n@Configuration\r\n@EnableResourceServer\r\npublic class SecurityConfig {\r\n}\r\n```\r\n```yaml\r\nokta:\r\n  oauth2:\r\n    issuer: https://my-dev.oktapreview.com/oauth2/default\r\n    clientId: ***\r\n    audience: api://default\r\n    scopeClaim: scp\r\n    rolesClaim: groups\r\n```\r\n\r\nMy stack trace\r\n```\r\norg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration': Unsatisfied dependency expressed through field 'tokenServices'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resourceServerTokenServices' defined in class path resource [com/okta/spring/oauth/implicit/ResourceServerConfig$LocalTokenValidationConfig.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.okta.spring.oauth.implicit.Non500ErrorDefaultTokenServices]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:570) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:356) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:499) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$120/1093110206.getObject(Unknown Source) ~[na:na]\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) ~[spring-context-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:122) ~[spring-boot-2.0.0.M3.jar:2.0.0.M3]\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.0.0.M3.jar:2.0.0.M3]\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) [spring-boot-2.0.0.M3.jar:2.0.0.M3]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.M3.jar:2.0.0.M3]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1245) [spring-boot-2.0.0.M3.jar:2.0.0.M3]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1233) [spring-boot-2.0.0.M3.jar:2.0.0.M3]\r\n\tat com.readingmentor.pir.PIRApplication.main(PIRApplication.java:10) [classes/:na]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]\r\n\tat java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]\r\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.0.0.M3.jar:2.0.0.M3]\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resourceServerTokenServices' defined in class path resource [com/okta/spring/oauth/implicit/ResourceServerConfig$LocalTokenValidationConfig.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.okta.spring.oauth.implicit.Non500ErrorDefaultTokenServices]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:499) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$120/1093110206.getObject(Unknown Source) ~[na:na]\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:255) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1305) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1271) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1198) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1089) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1058) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:567) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\t... 25 common frames omitted\r\nCaused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.okta.spring.oauth.implicit.Non500ErrorDefaultTokenServices]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null\r\n\tat org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:209) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:470) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:352) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:301) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:436) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1720) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.0.0.RC3.jar:5.0.0.RC3]\r\n\t... 38 common frames omitted\r\nCaused by: org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:345) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:492) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]\r\n\tat org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:480) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:337) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:58) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:205) ~[spring-aop-5.0.0.RC3.jar:5.0.0.RC3]\r\n\t... 45 common frames omitted\r\nCaused by: java.lang.reflect.InvocationTargetException: null\r\n\tat sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) ~[na:na]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]\r\n\tat java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]\r\n\tat org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:459) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\tat org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336) ~[spring-core-5.0.0.RC3.jar:5.0.0.RC3]\r\n\t... 58 common frames omitted\r\nCaused by: java.lang.IllegalAccessError: class com.okta.spring.oauth.implicit.Non500ErrorDefaultTokenServices$$EnhancerBySpringCGLIB$$50916add cannot access its superclass com.okta.spring.oauth.implicit.Non500ErrorDefaultTokenServices\r\n\tat java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_45]\r\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[na:1.8.0_45]\r\n\t... 63 common frames omitted\r\n```\r\n\r\nAny of the developer guides that are on the Okta developer blogs are not up to date and accurate."},"comment":{"url":"https://api.github.com/repos/okta/okta-spring-boot/issues/comments/389827042","html_url":"https://github.com/okta/okta-spring-boot/issues/30#issuecomment-389827042","issue_url":"https://api.github.com/repos/okta/okta-spring-boot/issues/30","id":389827042,"user":{"login":"tamthing","id":1249663,"avatar_url":"https://avatars2.githubusercontent.com/u/1249663?v=4","gravatar_id":"","url":"https://api.github.com/users/tamthing","html_url":"https://github.com/tamthing","followers_url":"https://api.github.com/users/tamthing/followers","following_url":"https://api.github.com/users/tamthing/following{/other_user}","gists_url":"https://api.github.com/users/tamthing/gists{/gist_id}","starred_url":"https://api.github.com/users/tamthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamthing/subscriptions","organizations_url":"https://api.github.com/users/tamthing/orgs","repos_url":"https://api.github.com/users/tamthing/repos","events_url":"https://api.github.com/users/tamthing/events{/privacy}","received_events_url":"https://api.github.com/users/tamthing/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T10:55:02Z","updated_at":"2018-05-17T10:55:02Z","author_association":"NONE","body":"Same issue here. Using okta-spring-boot-starter:0.4.1. Is this being looked into?"}}
{"actor":{"display_login":"tamthing"}}