Uploaded image for project: 'Agorava'
  1. Agorava
  2. AGOVA-71

If the Oauth version of the provider cannot be determined Agorava crash with a Deltaspike exception

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.1
    • Component/s: Core CDI impl
    • Labels:
      None

      Description

      When a module is badly configured (with no OAuth version specified) the Agorava extension failed with this kind of exception :

      java.lang.IllegalArgumentException: type parameter must not be null
      	at org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeBuilder.readFromType(AnnotatedTypeBuilder.java:640)
      	at org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeBuilder.readFromType(AnnotatedTypeBuilder.java:625)
      	at org.agorava.cdi.extensions.AgoravaExtension.beanRegisterer(AgoravaExtension.java:278)
      	at org.agorava.cdi.extensions.AgoravaExtension.registerGenericBeans(AgoravaExtension.java:311)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
      	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
      	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
      	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
      	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)
      	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)
      	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229)
      	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
      	at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:346)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:86)
      	at org.agorava.empireavenue.utils.AccessTokenGetter.main(AccessTokenGetter.java:35)
      
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:48)
      	at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:40)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:346)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:86)
      
      

      It should give a more helpful message.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                antoinesabot-durand Antoine Sabot-Durand
                Reporter:
                antoinesabot-durand Antoine Sabot-Durand
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: