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.
i am having this error while using The UML nbm in netbeans5.5 Please help asap : A java.lang.NullPointerException exception has occurred. Please report this at http://www.netbeans.org/community/issues.html, including a copy of your messages.log file as an attachment. The messages.log file is located in your C:\Documents and Settings\Administrator\.netbeans\5.5\var\log folder. and the following are details: java.lang.NullPointerException at org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl.enterModeFromButton(ADDrawingAreaControl.java:4584) at org.netbeans.modules.uml.palette.PaletteSupport$PalettePropertyChangeListener.propertyChange(PaletteSupport.java:176) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at org.netbeans.spi.palette.PaletteController$1.propertyChange(PaletteController.java:159) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at org.netbeans.modules.palette.DefaultModel.setSelectedItem(DefaultModel.java:92) at org.netbeans.modules.palette.ui.PalettePanel.select(PalettePanel.java:236) at org.netbeans.modules.palette.ui.CategoryDescriptor$2.valueChanged(CategoryDescriptor.java:91) at javax.swing.JList.fireSelectionValueChanged(JList.java:1675) at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1689) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:408) at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:417) at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:441) at javax.swing.JList.setSelectionInterval(JList.java:1962) at javax.swing.plaf.basic.BasicListUI$Handler.adjustSelection(BasicListUI.java:2704) at javax.swing.plaf.basic.BasicListUI$Handler.mousePressed(BasicListUI.java:2667) at javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mousePressed(BasicListUI.java:1496) at org.netbeans.modules.palette.ui.CategoryList$CategoryListUI$ListMouseInputHandler.mousePressed(CategoryList.java:409) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.Component.processMouseEvent(Component.java:5996) at javax.swing.JComponent.processMouseEvent(JComponent.java:3240) at java.awt.Component.processEvent(Component.java:5764) at java.awt.Container.processEvent(Container.java:1984) at java.awt.Component.dispatchEventImpl(Component.java:4407) at java.awt.Container.dispatchEventImpl(Container.java:2042) at java.awt.Component.dispatchEvent(Component.java:4237) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3909) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842) at java.awt.Container.dispatchEventImpl(Container.java:2028) at java.awt.Window.dispatchEventImpl(Window.java:2405) at java.awt.Component.dispatchEvent(Component.java:4237) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Created attachment 36905 [details] messages.log file
the problem happened after adding them.
Can you give us a little more information? From the exeception it looks like you pressed a button on the toolbar, or on the palette. can you tell me which button was selected? Also, what diagram where you using?
i used my administrator account to update netbeans with UML nbm. then i created a new Uml Project , and seleted the use case diagram. The new diagram was grey as if disabled. When i try to select something from the palette a red stop sign signals in the lower right corner of my IDE with the errors i mentioned. Ps: i noticed that when i use a different user with no administrative priveliges , the project runs fine . Please advise. Thanks .
Your log file indicates you were using ar_LB locale, UML uses TomSawyer drawing library which has a known issue with Arabic encoding, see http://forum.java.sun.com/thread.jspa?forumID=747&threadID=5060088 It fails at the license validation. The workaround is to start IDE under en locale, you mentioned you didn't have the problem with a different user account, it could be that account has a different locale setting.
thanks sherylSU. For solving the problem.
In my opinion the issue isn't fixed but has a workaround
see also issue 95549 - diagram drawing area is not shown if ar_SA locale is used
*** Issue 95549 has been marked as a duplicate of this issue. ***
The workaround to start in en locale wont help users who need to be in their own locale. Is this still a problem in curent griffin uml ? ken.frank@sun.com
*** Issue 96708 has been marked as a duplicate of this issue. ***
*** Issue 85880 has been marked as a duplicate of this issue. ***
*** Issue 102830 has been marked as a duplicate of this issue. ***
This is directly caused by TomSawyer license validation logic failing on Arabic locale, the plan is to migrate to new NB drawing library Meteora, this should be waived for NB6.0 release then.
Waiver candidates from 7/12/2007 bug scrub.
*** Issue 116498 has been marked as a duplicate of this issue. ***
is Tom Sawyer lib still used for uml for nb6 ? ken.frank@sun.com
for NB6.0, yes.
is there a way the license check can be intercepted and then correct the problem characters ? since am assuming there is some uml code that then calls tom sawyer licensing code ? ken.frank@sun.com
*** Issue 121460 has been marked as a duplicate of this issue. ***
Reviewed and approved for waiver by UML -iteam.
*** Issue 130799 has been marked as a duplicate of this issue. ***
In ar_SA locale, here's the result of verification in NB 6.5. # work in diagram drawing area for the currently supported 5 diagram types: activity, class, sequence, state, use case # Arabic characters can be entered in element names, attributes, operations # typing in invocation & signal elelements in activity diagram is not visible till Enter is pressed then typed text showed up # typing in comment element in any diagram type is not visible till Enter to show up
I18N support is targeted for 6.5M2.
Since we are now using the NetBeans Visual Library this should not longer be a problem. Please retest this issue.