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 93129 - IDE freezes after change sequence - choice and back
Summary: IDE freezes after change sequence - choice and back
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-24 17:56 UTC by Mikhail Matveev
Modified: 2007-02-15 00:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump showing axicomponent (16.01 KB, text/plain)
2007-02-01 20:24 UTC, Nam Nguyen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Matveev 2007-01-24 17:56:25 UTC
1. Create loanApplication sample schema.
2. Switch to Design view.
3. Double-click sequence under autoLoanApplication element. Combobox (Sequence,
Choice, All) appears
4. Change it to choice.
5. Double-click it again and change to sequence.
Result: IDE freezes.
Comment 1 Nam Nguyen 2007-02-01 20:24:00 UTC
Created attachment 37941 [details]
thread dump showing axicomponent
Comment 2 Samaresh Panda 2007-02-07 18:25:39 UTC
Checking in AXIComponent.java;
new revision: 1.1.2.80.6.4; previous revision: 1.1.2.80.6.3
Comment 3 htt 2007-02-08 22:39:15 UTC
Partially fixed in the latest 070208_13: changing Sequence to Choice and vice
versa is now ok; changing Sequence to All, then All to Sequence hangs the IDE.
Comment 4 Ayub Khan 2007-02-14 19:54:17 UTC
Solution:

Instead of AXIModel do the remove of old compositor and adding new one, let the
code generator do the task. This will avoid the deadlock.

Files changed:

/cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/AXIModelImpl.java
new revision: 1.1.2.42.6.9; previous revision: 1.1.2.42.6.8

/cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/SchemaGeneratorUtil.java
new revision: 1.1.2.28.6.4; previous revision: 1.1.2.28.6.3

/cvs/xml/axi/src/org/netbeans/modules/xml/axi/AXIComponent.java   <--- Revert
back old change
new revision: 1.1.2.80.6.7; previous revision: 1.1.2.80.6.6

/cvs/xml/axi/src/org/netbeans/modules/xml/axi/Compositor.java
new revision: 1.1.2.21.6.2; previous revision: 1.1.2.21.6.1

/cvs/xml/schema/abe/src/org/netbeans/modules/xml/schema/abe/CompositorPanel.java
new revision: 1.1.2.67.6.2; previous revision: 1.1.2.67.6.1 
Comment 5 htt 2007-02-15 00:53:00 UTC
Verified in 070214_13