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 77288 - MissingResourceException when selecting xsd:all node in schema view
Summary: MissingResourceException when selecting xsd:all node in schema view
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-02 12:52 UTC by Andrei Chistiakov
Modified: 2006-07-03 12:14 UTC (History)
4 users (show)

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 Andrei Chistiakov 2006-06-02 12:52:00 UTC
Reproduced in build 060530.

To reproduce:

- open the following schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="http://xml.netbeans.org/examples/targetNS"
            xmlns:tns="http://xml.netbeans.org/examples/targetNS"
            elementFormDefault="qualified">
    <xsd:complexType name="ComplexType-0">
        <xsd:all minOccurs="1">
            <xsd:element name="untitled1" type="xsd:string"/>
            <xsd:element name="untitled13" type="xsd:decimal"/>
        </xsd:all>
    </xsd:complexType>
</xsd:schema>
- try to expand "All Components|ComplexType-0" in schema view.

Exception:
Annotation: Missing resource from class: org.openide.util.NbBundle$PBundle
Annotation: Key which was not found: LBL_AllNode_TypeDisplayName
java.util.MissingResourceException: Can't find resource for bundle
org.openide.util.NbBundle$PBundle, key LBL_AllNode_TypeDisplayName
    at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
    at java.util.ResourceBundle.getString(ResourceBundle.java:286)
    at org.openide.util.NbBundle.getMessage(NbBundle.java:617)
    at
org.netbeans.modules.xml.schema.ui.nodes.schema.AllNode.getTypeDisplayName(AllNode.java:63)
    at
org.netbeans.modules.xml.schema.ui.nodes.SchemaComponentNode.getHtmlTypeDisplayName(SchemaComponentNode.java:319)
    at
org.netbeans.modules.xml.schema.ui.nodes.TypeNameFilterNode.getHtmlDisplayName(TypeNameFilterNode.java:69)
    at org.openide.nodes.FilterNode.getHtmlDisplayName(FilterNode.java:720)
    at
org.openide.explorer.view.VisualizerNode.getHtmlDisplayName(VisualizerNode.java:512)
    at
org.openide.explorer.view.NodeRenderer.getTreeCellRendererComponent(NodeRenderer.java:100)
    at
javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2693)
    at
javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:475)
    at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1342)
    at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getXOrigin(VariableHeightLayoutCache.java:1125)
    at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getNodeBounds(VariableHeightLayoutCache.java:1112)
    at
javax.swing.tree.VariableHeightLayoutCache.getBounds(VariableHeightLayoutCache.java:202)
    at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1162)
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
    at javax.swing.JComponent.paintComponent(JComponent.java:742)
    at javax.swing.JComponent.paint(JComponent.java:1005)
    at
org.openide.explorer.view.TreeView$ExplorerTree.access$1101(TreeView.java:1395)
    at
org.openide.explorer.view.TreeView$ExplorerTree.guardedPaint(TreeView.java:1529)
    at
org.openide.explorer.view.TreeView$ExplorerTree.access$1400(TreeView.java:1395)
    at
org.openide.explorer.view.TreeView$ExplorerTree$GuardedActions.run(TreeView.java:1809)
    at org.openide.util.Mutex.readAccess(Mutex.java:221)
    at
org.openide.explorer.view.TreeView$ExplorerTree$GuardedActions.<init>(TreeView.java:1803)
    at org.openide.explorer.view.TreeView$ExplorerTree.paint(TreeView.java:1506)
    at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
    at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
    at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
[catch] at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    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 bhate 2006-06-27 22:05:33 UTC
Added missing resource
xml/schema/schemaui/src/org/netbeans/modules/xml/schema/ui/nodes/schema/Bundle.properties
+++ Bundle.properties	27 Jun 2006 20:55:06 -0000	1.1.2.3
+LBL_AllNode_TypeDisplayName=All
Comment 2 Andrei Chistiakov 2006-07-03 12:14:32 UTC
Verified in build 060630_1.