hi All,

Need pointers/help to solve this issue. Had created an issue under LCDS
component (on 1st december) in adobe's jira but its not public. Can't view
its status and didn't hear back from them also.

Hopefully someone in forum can generate new ideas/insights.


Please refer attached source code (build instruction are provided at bottom)



1. launch the lcds-samples war with tomcat server

2. log on to URL: http://localhost:8400/lcds-samples/tree/TreeApp.swf

3. Completely expand the tree nodes in application

4. Drag and drop tree node with name "1.3.1 #7" upon tree node with name
"root".





**Actual Results:**

5. application fails with StackOverflow error. (see image5).

Also note that 2 nodes with same name - "1.3.1 #7" is added as child to
"root".

6. Another variation to this bug is: Open two app in two browser windows,
DnD in one window causes stackoverflow in both application instances.

(see image6)



**Expected Results:**

7. DnD should occur smoothly, node "1.3.1 #7" should become a child of tree
node "root".



Workaround (if any): remove sorting in Tree's dataDescriptor and code works
smoothly.



** Exact error msg:**

 Error: Error #1023: Stack overflow occurred.

                at
mx.data.utils::Managed$/getProperty()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\utils\Managed.as:158]

                at BOMVO/get
children()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMVO.as:21]

                at
BOMTreeDataDescriptor/calculateChildren()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMTreeDataDescriptor.as:38]

                at
BOMTreeDataDescriptor/getChildren()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMTreeDataDescriptor.as:22]

                at
mx.controls.treeClasses::HierarchicalCollectionView/getChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:393]

                at
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:285]

                at
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:293]

                at
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:259]

                at
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:293]

                at



**BUILD INSTRUCTIONS: **



1. This bug's source code uses lcds-samples project shipped with LCDS 2.6
setup.

2. refer <LCDS 2.6 dir>/tomcat/webapps/lcds-samples

3. copy the provided java source code into
lcds-samples/WEB-INF/src/com/myapp directory

so that it contains these files:

com/myapp/

com/myapp/tree

com/myapp/tree/BOM.java

com/myapp/tree/BOMAssembler.java

com/myapp/tree/BOMService.java

4. copy flex sources files into folder:
lcds-samples/WEB-INF/flex-src/tree/src . It should look like:

tree/src/assets

tree/src/BOMTreeDataDescriptor.as

tree/src/BOMVO.as

tree/src/TreeApp.mxml



5. overwrite these files in lcds-samples/WEB-INF/flex

data-management-config.xml

remoting-config.xml



6. after compilation lcds-samples/tree folder should be created with these
contents:

tree/

tree/assets

tree/assets/font

tree/TreeApp.swf



7. To configure lcds-samples as eclipse project, copy these files to
/lcds-samples folder -

.actionScriptProperties

.classpath

.flexProperties

.project

Reply via email to