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=13305>. 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=13305 Crash if TransformerFactory.newInstance called by multiple threads. Summary: Crash if TransformerFactory.newInstance called by multiple threads. Product: XalanJ2 Version: CurrentCVS Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.processor AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The TransformerFactory.newInstance() method is not thread-safe because the TransformerFactory constructor accesses a static field. The documentation, for TransformerFactory says: "...Alternatively the application can have one instance of the TransformerFactory per thread..." However, if a user attempts to create the instance on separate threads "bad things" can happen. So, we should look at either better error handling, or synchronizing access to the TransformerFactory constructor.
