Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Expected JAR name LoadError

Ouverte
#16 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
java, ruby

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

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

Langage dominant
Java
Étoiles
19
Forks
39
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de logstash-plugins/logstash-filter-java_filter_example

Toutes les issues de logstash-plugins/logstash-filter-java_filter_example

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.