Skip to content

Commit 4b49902

Browse files
committed
remove note about add-opens in troubleshooting docs
1 parent 0e1d39b commit 4b49902

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

docs/static/troubleshooting.asciidoc

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -44,58 +44,6 @@ Operation not permitted
4444
* Specify an alternate directory using the `-Djava.io.tmpdir` setting in the `jvm.options` file.
4545
4646
47-
[float]
48-
[[ts-startup]]
49-
== {ls} start up
50-
51-
[float]
52-
[[ts-illegal-reflective-error]]
53-
=== 'Illegal reflective access' errors
54-
55-
// https://github.com/elastic/logstash/issues/10496 and https://github.com/elastic/logstash/issues/10498
56-
57-
Running Logstash with Java 11 results in warnings similar to these:
58-
59-
[source,sh]
60-
-----
61-
WARNING: An illegal reflective access operation has occurred
62-
WARNING: Illegal reflective access by org.jruby.util.SecurityHelper (file:/Users/chrisuser/logstash-6.7.0/logstash-core/lib/jars/jruby-complete-9.2.6.0.jar) to field java.lang.reflect.Field.modifiers
63-
WARNING: Please consider reporting this to the maintainers of org.jruby.util.SecurityHelper
64-
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
65-
WARNING: All illegal access operations will be denied in a future release
66-
-----
67-
68-
These errors appear related to https://github.com/jruby/jruby/issues/4834[a known issue with JRuby].
69-
70-
*Work around*
71-
72-
Try adding these values to the `jvm.options` file.
73-
74-
[source,sh]
75-
-----
76-
--add-opens=java.base/java.lang=ALL-UNNAMED
77-
--add-opens=java.base/java.security=ALL-UNNAMED
78-
--add-opens=java.base/java.util=ALL-UNNAMED
79-
--add-opens=java.base/java.security.cert=ALL-UNNAMED
80-
--add-opens=java.base/java.util.zip=ALL-UNNAMED
81-
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
82-
--add-opens=java.base/java.util.regex=ALL-UNNAMED
83-
--add-opens=java.base/java.net=ALL-UNNAMED
84-
--add-opens=java.base/java.io=ALL-UNNAMED
85-
--add-opens=java.base/java.lang=ALL-UNNAMED
86-
--add-opens=java.base/javax.crypto=ALL-UNNAMED
87-
--add-opens=java.management/sun.management=ALL-UNNAMED
88-
-----
89-
90-
*Notes:*
91-
92-
* These settings allow Logstash to start without warnings in Java 11, but they
93-
prevent Logstash from starting on Java 8.
94-
* This workaround has been tested with simple pipelines. If you have experiences
95-
to share, please comment in the
96-
https://github.com/elastic/logstash/issues/10496[issue].
97-
98-
9947
[float]
10048
[[ts-ingest]]
10149
== Data ingestion

0 commit comments

Comments
 (0)