Skip to content

Commit 61206b2

Browse files
authored
[Docs] Add entry to troubleshooting guide (#38)
* [Docs] Add entry to troubleshooting guide * [Docs] Incorporate code review comments * Changelog entry and version bump * [Docs] More code review suggestions implemented
1 parent ab95630 commit 61206b2

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.1.2
2+
- Docs: Added additional troubleshooting information [#38](https://github.com/logstash-plugins/logstash-input-jms/pull/38)
3+
14
## 3.1.1
25
- Added documentation for `factory_settings` configuration setting [#36](https://github.com/logstash-plugins/logstash-input-jms/pull/36)
36

docs/index.asciidoc

+31
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,37 @@ selector definitions must be double quoted in the Logstash configuration file, a
335335
single quoted, and numeric property values not quoted at all.
336336

337337

338+
===== Failed to create Event with MissingConverterException
339+
340+
Messages from certain JMS providers may contain headers or properties that Logstash cannot interpret, which can lead to
341+
error messages such as:
342+
343+
344+
[source,txt]
345+
-----
346+
[2019-11-25T08:04:28,769][ERROR][logstash.inputs.jms ] Failed to create event {:message=>Java::ComSolacesystemsJmsMessage::SolTextMessage: ...
347+
Attributes: {:jms_correlation_id=>"xxxx", :jms_delivery_mode_sym=>:non_persistent, :jms_destination=>"destination", :jms_expiration=>0, :jms_message_id=>"xxxxxx", :jms_priority=>0, :jms_redelivered=>false, :jms_reply_to=>#<Java::ComSolacesystemsJmsImpl::SolTopicImpl:0xdeadbeef>, :jms_timestamp=>1574669008862, :jms_type=>nil}
348+
Properties: nil, :exception=>org.logstash.MissingConverterException: Missing Converter handling for full class name=com.solacesystems.jms.impl.SolTopicImpl, simple name=SolTopicImpl, :backtrace=>["org.logstash.Valuefier.fallbackConvert(Valuefier.java:98)..."]}
349+
:exception=>org.logstash.MissingConverterException: Missing Converter handling for full class name=com.solacesystems.jms.impl.SolTopicImpl
350+
-----
351+
352+
To get around this, use the `skip_headers` or `skip_properties` configuration setting to avoid attempting to process
353+
the offending header or property in the message.
354+
355+
In the example shown above, this attribute is causing the
356+
`MissingConverterException`:
357+
358+
`jms_reply_to=>#<Java::ComSolacesystemsJmsImpl::SolTopicImpl:0xdeadbeef>`
359+
360+
361+
To avoid this error, the configuration should include the following line:
362+
363+
[source,ruby]
364+
-----
365+
skip_headers => ["jms_reply_to"]
366+
-----
367+
368+
338369
[id="plugins-{type}s-{plugin}-options"]
339370
==== Jms Input Configuration Options
340371

logstash-input-jms.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-input-jms'
4-
s.version = '3.1.1'
4+
s.version = '3.1.2'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Reads events from a Jms Broker"
77
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"

0 commit comments

Comments
 (0)