Author |
Message
|
klr |
Posted: Fri Sep 16, 2011 4:58 am Post subject: Native JNI library error. |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
Hi Experts,
I have installed WMQ v 7 , java v 6 and MQFM v 3.2.1.1 . I get the following error on executing a sample file.
C:\Capitalware\MQFM>mqfm.bat sample1.xml
----------------------------------------------------------------------
MQFM version 3.2.1 is now starting.
System Information:
JVM = Sun Microsystems Inc. v1.6.0_18
UserID = n414089
OS = Windows XP
Hostname = ********
HostAddress = ********
CanonicalHostname = ************
MQFM has processed sample1.xml
Send action now being performed.
User Supplied parameters:
Queue Manager Name = EWSSAPI1.BAW
Queue Name = TEST.QL
Remote QMgr Name =
Format = S
Priority = MQPRI_PRIORITY_AS_Q_DEF
Persistence = Yes
Input Path & Filename= C:\Documents and Settings\*******\Desktop\temp\outboundfile.txt
JobFile =
Delete File = No
Archive File = No
Archive Directory = C:\Capitalware\MQFM\archive\
Archive Filename =
Remote JobXmlFile =
Remote Directory = C:\Documents and Settings\******\Desktop\temp
Remote Filename = outboundfile.txt
MQException: MQJE001: Completion Code '2', Reason '2495'.
MQException: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI
library 'mqjbnd' was not found. [3=mqjbnd]
MQCC=2 : MQRC=2495
MQFM Action script is abnormally terminating.
MQFM is now ending.
Please let me know the reason for the error. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 16, 2011 5:07 am Post subject: Re: Native JNI library error. |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
klr wrote: |
Please let me know the reason for the error. |
The file mqjbnd is missing. While I'm no Java person, the RSS feed on the top left of this page offers this advice:
http://www-01.ibm.com/support/docview.wss?uid=swg21508687 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 16, 2011 5:14 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I'd also suspect you're using the wrong JVM, but I'm sure Roger will be along eventually to correct me on that. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Sep 16, 2011 11:06 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hello,
Quote: |
Queue Manager Name = EWSSAPI1.BAW |
Is that queue manager local or remote. You have set it up as a local queue manager. When you installed MQ Server on your PC, did you install the MQ Java components?
Quote: |
JVM = Sun Microsystems Inc. v1.6.0_18 |
Quote: |
I'd also suspect you're using the wrong JVM |
No. The JVM is fine.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Sep 16, 2011 4:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Sounds either like a dirty install and jars from V6 and V7 are mixed in the classpath, or the install is not correct, or the java.library.path is not set.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
klr |
Posted: Mon Sep 19, 2011 2:13 am Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
Yes we got MQ Client v 7 installed on a PC with Java Components . MQ Server with queue manager EWSSAPI1.BAW is available with version 6 . But later when I tried with another queue manager on another MQ server with version 7 it is showing the same error.I came to know that Ensuring that the java library path points to the location of the JNI library is the solution for the problem. Is this right? if yes where can I find the JNI Library Location? |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Sep 19, 2011 5:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
klr wrote: |
Yes we got MQ Client v 7 installed on a PC with Java Components . |
You have to do more than ensure you point to the JNI library (which is in the MQ client install path).
You have to configure the connection to use a CLIENT binding rather than a SERVER binding - that means not using just the qmgr name.
And apparently it is okay to use a SUN Jvm rather than an IBM JVM. |
|
Back to top |
|
 |
klr |
Posted: Mon Sep 19, 2011 5:37 am Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
Generally in which path in MQ client , JNI dll files can be found?
"You have to configure the connection to use a CLIENT binding rather than a SERVER binding - "
Can you please share urls if you have any regarding this? I saw in net but they are creating perplexion in me. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Sep 19, 2011 6:39 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
klr wrote: |
Generally in which path in MQ client , JNI dll files can be found?
"You have to configure the connection to use a CLIENT binding rather than a SERVER binding - "
Can you please share urls if you have any regarding this? I saw in net but they are creating perplexion in me. |
The "urls" in question are for the MQ Information center, and whatever documentation is provided for MQ File Mover. I'm sure Roger will be along shortly to assist you further. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Sep 19, 2011 8:36 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
klr wrote: |
Generally in which path in MQ client , JNI dll files can be found?
"You have to configure the connection to use a CLIENT binding rather than a SERVER binding - "
Can you please share urls if you have any regarding this? I saw in net but they are creating perplexion in me. |
You can always try google. Here is the link to the WMQ CLient manual:
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzaf.doc%2Fcs10120_.htm
You never answered my question:
Quote: |
Is that queue manager local or remote. |
If you are a novice MQ user then configuring MQ File Mover (MQFM) is going to be difficult because when I wrote the manual, I wrote it for intermediate and advance users.
In MQ, "client mode" connection means that the user is going to specify at least 3 parameters (for MQFM it is at least 4 parameters). i.e. QMgr Name, hostname, port number and channel name - You should also specify the UserID.
Code: |
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE MQFM_MQ SYSTEM "MQFM_MQ.dtd">
<MQFM_MQ>
<QMgrName>MQWT1</QMgrName>
<ChannelName>SYSTEM.DEF.SVRCONN</ChannelName>
<Hostname>10.10.10.10</Hostname>
<Port>1414</Port>
<UserID>klr</UserID>
</MQFM_MQ> |
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
klr |
Posted: Mon Sep 19, 2011 10:04 pm Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
Sorry Roger I overlooked that question of yours . It is Remote queue manager only. It exists on a remote MQ server . We are having MQ client and MQFM installed in one PC which has to connect to that remote queue manager. |
|
Back to top |
|
 |
klr |
Posted: Mon Sep 19, 2011 11:23 pm Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
I have given the code with qmgrname , channel,host,port , username
in mq.xml file in the path C:\Capitalware\MQFM\mq .
And I executed sample1.xml which has the code
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE MQFM_Workflow SYSTEM "MQFM_Workflow.dtd">
<MQFM_Workflow>
<Actions>
<Send delete="N" format="S">
<File>C:\Documents and Settings\******\Desktop\temp\outboundfile.txt</File>
<MQ>
<QMgrName>******.BAW</QMgrName>
<QueueName>TEST.QL</QueueName>
</MQ>
</Send>
</Actions>
</MQFM_Workflow> |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 19, 2011 11:32 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
klr wrote: |
I have given the code with qmgrname , channel,host,port , username
in mq.xml file in the path C:\Capitalware\MQFM\mq .
And I executed sample1.xml which has the code
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE MQFM_Workflow SYSTEM "MQFM_Workflow.dtd">
<MQFM_Workflow>
<Actions>
<Send delete="N" format="S">
<File>C:\Documents and Settings\******\Desktop\temp\outboundfile.txt</File>
<MQ>
<QMgrName>******.BAW</QMgrName>
<QueueName>TEST.QL</QueueName>
</MQ>
</Send>
</Actions>
</MQFM_Workflow> |
So was there a question here or did you just post to say it worked?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
klr |
Posted: Tue Sep 20, 2011 12:46 am Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
It is still not working. I have posted that to get comments on it so that I can confirm whether the code and procedure is right or wrong. |
|
Back to top |
|
 |
klr |
Posted: Tue Sep 20, 2011 2:24 am Post subject: |
|
|
Apprentice
Joined: 01 Mar 2011 Posts: 31
|
I copied mqjbnd.dll file into the path C:\Program Files\IBM\WebSphere MQ\java\lib as this file was missing in this path.
I issued this command also.
C:\Capitalware\MQFM>set MQSERVER=SYSTEM.ADMIN.SVRCONN/TCP/SPLHRD150(9232)
where SYSTEM.ADMIN.SVRCONN is channel name
TCP is transport type
SPLHRD150(9232) is Connectionname.
Same error MQException: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI
library 'mqjbnd' was not found. [3=mqjbnd] is thrown. |
|
Back to top |
|
 |
|