[ http://jira.codehaus.org/browse/XFIRE-808?page=all ]

Tomasz Sztelak closed XFIRE-808.
--------------------------------

      Assignee: Tomasz Sztelak  (was: Dan Diephouse)
    Resolution: Won't Fix

> Circular reference throwing StackOverFlow exception
> ---------------------------------------------------
>
>                 Key: XFIRE-808
>                 URL: http://jira.codehaus.org/browse/XFIRE-808
>             Project: XFire
>          Issue Type: Bug
>          Components: Aegis Module
>    Affects Versions: 1.2.2
>         Environment: Websphere 6.1, Java 1.5
>            Reporter: Sriram Kanala
>         Assigned To: Tomasz Sztelak
>         Attachments: models.zip
>
>
> I have the following model:
> 'Catalog' contains set of Categories.
> 'Category' contains a reference to parent Catalog.
> When I try to get Catalog object through a web service, StackOverflow 
> exception is thrown.
> Sample finder method which is exposed through web service is as below:
> public Catalog findById( java.lang.String id) {
>                               
>               Catalog catalog = new Catalog();
>               catalog.setCatalogId("111111");
>               catalog.setName("Test");
>               
>               Category category1 = new Category();
>               category1.setCategoryId("111");
>               category1.setName("Category 1");
>               category1.setCatalog(catalog); //Category has reference to 
> parent catalog
>               Set<Category> categorySet = new HashSet<Category>(0);
>               categorySet.add(category1);
>               
>               
>               catalog.setCategories(categorySet);
>               
>               return catalog;
>       }
> The model files are attached.
> This issue looks similar to XFIRE-770.

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to