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 188100 - ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
Summary: ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: Registration (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-25 17:54 UTC by abajja
Modified: 2010-06-29 03:21 UTC (History)
0 users

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 abajja 2010-06-25 17:54:29 UTC
[ BUILD # : 201006101454 ] Netbeans 6.9
[ JDK VERSION : 1.6.20 ]

Test case (Ref. bug#186371)
=========
0.- New install 6.9, new userdir
1.- Create a suite
2.- Add an OSGi bundle M3 and a netbeans module M2 to the suite
3.- Import bundle by adding clusters (e.g. org.apache.felix.prefs,
org.apache.felix.log-1.0.0.jar)
4.- Add dependencies on the imported bundles for both M2 and M3
5.- Run in felix

A)
start-output__________________________________
ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at org.netbeans.modules.reglib.NbServiceTagSupport.init(NbServiceTagSupport.java:137)
        at org.netbeans.modules.reglib.NbServiceTagSupport.createNbServiceTag(NbServiceTagSupport.java:286)
        at org.netbeans.modules.registration.NbInstaller.restored(NbInstaller.java:100)
        at org.netbeans.core.osgi.Activator.load(Activator.java:246)
        at org.netbeans.core.osgi.Activator.processLoadedBundles(Activator.java:148)
        at org.netbeans.core.osgi.Activator.access$000(Activator.java:93)
        at org.netbeans.core.osgi.Activator$1.frameworkEvent(Activator.java:127)
        at 

org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:767)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:724)
        at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:942)
        at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
        at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
        at java.lang.Thread.run(Thread.java:619)
End-output__________________________________


B) The starting application freezes (I get just the spalsh screen)
Comment 1 Jesse Glick 2010-06-25 18:13:19 UTC
I think you meant to configure the suite as a standalone application. Certainly you do not want to be including the reglib module.
Comment 2 dlipin 2010-06-28 11:07:37 UTC
please attach full messages.log file. Thanks.
Comment 3 dlipin 2010-06-28 11:44:52 UTC
Will disable registration UI and activity in case netbeans.home property is not set (in other words - in case of not NetBeans IDE installation)

http://hg.netbeans.org/main/rev/1bfffb2845a1
Comment 4 Quality Engineering 2010-06-29 03:21:04 UTC
Integrated into 'main-golden', will be available in build *201006290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1bfffb2845a1
User: Dmitry Lipin <dlipin@netbeans.org>
Log: Issue #188100 ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)