cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@mad.scientist.com
Subject Re: [C2] ClassLoader issues
Date Tue, 29 Aug 2000 10:47:30 GMT
On Tue, 29 Aug 2000, Niclas Hedhman wrote:
> > in the Coccon.getClass() method, the instrcution
> > 'this.getClass().getClassLoader().loadClaa(className)' gave me a NPE due
> > to the fact that claa.getClassLoader() can return null (from JDK 1.2
> > Javadoc ).
> 
> NPE is only returned for in getClassLoader for classes loaded by the Boot
> strap classloader, i.e classes located in the rt.jar.  There should not be
> any other cases. Please specify the details of your problem.

Actually it is any time that the class has been loaded by
primordial classloader which includes classes loaded via
classpath variable.

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     | Does the name 'Pavlov' |
| Bundoora, Australia     |    ring a bell ?       |
*--------------------------------------------------*


Mime
View raw message