Yuk. Thanks. I think I screwed that up. :)
I will also try to figure out a caching test....
geir
[EMAIL PROTECTED] wrote:
>
> Hello,
>
> This one hit when trying the jar template cache in Turbine...
>
> -- Ilkka
>
> [mailto:[EMAIL PROTECTED]]
>
> public static Resource getResource(String resourceName, int
> resourceType)
> throws ResourceNotFoundException, ParseErrorException, Exception
> {
> Resource resource = null;
> ResourceLoader resourceLoader = null; //**** set to null ****
>
> if (globalCache.containsKey(resourceName))
> {
> resource = (Resource) globalCache.get(resourceName);
>
> if ( resource.requiresChecking() )
> {
> resource.touch();
>
> if( resource.isSourceModified() )
> {
> try
> {
> long howOldItWas = resourceLoader.getLastModified(
> resource ); // **** null reference ****
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Developing for the web? See http://jakarta.apache.org/velocity/