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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Done
    • 1.1.5.Final
    • 1.1.6.Final, 2.0.0.Alpha2
    • None
    • None
    • Low

    Description

      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());

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: