cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject [CRITICAL ERROR]Re: Problems with multithreading in cocoon2!!
Date Thu, 13 Sep 2001 12:47:45 GMT
Rolf Kluge wrote:
> 
> On Die, 11 Sep 2001, you wrote:
> > Hi there!
> > I have a problem with the multithreading in cocoon.  First I describe what I
> > want to do and then the problems I have.  I want to write a testtool for a
> > browserbased application with cocoon as frontend.  Herefore the tool saves all
> > requests from client(browser) to the server in a file.  After this the tool
> > should send the requests and interpret the response - whether it is successful
> > or not.  This works fine. Now I want to test the performance of my
> > application.  So I want to run the sending of requests in 2 or more threads.
> > With 2 threads the test works still fine, but when I run it in more than 2 I
> > get an exception from the server which I can't interpret.  My question: What
> > does the exception mean and how can I fix it?
> >
> > BTW: The same exception occurs when I run cocoon on a server with 2 CPUs.
> >
> > Important details:
> > VM: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
> > Applicationserver: JBoss
> > Webserver: Jetty
> > Framework: Cocoon

I personally have tested Cocoon/Avalon with 200 threads active.  The question then
becomes one of your environment.  It is important to note however, that a stack trace
for Cocoon doesn't mean much on the Avalon list.  In order to be more successful,
you might have posted on the Cocoon developer's list with the header:

[CRITICAL ERROR] Multithreading in Cocoon!


That being said, make sure you are not experiencing classloader issues.  Every Servlet
engine has their own.  For example, Caucho Resin barfs so bad the JVM dies when there
are too many concurrent accesses on a resource in its classloaders.  You need to make
sure you are not dealing with those types of errors.

The fact that you have a multi-CPU machine does change things somewhat in that you can
have real concurrency issues (more so than a single processor machine).  I know of some
folks that have Quad CPU Sun machines with plenty of RAM running Cocoon without the
problem you are listing here.  Please check that there isn't some configuration issue.

> Hi there,
> 3 days ago I posted the message above in the mailinglist and it seems to me
> that it was ignored, because nobody answered me. I know that the question
> about multithreating problems fits more in the user list than an the avalon-dev
> list, but there is no avalon user list so I tryed it this way.
> I have still the same problems so I hope someone will answer me.
> Please!!

It's a pity that your message got missed in the shuffle.  I guarantee you the developers
all subscribe to more than one list, so they get more than 100 emails a day.  Sometimes
they make assumptions that somebody helped them.  The users may not know how to deal with
problems they haven't faced.  The best thing I can tell you for Cocoon problems is to
repeat yourself, and make your header more noticeable when you are facing a serious issue.
Trust me, the Cocoon folks don't want any threading issues in their code.  This topic is
more in line for the Cocoon developers list as it uncovers a potential bug.


Full Text Follows:
-----------------------------------------------------------------------------------------
Rolf Kluge wrote:
> 
> On Die, 11 Sep 2001, you wrote:
> > Hi there!
> > I have a problem with the multithreading in cocoon.  First I describe what I
> > want to do and then the problems I have.  I want to write a testtool for a
> > browserbased application with cocoon as frontend.  Herefore the tool saves all
> > requests from client(browser) to the server in a file.  After this the tool
> > should send the requests and interpret the response - whether it is successful
> > or not.  This works fine. Now I want to test the performance of my
> > application.  So I want to run the sending of requests in 2 or more threads.
> > With 2 threads the test works still fine, but when I run it in more than 2 I
> > get an exception from the server which I can't interpret.  My question: What
> > does the exception mean and how can I fix it?
> >
> > BTW: The same exception occurs when I run cocoon on a server with 2 CPUs.
> >
> > Important details:
> > VM: Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
> > Applicationserver: JBoss
> > Webserver: Jetty
> > Framework: Cocoon
> >
> > Exceptions:
> >
> > [Jetty] ERROR   10002   [cocoon  ] (SocketListener-34): Sitemap
> > org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: xslt
> >         at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
> >         at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
> >         at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
> >         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer(AbstractEventPipeline.java:102)
> >         at org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer(CachingEventPipeline.java:95)
> >         at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN193(sitemap_xmap.java:1604)
> >         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:968)
> >         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:893)
> >         at org.apache.cocoon.sitemap.Handler.process(Handler.java:167)
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:353)
> >         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:488)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:459)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:294)
> >         at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
> >         at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
> >         at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
> >         at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
> >         at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
> >         at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> >         at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > 12:57:16.924 EVENT  ERROR   10002   [cocoon  ] (SocketListener-34): Sitemap
> > + org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: xslt
> > +       at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
> > +       at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
> > +       at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
> > +       at org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer(AbstractEventPipeline.java:102)
> > +       at org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer(CachingEventPipeline.java:95)
> > +       at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN193(sitemap_xmap.java:1604)
> > +       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:968)
> > +       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:893)
> > +       at org.apache.cocoon.sitemap.Handler.process(Handler.java:167)
> > +       at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
> > +       at org.apache.cocoon.Cocoon.process(Cocoon.java:353)
> > +       at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
> > +       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:488)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:459)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:294)
> > +       at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
> > +       at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
> > +       at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
> > +       at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
> > +       at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
> > +       at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> > +       at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
> > +       at java.lang.Thread.run(Thread.java:484)
> > +
> > [Jetty] ERROR   10002   [cocoon  ] (SocketListener-34): processing of resource failed
> > org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: xslt
> >         at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
> >         at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
> >         at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
> >         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer(AbstractEventPipeline.java:102)
> >         at org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer(CachingEventPipeline.java:95)
> >         at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN193(sitemap_xmap.java:1604)
> >         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:968)
> >         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:893)
> >         at org.apache.cocoon.sitemap.Handler.process(Handler.java:167)
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:353)
> >         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:488)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:459)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:294)
> >         at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
> >         at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
> >         at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
> >         at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
> >         at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
> >         at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> >         at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > 12:57:17.093 EVENT  ERROR   10002   [cocoon  ] (SocketListener-34): processing of
resource failed
> > + org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: xslt
> > +       at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
> > +       at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
> > +       at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
> > +       at org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer(AbstractEventPipeline.java:102)
> > +       at org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer(CachingEventPipeline.java:95)
> > +       at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN193(sitemap_xmap.java:1604)
> > +       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:968)
> > +       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:893)
> > +       at org.apache.cocoon.sitemap.Handler.process(Handler.java:167)
> > +       at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
> > +       at org.apache.cocoon.Cocoon.process(Cocoon.java:353)
> > +       at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
> > +       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:488)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:459)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:294)
> > +       at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
> > +       at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
> > +       at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
> > +       at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
> > +       at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
> > +       at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> > +       at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
> > +       at java.lang.Thread.run(Thread.java:484)
> > +
> > [Jetty] ERROR   10002   [cocoon  ] (SocketListener-34): Problem with servlet
> > org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: xslt
> >         at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
> >         at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
> >         at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
> >         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer(AbstractEventPipeline.java:102)
> >         at org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer(CachingEventPipeline.java:95)
> >         at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN193(sitemap_xmap.java:1604)
> >         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:968)
> >         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:893)
> >         at org.apache.cocoon.sitemap.Handler.process(Handler.java:167)
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:353)
> >         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:488)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:459)
> >         at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:294)
> >         at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
> >         at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
> >         at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
> >         at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
> >         at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
> >         at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> >         at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > 12:57:17.151 EVENT  ERROR   10002   [cocoon  ] (SocketListener-34): Problem with
servlet
> > + org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector
could not find the component for hint: xslt
> > +       at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:239)
> > +       at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:49)
> > +       at org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSelector.java:52)
> > +       at org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer(AbstractEventPipeline.java:102)
> > +       at org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer(CachingEventPipeline.java:95)
> > +       at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN193(sitemap_xmap.java:1604)
> > +       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:968)
> > +       at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:893)
> > +       at org.apache.cocoon.sitemap.Handler.process(Handler.java:167)
> > +       at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:96)
> > +       at org.apache.cocoon.Cocoon.process(Cocoon.java:353)
> > +       at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488)
> > +       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:488)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:459)
> > +       at com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:294)
> > +       at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
> > +       at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
> > +       at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
> > +       at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
> > +       at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
> > +       at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> > +       at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
> > +       at java.lang.Thread.run(Thread.java:484)
> > +
> >
> >
> > Thanks in advance!!
> >
> > -xxx-
> > rk
> >
> > --
> > ______________________________________
> > Rolf Kluge - mailto:rolf@smb-tec.com
> > SMB GmbH   - http://www.smb-tec.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> --
> 
> Hi there,
> 3 days ago I posted the message above in the mailinglist and it seems to me
> that it was ignored, because nobody answered me. I know that the question
> about multithreating problems fits more in the user list than an the avalon-dev
> list, but there is no avalon user list so I tryed it this way.
> I have still the same problems so I hope someone will answer me.
> Please!!
> 
> Thanks in advance!!
> 
> ______________________________________
> Rolf Kluge - mailto:rolf@smb-tec.com
> SMB GmbH   - http://www.smb-tec.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message