Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2102

Improve deployment annotation parsing error message

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 21.0.0.Final
    • None
    • EE
    • None

    Description

      Improve deployment annotation parsing error message

      Code such as this below, will error with IllegalArgumentException: Empty name segment is not allowed for env. The env is not enough information to identify what the issue is.

      @Singleton
      @Startup
      public class TestEJB {
      @Resource(name="/queue/test")
      private Queue queue;
      }

      Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for env
      at org.jboss.msc.service.ServiceName.of(ServiceName.java:85) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at org.jboss.msc.service.ServiceName.append(ServiceName.java:112) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at org.jboss.as.naming.deployment.ContextNames.buildServiceName(ContextNames.java:183)
      at org.jboss.as.naming.deployment.ContextNames$BindInfo.<init>(ContextNames.java:195)
      at org.jboss.as.naming.deployment.ContextNames$BindInfo.<init>(ContextNames.java:186)
      at org.jboss.as.naming.deployment.ContextNames.bindInfoFor(ContextNames.java:141)
      at org.jboss.as.ee.component.OptionalLookupInjectionSource.getResourceValue(OptionalLookupInjectionSource.java:84)
      at org.jboss.as.ee.component.ComponentDescription$InjectedConfigurator.configureDependency(ComponentDescription.java:1019)
      at org.jboss.as.ee.component.ComponentDescription$InjectedConfigurator.configureDependency(ComponentDescription.java:998)
      at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:138)
      at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:95)
      ... 6 more

      Attachments

        Issue Links

          Activity

            People

              lvydra Lukas Vydra
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: