Topic
3 replies Latest Post - ‏2010-03-15T14:21:20Z by SystemAdmin
SystemAdmin
SystemAdmin
16727 Posts
ACCEPTED ANSWER

Pinned topic Playback causes java.awt.HeadlessException

‏2009-04-05T23:43:27Z |
Hi all,

I have a suite of test scripts that used to run fine. Then my workstation was physically moved to another location. Now when I try to run the scripts, I get this exception:

java.awt.HeadlessException (see full stack trace below)

Factors to consider:
  • The error happens when it tries to execute the TextGuiTestObject.setText() command.
  • Before getting to this error, it was able to maximise the browser window and identify a text field as a TextGuiTestObject.
  • I have 2 monitors and I think I have set them up the same way as they were last time, but it's possible the screen resolution could be different. But these scripts have worked on other people's machines with different screen setups.
  • I have tried restarting RFT, restarting the computer, doing a "Build Clean" and running on a different monitor, but I encounter the same error.

If anyone can help, I would really appreciate it.
Thanks,
Trish
exception_context = setText() called on TextGuiTestObject(Ref:RemoteProxyReference{testContext:2e6700016a04, objectId:918, testObjectClass:TextGuiTestObject}).
exception_name = java.awt.HeadlessException
exception_message = null
script_name = MaintainGroups.CreateTeam
script_id = MaintainGroups.CreateTeam.java
line_number = 33
exception_stack = at sun.awt.HeadlessToolkit.getScreenSize(Unknown Source)
at com.rational.test.ft.domain.html.HtmlGuiProxy.getClippingParentRectangle(HtmlGuiProxy.java:1006)
at com.rational.test.ft.domain.html.EditboxProxy.isInView(EditboxProxy.java:228)
at com.rational.test.ft.domain.html.HtmlGuiProxy.click(HtmlGuiProxy.java:158)
at com.rational.test.ft.domain.html.HtmlGuiProxy.click(HtmlGuiProxy.java:147)

at com.rational.test.ft.domain.ProxyUtilities$SetTextFromGlassRunnable.send(ProxyUtilities.java:250)

at com.rational.test.ft.object.interfaces.TextGuiTestObject.setText(TextGuiTestObject.java:97)
at PageElement.TextField.setText(TextField.java:101)
at CommonTasks.GeneralNavigation.loginAs(GeneralNavigation.java:68)
at CommonTasks.GeneralNavigation.loginAsProjectManager(GeneralNavigation.java:75)
at MaintainGroups.CreateTeam.testMain(CreateTeam.java:33)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:996)
at org.eclipse.core.launcher.Main.main(Main.java:971)
Updated on 2010-03-15T14:21:20Z at 2010-03-15T14:21:20Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    16727 Posts
    ACCEPTED ANSWER

    Re: Playback causes java.awt.HeadlessException

    ‏2009-04-07T21:21:56Z  in response to SystemAdmin
    I ran into a similar issue when I upgraded JRE/JDK versions...

    Try checking your Java settings in the control panel.
    Under the advanced tab, open the Java Plug-In tree and make sure "Enable the next-generation Plug-in" is not checked.
    • SystemAdmin
      SystemAdmin
      16727 Posts
      ACCEPTED ANSWER

      Re: Playback causes java.awt.HeadlessException

      ‏2009-04-08T01:40:23Z  in response to SystemAdmin
      That has fixed it. Thanks so much!
  • SystemAdmin
    SystemAdmin
    16727 Posts
    ACCEPTED ANSWER

    Re: Playback causes java.awt.HeadlessException

    ‏2010-03-15T14:21:20Z  in response to SystemAdmin
    canelson79: it works, thank you very much !!! I have been searching google for long time, but no helpful info until saw your posts here.