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

TypeError: failed to coerce jdk.internal.loader.ClassLoaders$AppClassLoader to java.net.URLClassLoader #34

Closed
jguay opened this issue Oct 8, 2019 · 1 comment

Comments

@jguay
Copy link

jguay commented Oct 8, 2019

This is just to report/track that the same issue and same workaround solution on logstash 7.4.0 with jdbc_streaming filter plugin as for jdbc_static reported in logstash-plugins/logstash-filter-jdbc_static#47

In this case issue occurred when using

jdbc_streaming {
jdbc_driver_library => "/usr/share/logstash/x-pack-sql-jdbc-7.4.0.jar"

The same workaround solution worked - remove jdbc_driver_library setting or pass empty string and put the jar file directly in /usr/share/logstash/logstash-core/lib/jars/x-pack-sql-jdbc-7.4.0.jar

robbavey added a commit to robbavey/logstash-filter-jdbc_streaming that referenced this issue Oct 28, 2019
Making the same fix to driver loading that was applied to the JDBC
input in logstash-plugins/logstash-input-jdbc#356

This commit also reworks the test to force driver loading in the
integration tests by removing the postgres gem as a dependency and
doing all the database setup work in an external sql script)

This fixes logstash-plugins#34 (the fix previously applied in logstash-plugins#31 did not work correctly)
@Memento1990
Copy link

👍 It's very usefull for me. Thank you very much! 😄

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

Successfully merging a pull request may close this issue.

2 participants