-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing valuefier for java.lang.Byte when reading messages from IBM MQ #21
Comments
Steps to create MQ server test environment (Linux example).
If you have Ubuntu Linux like me, you need to convert rpm packages to deb with Alien:
MQSeriesRuntime is required for other packages, so it needs to be installed first. Accept license:
Enter MQS commands in mqsc shell:
After these steps, MQ server is ready. You can start Logstash and connect to MQ manager QMTEST, queue TEST.LOG.
After reproducing this problem on my laptop, I mentioned that exception is slightly differs from the exception in work environment - problem with Short class instead of Byte: |
I have problem reading messages from IBM WebSphere MQ. It seems that some field(s) in MQMD header has type which is not handled properly. Some messages are read without exception.
When I turn off include_header setting in jms input section, all messages are handled without any errors.
When working with MQ manager on AIX:
java.lang.IllegalArgumentException: Missing Valuefier handling for full class name=java.lang.Byte, simple name=Byte
MQ manager and logstash on Linux:
java.lang.IllegalArgumentException: Missing Valuefier handling for full class name=java.lang.Short, simple name=Short
Logstash version: 5.3.0
Plugin version: logstash-input-jms-3.0.1-java
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Operating systems:
Client: Windows 7 Ent SP1, Linux RHEL (uname -r output: 2.6.32-642.4.2.el6.x86_64)
Server: AIX 7.1 (Power PC), Linux Mint Serena (x86 32-bit)
WebSphere MQ versions 7.5.0.6, 8.0.0.6
WebSphere MQ client version: 9.0.0.0 (Level: p900-L160512.4)
Update: I have just tried to run this configuration with MQ client 7.5.0.6 for Linux, it makes no difference.
How to reproduce.
You need a Windows or Linux machine with MQ java libraries. I have installed MQ client 9 on Windows.
I have attached two sample messages which can be loaded to MQ queue using RFHUTIL (IBM SupportPac IH03) (use "Load Q" button with default settings). RFHUTIL requires MQ client.
One of these messages is processed without error, another message causes exception.
test_messages.zip
Test messages for qload utility (SupportPac MO03):
qload_test_messages.zip
Logs:
logstash_jms.log.zip
Config input section:
jms.yml:
You may have to include other jars from MQ java/lib, but this configuration works on my computer.
I have tried to ask at the forum, but no one replied. https://discuss.elastic.co/t/logstash-input-jms-problem-reading-messages-from-ibm-websphere-mq-missing-valuefier/81993
The text was updated successfully, but these errors were encountered: