circular-reference Questions

7

Solved

The following error seems to occur randomly on my live server (i.e. through apache mod_wsgi) but never in development (i.e. localhost python manage.py runserver). Note this happens infrequently an...
Fast asked 17/9, 2012 at 11:31

5

Solved

Consider these two classes: public class A { B b; public A(B b) { this.b = b; } } public class B { A a; public B() { this.a = new A(this); } } If I have classes designed like above, would t...
Nathalienathan asked 12/1, 2012 at 18:46

3

I have one table with attributes (ID int, SourceID int, TargetID int, TargetType int) ID SourceID TargetID --------------------- 1 123 456 2 456 789 3 1 123 4 456 1 5 2 1 I want to find o...

26

Solved

I have the following code in one of my controllers: @Controller @RequestMapping("/preference") public class PreferenceController { @RequestMapping(method = RequestMethod.GET, produces = "text/ht...

3

Solved

I'm trying to pass an object with circular references from node.js server to client-side javascript. Server (node.js): var object = { circular: object } //.... app.get('/', function(req, res){ ...
Fionafionna asked 16/4, 2014 at 18:34

2

JSON.NET supports circular reference serialization by preserving all references with the following settings: JsonSerializerSettings settings = new JsonSerializerSettings(); settings.ReferenceLoopH...
Guanajuato asked 5/8, 2013 at 19:10

6

Solved

I'm making a game, and I've come across a problem... When I try to save, JSON fails and reports that circular reference is being made somewhere. I don't think it actually is, I can't see it, so is ...
Immediately asked 28/9, 2011 at 10:45

4

I have found many articles about the circular reference with Gson, but I can't find an elegant solution. As I know, some solutions is: Set the property that caused circular reference as "transie...
Boastful asked 6/12, 2011 at 15:57

13

When using reference counting, what are possible solutions/techniques to deal with circular references? The most well-known solution is using weak references, however many articles about the subje...
Pagepageant asked 1/7, 2009 at 14:11

9

Solved

I'm using the MVC framework Symfony, and it seems a lot of the built-in objects I want to debug have circular references. This makes it impossible to print the variables with print_r() or var_dump(...
Withdrew asked 9/6, 2011 at 11:36

1

Creating a brand new macOS Command Line Tool project in Xcode Version 13.3 (13E113), and replacing the contents of main.swift with the following code: import Foundation enum StructA { // case cas...
Abductor asked 18/3, 2022 at 4:29

4

Solved

i'm trying to relate two entities with JPA, when i run the project don't throws me errors but when i request the method that get me the Voters of a Comunity Leader i get the next Exception: java.l...
Maidamaidan asked 19/2, 2019 at 21:33

2

So, I have these two dataclasses in a file: @dataclass class A: children: List[B] @dataclass class B: parent: A , which are possible with the use of the __future__.annotations feature. Then ...

6

Solved

I have the following code: type Document = number | string | Array<Document>; TypeScript complains with the following error: test.ts(7,6): error TS2456: Type alias 'Document' circularly r...
Moreover asked 1/5, 2016 at 12:5

5

Solved

I'm trying to implement my own serialization / var_dump style function in PHP. It seems impossible if there is the possibility of circular arrays (which there is). In recent PHP versions, var_dump...
Jodiejodo asked 2/2, 2012 at 1:15

6

Solved

I'm using Automapper to map my NHibernate proxy objects (DTO) to my CSLA business objects I'm using Fluent NHibernate to create the mappings - this is working fine The problem I have is that the ...
Sense asked 16/7, 2012 at 13:15

9

Solved

In the .NET BCL there are circular references between: System.dll and System.Xml.dll System.dll and System.Configuration.dll System.Xml.dll and System.Configuration.dll Here's a screenshot from...
Decorate asked 22/8, 2009 at 17:26

3

Solved

As per the topic, I couldn't find anything specific about this on the internet. What is <ref *1> in the output I get before the class name even though I call the property "tree"? Re...
Inglebert asked 1/10, 2021 at 12:56

1

I have a complex navigation structure, I go from one nav graph then based on some logic, decide which nav graph to go to there. However both the nav graphs share 3 other nav graphs. See image below...

5

Solved

I have copied the function below from an existing answer by Dmitriy Pichugin. This function can deep clone an object without any circular references- it works. function deepClone( obj ) { if( !ob...
Antarctic asked 27/10, 2016 at 18:44

2

I run into problem tied to circular reference in Symfony, that I suspect to be caused by the serializer but I haven't found any answers yet. Here are the entities that I've created, the route...
Karynkaryo asked 9/8, 2016 at 9:52

3

Solved

I have a graph of multi-level dependecies like this, and I need to detect any circular reference in this graph. A = B B = C C = [D, B] D = [C, A] Somebody have a problem like this? Any soluti...
Digitalize asked 28/8, 2009 at 14:55

4

Solved

In Kotlin, say I have data class A (val f: B) and data class B (val f: A). I want to initialize local var a: A and var b: B such that a.f is b and b.f is a. A.f and B.f must remain vals. Is this ci...
Bellona asked 16/2, 2016 at 17:40

4

Solved

Is there a standard function in Common Lisp that can check against improper lists (i.e. circular and dotted lists) without signaling an error? list-length can check against circular lists (it retur...
Fogged asked 16/2, 2020 at 11:13

3

Solved

I'm having and issue with the Circular reference. I have Rest Webservices which returns objects to the front end, the issue is when I try to return objects that have several references so as the r...
Stannary asked 30/6, 2013 at 19:0

© 2022 - 2024 — McMap. All rights reserved.