You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Chad La Joie (JIRA)" <xe...@xml.apache.org> on 2010/06/02 14:21:38 UTC

[jira] Created: (XERCESJ-1450) Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException

Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException
------------------------------------------------------------------------------------------------

                 Key: XERCESJ-1450
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1450
             Project: Xerces2-J
          Issue Type: Bug
    Affects Versions: 2.9.1
         Environment: OS X 10.6.3
Java 1.6.0_20
Xerces/Xalan endorsed
            Reporter: Chad La Joie


When attempting to adopt a number of nodes from a source document in to a destination document one eventually gets an ArrayIndexOutOfBoundsException.  The error seems correlated to the size of the nodes being adopted (i.e. it happens faster if the nodes are large, slower if they are smaller in size).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1450) Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1450:
------------------------------------------

    Component/s: DOM (Level 3 Core)

> Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException
> ------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1450
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1450
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: OS X 10.6.3
> Java 1.6.0_20
> Xerces/Xalan endorsed
>            Reporter: Chad La Joie
>         Attachments: test.zip
>
>
> When attempting to adopt a number of nodes from a source document in to a destination document one eventually gets an ArrayIndexOutOfBoundsException.  The error seems correlated to the size of the nodes being adopted (i.e. it happens faster if the nodes are large, slower if they are smaller in size).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Assigned: (XERCESJ-1450) Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1450:
---------------------------------------------

    Assignee: Michael Glavassevich

> Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException
> ------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1450
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1450
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: OS X 10.6.3
> Java 1.6.0_20
> Xerces/Xalan endorsed
>            Reporter: Chad La Joie
>            Assignee: Michael Glavassevich
>         Attachments: test.zip
>
>
> When attempting to adopt a number of nodes from a source document in to a destination document one eventually gets an ArrayIndexOutOfBoundsException.  The error seems correlated to the size of the nodes being adopted (i.e. it happens faster if the nodes are large, slower if they are smaller in size).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1450) Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException

Posted by "Chad La Joie (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chad La Joie updated XERCESJ-1450:
----------------------------------

    Attachment: test.zip

Test case attached.  Test includes one simple Java class demonstrating the error.  Java class reads in two large'ish XML documents that, on my machine, cause the issue.

> Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException
> ------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1450
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1450
>             Project: Xerces2-J
>          Issue Type: Bug
>    Affects Versions: 2.9.1
>         Environment: OS X 10.6.3
> Java 1.6.0_20
> Xerces/Xalan endorsed
>            Reporter: Chad La Joie
>         Attachments: test.zip
>
>
> When attempting to adopt a number of nodes from a source document in to a destination document one eventually gets an ArrayIndexOutOfBoundsException.  The error seems correlated to the size of the nodes being adopted (i.e. it happens faster if the nodes are large, slower if they are smaller in size).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1450) Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1450.
-------------------------------------------

    Fix Version/s: 2.10.0
       Resolution: Fixed

I've just committed a fix to adoptNode().  See SVN rev 950601.

> Adoption of many nodes from one document into another leads to an ArrayIndexOutOfBoundsException
> ------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1450
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1450
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>    Affects Versions: 2.9.1
>         Environment: OS X 10.6.3
> Java 1.6.0_20
> Xerces/Xalan endorsed
>            Reporter: Chad La Joie
>            Assignee: Michael Glavassevich
>             Fix For: 2.10.0
>
>         Attachments: test.zip
>
>
> When attempting to adopt a number of nodes from a source document in to a destination document one eventually gets an ArrayIndexOutOfBoundsException.  The error seems correlated to the size of the nodes being adopted (i.e. it happens faster if the nodes are large, slower if they are smaller in size).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org