cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: Fwd: [C2] [Xalan2] Second Transform Hangs.
Date Thu, 08 Feb 2001 15:42:02 GMT
Scott, Xalan Team,

The problem turns out to be code as shown below. The synchronized statement synchronizes our
m_outputContentHandler which is still being used by the first transformer thread. The problem
goes
away if i create a new contenthandler. Is it possible to get rid of this restriction? I'll
try to
put together an stripped-down sample recreating the problem.

Thanks,
dims

File    : org\apache\xalan\transformer\TransformerImpl.java
Function: transformNode
Lines   : around 1150.

>>>>  public void transformNode(Node node) throws TransformerException
>>>>  {
>>>>    // Make sure we're not writing to the same output content handler.
>>>>    synchronized(m_outputContentHandler)
>>>>    {
>>>>      m_hasBeenReset = false;
  
--- Davanum Srinivas <dims@yahoo.com> wrote:
> Date: Wed, 7 Feb 2001 14:39:09 -0800 (PST)
> From: Davanum Srinivas <dims@yahoo.com>
> Reply-to: dims@yahoo.com
> Subject: [C2] [Xalan2] Second Transform Hangs.
> To: cocoon-dev@xml.apache.og
> CC: scott_boag@lotus.com, xalan-dev@xml.apache.org
> 
> Scott,
> 
> Please see enclosed file which has a set of stack traces. The problem happens after the
first
> transform fails (due to a bad XML file) the second transform hangs the system...
> 
> Thanks,
> dims
> 
> 
> =====
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/> 2001-02-07 05:24:50 - ContextManager: Adding context Ctx(
/examples
)
> 2001-02-07 05:24:50 - ContextManager: Adding context Ctx( /admin )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2001-02-07 05:24:51 - ContextManager: Adding context Ctx( /cocoon )
> 2001-02-07 05:24:51 - ContextManager: Adding context Ctx(  )
> 2001-02-07 05:24:51 - ContextManager: Adding context Ctx( /test )
> 2001-02-07 05:24:52 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
> 2001-02-07 05:24:52 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
> Full thread dump:
> 
> "Thread-29" prio=5 tid=0x89c0f28 nid=0x7c8 runnable [0xa24f000..0xa24fdc4]
>         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1155)
>         at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-28" prio=5 tid=0x8a2ee28 nid=0x444 runnable [0xa20f000..0xa20fdc4]
>         at java.lang.Object.wait(Native Method)
>         at org.apache.xalan.stree.Parent.getFirstChild(Parent.java:288)
>         at org.apache.xpath.axes.ChildIterator.nextNode(ChildIterator.java:130)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:428)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
>         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
>         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
>         at
> org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
>         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
>         at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-23" prio=5 tid=0x235350 nid=0x7d8 waiting on monitor [0..0x6fb38]
> 
> "Thread-22" prio=5 tid=0x8a0bc90 nid=0x10c waiting on monitor [0x9dcf000..0x9dcfdc4]
>         at java.lang.Object.wait(Native Method)
>         at org.apache.tomcat.util.ThreadPool$MonitorRunnable.run(ThreadPool.java:390)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-21" prio=5 tid=0x8a06e30 nid=0x58c runnable [0x9d8f000..0x9d8fdc4]
>         at java.net.PlainSocketImpl.socketAccept(Native Method)
>         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
>         at java.net.ServerSocket.implAccept(ServerSocket.java:241)
>         at java.net.ServerSocket.accept(ServerSocket.java:222)
>         at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:286)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-20" prio=5 tid=0x8a06808 nid=0x7c0 waiting on monitor [0x9d4f000..0x9d4fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-19" prio=5 tid=0x89f6dd8 nid=0x774 waiting on monitor [0x9d0f000..0x9d0fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-18" prio=5 tid=0x89f6408 nid=0x814 waiting on monitor [0x9ccf000..0x9ccfdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-17" prio=5 tid=0x8a04998 nid=0x714 waiting on monitor [0x9c8f000..0x9c8fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-16" prio=5 tid=0x8a04008 nid=0x694 waiting on monitor [0x9c4f000..0x9c4fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-15" prio=5 tid=0x8b0d9a0 nid=0x500 waiting on monitor [0x9c0f000..0x9c0fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-14" prio=5 tid=0x8b0e788 nid=0x840 waiting on monitor [0x9bcf000..0x9bcfdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-13" prio=5 tid=0x8b0e5a0 nid=0x3bc waiting on monitor [0x9b8f000..0x9b8fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-12" prio=5 tid=0x8b0dc98 nid=0x5b8 waiting on monitor [0x9b4f000..0x9b4fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-11" prio=5 tid=0x8b0e950 nid=0x72c waiting on monitor [0x9b0f000..0x9b0fdc4]
>         at java.lang.Object.wait(Native Method)
>         at org.apache.tomcat.util.ThreadPool$MonitorRunnable.run(ThreadPool.java:390)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-10" prio=5 tid=0x8b0c200 nid=0x780 waiting on monitor [0x9acf000..0x9acfdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-9" prio=5 tid=0x8b0b7d8 nid=0x848 runnable [0x9a8f000..0x9a8fdc4]
>         at java.net.PlainSocketImpl.socketAccept(Native Method)
>         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:413)
>         at java.net.ServerSocket.implAccept(ServerSocket.java:241)
>         at java.net.ServerSocket.accept(ServerSocket.java:222)
>         at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:286)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:402)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-8" prio=5 tid=0x8b0adb0 nid=0x57c waiting on monitor [0x9a4f000..0x9a4fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Thread.join(Thread.java:930)
>         at java.lang.Thread.join(Thread.java:983)
>         at org.apache.xalan.stree.SourceTreeHandler.endDocument(SourceTreeHandler.java:463)
>         at
> org.apache.cocoon.xml.ContentHandlerWrapper.endDocument(ContentHandlerWrapper.java:104)
>         at org.apache.cocoon.Notifier.notify(Notifier.java:143)
>         at org.apache.cocoon.sitemap.ErrorNotifier.generate(ErrorNotifier.java:68)
>         at org.apache.cocoon.sitemap.ResourcePipeline.process(ResourcePipeline.java:201)
>         at
>
_D_._jakarta._tomcat_3_2_1._webapps._cocoon._sitemap_xmap.error_process_1(_sitemap_xmap.java:2495)
>         at
> _D_._jakarta._tomcat_3_2_1._webapps._cocoon._sitemap_xmap.process(_sitemap_xmap.java:2451)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:148)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:99)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:247)
>         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:354)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
>         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-7" prio=5 tid=0x8b0a388 nid=0x7ec waiting on monitor [0x9a0f000..0x9a0fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-6" prio=5 tid=0x8b09980 nid=0x6a0 waiting on monitor [0x99cf000..0x99cfdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-5" prio=5 tid=0x8b08f98 nid=0x5e8 waiting on monitor [0x998f000..0x998fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-4" prio=5 tid=0x8b085f0 nid=0x5d8 waiting on monitor [0x994f000..0x994fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-3" prio=5 tid=0x8b07c88 nid=0x5a8 waiting on monitor [0x990f000..0x990fdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
>         at java.lang.Thread.run(Thread.java:484)
> 
> "Thread-2" prio=5 tid=0x8b06fe8 nid=0x80c waiting on monitor [0x98cf000..0x98cfdc4]
>         at java.lang.Object.wait(Native Method)
>         at java.lang.Object.wait(Object.java:420)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:477)
> 
=== message truncated ===


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message