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.
Summary: | Applying Design Pattern makes schema invalid | ||
---|---|---|---|
Product: | xml | Reporter: | Andrei Chistiakov <ca-nb> |
Component: | Schema Tools | Assignee: | Ayub Khan <ayubskhan> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | cwebster, htt, ivansidorkin, kozlov, samaresh |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Andrei Chistiakov
2006-07-14 12:28:35 UTC
From my latest code, I got this stack. My guess is that axim sync somehow remove a (shared) child more than once hence the NPE on null model. The fix is in axim sync or somehow avoid sync on discard-closing of design view. java.lang.NullPointerException at org.netbeans.modules.xml.xam.AbstractComponent.verifyWrite(AbstractComponent.java:179) at org.netbeans.modules.xml.xam.AbstractComponent.removeChild(AbstractComponent.java:334) at org.netbeans.modules.xml.axi.AXIComponent.removeSharedChild(AXIComponent.java:425) at org.netbeans.modules.xml.axi.AXIComponent.removeSharedChild(AXIComponent.java:431) at org.netbeans.modules.xml.axi.AXIComponent.removeSharedChild(AXIComponent.java:431) at org.netbeans.modules.xml.axi.AXIComponent.removeChild(AXIComponent.java:399) at org.netbeans.modules.xml.axi.AXIComponent.removeChild(AXIComponent.java:452) at org.netbeans.modules.xml.axi.impl.AXIModelUpdater.removeChildren(AXIModelUpdater.java:225) at org.netbeans.modules.xml.axi.impl.AXIModelUpdater.synchronize(AXIModelUpdater.java:194) at org.netbeans.modules.xml.axi.impl.AXIModelUpdater.visitChildren(AXIModelUpdater.java:180) at org.netbeans.modules.xml.axi.visitor.DeepAXITreeVisitor.visit(DeepAXITreeVisitor.java:54) at org.netbeans.modules.xml.axi.AXIDocument.accept(AXIDocument.java:56) at org.netbeans.modules.xml.axi.impl.AXIModelUpdater.doSync(AXIModelUpdater.java:76) at org.netbeans.modules.xml.axi.impl.AXIModelImpl.doSync(AXIModelImpl.java:136) at org.netbeans.modules.xml.axi.impl.ModelAccessImpl.sync(ModelAccessImpl.java:91) at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:221) at org.netbeans.modules.xml.xam.AbstractModel$1.run(AbstractModel.java:500) *** Issue 80534 has been marked as a duplicate of this issue. *** *** Issue 80600 has been marked as a duplicate of this issue. *** Sam might already have fix the axim exception part. Fix integated: SyncElementTest.java, new revision: 1.1.2.18; AXIModelImpl.java, new revision: 1.1.2.13; ElementImpl.java, new revision: 1.1.2.24; DefaultSchemaGenerator.java, new revision: 1.1.2.15; AXIModelUpdater.java, new revision: 1.1.2.16; AXIComponent.java, new revision: 1.1.2.32; Note: If you start with PO.xsd, the transformation makes PO.xsd invalid, as you can see after the transformation simple-type SKU doesn't exist anymore. If you want to see this working, open PO.xsd and remove any item related to SKU and then apply design pattern. Reassigning to Ayub to fix the transformation. Fixed the issue. File affected: axi/src/org/netbeans/modules/xml/axi/impl/Util.java <--new revision: 1.1.2.38 axi/src/org/netbeans/modules/xml/axi/impl/GardenOfEden.java <--new revision: 1.1.2.13 axi/src/org/netbeans/modules/xml/axi/impl/DefaultSchemaGenerator.java <--new revision: 1.1.2.16 axi/src/org/netbeans/modules/xml/axi/impl/VenetianBlind.java <--new revision: 1.1.2.9 Verified in build 060726. |