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 194444 - IDE crashes on startup
Summary: IDE crashes on startup
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 19:04 UTC by tbrunhoff
Modified: 2011-02-01 21:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log of the crash (5.44 KB, text/plain)
2011-01-18 19:04 UTC, tbrunhoff
Details
jar file that caused the crash. (288.05 KB, application/x-gzip)
2011-02-01 19:41 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2011-01-18 19:04:52 UTC
Created attachment 105113 [details]
log of the crash

The nightly listed below crashes everytime I start.

installer: netbeans-trunk-nightly-201101180000-ml-linux.sh
  Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-5919-on-101012) (#acc8349e2a5b)
  Java: 1.6.0_18; Java HotSpot(TM) 64-Bit Server VM 16.0-b13
System: Linux version 2.6.35.10-74.fc14.x86_64 running on amd64
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_18-b07
  Java Home               = /usr/java/jdk1.6.0_18/jre
  System Locale; Encoding = en_US (nb); UTF-8

However the previous build works fine:

installer: netbeans-trunk-nightly-201101040001-ml-linux.sh
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-5919-on-101012)
Java: 1.6.0_18; Java HotSpot(TM) 64-Bit Server VM 16.0-b13
System: Linux version 2.6.35.10-74.fc14.x86_64 running on amd64; UTF-8; en_US (nb)
Userdir: /home/toddb/.netbeans/dev
Comment 1 tbrunhoff 2011-01-18 19:18:51 UTC
No core file nor hs_error* file was produced.
Comment 2 tbrunhoff 2011-01-18 21:16:08 UTC
After removing ~/.netbeans/dev and starting the ide, it works.
Then after copying back some of the components of the old director (~/.netbeans/dev.save) it still worked. Specifically

    cd ~/.netbeans/dev.save
    tar cf - config/Keymaps/ \
             config/Preferences \
             config/Preferences.properties \
             etc/netbeans.conf  \
    | (cd ../dev; tar xvf -)

However, after I copied back ~/.netbeans/core/org-openide-filesystems.jar it began dying at start up again. Removing that one file made it work again. Finally, restoring the entire old ~/.netbeans/dev and removing the file above caused it to work fine.
Comment 3 Jaroslav Tulach 2011-01-19 14:00:01 UTC
I guess you have identified the problem. It is the ~/.netbeans/core/org-openide-filesystems.jar. What else can we do for you? Maybe you can attach the file here and we can check whether it is corrupted or OK...
Comment 4 tbrunhoff 2011-02-01 19:41:44 UTC
Created attachment 105568 [details]
jar file that caused the crash.
Comment 5 Jaroslav Tulach 2011-02-01 21:00:10 UTC
The file is really corrupted. Trying:

$ unzip -v the-file.jar

fails miserably. The question is how the file got to your computer and how it got corrupted (during install or later?). I am not however sure I want to know all the details. Passing to platform to potentially print some useful message into the log.
Comment 6 tbrunhoff 2011-02-01 21:15:11 UTC
A better question might be: can you recognize a corrupt jar file and set it aside before it crashes the system.