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 241607

Summary: AssertionError at org.netbeans.modules.maven.ProjectOpenedHookImpl.<init>
Product: projects Reporter: markiewb
Component: MavenAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: normal CC: everflux, tzezula
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207437
Attachments: stacktrace
patch?
stacktrace

Description markiewb 2014-02-09 19:34:38 UTC
This bug was originally marked as duplicate of bug 224137, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201402090001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b127
OS: Windows 7

User Comments:
markiewb: Tried to open context menu of maven based web app, while NetBeans hasn't finished loading all the projects




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.maven.ProjectOpenedHookImpl.<init>(ProjectOpenedHookImpl.java:150)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
   at org.netbeans.modules.projectapi.LazyLookupProviders.loadPSPInstance(LazyLookupProviders.java:177)
Comment 1 markiewb 2014-02-09 19:34:40 UTC
Created attachment 144963 [details]
stacktrace
Comment 2 Milos Kleint 2014-02-10 13:21:47 UTC
Created attachment 144985 [details]
patch?
Comment 3 Tomas Zezula 2014-02-11 13:37:51 UTC
Seems OK to me.
Comment 4 everflux 2014-02-11 19:34:26 UTC
Created attachment 145055 [details]
stacktrace

started netbeans
Comment 5 Milos Kleint 2014-02-12 08:36:18 UTC
one open gate closed:
http://hg.netbeans.org/core-main/rev/e88173a29461

but I suspect there can be other as well. marking as fixed for now and await new stacktraces.
Comment 6 Quality Engineering 2014-02-13 02:43:48 UTC
Integrated into 'main-silver', will be available in build *201402130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e88173a29461
User: Milos Kleint <mkleint@netbeans.org>
Log: #241607 attempt to prevent multiple instances for one service being created and prevent multiple calls to setLookups()
Comment 7 Milos Kleint 2014-02-13 08:09:05 UTC
*** Bug 241796 has been marked as a duplicate of this bug. ***