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 180734 - AssertionError at org.netbeans.modules.maven.classpath.EndorsedClassPathImpl.getResources
Summary: AssertionError at org.netbeans.modules.maven.classpath.EndorsedClassPathImpl....
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 180746 180758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-15 07:12 UTC by Martin Schovanek
Modified: 2010-02-18 12:18 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165248


Attachments
stacktrace (7.18 KB, text/plain)
2010-02-15 07:12 UTC, Martin Schovanek
Details
stacktrace (2.17 KB, text/plain)
2010-02-15 13:15 UTC, athompson
Details
Save as $NBHOME/java/modules/patches/org-netbeans-modules-maven/180746.jar (8.87 KB, application/octet-stream)
2010-02-15 15:59 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2010-02-15 07:12:06 UTC
Build: NetBeans IDE Dev (Build 201002150200)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
mschovanek: Started NB with some projects opened.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.maven.classpath.EndorsedClassPathImpl.getResources(EndorsedClassPathImpl.java:85)
   at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:305)
   at org.netbeans.api.java.classpath.ClassPath.<init>(ClassPath.java:355)
   at org.netbeans.api.java.classpath.ClassPath.<init>(ClassPath.java:108)
   at org.netbeans.api.java.classpath.ClassPath$1.createClassPath(ClassPath.java:113)
   at org.netbeans.spi.java.classpath.ClassPathFactory.createClassPath(ClassPathFactory.java:66)
Comment 1 Martin Schovanek 2010-02-15 07:12:12 UTC
Created attachment 94162 [details]
stacktrace
Comment 2 athompson 2010-02-15 13:15:07 UTC
Created attachment 94170 [details]
stacktrace

opened a maven project
Comment 3 athompson 2010-02-15 13:18:41 UTC
This prevents me from opening any Maven projects.  P1.
Comment 4 Antonin Nebuzelsky 2010-02-15 13:37:39 UTC
*** Bug 180746 has been marked as a duplicate of this bug. ***
Comment 5 Jesse Glick 2010-02-15 14:03:26 UTC
Nothing to do with #180536.

Circular definition problem; code was relying on unstated assumptions about
when certain methods would be called, which then changed. Improved: core-main
#bcf5d4e61572

BTW tzezula's changes (coming in jet-main I think) would also make this
exception disappear.
Comment 6 athompson 2010-02-15 14:28:53 UTC
Just out of curiosity: what's "jet-main"?
Comment 7 Jesse Glick 2010-02-15 14:39:59 UTC
http://hg.netbeans.org/jet-main/rev/52c0bc149cd4
Comment 8 Jesse Glick 2010-02-15 15:59:38 UTC
Created attachment 94177 [details]
Save as $NBHOME/java/modules/patches/org-netbeans-modules-maven/180746.jar
Comment 9 athompson 2010-02-16 09:52:48 UTC
I see, so the editor team (and presumably the other teams as well) uses a separate repository which gets merged into the main repository?

BTW, the patch works here, although there is a disquietingly long pause at startup.
Comment 10 Jesse Glick 2010-02-16 09:56:01 UTC
(In reply to comment #9)
> so the editor team (and presumably the other teams as well) uses a
> separate repository which gets merged into the main repository?

main is a (deprecated) team repository; all team repos get merged into main-silver.

http://wiki.netbeans.org/HgParallelProjectIntegration
Comment 11 Jesse Glick 2010-02-16 10:17:05 UTC
*** Bug 180758 has been marked as a duplicate of this bug. ***
Comment 12 athompson 2010-02-18 08:34:57 UTC
The problem seems to have gone away for me in the today's (or yesterday's) build, without the patch.  Verified?
Comment 13 Jesse Glick 2010-02-18 10:47:05 UTC
(In reply to comment #12)
> today's (or yesterday's) build, without the patch

See bug #180746 comment #2.
Comment 14 athompson 2010-02-18 11:53:02 UTC
yup
Comment 15 athompson 2010-02-18 11:53:53 UTC
Whoops, am I allowed to verify someone else's bug?
Comment 16 Martin Schovanek 2010-02-18 12:18:37 UTC
Thanks for the verification, it is absolutely correct. If you are able check the fix you can verify it.