Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init> #35

Open
sctb512 opened this issue Oct 25, 2021 · 0 comments

Comments

@sctb512
Copy link

sctb512 commented Oct 25, 2021

When I run the mvn test -Pbench command, I get the following error. How can I fix this problem?

T E S T S

Running eu.socialsensor.main.GraphDatabaseBenchmarkTest
16:18:07.619 [main] INFO GraphDatabaseBenchmark - Massive Insertion Benchmark Selected
16:18:07.621 [main] INFO PermutingBenchmarkBase - Executing Massive Insertion Benchmark . . . .
16:18:09.294 [main] INFO InsertionBase - Loading data in massive mode in TITAN_BERKELEYDB database . . . .
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.836 sec <<< FAILURE! - in eu.socialsensor.main.GraphDatabaseBenchmarkTest
testGraphDatabaseBenchmark(eu.socialsensor.main.GraphDatabaseBenchmarkTest) Time elapsed: 4.835 sec <<< ERROR!
java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory.(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.(SdkTLSSocketFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:93)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:66)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:59)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.(AmazonHttpClient.java:345)
at com.amazonaws.http.AmazonHttpClient.(AmazonHttpClient.java:329)
at com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:239)
at com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:191)
at com.amazonaws.AmazonWebServiceClient.(AmazonWebServiceClient.java:184)
at com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient.(AmazonDynamoDBClient.java:342)
at com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient.(AmazonDynamoDBClient.java:317)
at com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient.(AmazonDynamoDBClient.java:296)
at eu.socialsensor.graphdatabases.TitanGraphDatabase.open(TitanGraphDatabase.java:227)
at eu.socialsensor.graphdatabases.TitanGraphDatabase.createGraphForMassiveLoad(TitanGraphDatabase.java:252)
at eu.socialsensor.benchmarks.MassiveInsertionBenchmark.benchmarkOne(MassiveInsertionBenchmark.java:41)
at eu.socialsensor.benchmarks.PermutingBenchmarkBase.startBenchmarkInternalOnePermutation(PermutingBenchmarkBase.java:68)
at eu.socialsensor.benchmarks.PermutingBenchmarkBase.startBenchmarkInternal(PermutingBenchmarkBase.java:57)
at eu.socialsensor.benchmarks.BenchmarkBase.startBenchmark(BenchmarkBase.java:35)
at eu.socialsensor.main.GraphDatabaseBenchmark.runBenchmark(GraphDatabaseBenchmark.java:136)
at eu.socialsensor.main.GraphDatabaseBenchmark.run(GraphDatabaseBenchmark.java:101)
at eu.socialsensor.main.GraphDatabaseBenchmarkTest.testGraphDatabaseBenchmark(GraphDatabaseBenchmarkTest.java:14)

Results :

Tests in error:
GraphDatabaseBenchmarkTest.testGraphDatabaseBenchmark:14 ? NoSuchMethod org.ap...

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.879 s
[INFO] Finished at: 2021-10-25T16:18:11+08:00
[INFO] Final Memory: 108M/1717M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default) on project graphdb-benchmarks: There are test failures.
[ERROR]
[ERROR] Please refer to /root/graphdb-benchmarks/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[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] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant