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

NPE when absolute ordering is used and a web fragment is missing

    XMLWordPrintable

Details

    • Hide

      1. Create an application with absolute-ordering in web.xml:

      <absolute-ordering>
         <name>A</name>
         <name>B</name>
         <name>C</name>
         <name>D</name>
         <others />
      </absolute-ordering>
      

      Fragments "A" and "C" should be missing from the WAR.

      2. Deploy the WAR

      Show
      1. Create an application with absolute-ordering in web.xml : <absolute-ordering> <name>A</name> <name>B</name> <name>C</name> <name>D</name> <others /> </absolute-ordering> Fragments "A" and "C" should be missing from the WAR. 2. Deploy the WAR

    Description

      PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "****.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163) [wildfly-server-1.0.2.Final.jar:1.0.2.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.6.Final.jar:1.2.6.Final]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.6.Final.jar:1.2.6.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_66]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_66]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_66]
      Caused by: java.lang.IndexOutOfBoundsException: Index: 4, Size: 2
      	at java.util.LinkedList.checkPositionIndex(LinkedList.java:560) [rt.jar:1.8.0_66]
      	at java.util.LinkedList.addAll(LinkedList.java:406) [rt.jar:1.8.0_66]
      	at org.wildfly.extension.undertow.deployment.WarMetaDataProcessor.deploy(WarMetaDataProcessor.java:206)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156) [wildfly-server-1.0.2.Final.jar:1.0.2.Final]
      	... 5 more
      

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: WFLY

              People

                sdouglas1@redhat.com Stuart Douglas
                lrekucki Ɓukasz Rekucki (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: