geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@geronimo.apache.org
Subject [jira] Created: (GERONIMO-260) NullPointerException deploying EAR files
Date Sat, 03 Jul 2004 18:43:54 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-260

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-260
    Summary: NullPointerException deploying EAR files
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Apache Geronimo

   Assignee: 
   Reporter: Eduardo Piva

    Created: Sat, 3 Jul 2004 11:42 AM
    Updated: Sat, 3 Jul 2004 11:42 AM
Environment: Linux kernel 2.6.7-rc3
JVM 1.4

Description:
When you have a META-INF/application.xml, with a module inside it, pointing to an invalid
file, it causes NullPointerException. The following code fix that:

In EARConfigBuilder, package org.apache.geronimo.j2ee.deployment, method buildConfiguration,
line 256, replace the following loop:

// each module installs it's files into the output context.. this is differenct for each module
type

for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
    Module module = (Module) iterator.next();
    getBuilder(module).installModule(earFile, earContext, module);
}

with
// each module installs it's files into the output context.. this is differenct for each module
type

for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
    Module module = (Module) iterator.next();
    URI moduleFile = module.getURI();

    if (!module.getURI().equals(URI.create("/")) && earFile.getEntry(moduleFile.toString())
== null) {
        throw new DeploymentException("Filename " + moduleFile + " not found");
    }

    getBuilder(module).installModule(earFile, earContext, module);
}

with that verification, we get a helpfull message inside a DeploymentException.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message