You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Shane O Sullivan (JIRA)" <ji...@apache.org> on 2006/08/02 18:04:14 UTC

[jira] Created: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Abdera goes into an infinite loop when feed.getLink("edit"); is called
----------------------------------------------------------------------

                 Key: ABDERA-2
                 URL: http://issues.apache.org/jira/browse/ABDERA-2
             Project: Abdera
          Issue Type: Bug
         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
            Reporter: Shane O Sullivan


when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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

        

[jira] Commented: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/ABDERA-2?page=comments#action_12425294 ] 
            
James M Snell commented on ABDERA-2:
------------------------------------

Running a few test cases failed to recreate the problem.  If you would, please put together a quick test case that illustrates the problem you're seeing and post it here. 

> Abdera goes into an infinite loop when feed.getLink("edit"); is called
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-2
>                 URL: http://issues.apache.org/jira/browse/ABDERA-2
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
>            Reporter: Shane O Sullivan
>         Assigned To: James M Snell
>
> when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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

        

[jira] Commented: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Posted by "Garrett Rooney (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/ABDERA-2?page=comments#action_12425275 ] 
            
Garrett Rooney commented on ABDERA-2:
-------------------------------------

Does this happen for any feed, or is there specific data that's required to produce the problem?

> Abdera goes into an infinite loop when feed.getLink("edit"); is called
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-2
>                 URL: http://issues.apache.org/jira/browse/ABDERA-2
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
>            Reporter: Shane O Sullivan
>
> when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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

        

[jira] Assigned: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/ABDERA-2?page=all ]

James M Snell reassigned ABDERA-2:
----------------------------------

    Assignee: James M Snell

> Abdera goes into an infinite loop when feed.getLink("edit"); is called
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-2
>                 URL: http://issues.apache.org/jira/browse/ABDERA-2
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
>            Reporter: Shane O Sullivan
>         Assigned To: James M Snell
>
> when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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

        

[jira] Commented: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/ABDERA-2?page=comments#action_12429526 ] 
            
James M Snell commented on ABDERA-2:
------------------------------------

The loop is caused in certain circumstances when individual entry items are added multiple times to a feed before the link is added.  When an entry is added twice to an entry, it becomes it's own previous sibling.  When adding a link, it looks for the entry and attempts to add the link before the entry.  The link actually gets inserted between the two instances of the same entry, causing a loop.  link->getNextSibling()->entry->getNextSibling()->link->getNextSibling()->entry.......  The solution is to make sure you're not adding items to the feed/entry/etc more than once.

> Abdera goes into an infinite loop when feed.getLink("edit"); is called
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-2
>                 URL: http://issues.apache.org/jira/browse/ABDERA-2
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
>            Reporter: Shane O Sullivan
>         Assigned To: James M Snell
>
> when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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

        

[jira] Closed: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/ABDERA-2?page=all ]

James M Snell closed ABDERA-2.
------------------------------


Resolved

> Abdera goes into an infinite loop when feed.getLink("edit"); is called
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-2
>                 URL: http://issues.apache.org/jira/browse/ABDERA-2
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
>            Reporter: Shane O Sullivan
>         Assigned To: James M Snell
>
> when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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

        

[jira] Resolved: (ABDERA-2) Abdera goes into an infinite loop when feed.getLink("edit"); is called

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/ABDERA-2?page=all ]

James M Snell resolved ABDERA-2.
--------------------------------

    Resolution: Fixed

Resolved. The right solution is to make sure you're not adding elements twice.

> Abdera goes into an infinite loop when feed.getLink("edit"); is called
> ----------------------------------------------------------------------
>
>                 Key: ABDERA-2
>                 URL: http://issues.apache.org/jira/browse/ABDERA-2
>             Project: Abdera
>          Issue Type: Bug
>         Environment: Apache Tomcat 5.5, IBM Java 5.0 JRE
>            Reporter: Shane O Sullivan
>         Assigned To: James M Snell
>
> when I call the Feed method getLink("edit") method, it goes into an infinite loop, taking up 100% of the CPU

-- 
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