jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio giustina (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1644) make NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive
Date Sun, 15 Jun 2008 20:25:45 GMT

    [ https://issues.apache.org/jira/browse/JCR-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605163#action_12605163

fabrizio giustina commented on JCR-1644:

I got the StackOverflowError too while trying to import large xml files with jackrabbit 1.4.5:

	at java.util.HashMap.get(HashMap.java:305)
	at org.apache.jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java:93)
	at org.apache.jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java:97)
	at org.apache.jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java:97)

looks pretty much a bug than an improvement...

> make NamespaceContext#getPrefix(java.lang.String) iterative instead of recursive
> --------------------------------------------------------------------------------
>                 Key: JCR-1644
>                 URL: https://issues.apache.org/jira/browse/JCR-1644
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Philippe Marschall
>            Priority: Minor
>         Attachments: NamespaceContext.java, NamespaceContext.java.patch
> Currently the method org.apache.jackrabbit.core.xml.NamespaceContext#getPrefix(java.lang.String)
uses recursion. For very large XML files (50 MB Magnolia website exports) this causes a stack
overflow. The method can easily be rewritten using iteration.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message