ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Native JNI library error.

Post new topic  Reply to topic Goto page 1, 2  Next
 Native JNI library error. « View previous topic :: View next topic » 
Author Message
klr
PostPosted: Fri Sep 16, 2011 4:58 am    Post subject: Native JNI library error. Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Sep 16, 2011 5:07 am    Post subject: Re: Native JNI library error. Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 16, 2011 5:14 am    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Fri Sep 16, 2011 11:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3254
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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Sep 16, 2011 4:23 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20700
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
View user's profile Send private message Send e-mail
klr
PostPosted: Mon Sep 19, 2011 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 19, 2011 5:06 am    Post subject: Reply with quote

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
View user's profile Send private message
klr
PostPosted: Mon Sep 19, 2011 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 19, 2011 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Mon Sep 19, 2011 8:36 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3254
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
View user's profile Send private message Visit poster's website
klr
PostPosted: Mon Sep 19, 2011 10:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
klr
PostPosted: Mon Sep 19, 2011 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Sep 19, 2011 11:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20700
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
View user's profile Send private message Send e-mail
klr
PostPosted: Tue Sep 20, 2011 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
klr
PostPosted: Tue Sep 20, 2011 2:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » Native JNI library error.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.