tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Pisula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-271) secure-processing not supported by some JAXP implementations
Date Tue, 10 May 2011 09:46:03 GMT

    [ https://issues.apache.org/jira/browse/TIKA-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031107#comment-13031107
] 

Michael Pisula commented on TIKA-271:
-------------------------------------

Seeing the problem in 0.9, I think revision 1004050 broke the fix

> secure-processing not supported by some JAXP implementations
> ------------------------------------------------------------
>
>                 Key: TIKA-271
>                 URL: https://issues.apache.org/jira/browse/TIKA-271
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.4
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 0.5
>
>
> The XmlRootExtractor class tries to set the secure-processing feature that JAXP requires
all parser implementations to support. Unfortunately some parsers don't support the feature,
which causes the following exception:
> java.lang.IllegalStateException: Unable to create a XmlRootExtractor
>         at org.apache.tika.mime.MimeTypes.<init>(MimeTypes.java:135)
>         at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:58)
>         at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:75)
>         at org.apache.tika.mime.MimeTypesFactory.create(MimeTypesFactory.java:90)
>         at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:96)
>         at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:85)
>         at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:76)
>         at org.apache.tika.config.TikaConfig.getDefaultConfig(TikaConfig.java:173)
>         at org.apache.tika.parser.AutoDetectParser.<init>(AutoDetectParser.java:47)
> Caused by: org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing'
is not recognized.
>         at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown Source)
>         at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(Unknown Source)
>         at org.apache.tika.detect.XmlRootExtractor.<init>(XmlRootExtractor.java:47)
>         at org.apache.tika.mime.MimeTypes.<init>(MimeTypes.java:133)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message