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 64190 - java.lang.Exception when deleting a package with JUnit tests
Summary: java.lang.Exception when deleting a package with JUnit tests
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 09:08 UTC by Max Sauer
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SampleProject (584.61 KB, application/x-gzip)
2005-09-13 09:38 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2005-09-13 09:08:03 UTC
When attempting to delete a package with multiple JUnit tests, I got stream of
exceptions beginning with:

java.lang.Exception: ***** Info is null for element: sampleproject/KoloTest.java
(instanceof: org.netbeans.jmi.javamodel.Resource$Impl MOFID:
ED55C18A-2428-11DA-954D-B591E717AA77:0000000000000A62)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:193)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:321)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:315)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:140)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:185)
...

I'm attaching whole messages.log file.

[nb 5.0 200509122200, JDK 1.5.0_05 b03, solaris 10/sparc]
Comment 1 Max Sauer 2005-09-13 09:37:58 UTC
I can reproduce it in about 1/3 of attempts.

Steps to reproduce:
-------------------
1) Open attached SampleProject
2) In Projects tab, expand the Test Packages node
3) Expand the 'com.sun.ebank.ejb.customer' node
4) Try to delete whole package
-->stream of exceptions
Comment 2 Max Sauer 2005-09-13 09:38:43 UTC
Created attachment 24732 [details]
SampleProject
Comment 3 Pavel Flaska 2005-09-21 16:30:52 UTC
It seems that you have opened also another project. In sample project you
attached, there is no sampleproject/KoloTest.java.
Comment 4 Max Sauer 2005-09-23 10:28:44 UTC
The file has been part of the project, but it has been deleted. Anyway, I cannot
reproduce this exception anymore in current build.

But using the same steps to reproduce, following strange message is typed to
console:

[org.netbeans.javacore] FileObject not found for resource:
com/sun/ebank/ejb/customer/CustomerTest.java
...

for some of the files contained in the package which is being deleted.
I'm decreasing priority to P5.

[200509221800, JDK 1.5.0_05, solaris 10/sparc]
Comment 5 Jan Becicka 2006-10-26 16:27:42 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 Max Sauer 2006-10-30 09:21:58 UTC
Verified.
---
NetBeans IDE Dev (Build 061030)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 7 Quality Engineering 2007-09-20 10:49:02 UTC
Reorganization of java component