Topic
1 reply Latest Post - ‏2008-08-21T09:29:22Z by olegt
suelmann@ira.uka.de
suelmann@ira.uka.de
3 Posts
ACCEPTED ANSWER

Pinned topic Exception while running a script

‏2008-08-12T16:10:06Z |
Hey guys,

I've got a strange problem with Rational Functional Tester 7.0.1.2 running on my laptop (it's a Lenovo T61, pretty clean installation, Win XP). I recently imported scripts written on another machine working just fine there. Well, on my laptop the script crashed on the first mouse action (it's a simple click action on a submit button) while the previously filled input fields just worked (text and password fields).

I catched the thrown exception, here's the stacktrace:

WrappedExceptionhttp://java.awt.HeadlessException - null
at sun.awt.HeadlessToolkit.getScreenSize(Unknown Source)
at com.rational.test.ft.sys.graphical.Screen.getScreenRectangle(Screen.java:188)
at com.rational.test.ft.domain.html.HtmlGuiProxy.getClippingParentRectangle(HtmlGuiProxy.java:1018)
at com.rational.test.ft.domain.html.HtmlGuiProxy.isInView(HtmlGuiProxy.java:1245)
at com.rational.test.ft.domain.html.HtmlGuiProxy.click(HtmlGuiProxy.java:159)
at com.rational.test.ft.domain.html.HtmlGuiProxy.click(HtmlGuiProxy.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)
at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)
at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1600)
at com.rational.test.ft.domain.ChannelObjectMethodInvoker$Invoker.send(ChannelObjectMethodInvoker.java:167)
at com.rational.test.ft.domain.ChannelRunnable.run(ChannelRunnable.java:96)
at com.rational.test.ft.domain.ThreadChannel.open(ThreadChannel.java:267)

at com.rational.test.ft.RationalTestException.fillinCombinedStackTrace(RationalTestException.java:295)
at com.rational.test.ft.domain.ChannelRunnable.throwException(ChannelRunnable.java:168)
at com.rational.test.ft.domain.ThreadChannel.send(ThreadChannel.java:167)
at com.rational.test.ft.domain.ChannelObjectMethodInvoker.invokeMethod(ChannelObjectMethodInvoker.java:69)
at com.rational.test.ft.sys.TestContext.sendMessageCallback(TestContext.java:742)
at com.rational.test.ft.sys.Mailslot.drainSendQueue(Mailslot.java:430)
at com.rational.test.ft.sys.Mailslot.waitForMessage(Mailslot.java:403)
at com.rational.test.ft.sys.TestContext.run(TestContext.java:939)

at com.rational.test.ft.RationalTestException.fillinCombinedStackTrace(RationalTestException.java:295)
at com.rational.test.ft.sys.RemoteInvokeMessage.checkThrowable(RemoteInvokeMessage.java:435)
at com.rational.test.ft.sys.TestContext$Reference.invoke(TestContext.java:2649)
at com.rational.test.ft.sys.TestContext$Reference.invoke(TestContext.java:2552)
at com.rational.test.ft.object.manager.TestObjectMethodInvoker.invokeMethod(TestObjectMethodInvoker.java:1822)
at com.rational.test.ft.object.manager.TestObjectMethodInvoker.tryOnce(TestObjectMethodInvoker.java:1926)
at com.rational.test.ft.sys.Transaction$Retryer.tryRepeatedly(Transaction.java:376)
at com.rational.test.ft.object.manager.TestObjectMethodInvoker.findObjectAndInvokeInternal(TestObjectMethodInvoker.java:437)
at com.rational.test.ft.object.manager.TestObjectMethodInvoker.findObjectAndInvoke(TestObjectMethodInvoker.java:353)
at com.rational.test.ft.object.manager.ObjectManager.findObjectAndInvoke(ObjectManager.java:262)
at com.rational.test.ft.object.interfaces.TestObject.invokeProxy(TestObject.java:1561)
at com.rational.test.ft.object.interfaces.GuiTestObject.invokeProxyWithGuiDelay(GuiTestObject.java:364)
at com.rational.test.ft.object.interfaces.GuiTestObject.invokeProxyWithGuiDelay(GuiTestObject.java:396)
at com.rational.test.ft.object.interfaces.GuiTestObject.click(GuiTestObject.java:418)
at LoginAdminProcess.testMain(LoginAdminProcess.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)
at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)
at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768)
at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:964)
at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:915)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1215)
at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1415)
at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1768)
at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlayback.java:715)
at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:649)
at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2203)
at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:281)
at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:43)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
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)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.rational.test.ft.rational_ft.startFT(rational_ft.java:278)
at com.rational.test.ft.rational_ft.main(rational_ft.java:193)

The Java documentation says that the HeadlessException comes from the unability to access mouse, keyboard and so on. Consequently, I checked all the installed drivers, but everything seems to work out fine.

If anybody could help me figuring this out, I would be very pleased! Well, thanks anyway for reading that far :-)
Sincerely,

Sebastian
Updated on 2008-08-21T09:29:22Z at 2008-08-21T09:29:22Z by olegt
  • olegt
    olegt
    162 Posts
    ACCEPTED ANSWER

    Re: Exception while running a script

    ‏2008-08-21T09:29:22Z  in response to suelmann@ira.uka.de
    Hello,
    could you provide a more information, how do you run the scripts, which version of java is installed, RFT and so on.

    In general,the possible solution is: in jvm, change -Djava.awt.headless=true" to -Djava.awt.headless=false".