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 41770 - Exception expanding node in Ant XML script
Summary: Exception expanding node in Ant XML script
Status: VERIFIED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-04-07 02:32 UTC by mills
Modified: 2005-07-15 07:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mills 2004-04-07 02:32:37 UTC
I use my script all the time and suddenly it was 
not happy. Was idle for long time.

This is 3.6RC2, don't recall seeing it in RC1.

Not sure how repeatable.

java.lang.IllegalStateException: Error in 
org.apache.tools.ant.module.nodes.AntProjectChildr
en with entry Key ([property: null], 0) probably 
caused by faulty key implementation. The key 
hashCode() and equals() methods must behave as 
for an IMMUTABLE object and the hashCode() must 
return the same value for equals() keys.
	at org.openide.nodes.Children.updateOrder
(Children.java:781)
	at org.openide.nodes.Children.setEntries
(Children.java:672)
	at org.openide.nodes.Children$3.run
(Children.java:1878)
	at org.openide.util.Mutex.postRequest
(Mutex.java:867)
	at org.openide.util.Mutex.postWriteRequest
(Mutex.java:364)
	at 
org.openide.nodes.Children$Keys.applyKeys
(Children.java:1886)
	at org.openide.nodes.Children$Keys.setKeys
(Children.java:1845)
	at 
org.apache.tools.ant.module.nodes.ElementChildren.
refreshKeys(ElementChildren.java:102)
	at 
org.apache.tools.ant.module.nodes.AntProjectChildr
en.stateChanged(AntProjectChildren.java:79)
	at 
org.apache.tools.ant.module.xml.AntProjectSupport$
ChangeFirer.run(AntProjectSupport.java:568)
	at org.openide.util.Task.run
(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Comment 1 mills 2004-04-07 02:39:55 UTC
Note I have a bunch of targets with similar names.

run
run_debug
run_debug_suspended
run_debug_profile

I noticed after the error below that 2 targets had blank labels.
Comment 2 Jesse Glick 2004-04-07 16:58:42 UTC
Haven't heard of such an exception before and can't guess how it would
occur. Does this problem persist after restarting the IDE? If so, can
it be reproduced with the same Ant script opened using a fresh build
and user directory?

For starters, please attach your %USERDIR%\system\ide.log file; it
might give some clue as to what is wrong.
Comment 3 Jesse Glick 2004-04-14 15:47:32 UTC
Not enough info to do anything with.
Comment 4 Marian Mirilovic 2005-07-15 07:43:44 UTC
closed