cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Kossakowski (JIRA)" <>
Subject [jira] Updated: (COCOON-2076) Exception when Reloading Classloader
Date Sun, 10 Jun 2007 00:31:26 GMT


Grzegorz Kossakowski updated COCOON-2076:

    Urgency: Blocker

I found what broke RCL functionality. It's commit r540145 (see:

Current problem is that blockServletCollector map is not reloaded so it keeps references to
the old servlets. Processor is not set exception was thrown because old SitemapServlet was
cleaned up (disposed) by RCL functionality so it has no instance of TreeProcessor.

Now, what can we do in order to fix this problem? One option is to reload blockServletCollector
map similar way as it was done before changes committed in rr540145. To be honest, I don't
like this solution. It pollutes DispatcherServlet's code with RCL functionality which is not
a good, IMO.
Can't we just reload whole DispatcherServlet so we are sure that valid instance of blockServletCollector
is used?

Reinhard, can you comment on this?

> Exception when Reloading Classloader
> ------------------------------------
>                 Key: COCOON-2076
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core, - Build System: Maven, - Servlet service framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Vladimir S Bronnikov
> I'm running own cocoon block using Reload Classloader (see
Then I change one of my class. After update my browser I get foloowing error in stactrace:
> 2007-06-07 12:57:38,518 btpool0-1 ERROR cocoon - Internal Cocoon Problem
> org.apache.cocoon.ProcessingException: Processor is not set.
> 	at org.apache.cocoon.environment.internal.EnvironmentHelper.enterProcessor(
> 	at org.apache.cocoon.servlet.RequestProcessor.process(
> 	at org.apache.cocoon.servlet.RequestProcessor.service(
> 	at org.apache.cocoon.sitemap.SitemapServlet.service(
> 	at javax.servlet.http.HttpServlet.service(
> 	at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(
> 	at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(
> 	at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
> 	at $Proxy0.service(Unknown Source)
> 	at org.apache.cocoon.servletservice.DispatcherServlet.service(
> ...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message