Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1055

Exception when deploying EJB with duplicated Interceptors-annontation is not informative enough

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.6.Final, 2.0.0.Alpha2
    • 1.1.5.Final
    • None
    • None
    • Low

      13:11:12,017 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: 
      Failed to start service jboss.deployment.unit."xxx.ear".WeldService: 
      org.jboss.msc.service.StartException in service jboss.deployment.unit."xxx.ear".WeldService: 
      org.jboss.interceptor.proxy.InterceptorException: 
      Duplicate interceptor class definition when bindingorg.jboss.interceptor.reader.SimpleInterceptorMetadata@1db7445 on AROUND_INVOKE
      

      The exception should contains information regarding the interceptor or the annotated class:

      org.jboss.interceptor.builder.InterceptionModelImpl Line 162:

      throw new InterceptorException("Duplicate interceptor class definition when binding" + interceptor + " on " + interceptionType.name());

      should at least be

      throw new InterceptorException("Duplicate interceptor class definition when binding" + interceptor.getInterceptorClass().getClassName() + " on " + interceptionType.name());

              marko.luksa@gmail.com Marko Luksa (Inactive)
              thargor_jira Simon Walter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: