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 230337 - IllegalArgumentException: Filter filter-declarations not found.
Summary: IllegalArgumentException: Filter filter-declarations not found.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords: REGRESSION
: 230423 (view as bug list)
Depends on: 230538
Blocks:
  Show dependency tree
 
Reported: 2013-05-27 16:46 UTC by Egor Ushakov
Modified: 2013-06-08 01:07 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200957


Attachments
stacktrace (927 bytes, text/plain)
2013-05-27 16:46 UTC, Egor Ushakov
Details
stacktrace (927 bytes, text/plain)
2013-06-04 17:58 UTC, tbrunhoff
Details
stacktrace (927 bytes, text/plain)
2013-06-04 18:01 UTC, tbrunhoff
Details
stacktrace (927 bytes, text/plain)
2013-06-05 09:13 UTC, Alexander Simon
Details
stacktrace (927 bytes, text/plain)
2013-06-05 10:43 UTC, Alexander Simon
Details
stacktrace (927 bytes, text/plain)
2013-06-05 10:46 UTC, Alexander Simon
Details
stacktrace (781 bytes, text/plain)
2013-06-06 14:52 UTC, Vladimir Voskresensky
Details
stacktrace (781 bytes, text/plain)
2013-06-06 15:31 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2013-05-27 16:46:29 UTC
Build: NetBeans IDE Dev (Build 20130527-9d7c45d7e17b)
VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: SunOS

User Comments:
gorrus: during find usages




Stacktrace: 
java.lang.IllegalArgumentException: Filter filter-declarations not found.
   at org.netbeans.modules.refactoring.spi.impl.FiltersManagerImpl$FiltersComponent.isSelected(FiltersManagerImpl.java:194)
   at org.netbeans.modules.refactoring.spi.impl.FiltersManagerImpl.isSelected(FiltersManagerImpl.java:86)
   at org.netbeans.modules.cnd.refactoring.elements.CsmRefactoringElementImpl.filter(CsmRefactoringElementImpl.java:139)
   at org.netbeans.modules.refactoring.api.RefactoringElement.include(RefactoringElement.java:193)
   at org.netbeans.modules.refactoring.spi.impl.RefactoringPanel$4.run(RefactoringPanel.java:785)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 1 Egor Ushakov 2013-05-27 16:46:31 UTC
Created attachment 134962 [details]
stacktrace
Comment 2 Egor Ushakov 2013-05-27 17:02:59 UTC
We require to change default selected state of the filters based on the find usages properties set by the user, currently addFilters is called before user specify anything, so we have select/deselect filters in enableFilters.
Unfortunately there is no way to select/deselect existing filters in FiltersDescription, so we add Filters in enableFilters.
It seems that this approach does not work.
Please introduce a way to select/deselect existing filters in FiltersDescription.
Comment 3 Egor Ushakov 2013-05-29 09:37:00 UTC
*** Bug 230423 has been marked as a duplicate of this bug. ***
Comment 4 Ralph Ruijs 2013-05-29 11:00:57 UTC
(In reply to comment #2)
> We require to change default selected state of the filters based on the find
> usages properties set by the user, currently addFilters is called before user
> specify anything, so we have select/deselect filters in enableFilters.
> Unfortunately there is no way to select/deselect existing filters in
> FiltersDescription, so we add Filters in enableFilters.
> It seems that this approach does not work.

This approach will not work and I think is clearly documented in the method naming and javadoc.

> Please introduce a way to select/deselect existing filters in
> FiltersDescription.

Looking at the code from CsmWhereUsedQueryPlugin.java, it is not clear to me why you want to solve it like this. If there is a clear scenario where this the only reasonable way to go, please file a separate rfe to add this functionality.
Comment 5 Egor Ushakov 2013-05-31 12:32:45 UTC
I can disable the functionality but can not do the fix without API change, see bug 230538
Comment 6 tbrunhoff 2013-06-04 17:58:27 UTC
Created attachment 135346 [details]
stacktrace

doing "find usages..."
Comment 7 tbrunhoff 2013-06-04 18:01:29 UTC
Created attachment 135347 [details]
stacktrace

find usages...
Comment 8 tbrunhoff 2013-06-04 18:04:11 UTC
For the version below, "find usages..." is usless, which makes NB useless.

Product Version: NetBeans IDE Dev (Build 201306032301)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 9 Alexander Simon 2013-06-05 09:13:28 UTC
Created attachment 135367 [details]
stacktrace

find usages
Comment 10 Exceptions Reporter 2013-06-05 09:13:35 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200957
Comment 11 Alexander Simon 2013-06-05 10:43:28 UTC
Created attachment 135375 [details]
stacktrace

FU
Comment 12 Alexander Simon 2013-06-05 10:46:28 UTC
Created attachment 135376 [details]
stacktrace

FU
Comment 13 Vladimir Voskresensky 2013-06-06 14:52:29 UTC
Created attachment 135455 [details]
stacktrace

not possible find usages
Comment 14 Exceptions Reporter 2013-06-06 14:52:34 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200957
Comment 15 Vladimir Voskresensky 2013-06-06 15:31:30 UTC
Created attachment 135458 [details]
stacktrace

FU
Comment 16 Vladimir Voskresensky 2013-06-06 17:46:24 UTC
FindUsage is unusable in trunk
Comment 17 Egor Ushakov 2013-06-07 08:34:47 UTC
I will disable filters until bug 230538 is fixed
Comment 18 Egor Ushakov 2013-06-07 09:56:22 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/c812954e42c6

disabled filters for now
Comment 19 Quality Engineering 2013-06-08 01:07:54 UTC
Integrated into 'main-golden', will be available in build *201306072301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c812954e42c6
User: Egor Ushakov <gorrus@netbeans.org>
Log: disabled find usages filtering, fixed #230337 - IllegalArgumentException: Filter filter-declarations not found.