当我尝试测试非常简单的消息流时,我收到此错误:
MQJE001:完成代码' 2',原因' 2495'。
我已经看到了与此问题相关的其他问题,但没有一个解决方案帮助我解决了这个问题......
这句话:
引起:java.lang.UnsatisfiedLinkError:mqjbnd(在java.library.path中找不到)
建议缺少libmqjbnd.so或LD_LIBRARY_PATH中没有路径,但我已经检查了这个link并按照说明进行操作......
我的LD_LIBRARY_PATH:
/opt/IIB/iib-10.0.0.6/common/jdk/jre/lib/amd64:/opt/IIB/iib-10.0.0.6/common/jdk/jre/lib/amd64/classic:/opt/IIB/iib-10.0.0.6/ie02/lib:/var/mqsi/extensions/10.0.0/server/lib:/var/mqsi/extensions/10.0.0/lib:/opt/IIB/iib-10.0.0.6/server/xml4c/lib:/opt/IIB/iib-10.0.0.6/server/lib:/opt/IIB/iib-10.0.0.6/server/bin:/opt/IIB/iib-10.0.0.6/server/ODBC/drivers/lib:/opt/IIB/iib-10.0.0.6/server/xlxpc/lib:/opt/IIB/iib-10.0.0.6/server/dfdlc/lib:/opt/mqm/java/lib64/libmqjbnd.so
ldd on libmqjbnd.so:
root@Lenovo-PB01BPG9:/opt/mqm/java/lib64# ldd libmqjbnd.so
linux-vdso.so.1 => (0x00007ffd05757000)
libmqe_r.so => /opt/mqm/lib64/libmqe_r.so (0x00007fbfdd615000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbfdd3de000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbfdd1da000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbfdce14000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbfdcb0e000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fbfdc906000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbfdc601000)
/lib64/ld-linux-x86-64.so.2 (0x00005603277f4000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbfdc3eb000)
我还尝试部署此应用并将消息放入队列,但MQInput节点不会收到任何消息,即使在失败输出(转换)和MQExplorer在队列中显示1条消息。 / p>
我使用的是本地集成节点和本地队列管理器。
我缺少什么?
更多变数..
$ MQ_JAVA_LIB_PATH:
/opt/mqm/java/lib64
$ MQ_JAVA_DATA_PATH:
/var/mqm
$ MQ_JAVA_INSTALL_PATH:
/opt/mqm/java
$ CLASSPATH:
/opt/IIB/iib-10.0.0.6/server/messages:/opt/IIB/iib-10.0.0.6/common/classes:/opt/IIB/iib-10.0.0.6/server/classes:/opt/IIB/iib-10.0.0.6/common/jackson/lib/jackson-dataformat-yaml-2.6.3.jar:/opt/IIB/iib-10.0.0.6/common/jackson/lib/jackson-core-2.6.3.jar:/opt/IIB/iib-10.0.0.6/common/jackson/lib/jackson-databind-2.6.3.jar:/opt/IIB/iib-10.0.0.6/common/jackson/lib/jackson-annotations-2.6.3.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/websocket-common.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/websocket-client.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/websocket-api.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/jetty-http.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/jetty-client.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/jetty-util.jar:/opt/IIB/iib-10.0.0.6/common/jetty/lib/jetty-io.jar:/opt/IIB/iib-10.0.0.6/common/classes/IntegrationAPI.jar:/opt/IIB/iib-10.0.0.6/server/classes/brokerutil.jar:/var/mqsi/common/wsrr:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/lib/com.ibm.mq.allclient.jar:/opt/mqm/samp/wmqjava/samples:/opt/mqm/samp/jms/samples
答案 0 :(得分:0)
我的LD_LIBRARY_PATH:
中:/ opt / MQM / JAVA / lib64下/ libmqjbnd.so
你只需要路径而不是路径&文件名。
其次,在程序开头转出'java.library.path'JVM环境变量:
System.out.println("java.library.path="+java.library.path);