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 186500 - Creating a new project indicates Reference Problem.
Summary: Creating a new project indicates Reference Problem.
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2010-05-21 12:10 UTC by Peter Pis
Modified: 2010-05-28 08:04 UTC (History)
2 users (show)

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 Peter Pis 2010-05-21 12:10:44 UTC
Product Version: NetBeans IDE Dev (Build 100521-70a0fc425a0d)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
System: Linux version 2.6.31-21-generic running on i386; UTF-8; en_US (nb)

Creating a new project indicates Reference Problem.

Problem: The project uses a class library called "junit", but this class library was not found.
Solution: Click Resolve to open the Library Manager and create a new class library called "junit".
Comment 1 Jesse Glick 2010-05-24 17:03:34 UTC
Indeed, I get on console

WARNING [org.netbeans.modules.project.libraries.LibrariesStorage]: Cannot load library from file org-netbeans-api-project-libraries/Libraries/junit-3.8.2.xml in Default System, reason: Unspecified library type for: junit

even though the descriptor says <type>j2se</type>.

Not sure if this could be a side effect of bug #186623, but if so, there is still a serious robustness issue in the parser.
Comment 2 Peter Pis 2010-05-25 14:28:42 UTC
It happened in trunk only and randomly.
Comment 3 Tomas Zezula 2010-05-25 14:39:37 UTC
Jesse, do you have steps how to reproduce it?
Thanks
Comment 4 Jesse Glick 2010-05-25 15:18:54 UTC
No special steps. Just start cluster.config=basic with a fresh userdir. Warning is printed regarding junit-3.8.2 lib, and j2seproject's show broken references.

Are you trying in a build with or without the fix of bug #186623? Again, I suspect this is a downstream bug.
Comment 5 Tomas Zezula 2010-05-25 15:28:43 UTC
I was trying it with Peter on the same build he reported the problem.
I will update before the fix, rebuild the IDE and try.
Comment 6 Peter Pis 2010-05-26 08:16:52 UTC
I did update and rebuild from latest sources of jet-main and I am not able to reproduce it.
Comment 7 Tomas Zezula 2010-05-26 08:36:08 UTC
Thanks Jesse,
the issue #186623 is the root cause. I am now able to reproduce it. I will rewrite the LibDeclParser not to be reused as it's much saver.
Comment 8 Tomas Zezula 2010-05-26 09:50:02 UTC
Fixed in jet-main 904838b4d60b
Comment 9 Quality Engineering 2010-05-28 08:04:53 UTC
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/904838b4d60b
User: Tomas Zezula <tzezula@netbeans.org>
Log: #186500:Creating a new project indicates Reference Problem