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 215563 - Find usages broken (hangs) in NB 7.2 RC1 in EJB projects with an ejb-jar.xml file
Summary: Find usages broken (hangs) in NB 7.2 RC1 in EJB projects with an ejb-jar.xml ...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P1 normal with 4 votes (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 216056 217974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-16 05:13 UTC by ironduke
Modified: 2013-11-06 19:47 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Maven EAR project with broken find usages (7.84 KB, application/x-zip-compressed)
2012-07-16 05:13 UTC, ironduke
Details
Thread dump of hanging find usages in NB 7.2 RC 1 (24.96 KB, text/plain)
2012-07-16 12:02 UTC, ironduke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ironduke 2012-07-16 05:13:32 UTC
Created attachment 122041 [details]
Maven EAR project with broken find usages

Find usages does not work in NB 7.2 RC 1 in an EJB project that has an ejb-jar.xml file. It gets stuck at various percentages on the 'initializing data' progress bar. Sometimes it's 87%, sometimes it's 97%. The usages doesn't find anything.

I've tested this against various Java EE 5, Java EE 6, ant and maven based EAR projects that have an EJB and WAR module. None of them work in NB 7.2 RC 1, all of them work fine in NB 7.1.1.

I created a new sample maven based EAR app attached to this defect. I've attached the project, try finding usages on 'ClassToFindUsagesOf', it fails. Then remove/rename ejb-jar.xml and try it again, it works.

This needs fixing ASAP for obvious reasons.
Comment 1 Jiri Prox 2012-07-16 11:38:32 UTC
Can you please attach thread dump? I'm not able to reproduce it, even with the sample project
Comment 2 ironduke 2012-07-16 12:02:52 UTC
Created attachment 122056 [details]
Thread dump of hanging find usages in NB 7.2 RC 1

I've attached a thread dump. The find usages dialog hangs permanently, you have to cancel it. I've reproduced it on my home pc as well as my work one (both 64 bit Win7). It happens in java 6, java 7, 32 bit and 64 bit.
Comment 3 Jiri Prox 2012-07-16 13:03:25 UTC
Thanks, now I can reproduce it as well with full ide distribution
Comment 4 Jan Becicka 2012-07-17 12:42:13 UTC
Changeset: bc6d4e4dfce8
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2012-07-17 14:41
Message:   
Issue #215563 - Find usages broken (hangs) in NB 7.2 RC1 in EJB projects with an ejb-jar.xml file
Comment 5 Jan Becicka 2012-07-17 12:46:26 UTC
Affect Find Usages which has Warnings (afaik only EJB implements warning for Find Usages)
Comment 6 Quality Engineering 2012-07-20 13:58:05 UTC
Integrated into 'main-golden', will be available in build *201207201342* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bc6d4e4dfce8
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #215563 - Find usages broken (hangs) in NB 7.2 RC1 in EJB projects with an ejb-jar.xml file
Comment 7 ironduke 2012-08-02 16:37:19 UTC
Can this be moved to 7.2.1? Effectively the 7.2 release is unusable for any Ejb projects (which I assume is a lot of them) since find usages is broken. For those projects I have to use 7.1.2 which is a pain. I'd think a p1 should get released ASAP?
Comment 8 jader2000 2012-08-03 07:28:21 UTC
I have to agree. This defect make 7.2 unusable :(
Comment 9 ironduke 2012-08-03 07:37:06 UTC
I've set the target milestone to 7.2.1. I hope no one complains.
Comment 10 Jiri Prox 2012-08-03 08:36:45 UTC
This will be part of patch1, it is already nominated.
Comment 11 Jiri Prox 2012-08-03 09:25:01 UTC
verified in trunk (and set correct TM, will be set to 7.2.1 when the fix is ported to proper branch)
Comment 12 Ralph Ruijs 2012-08-06 07:59:35 UTC
*** Bug 216056 has been marked as a duplicate of this bug. ***
Comment 13 Ralph Ruijs 2012-08-31 12:38:07 UTC
http://hg.netbeans.org/releases/rev/7664b4f9ebcf
Comment 14 Quality Engineering 2012-09-01 11:05:22 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/7664b4f9ebcf
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #215563 - Find usages broken (hangs) in NB 7.2 RC1 in EJB projects with an ejb-jar.xml file
Comment 15 Jiri Prox 2012-09-07 08:34:45 UTC
*** Bug 217974 has been marked as a duplicate of this bug. ***
Comment 16 jader2000 2012-10-02 07:35:02 UTC
Is there any patch or we should wait for 7.3?
Comment 17 Petr Jiricka 2012-10-02 14:02:52 UTC
This is a part of NB 7.2 patch1 that was just released several days ago.
Comment 18 jader2000 2012-10-02 14:35:24 UTC
Yup, I didn't noticed it. It works perfectly now, thank You.
Comment 19 SoaBeaner 2013-11-06 19:42:08 UTC
The bug with "Find usages" still exist in NB 7.3.1 (or reappear), in different types of projects, so i do not associate it with some file, and it seems like even for projects without ejb-jar.xml.
It finds what has been searched, and when i click a found item, ide hangs.
Comment 20 Ralph Ruijs 2013-11-06 19:46:21 UTC
(In reply to SoaBeaner from comment #19)
> The bug with "Find usages" still exist in NB 7.3.1 (or reappear), in
> different types of projects, so i do not associate it with some file, and it
> seems like even for projects without ejb-jar.xml.
> It finds what has been searched, and when i click a found item, ide hangs.

Please create a new bug for the issue you describe. Attach a thread dump[1] and preferably also a small test-project with steps to reproduce. Thanks !

[1] http://wiki.netbeans.org/GenerateThreadDump