[ http://jira.codehaus.org/browse/XFIRE-808?page=comments#action_82944 ]
Sriram Kanala commented on XFIRE-808:
-------------------------------------
The exception I get is:
[12/19/06 11:39:28:765 GST] 00000020 ServletWrappe E SRVE0068E: Uncaught
exception thrown in one of the service methods of the servlet: XFireServlet.
Exception thrown : java.lang.StackOverflowError
at sun.util.calendar.ZoneInfo.getOffsets(ZoneInfo.java:235)
at
java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2020)
at
java.util.GregorianCalendar.computeFields(GregorianCalendar.java:1985)
at java.util.Calendar.setTimeInMillis(Calendar.java:1080)
at java.util.GregorianCalendar.<init>(GregorianCalendar.java:590)
at java.util.Calendar.createCalendar(Calendar.java:982)
at java.util.Calendar.getInstance(Calendar.java:923)
at
org.codehaus.xfire.aegis.type.basic.DateTimeType.writeObject(DateTimeType.java:50)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:293)
at
org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:293)
at
org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:293)
at
org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.BeanType.writeObject(BeanType.java:417)
at
org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:293)
at
org.codehaus.xfire.aegis.type.collection.CollectionType.writeObject(CollectionType.java:103)
> 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: Dan Diephouse
> 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