Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Utilisation de JAVA 8 sous squash TA

Utilisation de JAVA 8 sous squash TA il y a 2 ans 2 mois #5358

  • yha
  • Portrait de yha
  • Hors Ligne
  • Fresh Boarder
  • Messages : 15
Bonjour,
Je rencontre actuellement des problèmes lors de la compilation d’un test sous squash TA avec java 8, la version du Framework est : 1.9.0-RELEASE

Le message d’erreur est le suivant :
17:47:06.974 [main] ERROR org.squashtest.ta.plugin.commons.converter.FileToJavaCodeBundle - It must have java sources in a java subdirectory in resources directory
17:47:06.974 [main] ERROR org.squashtest.ta.backbone.tools.ReflectionUtils - Test Automation Engine error (non SUT) : method 'convert' from engine component of class 'org.squashtest.ta.plugin.commons.converter.FileToJavaCodeBundle' with argument 'org.squashtest.ta.framework.components.FileResource' has thrown an exception.
org.squashtest.ta.framework.exception.BadDataException: Java code compilation failed:

at org.squashtest.ta.plugin.commons.converter.FileToJavaCodeBundle.convert(FileToJavaCodeBundle.java:111) ~[squash-ta-plugin-commons-components-1.9.0-RELEASE.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at org.squashtest.ta.backbone.tools.ReflectionUtils.invoke(ReflectionUtils.java:252) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.wrapper.ResourceConverterHandler.convert(ResourceConverterHandler.java:106) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.instructionrunner.DefaultConvertResourceRunner.applyConverter(DefaultConvertResourceRunner.java:130) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.instructionrunner.DefaultConvertResourceRunner.convertResource(DefaultConvertResourceRunner.java:94) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.instructionrunner.DefaultConvertResourceRunner.doRun(DefaultConvertResourceRunner.java:54) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.instructionrunner.AbstractDefaultInstructionRunner.run(AbstractDefaultInstructionRunner.java:69) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.TestRunnerImpl.runInstruction(TestRunnerImpl.java:203) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.TestRunnerImpl.runInstructionList(TestRunnerImpl.java:148) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.TestRunnerImpl.runMetaInstruction(TestRunnerImpl.java:172) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.TestRunnerImpl.runInstructionList(TestRunnerImpl.java:146) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.TestRunnerImpl.runPhase(TestRunnerImpl.java:136) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.TestRunnerImpl.runTest(TestRunnerImpl.java:107) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.EcosystemRunnerImpl.runAllTests(EcosystemRunnerImpl.java:202) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.EcosystemRunnerImpl.run(EcosystemRunnerImpl.java:104) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.SuiteRunnerImpl.execute(SuiteRunnerImpl.java:68) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.backbone.engine.impl.EngineImpl.execute(EngineImpl.java:63) [squash-ta-engine-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.maven.SquashTAMojo.executeImpl(SquashTAMojo.java:367) [squash-ta-maven-plugin-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.maven.AbstractSquashTaMojo.execution(AbstractSquashTaMojo.java:85) [squash-ta-maven-plugin-1.9.0-RELEASE.jar:?]
at org.squashtest.ta.maven.AbstractBaseSquashTaMojo.execute(AbstractBaseSquashTaMojo.java:147) [squash-ta-maven-plugin-1.9.0-RELEASE.jar:?]
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [maven-core-3.0.4.jar:3.0.4]
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [maven-embedder-3.0.4.jar:3.0.4]
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [maven-embedder-3.0.4.jar:3.0.4]
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven-embedder-3.0.4.jar:3.0.4]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus-classworlds-2.4.jar:?]
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus-classworlds-2.4.jar:?]
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus-classworlds-2.4.jar:?]
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus-classworlds-2.4.jar:?]

Quelqu'un aurait-il rencontre ce problème ?
Je vous remercie de vos retours.
Cordialement,
L'administrateur a désactivé l'accès en écriture pour le public.

Utilisation de JAVA 8 sous squash TA il y a 2 ans 2 mois #5420

  • Eric Degenetais
  • Portrait de Eric Degenetais
  • Hors Ligne
  • Junior Boarder
  • Messages : 38
  • Remerciements reçus 5
bonjour,
pouvons nous écarter la cause habituelle de ce message, à savoir:
17:47:06.974 [main] ERROR org.squashtest.ta.plugin.commons.converter.FileToJavaCodeBundle - It must have java sources in a java subdirectory in resources directory
?

En clair, si vous appelez votre ressource selenium selenium/connexion,
les sources doivent être (avec la structure de packages habituelle) dans un répertoire:
src/SquashTA/resources/selenium/connexion/java/
Est-ce le cas?

bonne journée

cordialement
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: Laurent MASSER
Temps de génération de la page : 0.124 secondes