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 55053 - Copynig files and then using makes a NullPointerException
Summary: Copynig files and then using makes a NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 14:14 UTC by cenalon
Modified: 2005-02-24 10:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (276.54 KB, text/plain)
2005-02-23 17:06 UTC, cenalon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cenalon 2005-02-16 14:14:40 UTC
I use two projects, with then two folders. When 
I copy files from a project to another, usin the 
copy command, and paste, then I see a window 
with:
java.lang.NullPointerException
	at 
org.netbeans.mdr.storagemodel.AttrCollection.clea
rAttribComposite(AttrCollection.java:268)
	at 
org.netbeans.mdr.storagemodel.AttrCollection$Attr
Iterator.remove(AttrCollection.java:295)
	at 
org.netbeans.mdr.handlers.AttrCollWrapper$AttrIte
ratorWrapper.remove(AttrCollWrapper.java:185)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.J
avaClassImpl._delete(JavaClassImpl.java:861)
	at 
org.netbeans.mdr.handlers.InstanceHandler.refDele
te(InstanceHandler.java:306)
	at 
org.netbeans.modules.javacore.jmiimpl.javamodel.R
esourceImpl._delete(ResourceImpl.java:1003)
	at 
org.netbeans.mdr.handlers.InstanceHandler.refDele
te(InstanceHandler.java:306)
	at 
org.netbeans.modules.javacore.scanning.FileScanne
r.removeFromRepository(FileScanner.java:130)
	at 
org.netbeans.modules.javacore.scanning.FileScanne
r.scan(FileScanner.java:122)
	at 
org.netbeans.modules.javacore.JMManager.scanFiles
(JMManager.java:888)
	at 
org.netbeans.modules.javacore.JMManager.resolveCP
Root(JMManager.java:799)
	at 
org.netbeans.modules.javacore.JMManager.resolveCo
debases(JMManager.java:710)
	at 
org.netbeans.modules.javacore.JMManager$2.run
(JMManager.java:685)
	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 2005-02-23 13:39:50 UTC
What version of NB are you using? Could you please attach the messages
log?
Comment 2 cenalon 2005-02-23 17:06:27 UTC
Created attachment 20486 [details]
Log file
Comment 3 cenalon 2005-02-23 17:11:43 UTC
If it can help you, i saw many windows with apparently the same 
error. Anyway, a nullpointerexception. This errors came back when i 
restarted NetBeans. 

I am using the version 4.0 beta 1. 
The VM is 1.5.0 rc-b63
Product version NetBeans IDE dev (build 200408191352)
IdeVersionning IDE/1 spec=4.43 impl=200408191352

Good luck and thank you
Comment 4 Martin Matula 2005-02-24 10:54:19 UTC
The problem is that the metadata storage got corrupted. We had many
problems causing this in beta1 - these are now fixed. Please upgrade
to 4.0 release or the recent q-build of 4.1 to fix the problem.