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 245919 - IndexOutOfBoundsException: No group 2
Summary: IndexOutOfBoundsException: No group 2
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-23 15:19 UTC by petrk
Modified: 2014-11-04 23:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 210546


Attachments
stacktrace (1.69 KB, text/plain)
2014-07-23 15:19 UTC, petrk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2014-07-23 15:19:45 UTC
Build: NetBeans IDE Dev (Build 20140721-6145e99720a5)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Linux

User Comments:
GUEST: It happend while building.

petrk: Tried to compile and run program (it was not comilable, so build failed)




Stacktrace: 
java.lang.IndexOutOfBoundsException: No group 2
   at java.util.regex.Matcher.group(Matcher.java:538)
   at org.netbeans.modules.cnd.toolchain.execution.GCCErrorParser.handleLine(GCCErrorParser.java:266)
   at org.netbeans.modules.cnd.toolchain.execution.GCCErrorParser.handleLine(GCCErrorParser.java:182)
   at org.netbeans.modules.cnd.spi.toolchain.CompilerLineConvertor.handleLine(CompilerLineConvertor.java:138)
   at org.netbeans.modules.cnd.spi.toolchain.CompilerLineConvertor.convert(CompilerLineConvertor.java:111)
   at org.netbeans.modules.cnd.makeproject.api.DefaultProjectActionHandler$ProcessChangeListener.convert(DefaultProjectActionHandler.java:520)
Comment 1 petrk 2014-07-23 15:19:47 UTC
Created attachment 148239 [details]
stacktrace
Comment 2 Alexander Simon 2014-07-28 11:19:48 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/4874c5c6594a
Comment 3 Quality Engineering 2014-07-31 08:57:21 UTC
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4874c5c6594a
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #245919 IndexOutOfBoundsException: No group 2
Comment 4 tbrunhoff 2014-11-04 23:44:13 UTC
Probably fixed.  I was going to reopen, but your fix postdates the version I am running on my home machine (why am I running such old code?!?)

Anyway, for me this persisted while I had a const constructor and a copy constructor declared private.  The class instance was being assigned to an stl::vector element which needed the copy constructor.  Once I changed the vector member to an auto pointer (so that the copy constructor was unneeded) the exceptions stopped.

I am running...
Product Version: NetBeans IDE Dev (Build 201407090001)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.14.8-100.fc19.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev