Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 745229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T09:04:14+00:00 2026-05-14T09:04:14+00:00

I am trying to figure out this error since 5 hours without any success.

  • 0

I am trying to figure out this error since 5 hours without any success. SO i finally thought of posting in here. Please help i am really in big trouble. I am stuck on this and see no way of solving this error. This is my database structure

tblBlogRegion                                   

BlogRegionId (primary key)              
BlogRegionName                                  


tblGadget

GadgetId(primary key)
GadgetName

tblBlogs

BlogId(primary key)                     
Blogname
BlogTypeId (reference key from tblSiteTerm


tblSiteTerms        

SiteTermsId(primary key)        
SiteTermsName   


tblBlogGadgets

BlogGadgetsId(primary key)
BlogRegionId(foreign key from tblBlogRegion)
BlogId(foreign key from tblBlog)
GadgetId(foreign key from tblGadget)

Is it not normal database structure? Do you see anything that is cyclic? WHen i try to fetch list from tblGadgets i get this error :-

[com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: entity.BlogGadgets[blogGadgetsId=1] -> entity.Blogs[blogId=2] -> entity.BlogGadgets[blogGadgetsId=1]]

I am trying to get list from web service using JAS-WS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T09:04:14+00:00Added an answer on May 14, 2026 at 9:04 am

    I suppose you are using some ORM to fetch data from database and then serialize it and send via web service.
    So when you fetch list of BlogGadgets they have Blogs in it, but the same Blogs have a list of the same BlogGadgets and so on…

    Thats called circular reference and its very common to have them at your object model but when you want to send it on wire you need to make sure that object graph you have is a tree, at least for serializer you are using.

    One solution to this would be to transform/map domain objects/entities you are using to Data Transfer Objects which will have proper tree structure like: (in c# but it should be pretty same in java)

    [Serializable]
    public class BlogGadgetDto 
    {
      public int GadgetId {get;set;}
      public BlogSmallDto Blog {get;set;}
      // and so on
    }
    
    [Serializable]
    public class BlogSmallDto 
    {
      public int BlogId {get;set;}
      public string BlogName {get;set;}
      // and so on
    }
    

    Note that now BlogGadgetDto are referencing BlogSmallDto but not the other way around.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to figure out this error from previous 3 hours. By searching,
So I spent 2 hours trying to figure out this weird error in VB.NET.
I am trying to figure out why I get this error. My code is
I'm trying to figure out if this is normal. Because without errors, a connection
I'm trying to figure out why I am getting this error when my Magento
I have an issue that I've spent hours trying to figure out, but since
Trying to figure out this pseudo code. The following is assumed.... I can only
I'm trying to figure out this weird issue I've been having, and the root
So I've been toiling over this app trying to figure out this strange behaviour
I'm a newbie with jQuery and I'm trying to figure out this slideToggle function.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.