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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 8.1 Update 2
    • 8.1.0.GA
    • JCA
    • None

      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:
              2 Start watching this issue

                Created:
                Updated: