jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-666) Importing XML with character entities fails
Date Thu, 07 Dec 2006 12:36:25 GMT
    [ http://issues.apache.org/jira/browse/JCR-666?page=comments#action_12456389 ] 
            
Julian Reschke commented on JCR-666:
------------------------------------

How would that be a bug? If that's all you try to import: it's not well-formed XML; you'd
need to declare the entity.


> Importing XML with character entities fails
> -------------------------------------------
>
>                 Key: JCR-666
>                 URL: http://issues.apache.org/jira/browse/JCR-666
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: xml
>    Affects Versions: 1.1.1
>            Reporter: Yoav Landman
>            Priority: Critical
>
> Importing XML files that contain character entities fails on entity resolving.
> Try, for example, importing this fragment:
> <name>a&oslash;b</name>
> You will get:
> Caused by: org.xml.sax.SAXParseException: The entity "oslash" was referenced, but not
declared.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
> 	at org.apache.jackrabbit.core.SessionImpl.importXML(SessionImpl.java:1085)
> 	... 53 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message