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.
using coco, solaris, using localized and pseudo localized jars in ja locale 1. create uml project,create class diagram, drop a class and give a name to it. 1a. create java project ; 2. choose generate code in the explorer menu of the uml project, choose the javaproject src dir in generate code file chooser, then choose OK in generate code window. 3. below output window on right is an error badge and it blinks (nothing is shown in output window. 4. no code is generated in the java project chosen. 5. exception from messages.log will be below 6. investigation showed that if the words OK are localized in one of the bundle files in org-netbeans-core-windows_ja.jar, that the problem happens (which of the OK key/values in that file is not known; see the jar) 7. real localization, at least for nb5.0 ja, does localize the words OK in this bundle file - that is why making it P1. 8. am guessing that some programattic comparison is done using the word OK rather than the value from the bundle, that might cause the exception and problem. 9. exception in messages.log *********** Exception occurred ************ at 5:45 PM on Nov 12, 2006 java.lang.NullPointerException at org.netbeans.spi.project.support.ant.EditableProperties.put(EditableProperties.java:212) at org.netbeans.spi.project.support.ant.EditableProperties.setProperty(EditableProperties.java:246) at org.netbeans.modules.uml.integration.netbeans.actions.ExportCodeAction.performAction(ExportCodeAction.java:206) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:531) at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:47) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:527) 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:3093) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) 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)
Removed some unnecessary code. That should do the trick.
verified re translated the ok buttons in nb jar file mentioned below and then did the scenario and it did generate the code. ken.frank@sun.com