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 » WebSphere Message Broker (ACE) Support » Formatting Problem

Post new topic  Reply to topic
 Formatting Problem « View previous topic :: View next topic » 
Author Message
jasonlove
PostPosted: Thu Jan 16, 2003 8:31 am    Post subject: Formatting Problem Reply with quote

Newbie

Joined: 16 Jan 2003
Posts: 3

I desparately need your help! A consultant developed our WMQI message flows and now that he's long gone it's somehow fallen on my shoulders to fix a problem that has arisen and they need the solution yesterday. Unfortunately, I have little experience (that's actually being liberal) with it so I'm hoping you all may be able to help me...

WMQI v2.1 running on Win2K SP2

Here's the description: We're getting data in a MQInput node with a Message Domain of BLOB (not message set, type, or format defined). The message is sent immediately to a database node to be logged in a SQLServer 2K database (on Win2K SP2) with the following ESQL
(Transaction Mode=Commit):

insert into Database.XSP_MSG_AUDIT (
AUDIT_MSG_TYPE,
MESSAGE_ID,
CORRELATION_ID,
DW_TIMESTAMP,
DW_MESSAGE
)
values (
'XSP_SOURCE',
Root.MQMD.MsgId,
Root.MQMD.MsgId,
current_timestamp,
Root."BLOB"."BLOB"
);

return TRUE;

Here's the problem: Until a few weeks ago the data was being inserted with no problems. When we look at rows from when it was working this is what we get (relevant to above insert):

AUDIT_MSG_TYPE: XSP_SOURCE
MESSAGE_ID: AMQ QM_stcinohhqv¸¾=R0
CORRELATION_ID: AMQ QM_stcinohhqv¸¾=R0
DW_TIMESTAMP: 10/31/2002 8:51:43 AM
DW_MESSAGE: <?xml version="1.0" standalone="yes"?><XSP_AMTrust> ...Edited for length, but a valid XML message... </XSP_AMTrust>

However, now when the message is inserted, it errors out with several SQL errors relating to the insert statement. I put a trace on the SQL server and this is the insert that WMQI is attempting to perform:

INSERT INTO XSP_MSG_AUDIT(AUDIT_MSG_TYPE, MESSAGE_ID, CORRELATION_ID, DW_TIMESTAMP, DW_MESSAGE)
VALUES(''XSP_SOURCE'', X''414d5120514d5f737463696e6f6868712de01a3e22300000'',
X''414d5120514d5f737463696e6f6868712de01a3e22300000'', TIMESTAMP''2003-01-09 16:45:03.274'',
X''3c3f786d6c207 ... edited for space again ... 4d54727573743e'')

Now, I understand that we are seeing the hex representation of the various data, but what could have caused this to suddenly change (and where did the "TIMESTAMP" come from)? I'm told that no work was done on anything before this started happening. While I'm not convinced about that, I'm looking for suggestions on what I should be looking for to make the insert work as it once did. Is it even possible for the above situation to have inserted the data as it was (maybe that's changed?) Do you need more information from me? Any help at all would be appreciated!

Thanks!
--Jason
Back to top
View user's profile Send private message
kirani
PostPosted: Sat Jan 18, 2003 12:33 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Jason,

I'd be interested in seeing the actual SQL errors messages that you get during insert. Could you please post your ExceptionList here?

What is the type of AUDIT_MSG_TYPE, MESSAGE_ID, CORRELATION_ID, DW_TIMESTAMP, DW_MESSAGE columns in your database table?

CURRENT_TIMESTAMP in your insert statement is getting evaluated to TIMESTAMP ''2003-01-09 16:45:03.274'' at runtime.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
jasonlove
PostPosted: Tue Jan 21, 2003 9:46 am    Post subject: Reply with quote

Newbie

Joined: 16 Jan 2003
Posts: 3

Kiran,

The SQL error relates to invalid syntax around the representation of the leading X' and TIMESTAMP, but that's not truly my concern at this time. If it comes right down to it, I can use substrings and get rid of the portion that is causing the SQL error.

Perhaps I should rephrase my question: How can I get the "text" values, such as AMQ QM_stcinohhqv¸¾=R0 for MsgID and the actual XML text, from the above ESQL since, in theory, this is what it was doing before? Should I be looking for some setting or possibly a message set that may no longer be present, etc?

Thanks again!
--Jason
Back to top
View user's profile Send private message
Ash
PostPosted: Mon Feb 10, 2003 6:07 am    Post subject: Reply with quote

Novice

Joined: 07 Jan 2002
Posts: 17

Jason,

We had exactly the same problem when we migrated from MQSI v 2.0.1 to MQSI v2.0.2.

After a lot of head scratching on our parts, we finally found out that this problem was caused by a bug in the Merant ODBC Drivers that come with the product.

See IBM 's response to the PMR that I had raised about this:

" This is a known problem and is covered by APAR IY21834.

The problem lies with the Merant driver where there has been a change in
behaviour
between driver 3.6 (as shipped with MQSIv2.0.1) and driver 3.7 (as shipped
with MQSIv2.0.2).

A summary of the problem is that character conversion is not taking place
where the
hex representation of data (of length <= 999) is inserted into an Oracle
CLOB."


I believe IBM have got a fix for this.

Regards,
Ash
Back to top
View user's profile Send private message
titus
PostPosted: Wed Feb 12, 2003 8:45 am    Post subject: Reply with quote

Novice

Joined: 14 Oct 2002
Posts: 23

Try to see your Channel settings got changed.

titus
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 » WebSphere Message Broker (ACE) Support » Formatting Problem
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.