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 242531 - org.openide.util.lookup.ALPairComparator$DuplicatedPairException: Duplicate pair in treePair1: org.netbeans.modules.versioning.FileBasedVCSProvider pair2: org.netbeans.modules.projectapi.ProjectFileBu
Summary: org.openide.util.lookup.ALPairComparator$DuplicatedPairException: Duplicate p...
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 7.4
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 04:03 UTC by Exceptions Reporter
Modified: 2014-07-30 11:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208124


Attachments
stacktrace (1.46 KB, text/plain)
2014-03-04 04:03 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-03-04 04:03:55 UTC
This bug was originally marked as duplicate of bug 166236, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
GUEST: trying to open options

GUEST: opened NetBeans 7 for the first time and got this... now the IDE will not allow me to close it AT ALL

GUEST: Attempting to compile a file in project

GUEST: My program doesnt open or run.

GUEST: I was tring to generate getter and setter methods for bean. Was right clicking on the variable.

GUEST: Trying to commit

GUEST: I just opened netbeans and a bunch of projects

GUEST: migrating from nb 6.9 to nb7

GUEST: Debugging Hibernate Class

GUEST: Problem in Resolve SVN Conflict.

txomon: I just upgraded from 6.9 to 7.0, uninstalled first 6.9 and then installed 7.0

GUEST: I was trying to conect with mysql, after imported my preferences of netbeans 6.9

GUEST: source format on jsp

GUEST: Starting Netbeans




Stacktrace: 
org.openide.util.lookup.ALPairComparator$DuplicatedPairException: Duplicate pair in treePair1: org.netbeans.modules.versioning.FileBasedVCSProvider pair2: org.netbeans.modules.projectapi.ProjectFileBuiltQuery index1: 99 index2: 99 item1: org.netbeans.modules.versioning.FileBasedVCSProvider@ba34b49 item2: org.netbeans.modules.projectapi.ProjectFileBuiltQuery@da3ab97 id1: 74564d7f id2: 4dfa0884

   at org.openide.util.lookup.ALPairComparator.compare(ALPairComparator.java:69)
   at org.openide.util.lookup.ALPairComparator.compare(ALPairComparator.java:54)
   at java.util.TreeMap.put(TreeMap.java:545)
   at java.util.TreeSet.add(TreeSet.java:255)
   at org.openide.util.lookup.AbstractLookup.getPairsAsLHS(AbstractLookup.java:332)
   at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:154)
Comment 1 Exceptions Reporter 2014-03-04 04:03:58 UTC
Created attachment 145730 [details]
stacktrace
Comment 2 Martin Entlicher 2014-03-10 10:15:47 UTC
Some issue with FileBasedVCSProvider?
Comment 3 Ondrej Vrabec 2014-03-10 10:27:13 UTC
exception reporter lists too many duplicates mentioning *not* only FileBasedVCSProvider. I expect it to be a general problem with lookup.
Comment 4 Jaroslav Tulach 2014-03-28 12:08:49 UTC
So the problem appears only with FileBasedVCSProvider and you conclude it is a general problem in Lookup. What a weird logic!
Comment 5 Ondrej Vrabec 2014-03-28 12:15:01 UTC
(In reply to Jaroslav Tulach from comment #4)
> So the problem appears only with FileBasedVCSProvider and you conclude it is
> a general problem in Lookup. What a weird logic!
Does it happen only with FileBasedVCSProvider? I don't think so, have you looked at the reports at all? I can list: FileBasedVCSProvider, DefaultModelProvider, NbLifecycleManager, NexusRepositoryIndexerImpl, NbURLDisplayer, ProjectLocaleQueryImplementation, DefaultOutputProcessorFactory, EnabledModulesCollector, and many other... Does my weird logic make sense now?
Comment 6 Jaroslav Tulach 2014-04-04 07:35:13 UTC
I see. Missed "not", probably because it was inside of some weird characters - e.g. *not*
Comment 7 Jaroslav Tulach 2014-04-04 07:44:28 UTC
The problem is that all the reports are too old and we can ignore them. Except 
http://statistics.netbeans.org/exceptions/exception.do?id=715306
which is from NetBeans 7.4. Previous reports of this kind included some sooner failure before the actual failure in Lookup. The report 715306 is an exception, there is no known failure before. Anyway it is just a single report of its kind, so let's adjust priority to P4.
Comment 8 Jaroslav Tulach 2014-07-30 11:35:11 UTC
No report from 8.0 - something must have been fixed.