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 147167 - NullPointerException at org.netbeans.modules.uml.drawingarea.actions.SceneAcceptAction.<init>
Summary: NullPointerException at org.netbeans.modules.uml.drawingarea.actions.SceneAcc...
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@uml
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 03:43 UTC by iberck
Modified: 2009-11-09 06:38 UTC (History)
24 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 111397


Attachments
stacktrace (4.03 KB, text/plain)
2008-09-13 03:43 UTC, iberck
Details
stacktrace (3.75 KB, text/plain)
2008-12-15 09:47 UTC, Exceptions Reporter
Details
Log file - I made an error occur just before posting to make it complete (82.07 KB, text/plain)
2009-01-02 06:00 UTC, _ wadechandler
Details
Log file from a working installation on the same machine using the same JDK (26.35 KB, text/plain)
2009-01-02 08:04 UTC, _ wadechandler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iberck 2008-09-13 03:43:00 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
Comment 1 iberck 2008-09-13 03:43:04 UTC
Created attachment 69794 [details]
stacktrace
Comment 2 Sergey Petrov 2008-09-15 10:40:18 UTC
it's easy to add defensive code here but it's better to know use-case.
is there any specific steps to reproduce the exception?
Comment 3 Sergey Petrov 2008-11-18 12:38:23 UTC
incomplete for more then 4 weeks, can't be fixed without additional details or was fixed with other changes, feel free
to reopen if still reproducible and please provide more details on the issue.
Comment 4 Exceptions Reporter 2008-12-15 09:47:11 UTC
Build: NetBeans IDE 6.5 (Build 200811131701)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.uml.drawingarea.actions.SceneAcceptAction.<init>(SceneAcceptAction.java:98)
        at org.netbeans.modules.uml.drawingarea.UMLDiagramTopComponent$6.propertyChange(UMLDiagramTopComponent.java:750)
        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:179)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
Comment 5 Exceptions Reporter 2008-12-15 09:47:14 UTC
Created attachment 74944 [details]
stacktrace
Comment 6 _ wadechandler 2008-12-29 01:24:02 UTC
I have upped the issue to a P2. There is no workaround as UML is completely broken. The palette items show up with no
icons or information other than the links to the files which are to contain their information such as
UseCase.modeling_palette_item. When you click on a palette item you receive:
java.lang.NullPointerException
        at org.netbeans.modules.uml.drawingarea.actions.SceneAcceptAction.<init>(SceneAcceptAction.java:98)
        at org.netbeans.modules.uml.drawingarea.UMLDiagramTopComponent$6.propertyChange(UMLDiagramTopComponent.java:750)
        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:179)

I installed UML from the update center. I have installed the updates to 6.5 from the update center. I have no idea if
UML worked before, but will try to investigate. I'll try to uninstall the module and add it back and see if that some
how helps. If not I'll make a test user dir to see if I can get it to work. And I'll just go from there.
Comment 7 Sergey Petrov 2008-12-29 07:00:54 UTC
Can you attach message.log, it may contain information if any module failed to start or got any problem with initializing&
Comment 8 _ wadechandler 2009-01-02 06:00:37 UTC
Created attachment 75400 [details]
Log file - I made an error occur just before posting to make it complete
Comment 9 _ wadechandler 2009-01-02 06:58:24 UTC
I was looking at my install, and even though I never chose to install modules globally, they are all installed in my
installation versus my user directory. I don't know if this may or may not have some kind of a problem or not. I'm
downloading a zip distribution of the 6.5 release to try further testing.
Comment 10 _ wadechandler 2009-01-02 08:00:23 UTC
OK, so I grabbed just the Java version, and I don't have iReport or anything installed into it, and I just installed the
UML module and was able to get that working. I'm going to restart, clear the log, and then attach the log. If I zip my
user directory and my NB installation directory and put them some where you could download them privately would that
help you diagnose what the issue is? Seems some combination maybe kept it from installing correctly or loading
correctly. I'll try to uninstall it and reinstall it and see how that goes first though...this from the one which isn't
working; well I'll backup those things first I guess, and then if you need them I can get them to you some how. If that
fixes it maybe taking and comparing the two before and after might help address what went wrong as it has apparently
happened to other people.
Comment 11 _ wadechandler 2009-01-02 08:04:53 UTC
Created attachment 75401 [details]
Log file from a working installation on the same machine using the same JDK
Comment 12 _ wadechandler 2009-01-02 09:11:24 UTC
I don't remember seeing this before, but when I tried to install the UML support again I received:
INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Timeout waiting for loading module
org.netbeans.modules.uml.codegen/1.2
INFO [org.netbeans.modules.autoupdate.ui.wizards.InstallStep]: timeout of loading UML Code
Generation[org.netbeans.modules.uml.codegen/1.2]
org.netbeans.api.autoupdate.OperationException: timeout of loading UML Code Generation[org.netbeans.modules.uml.codegen/1.2]
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl$3.call(InstallSupportImpl.java:406)
	at org.netbeans.modules.autoupdate.services.InstallSupportImpl$3.call(InstallSupportImpl.java:278)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)

I'm restarting to see if it possibly works anyways. I'll report more later.
Comment 13 _ wadechandler 2009-01-02 09:28:09 UTC
No go on reinstalling and restarting. I tried with a different user directory. This was the user directory from the
working instance of NB. One strange thing I just noticed was that apparently on Windows the update center installs
things into the base NB installation instead of the user directory, and doesn't give any options. I don't know what that
is about. Anyways, the weird thing here is that the project I created in the working instance seemingly worked OK except
for the palette is broken. The elements I had created in a diagram in the working instance opened in the broken one, and
I could move the elements around, and their actions showed up, so I could click generalization in a use case diagram and
another use case would be created. The palette doesn't work however. The palette doesn't work in any diagram type. Would
you like me to find a place for you to privately download the my NB instances and user directories for comparisons? I
have already zipped up the one user directory and non-working NB instance. I can do the same for the working.
Comment 14 Sergey Petrov 2009-01-05 15:43:44 UTC
it's not 100% will help, but seems reasonable to try your installation. thanks.
Comment 15 yossarian 2009-01-23 20:30:40 UTC
I got the pallette back by deactivating the plugin, closing all UML projects; restarting the ide & reactivating the UML 
plugin.
Comment 16 Sergey Petrov 2009-01-27 12:49:04 UTC
this one issue may have workaround according to last comment, so may be reviewed as P3, but still no ideas on how to
reproduce. may be system configuration issue, i.e. netbeans config or java config/ libraries conflict etc.
Comment 17 moilejter 2009-08-10 18:40:56 UTC
I ran into this same issue, and the workaround suggested above worked for me, too:
- close UML project
- deactivate UML plugin
- shut down NetBeans 6.7
- start up NetBeans 6.7
- activate UML plugin
- open UML project

On newly opened project, palette shows icons, and dragging them into canvas works.
Comment 18 Exceptions Reporter 2009-08-26 10:32:50 UTC
This issue already has 150 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=111397
Comment 19 Exceptions Reporter 2009-08-26 10:33:48 UTC
This issue already has 151 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=111397
Comment 20 Exceptions Reporter 2009-08-26 10:34:42 UTC
This issue already has 151 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=111397
Comment 21 pelmaso12 2009-11-09 06:38:59 UTC
I ran into this same issue, and the workaround suggested above worked for me,
too:
- close UML project
- deactivate UML plugin
- shut down NetBeans 6.7
- start up NetBeans 6.7
- activate UML plugin
- open UML project


Its correct its working