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 54015 - ISE after quick import action
Summary: ISE after quick import action
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-26 12:45 UTC by pzajac
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exceptions (70.55 KB, text/plain)
2005-01-26 12:47 UTC, pzajac
Details
the dealer.java source (4.08 KB, text/plain)
2005-01-29 10:26 UTC, pzajac
Details
ide.log (239.31 KB, text/plain)
2005-01-29 10:40 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2005-01-26 12:45:24 UTC
[200501241900]
The exception and many other exception were thrown
when I add import statement to source code using
SHIFT + ALT + i.
Comment 1 pzajac 2005-01-26 12:47:12 UTC
Created attachment 19979 [details]
exceptions
Comment 2 Jan Becicka 2005-01-26 13:03:56 UTC
It has nothing to do with refactoring.
Comment 3 Tomas Hurka 2005-01-27 14:34:45 UTC
Please attach the source code if possible. Thanks.
Comment 4 pzajac 2005-01-29 10:26:07 UTC
Created attachment 20056 [details]
the dealer.java source
Comment 5 pzajac 2005-01-29 10:36:37 UTC
The exception was thrown again today. I don't know how to reproduce
it. What I did? I added 

TreeMap treemap = TreeMap months 

declaration to the Dealer.java

I will add another log. There are also other exceptions when I was
doing synchronization of interface of class :
public class MonthComparator implements Comparator { 
    
    /** Creates a new instance of MonthComparator */
    public MonthComparator() {
    }
}
It throws exception : Document already locked. On second time it works
correctly. I also don't know how to reproduce it:(.

Is it possible to add more  loggings to the ide.log?
 
Comment 6 pzajac 2005-01-29 10:40:16 UTC
Created attachment 20057 [details]
ide.log
Comment 7 Jan Becicka 2005-03-29 14:07:49 UTC
[org.netbeans.javacore] INFORMATIONAL *********** Exception occurred
************ at 10:57 AM on Jan 29, 2005
[catch]java.lang.Exception: ***** Info is null for element:
warehouse/Dealer.java (instanceof: org.netbeans.jmi.javamodel.Resource$Impl
MOFID: BAE8A40D-7046-11D9-8A7F-4AFA968BAA77:0000000000000F4C)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:190)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:298)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initChildren(ResourceImpl.java:292)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:138)
.
.
[org.netbeans.javacore] isChanged: true, alreadyChecking: true
[org.netbeans.javacore] isValid: true
[org.netbeans.javacore] alreadyChecking stacktrace:
[org.netbeans.javacore] INFORMATIONAL *********** Exception occurred
************ at 10:57 AM on Jan 29, 2005
java.lang.RuntimeException
[catch] at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.resetAST(ResourceImpl.java:455)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.parseResource(ResourceImpl.java:840)
	at
org.netbeans.modules.javacore.ExclusiveMutex.notifyElements(ExclusiveMutex.java:503)
	at org.netbeans.modules.javacore.ExclusiveMutex.leave(ExclusiveMutex.java:364)
	at org.netbeans.mdr.NBMDRepositoryImpl.endTrans(NBMDRepositoryImpl.java:248)
Comment 8 Martin Matula 2005-08-24 12:53:17 UTC
The listeners in src hierarchy bridge should not be registered on multipart ids
returned from getTypeName(). Dan, please fix it.
Comment 9 Daniel Prusa 2005-09-09 12:46:38 UTC
Fixed in trunk.

Checking in FieldElementImpl.java;
/cvs/java/src/org/netbeans/modules/java/bridge/FieldElementImpl.java
new revision: 1.14; previous revision: 1.13
Checking in MethodElementImpl.java;
/cvs/java/src/org/netbeans/modules/java/bridge/MethodElementImpl.java
new revision: 1.12; previous revision: 1.11
Comment 10 pzajac 2005-09-13 10:19:10 UTC
v
Comment 11 Quality Engineering 2007-09-20 11:55:13 UTC
Reorganization of java component