This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduced in build 060824 (JDK 1.6 beta 2). To reproduce the bug: - apply Venetian Blind design pattern to a singe file OTA schema. After ~30 min StackOverflowError exception throws with the following details: java.lang.StackOverflowError at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1007) at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1006) at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1007) at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1006) at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1007) at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1006) at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1007) at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1006) ....
The AXI schema transform code that causes this StackOverflow is fixed. However there is stackoverflow during AXI/XAM/XDM/sync after transform. To test this 0) increase default java max size of ide to 256, ie., netbeans_default_options="-J-Xms32m -J-Xmx256m..." 1) open OTA schema 2) switch to source view 3) from the schema file node, invoke "Apply Design Pattern", select "Venetian Blind" 4) After 10-15 sec, you should see the schema source is changed (to "Venetian Blind"). 5) Till now there is no stackoverflow. Now click inside the source view, there will be a stackoverflow. I think the sync causes this. Will investigate further. Files affected: =============== /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/SchemaGeneratorUtil.java new revision: 1.1.2.7; previous revision: 1.1.2.6 /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/AXIModelListener.java new revision: 1.1.2.4; previous revision: 1.1.2.3 /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/DefaultSchemaGenerator.java new revision: 1.1.2.34; previous revision: 1.1.2.33 /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/GardenOfEden.java new revision: 1.1.2.25; previous revision: 1.1.2.24 /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/AXIModelImpl.java new revision: 1.1.2.26; previous revision: 1.1.2.25
Fixed invalid schema after transform, due to some global simple types not properly populated. Files affected: /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/SchemaGeneratorUtil.java new revision: 1.1.2.8; previous revision: 1.1.2.7 /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/DefaultSchemaGenerator.java new revision: 1.1.2.35; previous revision: 1.1.2.34 See the attachment for the OTA schema after transform in venetian blind. Now the stack overflow do not happen during transform. However I see the stackoverflow switching to source view after transform. Please assign this bug to appropriate developer for this.
Created attachment 33390 [details] ota venetian blind created by applying design pattern
Verified in build 060831.