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 88998 - IllegalStateException after running Ant with -da
Summary: IllegalStateException after running Ant with -da
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: SIMPLEFIX
: 89507 (view as bug list)
Depends on:
Blocks: 87114
  Show dependency tree
 
Reported: 2006-11-09 10:33 UTC by _ leonchiver
Modified: 2006-11-16 20:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the progress component (6.67 KB, image/png)
2006-11-09 10:35 UTC, _ leonchiver
Details
Sample freeform project with one ant target (1.49 KB, application/octet-stream)
2006-11-09 19:52 UTC, _ leonchiver
Details
customDefs (68.29 KB, text/plain)
2006-11-09 19:55 UTC, _ leonchiver
Details
Log file (16.38 KB, text/plain)
2006-11-09 19:56 UTC, _ leonchiver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ leonchiver 2006-11-09 10:33:41 UTC
In trunk, each time I execute an ant target, I get following exception at the
end of execution: 

java.lang.IllegalStateException: No match found
	at java.util.regex.Matcher.group(Matcher.java:468)
	at
org.apache.tools.ant.module.api.IntrospectedInfo$3.load(IntrospectedInfo.java:706)
	at org.apache.tools.ant.module.AntSettings.getCustomDefs(AntSettings.java:112)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl$1.run(BridgeImpl.java:269)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)


Maybe this isn't related, but the progress bar for the previously terminated ant
task remains active in the progress component (see screenshot)
Comment 1 _ leonchiver 2006-11-09 10:35:20 UTC
Created attachment 35912 [details]
Screenshot of the progress component
Comment 2 Jesse Glick 2006-11-09 19:20:44 UTC
Hmm.

Matcher m = p.matcher(ss[1]);
assert m.matches() : k;
String c = m.group(1); // ISE

Did you turn assertions off? (You are running a daily dev build?) Need your log
file as an attachment, as well as your
$userdir/config/Preferences/org/apache/tools/ant/module/customDefs.properties.
Any idea how to reproduce?
Comment 3 _ leonchiver 2006-11-09 19:51:45 UTC
Here I go: started netbeans (trunk build) with a clean userdir, created a simple
freeform project but couldn't reproduce it. Then I copied customDefs.properties
to my new userdir, and there was the error. I'm also running with assertions
disabled (no -J-ea switch). With the switch turned it doesn't occur.
Attachments follow.
Comment 4 _ leonchiver 2006-11-09 19:52:59 UTC
Created attachment 35934 [details]
Sample freeform project with one ant target
Comment 5 _ leonchiver 2006-11-09 19:55:27 UTC
Created attachment 35935 [details]
customDefs
Comment 6 _ leonchiver 2006-11-09 19:56:12 UTC
Created attachment 35936 [details]
Log file
Comment 7 Jesse Glick 2006-11-09 20:31:49 UTC
Right, only happens with assertions disabled.

Checking in IntrospectedInfo.java;
/shared/data/ccvs/repository/ant/src/org/apache/tools/ant/module/api/IntrospectedInfo.java,v
 <--  IntrospectedInfo.java
new revision: 1.29; previous revision: 1.28
done
Comment 8 Jesse Glick 2006-11-16 20:15:15 UTC
*** Issue 89507 has been marked as a duplicate of this issue. ***