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 16378 - IllegalStateException when createFromTemplate()
Summary: IllegalStateException when createFromTemplate()
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 14179 17020
Blocks:
  Show dependency tree
 
Reported: 2001-10-09 14:16 UTC by Jan Becicka
Modified: 2008-12-22 23:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack Trace (2.62 KB, text/plain)
2001-10-09 14:17 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2001-10-09 14:16:06 UTC
[200110090100]
See stack trace. Exception was thrown, when createFromTemplate() was called.

DataObject dob = getDO ("Templates.Classes", "Class", "java");
DataObject mdob = dob.createFromTemplate(DataFolder.findFolder(getFO
(packageName,null,null)),className);

getDO means get DataObject
getFO means get FileObject
Comment 1 Jan Becicka 2001-10-09 14:17:53 UTC
Created attachment 2923 [details]
Stack Trace
Comment 2 Jesse Glick 2001-10-25 20:34:33 UTC
I'll assume this is not reproducible.

The fix to #14179 was supposed to have fixed this kind of problem. It
is still possible that if you are very unlucky, you hit a race
condition where the object is invalidated right before it is used.
There is no way to really fix such things without a loaders mutex
(maybe in 4.0, not before).

If you find this is reproducible, or even that it happens more than
once and is not so rare, please reopen.

Vito, we should consider taking out the invalid check from
getNodeDelegate soon, I have a feeling that even with many fixes
having been made, the check will cause more damage than the root
problem.
Comment 3 Vitezslav Stejskal 2001-10-25 22:02:47 UTC
Agreed, I see no one reporting such problems in last days, I beleive 
we already fixed most of cases.
Comment 4 Quality Engineering 2003-07-01 16:03:28 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 5 Quality Engineering 2003-07-01 16:37:53 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.