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 80265 - NPE when Drag & Drop a Complex Type to the Design View
Summary: NPE when Drag & Drop a Complex Type to the Design View
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-13 21:18 UTC by Sherry Barkodar
Modified: 2006-07-20 21:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Barkodar 2006-07-13 21:18:24 UTC
Create ABPEL project
Create a new Schema file
Switch to the Design View
Expand the Global Complex Type.
D&D a Complex Type to the Design View
Throws the following NPE:
java.lang.IllegalArgumentException: Exception during flush: 
	at
org.netbeans.modules.xml.axi.impl.ModelAccessImpl.flush(ModelAccessImpl.java:102)
	at
org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:255)
	at
org.netbeans.modules.xml.schema.abe.GlobalComplextypeContainerPanel.addNewComplextypeAt(GlobalComplextypeContainerPanel.java:131)
	at
org.netbeans.modules.xml.schema.abe.GlobalComplextypeContainerPanel.tweenerDrop(GlobalComplextypeContainerPanel.java:98)
	at
org.netbeans.modules.xml.schema.abe.ContainerPanel$1.drop(ContainerPanel.java:324)
	at org.netbeans.modules.xml.schema.abe.TweenerPanel.drop(TweenerPanel.java:228)
	at
org.netbeans.modules.xml.schema.abe.ABEBaseDropPanel$1.drop(ABEBaseDropPanel.java:77)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
	at
sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
	at
sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
	at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
	at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
	at java.awt.Component.dispatchEventImpl(Component.java:3826)
	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.processDropTargetEvent(Container.java:3963)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3817)
	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)
Caused by: java.lang.ClassCastException: org.netbeans.modules.xml.axi.ContentModel
	at
org.netbeans.modules.xml.axi.impl.DefaultSchemaGenerator.addSchemaComponent(DefaultSchemaGenerator.java:379)
	at
org.netbeans.modules.xml.axi.impl.DefaultSchemaGenerator.updateSchema(DefaultSchemaGenerator.java:86)
	at
org.netbeans.modules.xml.axi.impl.SchemaGeneratorFactoryImpl.updateSchema(SchemaGeneratorFactoryImpl.java:61)
	at
org.netbeans.modules.xml.axi.impl.ModelAccessImpl.flush(ModelAccessImpl.java:100)
	... 27 more
Comment 1 Ayub Khan 2006-07-14 03:21:18 UTC
Fix checked in, it should be in todays nightly build.
Comment 2 Sherry Barkodar 2006-07-20 20:37:44 UTC
No NPE in build 0607019.
Comment 3 htt 2006-07-20 21:43:13 UTC
Verified in Milestone Build 16.