Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Expected JAR name LoadError

Đang mở
#16 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, ruby
Lĩnh vực
backend, build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
19
Fork
39
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của logstash-plugins/logstash-filter-java_filter_example

Tất cả issue của logstash-plugins/logstash-filter-java_filter_example

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.