When using JMH with maven to benchmark a project that was previously working and benchmarking as intended experiencing the following error:
java -jar target/benchmarks.jar
Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList
at org.openjdk.jmh.runner.AbstractResourceReader.getReaders(AbstractResourceReader.java:98)
at org.openjdk.jmh.runner.BenchmarkList.find(BenchmarkList.java:122)
at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:260)
at org.openjdk.jmh.runner.Runner.run(Runner.java:209)
at org.openjdk.jmh.Main.main(Main.java:71)
I have seen other similar posts which were solved by performing a mvn clean install but I have already done this repeatedly.
Thanks.
Related
I'm trying to build my automation framework using playwright with java, however I'm running into below issue when running the tests. Please advice!
Failed to install browsers
Error: Failed to download chromium v1000, caused by
Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:390:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
Exception in thread "main" java.lang.RuntimeException: Failed to create driver
at com.microsoft.playwright.impl.Driver.ensureDriverInstalled(Driver.java:61)
at com.microsoft.playwright.impl.PlaywrightImpl.create(PlaywrightImpl.java:40)
at com.microsoft.playwright.Playwright.create(Playwright.java:96)
at com.microsoft.playwright.Playwright.create(Playwright.java:100)
at Example.main(Example.java:5)
Caused by: java.lang.RuntimeException: Failed to install browsers, exit code: 1
at com.microsoft.playwright.impl.DriverJar.installBrowsers(DriverJar.java:76)
at com.microsoft.playwright.impl.DriverJar.initialize(DriverJar.java:48)
at com.microsoft.playwright.impl.Driver.ensureDriverInstalled(Driver.java:57)
... 4 more
I could solve it by disabling the download (as it was already installed with npx playwright install) by setting the env
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
IntelliJ IDE Run Configuration
It's not a Playwright or Maven problem. You can fix it yourself. If you want just to avoid the problem, not fixing it, you can follow this recommendation: https://community.claris.com/en/s/question/0D53w00005GuQXxCAN/nodejs-fmsapiclient-unable-to-verify-the-first-certificate-local-server
namely by setting the system variable to zero
Has anyone tried running the Cucumber-jvm cli without using maven?
If I try to execute the below command I am getting this error:
java cucumber.api.cli.Main
Error: Could not find or load main class cucumber.api.cli.Main
I even tried this:
java -cp "/Users/jreijn/.m2/repository/info/cukes/cucumber-
core/1.2.5/cucumber-core-
1.2.5.jar:/Users/jreijn/.m2/repository/info/cukes/gherkin/2.12.2/gherkin-
2.12.2.jar:/Users/jreijn/.m2/repository/info/cukes/cucumber-
java/1.2.5/cucumber-java-
1.2.5.jar:/Users/jreijn/.m2/repository/info/cukes/cucumber-jvm-
deps/1.0.5/cucumber-jvm-deps-1.0.5.jar" cucumber.api.cli.Main
I am getting the same error.
I've a "spring boot app" application.
I'm executing my software with "gradle bootRun" and It works correctly for all developers.
To make the jar or war I've used maven and currently I'm using gradle.
With both methods to generated jar or war the execution of software from this artifacts isn't working propertly in one of hundreds of use cases.
The error is:
Error: Error while starting plugin CheckGebaeudeVersicherungsSystemIoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.IntersectsIoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.no_overlaps_2_1_6_IoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.no_overlaps_2_2_0_IoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
This seems to be an error of a missing dependency.
This error is not because of something on the code. In eclipse with execution and debug, all is working properly!
What's the difference in execute between "gradle bootRun"/"mvn spring-boot:run" and the execution with java commad (traditional "java -jar jar/war")?
I have a problem running Xuggler on linux:
08:43:05.550 [main] WARN com.xuggle.ferry.JNILibrary - Failure: library load of library: xuggle; url: /tmp/xuggle/xuggle2624685369771797713.tmp; error: java.lang.UnsatisfiedLinkError: /tmp/xuggle/xuggle2624685369771797713.tmp: /tmp/xuggle/xuggle2624685369771797713.tmp: failed to map segment from shared object: Operation not permitted
08:43:05.565 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle; version: 5; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
Exception in thread "main" java.lang.UnsatisfiedLinkError: no xuggle in java.library.path
Same JAR works fine on Windows.
I tried to include xuggler-5.4.jar, 5.2.jar, I also tried to make maven project and to compile with maven, the problem persists.
Here is the CLASSPATH, so you can see I also included lately in the classpath the jar
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64//jre/lib/ext:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64//lib/tools.jar:/home/baidoc/libs/xuggle-xuggler-5.4.jar
I am getting the below error when i try to generate urls using the generate command:
GeneratorJob: java.lang.RuntimeException: job failed: name=generate: 1357474131-234134646, jobid=job_local_0001
at org.apache.nutch.util.NutchJob.waitForCompletion(NutchJob.java:54)
at org.apache.nutch.crawl.GeneratorJob.run(GeneratorJob.java:191)
at org.apache.nutch.crawl.GeneratorJob.generate(GeneratorJob.java:213)
at org.apache.nutch.crawl.GeneratorJob.run(GeneratorJob.java:241)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.GeneratorJob.main(GeneratorJob.java:249)
The generate, fetch and parse were working fine, but updatedb was giving this error before sometimes:
Exception in thread "main" java.lang.RuntimeException: job failed: name=update-table, jobid=job_local_0001
at org.apache.nutch.util.NutchJob.waitForCompletion(NutchJob.java:54)
at org.apache.nutch.crawl.DbUpdaterJob.run(DbUpdaterJob.java:98)
at org.apache.nutch.crawl.DbUpdaterJob.updateTable(DbUpdaterJob.java:105)
at org.apache.nutch.crawl.DbUpdaterJob.run(DbUpdaterJob.java:119)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.DbUpdaterJob.main(DbUpdaterJob.java:123)
Now, it is continuously giving generate job failed. What might be the issue? Can it be mysql issue?
The above errors are due to insufficient space on the partition on the server where i have installed . check the answer at Insufficient space for shared memory file when i try to run nutch generate command