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 47571 - [40cat] NPE from ResourceImpl.checkUpToDate()
Summary: [40cat] NPE from ResourceImpl.checkUpToDate()
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: T9Y
: 47600 47658 48026 48269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-20 16:47 UTC by ihepda
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE when MoveClass refactoring was invoked after Cut+Paste->Move (1.56 KB, text/plain)
2004-08-27 12:46 UTC, psuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ihepda 2004-08-20 16:47:46 UTC
[ BUILD # : 200808181800 ]
[ JDK VERSION : J2SE 1.5.0 ]

when rename a package or a class an exception occur:

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:464)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:456)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initResource(ResourceImpl.java:360)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:123)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:144)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getInternalForm(SemiPersistentElement.java:760)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:436)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getParser(SemiPersistentElement.java:755)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.ElementNavigator.<init>(ElementNavigator.java:32)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.UsageFinder$LazyIterator.findNext(UsageFinder.java:282)
	at org.netbeans.modules.javacore.jmiimpl.javamodel.UsageFinder$LazyIterator.hasNext(UsageFinder.java:308)
	at org.netbeans.modules.refactoring.api.RenameRefactoring.addElementsForJmiObject(RenameRefactoring.java:376)
	at org.netbeans.modules.refactoring.api.RenameRefactoring.prepare(RenameRefactoring.java:337)
	at org.netbeans.modules.refactoring.api.ui.ParametersPanel$Prepare.run(ParametersPanel.java:645)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Comment 1 Martin Matula 2004-08-20 23:00:11 UTC
*** Issue 47600 has been marked as a duplicate of this issue. ***
Comment 2 Martin Matula 2004-08-23 08:49:16 UTC
*** Issue 47658 has been marked as a duplicate of this issue. ***
Comment 3 Martin Matula 2004-08-26 21:34:17 UTC
*** Issue 48026 has been marked as a duplicate of this issue. ***
Comment 4 Martin Matula 2004-08-26 21:35:15 UTC
P3->P2 - seems to happen very often.
Comment 5 Jesse Glick 2004-08-27 02:59:49 UTC
Yes, this is perhaps the single exception I see the most in the IDE.
Comment 6 psuk 2004-08-27 12:43:21 UTC
I've got similar exception when reproducing Issue 48058. Just once,
can't reproduce it again.
Comment 7 psuk 2004-08-27 12:46:06 UTC
Created attachment 17190 [details]
NPE when MoveClass refactoring was invoked after Cut+Paste->Move
Comment 8 Jan Becicka 2004-09-01 07:21:13 UTC
*** Issue 48269 has been marked as a duplicate of this issue. ***
Comment 9 Marian Mirilovic 2004-09-01 08:39:25 UTC
exception rises during tests :
- Delete folder with 50 java files (create
externaly folder with 50 java files, invoke Delete
action from the popup of the folder in Projects view)
- Delete folder with 100 java files (create
externaly folder with 100 java files, invoke
Delete action from the popup of the folder in
Projects view)

reproducible on :
Sol 9, Linux RH9, Win 2K, Win XP

works fine on :
JDS 2

Comment 10 Tomas Hurka 2004-09-01 14:09:18 UTC
Hopefully fixed in trunk.
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
ResourceImpl.java,v  <--  ResourceImpl.java
new revision: 1.29; previous revision: 1.28
done
Comment 11 Marian Mirilovic 2004-09-02 08:52:41 UTC
It seems like it's fixed in [nb_dev](200409011800) - verified

...thanks Tomas
Comment 12 Quality Engineering 2007-09-20 11:51:16 UTC
Reorganization of java component