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 253218 - Project has Java files corrupted or missing after closing and reopening Netbeans
Summary: Project has Java files corrupted or missing after closing and reopening Netbeans
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-27 17:35 UTC by pablohawk
Modified: 2015-08-07 12:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (170.56 KB, text/plain)
2015-06-27 17:35 UTC, pablohawk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pablohawk 2015-06-27 17:35:44 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_80
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.80-b11

I have a java console project that I have been working on consistently for the last few weeks.  Opening the project today I find 8 java files have had their contents cutoff at the bottom.  I have no idea right now how many lines I've lost in each file as I am just too upset to concentrate on it.  I am also missing at least one file that I added to the project yesterday.  I used a recovery tool on the external drive that the project is on and was able to see the .class file for the file that is missing, but can't find the java source file.  HOW COULD THIS HAVE HAPPEND????!!!!????  Weeks worth of work are completely gone.  I have backups but I made extensive changes yesterday.  How can I recover the files? history? what?  This can't be possible, what possible solutions can you provide for how I can recover from this fiasco?
Comment 1 pablohawk 2015-06-27 17:35:50 UTC
Created attachment 154411 [details]
IDE log
Comment 2 Antonin Nebuzelsky 2015-08-07 12:05:27 UTC
Exceptions in the attached log file indicate this was a problem with the external storage. Incorrectly detached USB flash disk? Or a HW problem?

You may try looking for the previous versions of your files in the local history. See the file structure under {userdir}/var/filehistory.

http://wiki.netbeans.org/FaqWhatIsUserdir

The files with numeric filenames are in zip format. You can try unzipping them to get the content.