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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]