I am trying to run BDD stories in Parallel using JBehave. Following the below guides. https://github.com/jbehave/jbehave-core/tree/master/examples/threads https://jbehave.org/reference/stable/multi-threading.html.
Getting below error. Any help appreciated.
Failed to execute goal org.jbehave:jbehave-maven-plugin:5.0:run-stories-as-embeddables (default-cli) on project jbehave-threads-example: Failed to run stories as embeddables: class org.jbehave.examples.threads.steps.ThreadsSteps cannot be cast to class org.jbehave.core.Embeddable (org.jbehave.examples.threads.steps.ThreadsSteps is in unnamed module of loader org.jbehave.core.embedder.EmbedderClassLoader #58b67519; org.jbehave.core.Embeddable is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm #5395ea39) -> [Help 1]
Related
While automating DataLoader using ANT, I updated process-conf.xml file using build.xml file. Now when I am running ANT command the DataLoader unable to login automatically. and finally it says Build Failed.
In build.xml file when I am using com.salesforce.dataloader.process.ProcessRunner class then getting the below error.
Error: Main method not found in class com.salesforce.dataloader.process.ProcessRunner, please define the main method as: [java] public static void main(String[] args) [java] or a JavaFX application class must extend javafx.application.Application [java] Java Result: 1
and when I am using com.salesforce.dataloader.process.DataLoaderRunner class then the DataLoader starts but not logging and not processing bean from process-conf.xml file.
Please guide with the solution.
I am trying to execute grails help or grails create-controller Book in grails project using command prompt.
Error shown in cmd:
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\grails start\grails-crud\build.gradle'
* What went wrong:
Could not compile build file 'D:\grails start\grails-crud\build.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
I'm setting this property <sonar.tests>src/test/java</sonar.tests>
in the root pom file, the project consist of 7 modules, 5 modules have test cases in the mentioned location, while the other do not have tests, so the sonar scans and fails as shown :
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.072 s
[INFO] Finished at: 2020-01-13T01:38:06-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project sch: The directory '/var/lib/jenkins/workspace/sonar-sch/anonymization/src/test/java' does not exist for Maven module com.interset:anonymization:jar:6.0.0-SNAPSHOT. Please check the property sonar.tests -> [Help 1]
How can i skip the scan for tests on the 2 modules or any other workaround would help too, as ill need that property for the code coverage, Thanks.
As already mentioned in the comments: Specify <sonar.tests></sonar.tests> in the modules without a test folder to remove the test folder property.
I have many errors with sonarqube analyse in the Jenkins job with the analyse success
[ERROR] [14:36:44.124] Class not found: org.joda.convert.FromString
[ERROR] [14:36:44.126] Class not found: org.joda.convert.ToString
[ERROR] [14:34:42.441] Class not found: org.apache.commons.logging.Log
[ERROR] [14:34:42.724] Class not found: org.apache.oro.text.perl.Perl5Util
[ERROR] [14:34:31.442] Class not found: io.swagger.annotations.ApiModel
[ERROR] [14:34:31.442] Class not found: io.swagger.annotations.ApiModelProperty
[ERROR] [14:28:37.756] Class not found: org.apache.commons.logging.Log
[ERROR] [14:28:40.030] Class not found: org.apache.oro.text.perl.Perl5Util
SonareQube : 5.1.2
sonarQube jenkins plugin : 2.6
JDK : 1.7
Any help please
thanks
Add the following dependency to your pom
<dependency>
<groupId>org.joda</groupId>
<artifactId>joda-convert</artifactId>
<version>1.8.1</version>
<scope>provided</scope>
</dependency>
This error is displayed when the .class file of the mentioned class is not found. This might results in less accurate and less precise issues raised.
You should check your analysis configuration and more specifically the sonar.java.libraries property to be sure you provide the correct dependency to your project.
The root cause in our case were outdated Sonar plugins. In order to figure out which one it is you need to run a Maven debug build i.e. run it with -X. The
Class not found: org.joda.convert.FromString
Class not found: org.joda.convert.ToString
you'll see if the sonar-jmeter-plugin is not up to date for example.
I have succeeded to run the WordCount sample but failed to run TrafficStreamingMaxLaneFlow sample what arguments exactly I should use?.
My command line:
mvn exec:java -pl examples -Dexec.mainClass=com.google.cloud.dataflow.examples.TrafficStreamingMaxLaneFlow -Dexec.args="--project=sturdy-analyzer-658 --inputTopic=xxxInputTopic --dataset=xxxDataset --table=MIS --runner=BlockingDataflowPipelineRunner"
The result:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java (default-cli) on project google-cloud-dataflow-java-examples-all: An exception occured while executing the Java class. null: InvocationTargetException: Failed to construct instance from factory method com.google.cloud.dataflow.sdk.runners.BlockingDataflowPipelineRunner#fromOptions: Missing required value: at least one of tempLocation or stagingLocation must be set. -> [Help 1]
Avi, add a stagingLocation arg to your invocation, along these lines:
--stagingLocation=gs://your-bucket/staging
Make sure this is a bucket in your project that you have write access to.