cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21789] New: - Content-Type not set by TraxTransformer
Date Tue, 22 Jul 2003 07:08:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21789

Content-Type not set by TraxTransformer

           Summary: Content-Type not set by TraxTransformer
           Product: Cocoon 2
           Version: 2.0.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: sven.macke@rewe.de


I'm just migrating a project using Cocoon 2.0.4 to the newest Websphere 
Application Server and had no success in running it there so far. The problem 
is that the implementation of the webcontainer was made more strict, so that an 
Exception is thrown when no content-type is set on the HttpResponse object.

That exception is the cause for the problem, because when I perform an xsl 
transformation using the TraxTransformer and serialize the result using the 
HTMLSerializer, this exception is thrown. I suppose the problem lies within 
some of the Cocoon components (I'm not very familiar with Cocoon so far, 
therefore I just say 'some component'). 

I believe this is a general bug that has noting to do with my 
configurations/stylesheets/xml, so I don't post much of these stuff. To explain 
the steps I take, I want to add an extract from my sitemap.xmap file:

        <map:pipeline>
            <map:match pattern="diagram/balken.map">
                <map:generate type="balken"/>
                <map:transform src="diagram/xsl/map/balken2map.xsl"/>
                <map:serialize type="html"/>
            </map:match>
        </map:pipeline>

I checked the generated xml and also transformed it correctly using the the 
defined stylesheet, so that's not the problem. Also, if I comment the 
map:tranform element, the pipe works fine.

Here is the exception's stack trace:

[7/22/03 8:36:52:672 CEST] 134fdc0c SystemErr     R java.lang.RuntimeException: 
Errors in XSLT transformation:
Fatal: java.lang.NullPointerException

[7/22/03 8:36:52:672 CEST] 134fdc0c SystemErr     R 	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3303)
[7/22/03 8:36:52:672 CEST] 134fdc0c SystemErr     R 	at java.lang.Thread.run
(Thread.java:513)
[7/22/03 8:36:52:672 CEST] 5f351c1b SystemErr     R 
java.lang.IllegalStateException: no Content-Type was specified
[7/22/03 8:36:52:672 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.http.HttpResponse.writeHeaders(HttpResponse.java:239)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.http.ResponseStream.writeHeaders(ResponseStream.java:256)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.http.ResponseStream.write(ResponseStream.java:139)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.io.WriteStream.flushMyBuf(WriteStream.java:145)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.io.WriteStream.flush(WriteStream.java:137)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.http.HttpConnection.flush(HttpConnection.java:379)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srp.SRPConnection.flush(SRPConnection.java:242)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srt.SRTOutputStream.flush(SRTOutputStream.java:45)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flushBytes
(BufferedServletOutputStream.java:354)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flush
(BufferedServletOutputStream.java:331)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.caching.CachingOutputStream.flush
(CachingOutputStream.java:118)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
java.io.BufferedOutputStream.flush(BufferedOutputStream.java(Compiled Code))
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.serialization.AbstractTextSerializer.recycle
(AbstractTextSerializer.java:261)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.serialization.HTMLSerializer.recycle(HTMLSerializer.java:101)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.pool.ResourceLimitingPool.put
(ResourceLimitingPool.java:395)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut
(PoolableComponentHandler.java:200)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.ComponentHandler.put
(ComponentHandler.java:176)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release
(ExcaliburComponentSelector.java:458)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.ExtendedComponentSelector.release
(ExtendedComponentSelector.java:316)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.recycle
(AbstractStreamPipeline.java:317)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.recycle
(CachingStreamPipeline.java:426)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.pool.ResourceLimitingPool.put
(ResourceLimitingPool.java:395)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut
(PoolableComponentHandler.java:200)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.ComponentHandler.put
(ComponentHandler.java:176)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.release
(ExcaliburComponentManager.java:576)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.CocoonComponentManager.release
(CocoonComponentManager.java:275)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerPr
oxy.release(DefaultComponentFactory.java:330)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.release
(ExcaliburComponentManager.java:588)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.CocoonComponentManager.release
(CocoonComponentManager.java:275)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.treeprocessor.InvokeContext.dispose
(InvokeContext.java:245)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:295)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.Cocoon.process(Cocoon.java:579)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService
(StrictServletInstance.java:110)
[7/22/03 8:36:52:688 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:174)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service
(StrictLifecycleServlet.java:313)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:116)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service
(ServletInstance.java:283)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch
(ValidServletReferenceState.java:42)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch
(ServletInstanceReference.java:40)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:923)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:528)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:176)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:201)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:71)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:182)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service
(OSEListener.java:334)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest
(HttpConnection.java:56)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:516)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:362)
[7/22/03 8:36:52:703 CEST] 5f351c1b SystemErr     R 	at 
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

Please let me know if some more code or other information is needed to locate 
this bug (I suppose this is one).

Mime
View raw message