Topic
  • 13 replies
  • Latest Post - ‏2012-12-13T13:36:24Z by OBM
OBM
OBM
9 Posts

Pinned topic Playback is stopped when second script is called

‏2012-11-29T09:07:23Z |
Hello everybody,

I'm using RFT 8.1.0 (German Version :-( installed by a student) and
I'm not really familiar with this product.

Since a few days when running a main script calling several scripts the
SECOND called script begins to start and suddenly playback is stopped.
This occurs with every second script in any workspace I use.

Thik, this behaviour has to do with the environment or configuration of RFT..

The error log shows the following:

!ENTRY com.rational.test.ft 2 1 2012-11-29 09:47:11.921
!MESSAGE FtClassLoader: FtClassLoader cannot find FtMessages_de_DE

!ENTRY com.rational.test.ft 2 1 2012-11-29 09:47:11.937
!MESSAGE FtClassLoader: FtClassLoader cannot find FtMessages_de

!ENTRY com.rational.test.ft 2 1 2012-11-29 09:47:11.968
!MESSAGE FtClassLoader: FtClassLoader cannot find FtMessages

!ENTRY org.eclipse.ui.workbench 2 0 2012-11-29 09:47:12.718
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2012-11-29 09:47:12.718
!MESSAGE Conflict for 'AUTOGEN:::com.rational.test.ft.cm.IProjectContributions/com.rational.test.ft.wswplugin.cm.checkout':
HandlerActivation(commandId=AUTOGEN:::com.rational.test.ft.cm.IProjectContributions/com.rational.test.ft.wswplugin.cm.checkout,
handler=ActionDelegateHandlerProxy(null,com.rational.test.ft.wswplugin.cm.CheckoutCMButtonAction),
expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@27492749),sourcePriority=16384)
HandlerActivation(commandId=AUTOGEN:::com.rational.test.ft.cm.IProjectContributions/com.rational.test.ft.wswplugin.cm.checkout,
handler=ActionDelegateHandlerProxy(null,com.rational.test.ft.wswplugin.cm.CheckoutCMButtonAction),
expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@27492749),sourcePriority=16384)
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2012-11-29 09:47:12.718

!ENTRY org.eclipse.update.configurator 4 0 2012-11-29 09:47:13.328
!MESSAGE Can't find resource for bundle feature, key de_DE

!ENTRY org.eclipse.update.configurator 4 0 2012-11-29 09:47:13.437
!MESSAGE Can't find resource for bundle feature, key de_DE

!ENTRY org.eclipse.update.configurator 4 0 2012-11-29 09:47:13.500
!MESSAGE Can't find resource for bundle feature, key de_DE

!ENTRY org.eclipse.update.configurator 4 0 2012-11-29 09:47:13.531
!MESSAGE Can't find resource for bundle feature, key de_DE

Any ideas what's going wrong?

Thanks in advance for your help !

Klaus
Updated on 2012-12-13T13:36:24Z at 2012-12-13T13:36:24Z by OBM
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-11-29T09:11:49Z  
    I've forgot to mention that I use the Extension for 3270 terminals
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-04T07:02:10Z  
    Hi,

    It seems to be related with localization. Can you try to change your input locale to English and then start RFT? You can also try to write 2 simple scripts one calling the other. If the problem doesn't persist then there could be something wrong with your scripts.

    Hope this helps..
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-04T10:17:35Z  
    Hi,

    It seems to be related with localization. Can you try to change your input locale to English and then start RFT? You can also try to write 2 simple scripts one calling the other. If the problem doesn't persist then there could be something wrong with your scripts.

    Hope this helps..
    Thanks a lot for your help. Can you please tell me where I can change/define another locale. From the GUI ? Or in an ini-file ?

    This installation is done by a formerstudent and i'm not familiar with it.

    Thanks in advance again.

    I
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-04T11:39:29Z  
    • OBM
    • ‏2012-12-04T10:17:35Z
    Thanks a lot for your help. Can you please tell me where I can change/define another locale. From the GUI ? Or in an ini-file ?

    This installation is done by a formerstudent and i'm not familiar with it.

    Thanks in advance again.

    I
    Control Panel\Regional Settings\Format - change this to English and restart RFT.
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-05T08:41:25Z  
    Control Panel\Regional Settings\Format - change this to English and restart RFT.
    Thanks ! I changed it to EN_US but I'm still facing the same problem:

    When the second script is called the playback ends....
    The scripts are ok.
    On the Console I see an exception is thrown and this written to the error log:

    !ENTRY org.eclipse.ui 4 0 2012-12-05 09:37:51.062
    !MESSAGE Unhandled event loop exception
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
    at org.eclipse.swt.SWT.error(SWT.java:3777)
    at org.eclipse.swt.SWT.error(SWT.java:3695)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
    Caused by: java.lang.NullPointerException
    at com.rational.test.ft.wswplugin.RftUIPlugin.getContainerResource(RftUIPlugin.java:382)
    at com.rational.test.ft.wswplugin.rational_ide$7.run(rational_ide.java:501)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    ... 23 more
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-12T07:48:03Z  
    • OBM
    • ‏2012-12-05T08:41:25Z
    Thanks ! I changed it to EN_US but I'm still facing the same problem:

    When the second script is called the playback ends....
    The scripts are ok.
    On the Console I see an exception is thrown and this written to the error log:

    !ENTRY org.eclipse.ui 4 0 2012-12-05 09:37:51.062
    !MESSAGE Unhandled event loop exception
    !STACK 0
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
    at org.eclipse.swt.SWT.error(SWT.java:3777)
    at org.eclipse.swt.SWT.error(SWT.java:3695)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
    Caused by: java.lang.NullPointerException
    at com.rational.test.ft.wswplugin.RftUIPlugin.getContainerResource(RftUIPlugin.java:382)
    at com.rational.test.ft.wswplugin.rational_ide$7.run(rational_ide.java:501)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    ... 23 more
    How do you call the second script? Can you share your code?
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-12T13:26:28Z  
    How do you call the second script? Can you share your code?
    Please find attached two examples of our mainscripts, that run successfully for a long, long time. But second script (here LogIn) is called, runs til the end and then playback is stopped.

    Note: There are other scripts not using the LogIn script that ends after the second script too (it's no problem in the LogIn script).

    Kind regards ant thanks !
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-13T07:06:14Z  
    • OBM
    • ‏2012-12-12T13:26:28Z
    Please find attached two examples of our mainscripts, that run successfully for a long, long time. But second script (here LogIn) is called, runs til the end and then playback is stopped.

    Note: There are other scripts not using the LogIn script that ends after the second script too (it's no problem in the LogIn script).

    Kind regards ant thanks !
    It's hard to tell.. Can you write 2 simpler script one calling the other and the other only calling System.out.println? Try to simplify the problem.

    But you posted 2 different exceptions in 2 messages, which means your error has changed..
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-13T13:12:46Z  
    It's hard to tell.. Can you write 2 simpler script one calling the other and the other only calling System.out.println? Try to simplify the problem.

    But you posted 2 different exceptions in 2 messages, which means your error has changed..
    Hello,

    as suggested I call a second script from a script and the result is:

    on console I see:

    Exception occurred during playback of script Script1 http://java.lang.NullPointerException.

    The playback log shows:

    13-Dec-2012 02:07:12.093 PM Script start Script1
    line_number = 1
    script_iter_count = 0
    script_name = Script1
    script_id = Script1.java

    13-Dec-2012 02:07:12.218 PM Call script Script2
    name = Script2
    line_number = 35
    script_name = Script1
    script_id = Script1.java

    13-Dec-2012 02:07:12.218 PM Script start Script2
    line_number = 1
    script_iter_count = 0
    script_name = Script2
    script_id = Script2.java

    PASS 13-Dec-2012 02:07:12.218 PM Script end Script2
    script_name = Script2
    script_id = Script2.java

    That's all ! :-(
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-13T13:15:25Z  
    • OBM
    • ‏2012-12-13T13:12:46Z
    Hello,

    as suggested I call a second script from a script and the result is:

    on console I see:

    Exception occurred during playback of script Script1 http://java.lang.NullPointerException.

    The playback log shows:

    13-Dec-2012 02:07:12.093 PM Script start Script1
    line_number = 1
    script_iter_count = 0
    script_name = Script1
    script_id = Script1.java

    13-Dec-2012 02:07:12.218 PM Call script Script2
    name = Script2
    line_number = 35
    script_name = Script1
    script_id = Script1.java

    13-Dec-2012 02:07:12.218 PM Script start Script2
    line_number = 1
    script_iter_count = 0
    script_name = Script2
    script_id = Script2.java

    PASS 13-Dec-2012 02:07:12.218 PM Script end Script2
    script_name = Script2
    script_id = Script2.java

    That's all ! :-(
    There should be a stack trace of the exception either in the HTML log or console?
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-13T13:21:11Z  
    There should be a stack trace of the exception either in the HTML log or console?
    No there is no stack trace. Neither on the console, nor in the HTML error log (I pasted all of it in my last answer), nor in the error log.
  • SystemAdmin
    SystemAdmin
    16727 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-13T13:31:51Z  
    • OBM
    • ‏2012-12-13T13:21:11Z
    No there is no stack trace. Neither on the console, nor in the HTML error log (I pasted all of it in my last answer), nor in the error log.
    Is your JRE enabled properly? Is there any compiler errors in your project? Can you start a brand new workspace and project, then create the simple scripts again?
  • OBM
    OBM
    9 Posts

    Re: Playback is stopped when second script is called

    ‏2012-12-13T13:36:24Z  
    Is your JRE enabled properly? Is there any compiler errors in your project? Can you start a brand new workspace and project, then create the simple scripts again?
    Hi, thank you for your hints. I will do that at the beginning of next week and come back to you. Thanks again and have a nice weekend.