SWTBotBridge class not found ?

52 views
Skip to first unread message

shafik....@enear.co

unread,
Sep 21, 2016, 7:10:06 AM9/21/16
to robotframework-eclipselibrary-users
Hi all,

Help appreciated diagnosing what might be the cause of the problem below.

Running RF via robotframework-maven-plugin (ie. Jython) which recognizes the resource file, the test procedure and the library.

Have error running the basic "A TestEclipseLibrary installation" suite which fails on the keyword:

    Start Eclipse -install, ${eclipse_install}, -data, ${eclipse_data}, ${eclipse_params}

Eclipse version: Mars.2 Release (4.5.2)
Workspace directory (ie eclipse_data):   basic default workspace which works OK when eclipse launched manually


Extract from the RF report log):

Documentation:      Start Eclipse with the given arguments in a separate thread
Start / End / Elapsed:     20160921 11:18:59.061 / 20160921 11:20:59.961 / 00:02:00.900

11:20:59.767     INFO     org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: D:\samahomad\INGG_CoreHub\test_ws\.metadata\.plugins\org.eclipse.m2e.logback.configuration\logback.1.5.0.20140606-0033.xml
org.eclipse.m2e.logback.configuration: Initializing logback
RfPlugin for RF starting
SwtbotPlugin loop 0
SwtbotPlugin bot org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot@76c23d4d
SwtbotPlugin for RF on error (thread)    

11:20:59.809     INFO     java.lang.ClassNotFoundException: org.lcx.robotframework.eclipse.bridge.SWTBotBridge
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.lcx.robotframework.swtbotplugin.SwtbotThread.run(SwtbotThread.java:41)    

    11:20:59.956     FAIL     Timeout reached before end of initialization
   Check if EclipseLibrary plugin is installed  Or use -timeout option in Start Eclipse keyword



Many thanks in advance

Laurent Carbonnaux

unread,
Sep 21, 2016, 8:48:46 AM9/21/16
to robotframework-ec...@googlegroups.com
Hi Shafik,

It seams you didn't install the EclipseLibrary plugin in your eclipse

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "robotframework-eclipselibrary-users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robotframework-eclipselibrary-users+unsubscribe@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

shafik....@enear.co

unread,
Sep 21, 2016, 9:33:52 AM9/21/16
to robotframework-eclipselibrary-users
Laurent,

But I do have it installed:
  RobotFramework EclipseLibrary    1.5.0.201407191429    org.lcx.robotframework.swtbot_feature.feature.group    scrumvision.org

shafik....@enear.co

unread,
Sep 21, 2016, 9:50:53 AM9/21/16
to robotframework-eclipselibrary-users
Actually it would be helpful if you could clarify something with the following keyword:

Start Eclipse with parameters
    [Arguments]        ${install}=file:/d:/eclipse/eclipse35    ${data}=file:/d:/bootstrap35-sv3
    Start Eclipse    -consolelog    -debug    -install ${install}    -data ${data}    -nosplash

What should be there  in between -install and ${install} ? a  single space char. or a Tab ( as in parameter separator) ? are they different parameters or can be taken as one ?

Thanks


On Wednesday, 21 September 2016 13:48:46 UTC+1, Laurent Carbonnaux wrote:

shafik....@enear.co

unread,
Sep 21, 2016, 10:01:35 AM9/21/16
to robotframework-eclipselibrary-users
I also failed to mention that... Eclipse does come up ie. it gets started, but then it seems to remain stuck in the "Welcome" view...

shafik....@enear.co

unread,
Sep 21, 2016, 10:08:53 AM9/21/16
to robotframework-eclipselibrary-users
And this on the profile's .metadata .log file:

!ENTRY org.eclipse.ui 4 4 2016-09-21 14:32:32.642
!MESSAGE Bad extension specification
!SUBENTRY 1 org.lcx.robotframework.swtbotplugin 4 0 2016-09-21 14:32:32.642
!MESSAGE startup class must implement org.eclipse.ui.IStartup
!SESSION 2016-09-21 14:59:40.613 -----------------------------------------------
eclipse.buildId=4.5.2.M20160212-1500
java.version=1.8.0_73
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments:  -consolelog -debug
Command-line arguments:  -data file:/D:/samahomad/INGG_CoreHub/test_ws -consolelog -debug

!ENTRY org.eclipse.jface 2 0 2016-09-21 14:59:53.175
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2016-09-21 14:59:53.175
!MESSAGE A conflict occurred for ALT+CTRL+S:
Binding(ALT+CTRL+S,
    ParameterizedCommand(Command(org.eclipse.jubula.client.ui.commands.SaveImageAs,Save Image &As...,
        ,
        Category(org.eclipse.jubula.client.ui.commands,Functional Test,null,true),
        org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5bc93c68,
        ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
Binding(ALT+CTRL+S,
    ParameterizedCommand(Command(org.eclipse.team.svn.ui.command.SynchronizeCommand,Synchronize with Repository,
        ,
        Category(org.eclipse.team.svn.ui.command.category,SVN,null,true),
        org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2a0562fc,
        ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)

!ENTRY org.eclipse.ui 4 4 2016-09-21 15:00:04.064
!MESSAGE Bad extension specification
!SUBENTRY 1 org.lcx.robotframework.swtbotplugin 4 0 2016-09-21 15:00:04.064
!MESSAGE startup class must implement org.eclipse.ui.IStartup

any ideas ?

shafik....@enear.co

unread,
Sep 21, 2016, 10:14:47 AM9/21/16
to robotframework-eclipselibrary-users
And finally, some extract from EclipseLibrary.log

INFO 2016/09/21 14:59:40,493 [MainThread] (LogKeywords.java:24) - Set EclipseLibrary log level to DEBUG
DEBUG 2016/09/21 14:59:40,516 [MainThread] (EclipseLibrary.java:51) - runKeyword:startEclipse
DEBUG 2016/09/21 14:59:40,523 [MainThread] (EclipseLibrary.java:52) -     args:5
DEBUG 2016/09/21 14:59:40,524 [MainThread] (EclipseLibrary.java:55) -         arg[0]:-install, of class=java.lang.String
DEBUG 2016/09/21 14:59:40,526 [MainThread] (EclipseLibrary.java:55) -         arg[1]:file:/C:/Dev/eclipse/mars, of class=java.lang.String
DEBUG 2016/09/21 14:59:40,527 [MainThread] (EclipseLibrary.java:55) -         arg[2]:-data, of class=java.lang.String
DEBUG 2016/09/21 14:59:40,529 [MainThread] (EclipseLibrary.java:55) -         arg[3]:file:/D:/samahomad/INGG_CoreHub/test_ws, of class=java.lang.String
DEBUG 2016/09/21 14:59:40,530 [MainThread] (EclipseLibrary.java:55) -         arg[4]:-consolelog -debug, of class=java.lang.String
DEBUG 2016/09/21 14:59:40,534 [MainThread] (EclipseLaunchingKeywords.java:54) - loading eclipse launcher jar
DEBUG 2016/09/21 14:59:40,537 [MainThread] (EclipseUtil.java:29) - Load Eclipse launcher jar
DEBUG 2016/09/21 14:59:40,539 [MainThread] (EclipseUtil.java:31) -      pathToEclipse=file:/C:/Dev/eclipse/mars
DEBUG 2016/09/21 14:59:40,545 [MainThread] (EclipseUtil.java:40) -      eclipseLauncherJar=C:\Dev\eclipse\mars\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
DEBUG 2016/09/21 14:59:40,547 [MainThread] (EclipseUtil.java:79) -      file:/C:/Dev/eclipse/mars/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar is loaded
DEBUG 2016/09/21 14:59:40,549 [MainThread] (EclipseLaunchingKeywords.java:62) - get the Main method
INFO 2016/09/21 14:59:40,608 [MainThread] (EclipseLaunchingKeywords.java:86) - Eclipse start is requested
DEBUG 2016/09/21 14:59:40,610 [Thread-11] (EclipseLaunchingKeywords.java:155) - requesting Main method of eclipse launcher jar
ERROR 2016/09/21 15:01:40,983 [MainThread] (EclipseLaunchingKeywords.java:122) - SWTBotBridge initialization failed or timeout reached

Laurent Carbonnaux

unread,
Sep 21, 2016, 10:20:54 AM9/21/16
to robotframework-ec...@googlegroups.com
-install is where your eclipse is installed, a space separate -install and ${install}
-data is where your worskspace is on your drive

This is the standard parameters of eclipse

shafik....@enear.co

unread,
Sep 21, 2016, 10:21:45 AM9/21/16
to robotframework-eclipselibrary-users
Not sue if its any helpful, but I wonder if the problem has anything to do with the one related here:
http://stackoverflow.com/questions/5207325/why-does-my-eclipse-plugin-startup-fine-in-one-workspace-but-not-in-another

Laurent Carbonnaux

unread,
Sep 21, 2016, 10:24:24 AM9/21/16
to robotframework-ec...@googlegroups.com
I need to check why
Which Eclipse are you using?
My last check was on kepler version

shafik....@enear.co

unread,
Sep 21, 2016, 10:32:05 AM9/21/16
to robotframework-eclipselibrary-users
Thanks Laurent, very appreciated

Eclipse for Testers
  Version: Mars.2 Release (4.5.2)
  Build id: 20160218-0600


eclipse.buildId=4.5.2.M20160212-1500
java.version=1.8.0_73
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB


Laurent Carbonnaux

unread,
Sep 21, 2016, 10:36:48 AM9/21/16
to robotframework-ec...@googlegroups.com
Ok, never tested on this version
It may need some development to correct this
I'll tell you

shafik....@enear.co

unread,
Sep 21, 2016, 10:50:18 AM9/21/16
to robotframework-eclipselibrary-users
In the mean time, I'll downgrade to Kepler...
I think the link I posted to stackOverflow (earlier) might prove helpful.

If you need any non-coding assistance for this update, feel free to ask.

I have converted the HTML keyword and test suite to a more editor friendly .robot format, if you find interesting to include/share I can send them to you.

Best
Shafik

Shafik A. Mahomad

unread,
Sep 21, 2016, 1:22:47 PM9/21/16
to robotframework-eclipselibrary-users

Errm... not funny but... tried it with Eclipse Kepler and... the result is exactly the same as before...

I took care to update the ${eclipse_install} variable to point to the path for the other eclipse (kepler)

Still... stuff in the log files is exactly the same :-/ it's weird,


Laurent, any chance you can make a quick test with this particular this version of Kepler ?

Version: Kepler Service Release 2
Build id: 20140224-0627

Laurent Carbonnaux

unread,
Sep 22, 2016, 3:49:17 AM9/22/16
to robotframework-ec...@googlegroups.com
??? strange things with Kepler.
I'm in progress to test with Mars version
I'll tell you

Laurent Carbonnaux

unread,
Sep 23, 2016, 6:00:01 AM9/23/16
to robotframework-ec...@googlegroups.com
Hi Shafik,

I've tested with both Kepler and Mars version. It works fine on my side.

Can you send rf reports that should be in results folder?
Reply all
Reply to author
Forward
0 new messages