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.
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
Fix checked in, it should be in todays nightly build.
No NPE in build 0607019.
Verified in Milestone Build 16.