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 » Error in downloading the messages

Post new topic  Reply to topic Goto page 1, 2  Next
 Error in downloading the messages « View previous topic :: View next topic » 
Author Message
yrspatel
PostPosted: Tue Jan 27, 2009 4:40 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Hi, I had written .net program to download the messages from IBM websphere. I creating the object for the queue manager name. It is giving me the below error
"The Format of the file amqmdxcs is invalid. please let me know how to solve
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 4:44 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
please let me know how to solve


You could start by giving us some more information on versions and platforms! Perhaps even the full error message?

I'd guess that either the installation has an issue, or you're using a version of client/.NET libs that doesn't match/support the queue manager version.

But from the detail of your post it could as easily be pixies in the wires.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yrspatel
PostPosted: Tue Jan 27, 2009 4:48 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Hi,

initially when i started writing the code i had written in web sphere 6.0 and now when i trying to connect ot queue manager which is in 7.0 version.

i had wirtten a .net 1.1 concole application to download the message
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 4:53 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
i had written in web sphere 6.0 and now when i trying to connect ot queue manager which is in 7.0 version.


Aha!

Are you using the XMS libs? I notice from the IBM site that's not (yet) supported for v7

I'd also try pulling down the v7 client and see if you have more luck with that.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yrspatel
PostPosted: Tue Jan 27, 2009 4:56 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Dim objMQSession As New IBM.WMQAX.MQSession ' MQ Session
Dim objQMgr As MQQueueManager ' Queue manager
Dim objQueue As MQQueue ' Queue Name
Dim objGetMsg As MQMessage '* message object for get
Dim objGetOptions As MQGetMessageOptions '* put message options
Dim strGetMsg As String '* get message data string
Dim i, j, isContinue

' Connecting to Queue Manager
Try
sbWriteinText("Access Queue Manager")

Dim objProps As New Hashtable
objProps.Add(MQC.TRANSPORT_PROPERTY, strProperty)
objProps.Add(MQC.HOST_NAME_PROPERTY, strHostQueue)
objProps.Add(MQC.CHANNEL_PROPERTY, strChannelName)
objProps.Add(MQC.USER_ID_PROPERTY, strQueueUserId)
objProps.Add(MQC.MQOO_ALTERNATE_USER_AUTHORITY, strQueueUserId)

Console.WriteLine(strQueueManager)
Console.ReadLine()

objQMgr = New MQQueueManager(strQueueManager, objProps)
Console.WriteLine("Queue manager access")

The above code is used to connect the web sphere 7.0. I am connecting to Server queue directly not to the client
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 4:59 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
objProps.Add(MQC.CHANNEL_PROPERTY, strChannelName)

...

The above code is used to connect the web sphere 7.0. I am connecting to Server queue directly not to the client


If you're connecting directly (and your code snippet doesn't contain the value of strProperty) why is there a channel definition in the hashtable?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yrspatel
PostPosted: Tue Jan 27, 2009 5:10 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Hi ,
even if i remove the channel refrence it is not working objQMgr = New MQQueueManager(strQueueManager) as i am connecting to the server.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 5:12 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
Hi ,
even if i remove the channel refrence it is not working objQMgr = New MQQueueManager(strQueueManager) as i am connecting to the server.


Well if the transport you're using is client (as you've still not posted) then it won't!

Randomly removing lines of code is not a troubleshooting strategy likely to succeed.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 5:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

It's probably also worth underlining that when I say client, I don't mean client in the database sense; I know you're connecting directly to the queue manager. What I'm saying is that I believe you're establishing a client connection to the queue manager, and this is what's failing for the reasons I theorise above.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yrspatel
PostPosted: Tue Jan 27, 2009 5:35 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Hi,
Yes I am connecting to the queue manager. Please let me know what exactly i need to change in the code so that i can get the message from the queue.

even why it is showing "amqmdxcs" format is invalid
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 5:42 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
Yes I am connecting to the queue manager.


Yes I guessed that. You still have not answered the question of what kind of connection you're making.

yrspatel wrote:
Please let me know what exactly i need to change in the code so that i can get the message from the queue.


Potentially nothing. That's why I keep banging on about connection types and versions.

yrspatel wrote:
even why it is showing "amqmdxcs" format is invalid


Did you not see my earlier post above about versions?

This is going to be much more helpful if you a) read what I'm posting & b) provide the information requested.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yrspatel
PostPosted: Tue Jan 27, 2009 5:57 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Hi,

how should i come to know which connectivity i am using (XMS). Please help me know. This code was written by one of my team mates. he used some of the ibm.wmq for connecting to the web sphere. Please let me know how should i answer to your query.
application: .net 1.1 (console)
web sphere: 7.0 windows

Even on my machine ibm web pshere is not installed. i copy the code and run on the server.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 6:03 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
how should i come to know which connectivity i am using (XMS).


XMS is not a connectivity method; I also said several posts ago that it's not supported for v7.

yrspatel wrote:
Please help me know.


How many times must I point out you've not posted the transport property?

yrspatel wrote:
he used some of the ibm.wmq for connecting to the web sphere.


I consider it unlikely he'd have used anything else. He probably realised plastic tube was a bad idea.

yrspatel wrote:
Even on my machine ibm web pshere is not installed. i copy the code and run on the server.


And this has nothing to do with connection type. Nothing. A basic knowledge of WMQ programming would tell you that.

Read the .NET manual, the Application Programming Guide, the sample code and my earlier posts.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
yrspatel
PostPosted: Tue Jan 27, 2009 6:07 am    Post subject: Error in downloading the messages Reply with quote

Novice

Joined: 10 Jul 2008
Posts: 22

Transport property i had used is
MQC.TRANSPORT_MQSERIES_MANAGED
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 27, 2009 6:11 am    Post subject: Re: Error in downloading the messages Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

yrspatel wrote:
Transport property i had used is
MQC.TRANSPORT_MQSERIES_MANAGED


At last! It's like getting detailed user requirements out of an auditor!

Well, no, not that tricky.

So you are using a client connection as I suspected all along. Use a v7 client as I suggested what seems like years ago. It's backward compatable with v6. And cross your fingers the XMS holds on v7.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » General IBM MQ Support » Error in downloading the messages
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.