You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/03/07 06:36:04 UTC
DO NOT REPLY [Bug 6947] New: -
Coding error in StreamGenerator.generate()
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=6947>.
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=6947
Coding error in StreamGenerator.generate()
Summary: Coding error in StreamGenerator.generate()
Product: Cocoon 2
Version: 2.0.1
Platform: Other
URL: http://integerservices.no-ip.com/servlet/ProcessDoc
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: core
AssignedTo: cocoon-dev@xml.apache.org
ReportedBy: john@integerservices.no-ip.com
Line 85 in org.apache.cocoon.eneration.Streamgenerator.generate() does not
allow for a missing Content-type: http header. This throws a
NullPointerException which is logged as "Could not get parser" at line 121
where the exception is caught.
I found this out when I was testing a servlet of mine. The servlet normally
sends an xml file to a pipeline that begins (like request1 in the distributed
sitemap) with a StreamGenerator. I wasn't using the servlet, but entered the
URL of this pipeline into IE 5.5 (which did not POST the form with the
requisite MIME header.
So, I wound up throwing a NullPointerException at the point in the code that
StreamGenerator does not check for this malformation in the requqest.
Great product. Thanks a bunch. I can work past this, but this item will cost
people time in future, so it needs to be fixed.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org