Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: None
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Linux

    • Issuezilla Id:
      2,707

      Description

      9.1 build b33e-beta

      Both verifier and deployment throw NPE when resource-ref element does not
      contain res-type element.
      1. Schema does not specify this element mandatory, and indeed resource type can
      be obtained from JNDI (so maybe this qualifies as a bug?)
      2. Even if point 1 is not true, there should be a meaningful message telling why
      verifier fails (otherwise it is necessary to look into the glassfish source to
      find out what the real problem is)

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        Accept this as an enhancement request for 9.2

        Show
        Sanjeeb Sahoo added a comment - Accept this as an enhancement request for 9.2
        Hide
        getaceres added a comment -

        I tested this bug in Glassfish V2 UR2.
        I changed it to DEFECT because it fails even if the type is defined in the
        @Resource annotation (explicitly or implicitly since it must default to the
        field type).

        I have this deployment:

        <session>
        <ejb-name>TrimBean</ejb-name>
        <ejb-class>org.tolven.app.bean.TrimBean</ejb-class>
        <resource-ref>
        <res-ref-name>queue/adminApp</res-ref-name>
        </resource-ref>
        </session>

        and this in my code:

        public class TrimBean implements TrimLocal, TrimRemote {
        .............
        @Resource(name="queue/adminApp")
        private Queue adminAppQueue;

        But when I try to deploy it to Glassfish, I get the following error:

        Se produjo una excepción en la fase de J2EECjava.lang.NullPointerException
        com.sun.enterprise.deployment.backend.IASDeploymentException: Error al cargar
        los descriptores de implementación para el módulo [base-tolven] – null
        at
        com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
        at
        com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
        at
        com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294)
        at
        com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
        at
        com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at
        com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
        at
        com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at
        com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at
        com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at
        com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at
        com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at
        com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
        Caused by: java.lang.NullPointerException
        at
        com.sun.enterprise.deployment.util.EjbBundleValidator.computeRuntimeDefault(EjbBundleValidator.java:892)
        at
        com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:683)
        at
        com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2101)
        at
        com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734)
        at com.sun.enterprise.deployment.Application.visit(Application.java:1754)
        at
        com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470)
        at
        com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:366)
        ... 11 more

        Sorry but I have it in the spanish locale.

        Show
        getaceres added a comment - I tested this bug in Glassfish V2 UR2. I changed it to DEFECT because it fails even if the type is defined in the @Resource annotation (explicitly or implicitly since it must default to the field type). I have this deployment: <session> <ejb-name>TrimBean</ejb-name> <ejb-class>org.tolven.app.bean.TrimBean</ejb-class> <resource-ref> <res-ref-name>queue/adminApp</res-ref-name> </resource-ref> </session> and this in my code: public class TrimBean implements TrimLocal, TrimRemote { ............. @Resource(name="queue/adminApp") private Queue adminAppQueue; But when I try to deploy it to Glassfish, I get the following error: Se produjo una excepción en la fase de J2EECjava.lang.NullPointerException com.sun.enterprise.deployment.backend.IASDeploymentException: Error al cargar los descriptores de implementación para el módulo [base-tolven] – null at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390) at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358) at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294) at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223) Caused by: java.lang.NullPointerException at com.sun.enterprise.deployment.util.EjbBundleValidator.computeRuntimeDefault(EjbBundleValidator.java:892) at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:683) at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2101) at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734) at com.sun.enterprise.deployment.Application.visit(Application.java:1754) at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470) at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:366) ... 11 more Sorry but I have it in the spanish locale.
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            edek234
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: