Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-30971

[GSS](8.1.z) WFLY-21005 - NullPointerException if an RA module is missing META-INF/ra.xml

XMLWordPrintable

      org.jboss.as.connector.subsystems.resourceadapters.RaOperationUtil.installRaServicesAndDeployFromModule

              URL path = module.getExportedResource("META-INF/ra.xml");
              Closeable closable = null;
                  try {
                      VirtualFile child;
                      if (path.getPath().contains("!")) {
      

      This code fails to check if path is null (META-INF/ra.xml not found) before using it, causing a NullPointerException.
      It should instead check it for null and throw an appropriate error message.

              lvydra Lukas Vydra
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: