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 » General IBM MQ Support » what is feedcode 1245206 ?

Post new topic  Reply to topic
 what is feedcode 1245206 ? « View previous topic :: View next topic » 
Author Message
Narendra Nallapa
PostPosted: Wed Oct 06, 2004 11:39 am    Post subject: what is feedcode 1245206 ? Reply with quote

Newbie

Joined: 05 Oct 2004
Posts: 5

I am using the reference message exit to transfer files. When I try to move files from shared network drive, the exit puts the message on the DLQ and returns Exception report with the feedback code 1245206.

Can some one tell me what is this feedback code means....

thanks in advance...
Narendra
Back to top
View user's profile Send private message
clindsey
PostPosted: Wed Oct 06, 2004 11:52 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

It takes a little bit of work to figure these errors out.
Look at the source code for the exit and you will see a number of defines for the feedback codes:
Code:

 #define XRMA_FB_INVALIDEXITID       0x00110000
 #define XRMA_FB_INVALIDEXITREASON   0x00120000
 #define XRMA_FB_FOPENFILEFAILED     0x00130000
 #define XRMA_FB_FSEEKFILEFAILED     0x00140000
 #define XRMA_FB_FTELLFILEFAILED     0x00150000
 #define XRMA_FB_FREADFILEFAILED     0x00160000
 #define XRMA_FB_FWRITEFILEFAILED    0x00170000
 #define XRMA_FB_MQCONNFAILED        0x00180000
 #define XRMA_FB_MQOPENFAILED        0x00190000
 #define XRMA_FB_MQPUT1FAILED        0x001A0000
 #define XRMA_FB_MQGETFAILED         0x001B0000
 #define XRMA_FB_MQCLOSEFAILED       0x001C0000
 #define XRMA_FB_INVALIDFILEOFFSET   0x001D0000
 #define XRMA_FB_INVALIDCHANNELTYPE  0x001E0000
 #define XRMA_FB_INVALIDSTRUCLENGTH  0x001F0000
 #define XRMA_FB_MALLOCFAILED        0x00200000
 #define XRMA_FB_CONVERTFAILED       0x00210000
 #define XRMA_FB_INVALIDDATALENGTH   0x00220000


You have to take your error and convert it to hex. This makes your error 0x130016. Map the high order bytes to the defines above and you see that your msg is XRMA_FB_FOPENFILEFAILED.
The low order bytes are like subcodes that are generall returned from errno.h or from some system call. In your case, you are getting rc=0x16 from an fopen call.

Hope this helps,
Charlie


Last edited by clindsey on Wed Oct 06, 2004 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Oct 06, 2004 11:57 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Charlie, you just beat me to the punch on that.

From errno.h: EINVAL 22

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Narendra Nallapa
PostPosted: Wed Oct 06, 2004 12:19 pm    Post subject: Reply with quote

Newbie

Joined: 05 Oct 2004
Posts: 5

Thanks charlie...
This is great work..

Could please throw some light on this error..?

I have configured the reference message exit on the chls..
I can move files present on the local drives like c:\...

When ever I try to move the files from the mapped network drive..I get the file open error...

I am thing it could be some authentication issue...I have a no clue , how to reslove this...

Your help will greatly appreciated...

Thanks
Narendra
Back to top
View user's profile Send private message
clindsey
PostPosted: Wed Oct 06, 2004 1:22 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Eddie, this is a first for me then. Usually by the time I have finished one of my long winded replies, Jeff jumps in and beats me.

Narendra,

I think EINVAL from fopen usually means invalid mode. In this case for the source directory, the mode is 'rb'. You might try some google searches on fopen, einval, and windows networked drives to see if you can get some clues.

Charlie
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 06, 2004 1:57 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

clindsey wrote:
Eddie, this is a first for me then. Usually by the time I have finished one of my long winded replies, Jeff jumps in and beats me.


I haven't played with Reference messages, or the sample Reference Exit.


_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Narendra Nallapa
PostPosted: Wed Oct 06, 2004 2:38 pm    Post subject: Reply with quote

Newbie

Joined: 05 Oct 2004
Posts: 5

Guys,
Can Some one tell me how to specify the absolute bath for the exit,
if the file is on shared network drive...

I triend couple of ways ,but no luck..

mappeddrive:\temp\abc.txt

\\hostname\temp\abc.txt

thanks in advance
Narendra
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 06, 2004 3:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

try:

\\hostname\path_to_mapped_drive\temp\abc.txt

to find out do at dos prompt:

net use

and you should see something like

L: \\hostname\group\theirL

so for L:\temp you would have:

\\hostname\group\theirL\temp

Enjoy
Back to top
View user's profile Send private message Send e-mail
clindsey
PostPosted: Wed Oct 06, 2004 5:03 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

If you are manipulating the name within c/c++ code, be sure to double the number of slashes when on windows platform. e.g
strcpy(filename, "h:\\path\\subpath\\filename") since a single \ starts an esc character.

Charlie
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 06, 2004 5:17 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

So, okay.

The exit you are including is being executed by the MUSR_MQADMIN user. Unless you've changed this.

When you map a drive using the Windows user interface (the desktop), you are mapping that drive for the user that you are logged in as.

You are not mapping that drive for everyone. Just one user, and only when they are logged in.

Try either logging in as MUSR_MQADMIN, which will entail changing the password for this user (since it is automatically generated), and mapping the drive that way - and make sure to check "Restore at login" or whatever it is.

OR

create a batch file that uses the "net use" command to create the mapping for you, and use Scheduled Tasks to run this batch script when MUSR_MQADMIN logs in.

Or use UNC paths (\\fileserver\fileshare\folder\file\). AND make sure that MUSR_MQADMIN has write permissions to that location.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Narendra Nallapa
PostPosted: Thu Oct 07, 2004 5:45 am    Post subject: Reply with quote

Newbie

Joined: 05 Oct 2004
Posts: 5

Jeff,

Your logic sounds good..
Could you please tell, what is the impact, if I change the system generated password for MUSR_MQADMIN?

Thanks in advance.
Narendra
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » what is feedcode 1245206 ?
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.