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.

Bug 83474 - StackOverflowError when applying Venetian Blind pattern to OTA schema
Summary: StackOverflowError when applying Venetian Blind pattern to OTA schema
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 15:08 UTC by Andrei Chistiakov
Modified: 2006-08-31 13:21 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ota venetian blind created by applying design pattern (69.55 KB, application/octet-stream)
2006-08-30 08:38 UTC, Ayub Khan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2006-08-25 15:08:32 UTC
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)
....
Comment 1 Ayub Khan 2006-08-29 06:46:43 UTC
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

Comment 2 Ayub Khan 2006-08-30 08:37:26 UTC
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.
Comment 3 Ayub Khan 2006-08-30 08:38:26 UTC
Created attachment 33390 [details]
ota venetian blind created by applying design pattern
Comment 4 Andrei Chistiakov 2006-08-31 13:21:04 UTC
Verified in build 060831.