Closed ByteCommander closed 9 years ago
Hello @ByteCommander,
From seeing the stacktrace the cause of this seems to be something in the SSL / HTTPS of the login page. Which site (Stackoverflow, Stackexchange or Meta.Stackexchange) are you logging in to?
Hello @Vogel612 ,
thank you for responding that fast.
My bot.properties looks like this:
LOGIN-EMAIL=mymailaddress@example.de
PASSWORD=mypassword
TRIGGER=!!
ROOMS=1
According to the source code in com.gmail.inverseconduit.Main.java at line 45
if ( !seInterface.login(SESite.STACK_OVERFLOW, config)) {
it logs in to stackoverflow.com
A little investigating on the relevant site reveals:
TLS-Version: 1.2
Used Encryption Algorithm: AES_128_GCM
Used Key-Exchange protocol: ECDHE_RSA
I cannot reproduce this issue locally, though. May I ask what java-version you are using?
@Vogel612 Here you go I use OpenJDK8 on Ubuntu 15.04 32bit, kernel 3.19.0-16-generic
$ java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK Server VM (build 25.45-b02, mixed mode)
@ByteCommander do you have jce.jar and jsse.jar in your JRE/JDK install?
@fge Yes, they are listed in eclipse as JRE System Libraries and the files exist on my disk.
There is a completed Ticked to implement the Cipherset which is used here at the OpenJDK Bugtracker, meaning this should be working just fine in OpenJDK 8 (as it does with an Oracle JDK)
After testing and a session with @ByteCommander we found out that the root cause was not javabot code. The error could not be reproduced on my local system.
Especially interesting here is following error (also available in the java room transcript):
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.3: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.3 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [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/PluginResolutionException
This means the error occurs whenever an SSL connection is created. The problem thus doesn't lie within javabot code, but in the environment
Following error message: