theangryangel / logstash-output-jdbc

JDBC output for Logstash
MIT License
256 stars 101 forks source link

IllegalAccessError CompoundCacheKey #140

Closed nasrinmansour closed 5 years ago

nasrinmansour commented 6 years ago

Hi, could you help me , what is this error ? how can i solved it on logstash 5.6 [ERROR][logstash.inputs.jdbc ] Unable to connect to database. Tried 1 times {:error_message=>"Java::JavaLang::IllegalAccessError: com/mysql/jdbc/ConnectionImpl$CompoundCacheKey"}

theangryangel commented 6 years ago
nasrinmansour commented 6 years ago

Evry things was worked well but when I updated logstash to5.6 this crash happend. i removed this version and installed previous version 2.4 now its ok

theangryangel commented 6 years ago

If I remember correctly logstash 5 requires a different version of java. So you should've updated java and changed your MySQL jar.. If you didn't do that it may explain your issue.

I know MySQL works because it's included as part of the test suite.