Expected JAR name LoadError
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
- Domaine
- backend, build-system
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
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de logstash-plugins/logstash-filter-java_filter_example
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 55/100
logstash-plugins/logstash-filter-java_filter_example#27 · 1 réaction ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Sample code and instructions for Java plugins will omit common configuration (eg. 'id', 'tags')Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 45/100
-
How to use field valuesOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
logstash-plugins/logstash-filter-java_filter_example#15 · 1 commentaire ·
Toutes les issues de logstash-plugins/logstash-filter-java_filter_example
Issues similaires
-
RRateLimiter acquire methods accept negative permits and raise available permits above the rate.Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 4 jours
-
README 中的代码语言数量与当前目录不一致Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
krahets/hello-algo#1993 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
NationalSecurityAgency/ghidra#9884 ·
Les mainteneurs répondent en général sous 2 jours
-
Status: Pending Review Type: Feature Request
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
OpenRefine/OpenRefine#8019 ·
Les mainteneurs répondent en général sous 1 jour
-
[TEMP] pin maven version to 3.9.xPeut-être pris @petrenyi-mark l’a pris aujourd’hui. Ouverte
Difficulté 2/5 Moins d'une heure Accessibilité débutants 62/100