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 85295 - NoSuchElementException opening Apply Design Pattern
Summary: NoSuchElementException opening Apply Design Pattern
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-09-20 02:25 UTC by htt
Modified: 2006-09-20 21:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample schema (1.25 KB, application/octet-stream)
2006-09-20 02:25 UTC, htt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2006-09-20 02:25:02 UTC
Save the attached "cwebster_sample.xsd" in a directory.
Launch the IDE.
From the main toolbar, Window > Favorites
In Favorites, right-click, choose Add to Favorites
In Add to Favorites dialog box, add "cwebster_sample.xsd"
In Favorites, right-click cwebster_sample[...], choose Apply Design Pattern
=> NPE

   java.util.NoSuchElementException
        at java.util.AbstractList$Itr.next(AbstractList.java:427)
        at
java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
        at
org.netbeans.modules.xml.axi.impl.SchemaGeneratorUtil.inferDesignPattern(SchemaGeneratorUtil.java:1695)
        at
org.netbeans.modules.xml.axi.impl.SchemaGeneratorFactoryImpl.inferDesignPattern(SchemaGeneratorFactoryImpl.java:50)
        at
org.netbeans.modules.xml.schema.abe.wizard.SchemaTransformWizard.inferSchemaDesignPattern(SchemaTransformWizard.java:194)
        at
org.netbeans.modules.xml.schema.abe.wizard.SchemaTransformWizard.getPanels(SchemaTransformWizard.java:99)
        at
org.netbeans.modules.xml.schema.abe.wizard.SchemaTransformWizard.show(SchemaTransformWizard.java:129)
        at
org.netbeans.modules.xml.schema.core.actions.SchemaTransformAction.showWizard(SchemaTransformAction.java:124)
        at
org.netbeans.modules.xml.schema.core.actions.SchemaTransformAction.performAction(SchemaTransformAction.java:65)
        at
org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:537)
        at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
        at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:533)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
        at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 htt 2006-09-20 02:25:44 UTC
Created attachment 34204 [details]
Sample schema
Comment 2 Ayub Khan 2006-09-20 04:01:48 UTC
Fixed.

Files changed:

/cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/SchemaGeneratorUtil.java
new revision: 1.1.2.19; previous revision: 1.1.2.18
Comment 3 htt 2006-09-20 21:01:46 UTC
Verified in CB 060920_11.