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 61578 - AssertionError creating library wrapper module
Summary: AssertionError creating library wrapper module
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-01 02:14 UTC by _ tboudreau
Modified: 2008-12-22 15:42 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (14.65 KB, text/plain)
2005-08-01 02:14 UTC, _ tboudreau
Details
what was generated (28.82 KB, application/octet-stream)
2005-08-01 02:15 UTC, _ tboudreau
Details
Additional stacktrace. (14.48 KB, text/plain)
2005-08-19 11:31 UTC, tboerkel
Details
messages.log from wrapping junit.jar (12.91 KB, text/plain)
2005-08-23 07:20 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2005-08-01 02:14:12 UTC
I build contrib/hexeit.  Then created a module suite in
c:\tutorial\dev\HexeditSuite.   In the wizard to create a wrapper module, I
tried to create a wrapper module in c:\tutorial\dev\HexeditWrapper.  When I
pressed finish in the wizard, the attached exception was thrown;  the dialog was
not closed, but the directory was definitely created.  I will attach the
generated project - not sure what went wrong.
Comment 1 _ tboudreau 2005-08-01 02:14:54 UTC
Created attachment 23381 [details]
stack trace
Comment 2 _ tboudreau 2005-08-01 02:15:13 UTC
Created attachment 23382 [details]
what was generated
Comment 3 _ tboudreau 2005-08-01 02:16:05 UTC
FYI

C:\tutorial\nbsrc\contrib\hexedit>java -version
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b42)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b42, mixed mode, sharing)
Comment 4 Milos Kleint 2005-08-01 14:10:58 UTC
steps to reproduce? does it always happen? it never does for me.
Comment 5 Jesse Glick 2005-08-01 19:43:04 UTC
Assertion coming from masterfs; reassigning for eval.
Comment 6 _ tboudreau 2005-08-01 20:52:52 UTC
Steps to reproduce:  Do as I described above using contrib/hexedit.

Later I did successfully do it;  not sure what the problem is.
Comment 7 _ tboudreau 2005-08-17 23:12:09 UTC
Raising priority - creating library wrapper modules is broken because of this.

Do the following:
 - Start with a clean userdir
 - Get the libraries from the feedreader tutorial - rome-0.4.jar and
rome-fetcher-0.4.jar
 - Put them in one directory somewhere on disk (not under CVS)
 - Create a new library wrapper module project
 - Call it "rome"
 - Select both jars as libs
 - Press Finish

Assertion error is thrown.
Comment 8 Jesse Glick 2005-08-18 18:14:38 UTC
You need to delete fetcher.properties from the root of rome-fetcher-0.4.jar
(already filed separately). Downloads are from rome.dev.java.net.

Just tried to reproduce on Linux, JDK 5, fresh user dir, dev sources from
yesterday (but current apisupport/project). Followed Tim's instructions. Of
course you have to make a suite, too. Worked fine for me.

Mac OS X specific perhaps? Or Windows?

My suspicion: NbModuleProjectGenerator.createSuiteLibraryModule indirectly calls
FileUtil.createData with a path containing File.separator, whereas it should
always be using '/'. Perhaps on Windows this confuses masterfs into creating the
file but then not knowing where it was. If this is the problem, (1) NbMPG.cSLM
should be fixed, (2) masterfs should be corrected to throw an IOException if
someone attempts to use '\\' as a path separator for file objects contrary to
the API.
Comment 9 tboerkel 2005-08-19 11:30:15 UTC
I am seeing the same thing, using
netbeans-4_2-qbuild-bin-200508091556-9_Aug_2005_1556.zip and
netbeans-4_2-daily-bin-200508171800-17_Aug_2005_1800.zip with JDK 5.0_04 und
Windows 2000. Attaching stacktrace.
Comment 10 tboerkel 2005-08-19 11:31:11 UTC
Created attachment 24076 [details]
Additional stacktrace.
Comment 11 tboerkel 2005-08-19 11:34:19 UTC
Raising to P1, because cannot write a module for 4.2 because of this bug.
Comment 12 rmatous 2005-08-19 14:36:52 UTC
Exactly as Jesse expected.
Comment 13 Jesse Glick 2005-08-19 22:23:11 UTC
Will we get a fix on Monday?
Comment 14 _ tboudreau 2005-08-19 22:33:28 UTC
Since I've hit this problem on Windows, probably the \ is the problem.
Comment 15 rmatous 2005-08-21 21:37:34 UTC
Fixed:
/cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProjectGenerator.java,v
 new revision: 1.36; previous revision: 1.35

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterFileObject.java,v
 new revision: 1.45; previous revision: 1.44

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/FolderObj.java,v
 new revision: 1.12; previous revision: 1.11
Comment 16 tboerkel 2005-08-23 07:19:30 UTC
Reopening, because this is not fixed in
netbeans-4_2-daily-bin-200508221800-22_Aug_2005_1800.zip.

Attaching messages.log from wrapping junit.jar.
Comment 17 tboerkel 2005-08-23 07:20:09 UTC
Created attachment 24140 [details]
messages.log from wrapping junit.jar
Comment 18 Jesse Glick 2005-08-23 11:42:52 UTC
You probably got a build without the fix. The stack trace from
NbModuleProjectGenerator does not match current sources. Try the next one or
build from sources and check again.