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 145228

Summary: [65cat] IllegalStateException: No match found
Product: ruby Reporter: sunbiz <sunbiz>
Component: TestingAssignee: Erno Mononen <emononen>
Status: RESOLVED FIXED    
Severity: blocker CC: ckutler, pjiricka
Priority: P2 Keywords: RANDOM
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=95017
Issue Type: DEFECT Exception Reporter: 95017
Attachments: stacktrace
test-session.txt
yet-another-stacktrace-little-different.txt

Description sunbiz 2008-08-27 00:29:42 UTC
Build: NetBeans IDE Dev (Build 080826)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows Vista, 6.0, x86

User Comments: 
Right-click on Ruby source rb file and selected Test File, got this exception

Stacktrace: 
java.lang.IllegalStateException: No match found
        at java.util.regex.Matcher.group(Matcher.java:468)
        at org.netbeans.modules.ruby.testrunner.ui.TestUnitHandlerFactory$TestLoggerHandler.updateUI(TestUnitHandlerFactory.java:314)
        at org.netbeans.modules.ruby.testrunner.ui.TestRecognizer.processLine(TestRecognizer.java:97)
        at org.netbeans.modules.ruby.platform.execution.OutputForwarder.processLine(OutputForwarder.java:126)
        at org.netbeans.modules.ruby.platform.execution.OutputForwarder.run(OutputForwarder.java:265)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
Comment 1 sunbiz 2008-08-27 00:29:47 UTC
Created attachment 68391 [details]
stacktrace
Comment 2 Erno Mononen 2008-08-27 12:09:59 UTC
Are you able to reproduce this reliably, or does it happen just randomly? Could you please enable more detailed logging 
as described at http://wiki.netbeans.org/FaqRubyNBLogging and then attach the log file here when this happens again. 
Thanks.
Comment 3 Martin Krauskopf 2008-08-27 16:03:03 UTC
Created attachment 68456 [details]
test-session.txt
Comment 4 Martin Krauskopf 2008-08-27 16:03:58 UTC
I've got it as well (attached with detailed logging). It seems to be random.
Comment 5 Martin Krauskopf 2008-08-27 23:00:25 UTC
Seems to be encountered often (cf. Chris's thread on the dev@ruby.nb). Increasing to P2, should not get it to 6.5 final.
Comment 6 Martin Krauskopf 2008-08-28 13:23:59 UTC
Created attachment 68526 [details]
yet-another-stacktrace-little-different.txt
Comment 7 Erno Mononen 2008-08-29 12:42:26 UTC
*** Issue 145551 has been marked as a duplicate of this issue. ***
Comment 8 Petr Jiricka 2008-08-29 12:58:22 UTC
To me this happened when running tests against the Depot sample application. Also random, can not reproduce reliably.
Comment 9 Erno Mononen 2008-08-29 16:32:18 UTC
Should be fixed in changeset #12a393955f96, will push during the weekend. The problem was (likely, since this is 
random) caused by lack of synchronization in TestRecognizer, I had incorrectly assumed that OutputRecognizerds get 
called only from one thread, which is not the case.
Comment 10 Quality Engineering 2008-08-30 05:43:36 UTC
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/07fb993c9b48
User: Erno Mononen <emononen@netbeans.org>
Log: Disabling rerun in the output window for rake test executions, a possible cause of #145228.
Comment 11 Quality Engineering 2008-09-01 05:59:54 UTC
Integrated into 'main-golden', available in build *200809010201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/12a393955f96
User: Erno Mononen <emononen@netbeans.org>
Log: #145228: [65cat] IllegalStateException: No match found