Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Building Jubula and documentation
icon5.gif  Building Jubula and documentation [message #1146030] Sat, 19 October 2013 23:43 Go to next message
Egor Sukhanov is currently offline Egor SukhanovFriend
Messages: 3
Registered: October 2013
Junior Member
Hello there! Smile

It happened that the topic of my master thesis is going to be connected to Jubula.
Due to this fact, lately I'm attempting to build it from the source code, in order to get an idea how it works (debugging usually helps in this, right?).

Unfortunately, the main source of information I found was this brief guide: http://wiki.eclipse.org/Jubula/JubulaContribGuide

Following these steps, after I import projects from GIT to Eclipse, target platform is probably not read correctly by Eclipse - it shows me no locations included into each of the target platform definitions (although the target platform definitions are included in the Eclipse preferences) and as a result i get some thousands errors. Somehow was able to create target definition (generally by building project via maven and then copying all the downloaded bundles, using local folder as target platform for Eclipse).

Anyways, the point is, that after all these actions, I'm still not able to run testexec in debug mode. Generally, if I set no command line arguments, it works fine - shows me help in the console (list of possible parameters). But, if I include working command line arguments into debug configuration - I get an error. Trying to debug "org.eclipse.jubula.app.testexec" project to be precise.

This is the error log I get:

!SESSION 2013-10-20 01:23:20.777 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -application org.eclipse.jubula.app.cmd.launcher -project FinalProject -version 1.0 -testsuite Adding -server localhost -port 59999 -autid addrswing AddingSwing -datadir C:\dataresult -resultdir C:\dataresult -language en_US -dbscheme Default Embedded (H2) -dbuser sa -dbpw  pause
Command-line arguments:  -application org.eclipse.jubula.app.cmd.launcher -data J:\IDE\workspace\jubula_dev/../runtime-org.eclipse.jubula.app.cmd.launcher -dev file:J:/IDE/workspace/jubula_dev/.metadata/.plugins/org.eclipse.pde.core/org.eclipse.jubula.app.cmd.launcher/dev.properties -project FinalProject -version 1.0 -testsuite Adding -server localhost -port 59999 -autid addrswing AddingSwing -datadir C:\dataresult -resultdir C:\dataresult -language en_US -dbscheme Default Embedded (H2) -dbuser sa -dbpw  pause

!ENTRY org.eclipse.osgi 4 0 2013-10-20 01:23:27.985
!MESSAGE An error occurred while automatically activating bundle org.eclipse.jubula.toolkit.common (352).
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.jubula.toolkit.common.PluginStarter for bundle org.eclipse.jubula.toolkit.common is invalid
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at org.eclipse.jubula.app.testexec.TestexecClient.preRun(TestexecClient.java:62)
	at org.eclipse.jubula.client.cmd.AbstractCmdlineClient.run(AbstractCmdlineClient.java:401)
	at org.eclipse.jubula.client.cmd.AbstractLauncher.start(AbstractLauncher.java:26)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:632)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:614)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:568)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
	... 32 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:632)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:614)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:568)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:165)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at org.eclipse.jubula.app.testexec.TestexecClient.preRun(TestexecClient.java:62)
	at org.eclipse.jubula.client.cmd.AbstractCmdlineClient.run(AbstractCmdlineClient.java:401)
	at org.eclipse.jubula.client.cmd.AbstractLauncher.start(AbstractLauncher.java:26)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

!ENTRY org.eclipse.osgi 4 0 2013-10-20 01:23:27.992
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/jubula/toolkit/common/exception/ToolkitPluginException
	at org.eclipse.jubula.app.testexec.TestexecClient.preRun(TestexecClient.java:62)
	at org.eclipse.jubula.client.cmd.AbstractCmdlineClient.run(AbstractCmdlineClient.java:401)
	at org.eclipse.jubula.client.cmd.AbstractLauncher.start(AbstractLauncher.java:26)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


Looking forward to receive a feedback and thanks in advance for your help Smile
Re: Building Jubula and documentation [message #1148467 is a reply to message #1146030] Mon, 21 October 2013 14:27 Go to previous messageGo to next message
Egor Sukhanov is currently offline Egor SukhanovFriend
Messages: 3
Registered: October 2013
Junior Member
Just in case - trying to build project in just installed Eclipse Indigo (RCP and RAP development version) on win7 x64.

Additional question to this topic - is it possible to ask for any additional documentation on Jubula architecture?

Thank you in advance!



Re: Building Jubula and documentation [message #1149520 is a reply to message #1148467] Tue, 22 October 2013 06:17 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1163
Registered: July 2009
Senior Member
Hi,

The developer list archives already have some threads in about building the source code - maybe something there will help. If not, then you could post a new thread to the list.

Hope that helps,
Alex
Re: Building Jubula and documentation [message #1160092 is a reply to message #1149520] Tue, 29 October 2013 00:33 Go to previous messageGo to next message
Egor Sukhanov is currently offline Egor SukhanovFriend
Messages: 3
Registered: October 2013
Junior Member
Dear Alexandra,

the problem is still in place. The only advice I found useful from mailing archive - that I have to build project via maven before running it in eclipse.

But it doesn't work. Tried different branches (indigo-sr1, helios, kepler) on different versions of Eclipse (Indigo/Helios/Kepler), but there is always a problem for maven with computing target platform.

E.g. in Eclipse Kepler with kepler git branch, upon running maven install i get the following message:

[INFO] Fetching org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar.pack.gz from h_ttp://artfiles.org/eclipse.org//releases/juno/201303010900/plugins/ (1,71kB of 1,04MB at 0B/s)
[INFO] Fetching org.eclipse.ui.workbench_3.104.0.v20130204-164612.jar.pack.gz from h_ttp://artfiles.org/eclipse.org//releases/juno/201303010900/plugins/ (738,1kB of 1,04MB at 731,32kB/s)
[ERROR] Internal error: java.lang.RuntimeException: "Messages while trying children repositories.": ["Messages while trying children repositories.": ["": ["Retry another mirror": ["Unable to read repository at f_tp://eclipse.c3sl.ufpr.br/eclipse/releases/juno/201303010900/plugins/org.eclipse.emf.common_2.8.0.v20130125-0546.jar.pack.gz."], "Retry another mirror": ["Unable to read repository at h_ttp://mirror.selfnet.de/eclipse/releases/juno/201303010900/plugins/org.eclipse.ui_3.104.0.v20121024-145224.jar.pack.gz."]]]] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "Messages while trying children repositories.": ["Messages while trying children repositories.": ["": ["Retry another mirror": ["Unable to read repository at f_tp://eclipse.c3sl.ufpr.br/eclipse/releases/juno/201303010900/plugins/org.eclipse.emf.common_2.8.0.v20130125-0546.jar.pack.gz."], "Retry another mirror": ["Unable to read repository at h_ttp://mirror.selfnet.de/eclipse/releases/juno/201303010900/plugins/org.eclipse.ui_3.104.0.v20121024-145224.jar.pack.gz."]]]]
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: "Messages while trying children repositories.": ["Messages while trying children repositories.": ["": ["Retry another mirror": ["Unable to read repository at f_tp://eclipse.c3sl.ufpr.br/eclipse/releases/juno/201303010900/plugins/org.eclipse.emf.common_2.8.0.v20130125-0546.jar.pack.gz."], "Retry another mirror": ["Unable to read repository at h_ttp://mirror.selfnet.de/eclipse/releases/juno/201303010900/plugins/org.eclipse.ui_3.104.0.v20121024-145224.jar.pack.gz."]]]]
	at org.eclipse.tycho.p2.target.P2ArtifactDownloadTool.downloadArtifactsToLocalMavenRepository(P2ArtifactDownloadTool.java:59)
	at org.eclipse.tycho.p2.target.TargetPlatformImpl.downloadArtifacts(TargetPlatformImpl.java:213)
	at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:128)
	at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:80)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:377)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:354)
	at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:103)
	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	... 11 more
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] h_ttp://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException



The error upon launching command line client in debug mode from Eclipse is different, but idea is the same - with no command line arguments it seems working fine, showing me help entries, but with working arguments - it shows me errors and not launching client.


I'm a bit desperate after trying different version of source code in different versions of Eclipse and playing around target platform. Can I get any feedback from developers on this forum or should I somehow write to mailing list?
Re: Building Jubula and documentation [message #1165364 is a reply to message #1160092] Fri, 01 November 2013 08:20 Go to previous message
Ajantha Yogamoorthy is currently offline Ajantha YogamoorthyFriend
Messages: 11
Registered: October 2013
Junior Member
Hi,

you can subscribe here to the jubula-dev mailing list.

Ajantha
Previous Topic:Mapping technical names
Next Topic:Dealing with a growing test library and new product versions
Goto Forum:
  


Current Time: Thu Nov 27 09:59:28 GMT 2014

Powered by FUDForum. Page generated in 0.02396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software