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 45383 - NPE from .ASTProvider.<init>(ASTProvider.java:58) during rename
Summary: NPE from .ASTProvider.<init>(ASTProvider.java:58) during rename
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-06-22 17:26 UTC by Marian Mirilovic
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
console messages (8.49 KB, text/plain)
2004-06-22 17:26 UTC, Marian Mirilovic
Details
messages.log (158.95 KB, text/plain)
2004-07-28 14:39 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2004-06-22 17:26:28 UTC
[nb_dev](200406211800), [jdk1.5.0](b51)

I tried to rename java file and push Ok (or
Finish) in the Rename dialog from refactoring,
after a while Rename dialog comes up with :
RuntimeException was thrown. Please file a bug ....

(see attachment)
Comment 1 Marian Mirilovic 2004-06-22 17:26:58 UTC
Created attachment 15918 [details]
console messages
Comment 2 Martin Matula 2004-07-16 23:40:21 UTC
Seems like the following line in ResourceImpl.initResource returned
set dobj to null:

DataObject dObj = JavaMetamodel.getManager().getDataObject(this);

Marian, can you reproduce this? Could you provide more info on how to
do that? Any additional info you can provide (what file you were
renaming, was it in an open project, etc.) would be appreciated.
Comment 3 Marian Mirilovic 2004-07-17 08:23:28 UTC
Martin,

I am sorry but I can't provide more informations, I cannot reproduce
it. It is possible that file has been opened out of the project scope,
maybe from the Favorites view, but now I can't reproduce it.... 
(close as WORKSFORME, if occurs once more I'll reopen it;)
Comment 4 Martin Matula 2004-07-17 11:23:30 UTC
OK, thanks. Please reopen if occurs again.
Comment 5 Marian Mirilovic 2004-07-18 08:43:00 UTC
Ok, verified
Comment 6 Lukas Hasik 2004-07-28 14:38:43 UTC
happend again with build 200407271830 on jdk1.5.0-b57
will attach ide.log
Comment 7 Lukas Hasik 2004-07-28 14:39:24 UTC
Created attachment 16523 [details]
messages.log
Comment 8 Martin Matula 2004-07-28 15:08:59 UTC
Could you describe what you did before this exception occured?
Comment 9 Lukas Hasik 2004-07-28 15:28:08 UTC
not sure but probably this
- 'Cut' on package
- 'Paste | Move' on 'Test Packages'

but unable to reproduce now - RANDOM
Comment 10 Jan Becicka 2004-08-04 09:35:26 UTC
Should be fixed by this commit:
User: mmatula 
  Date: 04/08/02 04:52:35

  Modified:    javacore/src/org/netbeans/modules/javacore
                        ExclusiveMutex.java
  Log:
  changed files must be parsed even when starting a nested transaction
  
  Revision  Changes    Path
  1.19      +19 -20   
java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java

If it happens again, please reopen.
Comment 11 Marian Mirilovic 2004-08-10 07:41:42 UTC
verified in [nb_dev](200408081800)
Comment 12 Quality Engineering 2007-09-20 09:59:50 UTC
Reorganization of java component