#301 StackOverflowError when recording inside NetBeans

open
5
2012-03-01
2012-03-01
Jiri Skrivanek
No

I have created a plugin for NetBeans IDE which integrates Costello. But it is not possible to record anything because it fails with StackOverflowError. To reproduce:

- download NetBeans IDE from http://bits.netbeans.org/download/trunk/nightly/latest/zip/ (*-ml.zip)
- unzip it and run
- create a java project to initialize features (File|New Project|Java|Java Application...)
- open Tools|Plugins
- switch to Downloaded panel
- download http://beetle.cz.oracle.com/data/transfer/jskrivanek/Abbot/org-netbeans-modules-costello.nbm
- click Add Plugins and browse for downloaded *.nbm
- click Install and finish installation
- close Plugins dialog
- open Tools|Costello
- in Test Script Editor call File|New Script
- call Capture|All Actions
- click anywhere in NetBeans IDE and it fails after while with attached stack trace

Costello is executed in separate thread with the following sequence:

EditorContext ec = new EditorContext();
ec.setEmbedded(true);
TestHierarchy th = new TestHierarchy();
ec.setTestHierarchy(th);
System.setProperty(\"abbot.no_security_manager\", \"true\");
Costello.showCostello(ec);
th.setFiltered(getMainWindow(), false);

Environment:

Product Version: NetBeans IDE Dev (Build 201202290400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)

Discussion

  • Jiri Skrivanek
    Jiri Skrivanek
    2012-03-01

    Stack trace.

     
    Attachments
  • Jiri Skrivanek
    Jiri Skrivanek
    2012-03-01

    • assigned_to: twall --> gdavison