Expected JAR name LoadError
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- backend, build-system
Research direction
Start by reproducing the documented Gradle, gem, vendor, and RSpec commands in the issue, then inspect the gemspec's jar-dependencies output. Compare the installed artifact with Logstash's registry check at logstash-core/lib/logstash/plugins/registry.rb#L155. Done means the plugin installs normally and Logstash accepts the generated JAR without --no-verify.
Written by the indexing model from the issue text.
Description
Hi, I saw other similar issues. Unfortunately, none actually address how to solve the problem and I guess this means that their projects started working magically.
I made this issue here because it seems to be the most active of the example repositories.
I followed the logstash documentation on java output plugins to make the following plugin:
https://github.com/hashgraph/logstash-output-hedera
I did a fresh clone, and ran the following (after bumping the version):
./gradlew clean
./gradlew build
./gradlew gem
bundle install
bundle exec rake vendor
bundle exec rspec
bundle exec rake publish_gem
I installed logstash with homebrew (read: linuxbrew on Ubuntu 18.04) @ version 7.6.1 and ran logstash-plugin install logstash-output-hedera, which reports a successful install of the plugin
The gemspec reports the plugin jar file should be named logstash-output-hedera-0.0.5.jar, which is what I find in the jar-dependencies folder for the installed logstash after the successful install.
That should be what is checked for by logstash: https://github.com/elastic/logstash/blob/master/logstash-core/lib/logstash/plugins/registry.rb#L155 (I think?)
Yet,
[main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) Java plugin 'logstash-output-hedera' does not contain a single jar file with the plugin's name and version
Works like a charm if I install locally:
logstash-plugin install --no-verify --local logstash-output-hedera-0.0.5.gem
Bruh, help
- Dominant language
- Java
- Stars
- 19
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from logstash-plugins/logstash-filter-java_filter_example
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
logstash-plugins/logstash-filter-java_filter_example#27 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Sample code and instructions for Java plugins will omit common configuration (eg. 'id', 'tags') Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
logstash-plugins/logstash-filter-java_filter_example#15 · 1 comment ·
All issues in logstash-plugins/logstash-filter-java_filter_example
Similar issues
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful Openarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100