[ 
https://issues.apache.org/jira/browse/MAPREDUCE-3965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221594#comment-13221594
 ] 

Steve Loughran commented on MAPREDUCE-3965:
-------------------------------------------

This is triggered if the Class passed down to the map class is class 
{{java.lang.Class}}
{code}
job.setJarByClass(Class.class);
{code}
Groovy seems to trigger it for other reasons
                
> JobConf.findContainingJar NPEs if it can't find the classloader of a class
> --------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-3965
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3965
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: Setting up a job under Groovy, OSX10.7, job started by 
> ant's <java> with fork==true 
>            Reporter: Steve Loughran
>            Priority: Minor
>
> I never knew that classes may not have classloaders, but it turns out they 
> can -in which case Object.getClass().getClassLoader() will be null "This 
> method will return null in such implementations if this class was loaded by 
> the bootstrap class loader.""
> When this (rare) situation arises, {{JobConf.findContainingJar()}} NPEs, when 
> failing with a slightly more useful error message would be preferred.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to