You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/04/24 09:09:26 UTC
DO NOT REPLY [Bug 39388] New: - ParserFeatureSetterFactory makes invalid assumption about SAX parser
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39388>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39388
Summary: ParserFeatureSetterFactory makes invalid assumption
about SAX parser
Product: Commons
Version: unspecified
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: Digester
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: david@pastornet.net.au
The Commons Digester class
org.apache.commons.digester.ParserFeatureSetterFactory presumes that if
org.apache.xerces.impl.Version is on the classpath, then the sax parser factory
used will be a xerces sax parser factory.
That is not always a correct assumption! The sax parser factory actually used
is determined by other factors documented at
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance()
In a situation where the assumption is wrong, it can then proceed to invoke
setFeature methods on the non-xerces sax parser factory, which can throw
exceptions because the feature names are specific to xerces and are not
supported by other parsers.
Please correct the implementation so as to make the commons digester not make
wrong assumptions.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 39388] - ParserFeatureSetterFactory makes invalid assumption about SAX parser
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39388>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39388
skitching@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From skitching@apache.org 2006-04-24 08:42 -------
This has already been reported, and fixed in trunk. You can use a nightly build,
or (better still) avoid using the ParserFeatureSetterFactory completely (IMO it
was a bad idea in the first place).
See http://issues.apache.org/bugzilla/show_bug.cgi?id=38894
*** This bug has been marked as a duplicate of 38894 ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org