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 16987 - Bad expansion of .tar.gz on MacOS X (was: Illegal argument exception on IDE start-up)
Summary: Bad expansion of .tar.gz on MacOS X (was: Illegal argument exception on IDE s...
Status: RESOLVED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: collabnet (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-26 00:23 UTC by bburch1
Modified: 2009-11-08 02:28 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
shell output during nb 3.3 start-up showing bug (5.37 KB, text/plain)
2001-10-26 00:27 UTC, bburch1
Details
the runide.sh I used to launch nb 3.3 (9.50 KB, text/plain)
2001-10-26 00:29 UTC, bburch1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bburch1 2001-10-26 00:23:43 UTC
NOTE: this is related to Mac OS 10.1 not 10.0.4, you need to add 10.1 to 
the OS drop-down list.

I'm getting the following exception during the 3.3 IDE start-up sequence:

java.lang.IllegalArgumentException: Already enabled: 
Module[org.netbeans.modules.httpserver]
        at 
org.netbeans.core.modules.ModuleManager.simulateEnable(ModuleMan
ager.java:635)
        at 
org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:439)
        at 
org.netbeans.core.modules.ModuleSystem.installNew(ModuleSystem.jav
a:261)
        at org.netbeans.core.NonGui.run(NonGui.java:546)
        at org.netbeans.core.Main.run(Main.java:216)
        at 
org.openide.TopManager.initializeTopManager(TopManager.java:120)
        at org.openide.TopManager.getDefault(TopManager.java:81)
        at org.netbeans.core.Main.main(Main.java:325)
        at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
        at java.lang.Thread.run(Thread.java:496)

The start-up splash screen stays up with 'Adding new modules...' 
displayed and the start-up sequence hangs with the Mac 'running watch' 
mouse pointer icon. I waited several minutes for forward progress and 
got none. Finally did a ctrl-c in the shell I ran runide.sh in. I saw this same 
problem in the recent Q builds and had to ditch trying to use them.

I will attach the entire output to the shell where I ran runide.sh as well as 
my runide.sh script. This is from an install of 3.3 beta using the dt.jar for 
Mac OS X as instructed.

Regards,
Barry
Comment 1 bburch1 2001-10-26 00:27:36 UTC
Created attachment 3153 [details]
shell output during nb 3.3 start-up showing bug
Comment 2 bburch1 2001-10-26 00:29:55 UTC
Created attachment 3154 [details]
the runide.sh I used to launch nb 3.3
Comment 3 bburch1 2001-10-26 06:03:34 UTC
I have discovered what I think my be the cause of this bug. 
Looking around at what was un-zipped and un-tared (by Stuffit 
Expander, the default un-zip tool for Mac OS X) I noticed that 
several of the files in /Applications/netbeans/system/Modules 
have had their filenames truncated either by Stuffit or by OS X. 
The listing of that dir looks like this:

[localhost:netbeans/system/Modules] barry% ll
total 312
drwxr-xr-x  41 barry  staff  1350 Oct 25 17:35 .
drwxr-xr-x   4 barry  staff    92 Oct 25 17:35 ..
-rw-r--r--   1 barry  staff   521 Oct 22 15:39 org-apache-tools-ant-
module.xml
-rw-r--r--   1 barry  staff   542 Oct 22 15:39 org-netbeans-
modules-apisupport
-rw-r--r--   1 barry  staff   524 Oct 22 15:39 org-netbeans-
modules-applet.xml
-rw-r--r--   1 barry  staff   532 Oct 22 15:39 org-netbeans-
modules-autoupdate
-rw-r--r--   1 barry  staff   522 Oct 22 15:39 org-netbeans-
modules-beans.xml
-rw-r--r--   1 barry  staff   499 Oct 22 15:39 org-netbeans-
modules-classfile.
-rw-r--r--   1 barry  staff   522 Oct 22 15:39 org-netbeans-
modules-clazz.xml
-rw-r--r--   1 barry  staff   528 Oct 22 15:39 org-netbeans-
modules-cvsclient.
-rw-r--r--   1 barry  staff   506 Oct 22 15:39 org-netbeans-
modules-debugger-c
-rw-r--r--   1 barry  staff   539 Oct 22 15:39 org-netbeans-
modules-debugger-d
-rw-r--r--   1 barry  staff   537 Oct 22 15:39 org-netbeans-
modules-debugger-j
-rw-r--r--   1 barry  staff   524 Oct 22 15:39 org-netbeans-
modules-editor.xml
-rw-r--r--   1 barry  staff   532 Oct 22 15:39 org-netbeans-
modules-extbrowser
-rw-r--r--   1 barry  staff   520 Oct 22 15:39 org-netbeans-
modules-form.xml
-rw-r--r--   1 barry  staff   520 Oct 22 15:39 org-netbeans-
modules-html.xml
-rw-r--r--   1 barry  staff   532 Oct 22 15:39 org-netbeans-
modules-httpserver
-rw-r--r--   1 barry  staff   530 Oct 22 15:39 org-netbeans-
modules-i18n-form.
-rw-r--r--   1 barry  staff   520 Oct 22 15:39 org-netbeans-
modules-i18n.xml
-rw-r--r--   1 barry  staff   522 Oct 22 15:39 org-netbeans-
modules-image.xml
-rw-r--r--   1 barry  staff   503 Oct 22 15:39 org-netbeans-
modules-j2eeserver
-rw-r--r--   1 barry  staff   534 Oct 22 15:39 org-netbeans-
modules-jarpackage
-rw-r--r--   1 barry  staff   520 Oct 22 15:39 org-netbeans-
modules-java.xml
-rw-r--r--   1 barry  staff   526 Oct 22 15:39 org-netbeans-
modules-javadoc.xm
-rw-r--r--   1 barry  staff   520 Oct 22 15:39 org-netbeans-
modules-jndi.xml
-rw-r--r--   1 barry  staff   528 Oct 22 15:39 org-netbeans-
modules-projects.x
-rw-r--r--   1 barry  staff   532 Oct 22 15:39 org-netbeans-
modules-proper.1
-rw-r--r--   1 barry  staff   546 Oct 22 15:39 org-netbeans-
modules-properties
-rw-r--r--   1 barry  staff   518 Oct 22 15:39 org-netbeans-
modules-rmi.xml
-rw-r--r--   1 barry  staff   530 Oct 22 15:39 org-netbeans-
modules-scripting.
-rw-r--r--   1 barry  staff   520 Oct 22 15:39 org-netbeans-
modules-text.xml
-rw-r--r--   1 barry  staff   532 Oct 22 15:39 org-netbeans-
modules-usersguide
-rw-r--r--   1 barry  staff   530 Oct 22 15:39 org-netbeans-
modules-utilities.
-rw-r--r--   1 barry  staff   530 Oct 22 15:39 org-netbeans-
modules-vcs-advanc
-rw-r--r--   1 barry  staff   539 Oct 22 15:39 org-netbeans-
modules-vcs-cmdlin
-rw-r--r--   1 barry  staff   495 Oct 22 15:39 org-netbeans-
modules-vcscore.xm
-rw-r--r--   1 barry  staff   537 Oct 22 15:39 org-netbeans-
modules-web-core-s
-rw-r--r--   1 barry  staff   523 Oct 22 15:39 org-netbeans-
modules-web-core.x
-rw-r--r--   1 barry  staff   532 Oct 22 15:39 org-netbeans-
modules-web-tomcat
-rw-r--r--   1 barry  staff   485 Oct 22 15:39 org-openidex-util.xml

Notice the truncations.

Where can I find a manifest of all the files in a typical 3.3 install? 
If I can find this I can manually repair the files and try the IDE 
again.

Barry
Comment 4 bburch1 2001-10-26 06:45:04 UTC
This bug was related to the way that the downloaded tar.gz file 
was expanded by Stuffit Expander or something with Mac OS X, 
not sure which.

When I gunzipped and untarred the file from the command line 
(using gunzip and tar), the file names were no longer truncated 
and the IDE started up normally.

When I download files like this in Internet Exploder 5.1 (Mac), 
Stuffit Expander automagically un-zips and un-tars with obviously 
bad results.

Interestingly though, I don't think this corruption happened when 
I downloaded and 3.2.1.

You probably should see if you can duplicate this problem (in 
case it's just dumb old me) and warn Mac developers on your 
'using NetBeans on Mac OS X' page.

Barry
Comment 5 Jesse Glick 2001-10-26 11:11:45 UTC
OK, making this into a request for the website to warn MacOS X users
of potential problems with their unstuffer, and a clue to look for
truncated file names in case of similar problems.
Comment 6 Tomas Hurka 2001-11-02 08:49:15 UTC
Warning about potential problem with expanding tar.gz on Mac OS X was
added to Mac OS X HOWTO page at www.netbeans.org/articles/mac.html
Comment 7 Patrick Keegan 2004-02-11 18:57:01 UTC
Tomas, are bad unstuffers still an issue?
Comment 8 jcatchpoole 2004-02-18 15:23:27 UTC
Ping ... Tomas ?
Comment 9 Tomas Hurka 2004-02-18 15:32:12 UTC
Probably not, but I have to check. 
Comment 10 Tomas Hurka 2004-02-20 15:49:35 UTC
Expanding .zip with Suffit is OK. Expanding .tag.gz with /usr/bin/tar is also OK. 
Comment 11 jcatchpoole 2004-03-01 16:41:42 UTC
So does that mean that the warning on all download pages :

"... Mac OS X users must use GNU tar on their ... platforms for
.tar.gz files"

is now wrong and should be removed ?
Comment 12 Tomas Hurka 2004-03-01 16:50:11 UTC
It is not wrong, but it is obsolete.
Comment 13 jcatchpoole 2004-03-03 11:07:15 UTC
Tomasi, sorry, I don't understand.

Should I remove this text from the downloads pages, or not ?
Comment 14 Tomas Hurka 2004-03-03 11:24:15 UTC
You can remove it.
Comment 15 jcatchpoole 2004-03-23 10:13:44 UTC
Thanks Tomas; I've staged this internally, should propagate in a few
hours.
Comment 16 Marian Mirilovic 2009-11-08 02:28:57 UTC
We recently moved out from Collabnet's infrastructure