Skip to main content

[JIRA] Created: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE

  • From: "gray (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Created: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE
  • Date: Fri, 26 Jul 2013 12:09:25 +0000 (UTC)
  • Auto-submitted: auto-generated

NPE inside ComponentValidator while logging level is set to FINE
----------------------------------------------------------------

                 Key: GLASSFISH-20728
                 URL: https://java.net/jira/browse/GLASSFISH-20728
             Project: glassfish
          Issue Type: Bug
          Components: deployment
    Affects Versions: 4.0
         Environment: glassfish 4.0, ear module consists of several 
submodules (ejb, war)
            Reporter: gray
            Assignee: Hong Zhang


this is code excerpt from 
*com.sun.enterprise.deployment.util.ComponentValidator* class:
{code}
protected void accept(EjbReference ejbRef){
...
        // if we are here, we must have resolved the reference
        if(DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) {
            DOLUtils.getDefaultLogger().fine("Done Visiting " + 
getEjbDescriptor().getName() + " reference " + ejbRef);
        }
...
{code}
If log level is set to FINE and logging must happen in case when 
*getEjbDescriptor()* returns null - NPE occurs preventing application 
deployment. It looks like *getEjbDescriptor()* returns null when *accept* 
method called for WebBundleValidator while checking some class from EJB 
module (wtf?). Probably this is the problem that should be solved, but null 
check also acceptable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE

gray (JIRA) 07/26/2013

[JIRA] Commented: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE

Hong Zhang (JIRA) 07/26/2013

[JIRA] Commented: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE

Jeremy_Lv (JIRA) 07/30/2013

[JIRA] Commented: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE

Hong Zhang (JIRA) 07/30/2013

[JIRA] Commented: (GLASSFISH-20728) NPE inside ComponentValidator while logging level is set to FINE

Jeremy_Lv (JIRA) 07/31/2013
 
 
Close
loading
Please Confirm
Close