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.
This bug was originally marked as duplicate of bug 154894, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.2.1 (Build 201210100934) VM: Java HotSpot(TM) 64-Bit Server VM, 20.14-b01-447, Java(TM) SE Runtime Environment, 1.6.0_43-b01-447-11M4203 OS: Mac OS X User Comments: GUEST: find/replace some stuff in 200 or more files Stacktrace: java.lang.StackOverflowError at java.nio.HeapCharBuffer.get(HeapCharBuffer.java:121) at java.nio.CharBuffer.charAt(CharBuffer.java:1194) at org.netbeans.modules.search.matcher.BufferedCharSequence$Sink$Buffer.getCharAt(BufferedCharSequence.java:759) at org.netbeans.modules.search.matcher.BufferedCharSequence$Sink$Buffer.access$1000(BufferedCharSequence.java:712) at org.netbeans.modules.search.matcher.BufferedCharSequence$Sink.charAt(BufferedCharSequence.java:662) at org.netbeans.modules.search.matcher.BufferedCharSequence.getCharAt(BufferedCharSequence.java:443)
Created attachment 132910 [details] stacktrace
It seems that the problem is caused by java.util.regex.Pattern. You are probably using a complicated regular expression in a big file. What's your regular expression?
More information would be helpful. Probably increasing JVM option -Xss or tuning the regular expression (reluctant quantifiers) could help. Closing as incomplete. Reopen if you can provide more info. Thanks.