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 » Java MQMessage to WBIMB

Post new topic  Reply to topic
 Java MQMessage to WBIMB « View previous topic :: View next topic » 
Author Message
team
PostPosted: Thu Aug 02, 2007 6:27 am    Post subject: Java MQMessage to WBIMB Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 108

I put a message successfully using the following code (Java MQ API) onto a queue.

Now when i read this message in WBIMB, i am thrown with the error as below:

How could i modify the RHF2 header to solve this problme.

Please coulld you advise.
Following details:
Java Code that inserts the RFH2:

strUsr : Data in the <usr> folder which can vary....

int usrFolderLength = strUsrFolder.length();

int totalRFH2Length = MQC.MQRFH_STRUC_LENGTH_FIXED_2 + usrFolderLength + MQCHAR4;
buildMessage.characterSet = UTF8;
buildMessage.encoding = MQC.MQENC_NATIVE;
//Msg Format, Struc Id, Version
buildMessage.format = MQC.MQFMT_RF_HEADER_2; // Msg Format
buildMessage.writeString(MQC.MQRFH_STRUC_ID);
buildMessage.writeInt4(MQC.MQRFH_VERSION_2);
buildMessage.writeInt4(totalRFH2Length);
buildMessage.writeInt4(MQC.MQENC_NATIVE);
buildMessage.writeInt4(UTF8);
buildMessage.writeString(MQC.MQFMT_NONE);
buildMessage.writeInt4(MQC.MQRFH_NO_FLAGS);
buildMessage.writeInt4(UTF8);
buildMessage.writeInt(usrFolderLength);
buildMessage.writeString(strUsrFolder);

Error in WBIMB:

This message gives the name of the field in the parser that was being parsed at the time the error occurred.
You should check for other messages issued with this one for the full context of the error.
2007-08-02 15:15:55.056664 51 ParserException BIP6048E: Error occurred at offset '12' in the RFH2 name-value data area.
An error occurred in the name-value data area. This message gives the location of the error in the option buffer. The offset is from the beginning of the name-value length field which precedes the name-value data field containing the error.
Correct the application (or compute expression) that generated the message.
2007-08-02 15:15:55.056672 51 ParserException BIP6043E: Invalid folder size of '185' detected within a WebSphere MQ RFH2 header.
WebSphere MQ RFH2 headers require that the folder size must be a multiple of four bytes and must not be negative. The message being processed did not conform to this rule.
Correct the application (or compute expression) that generated the message.




Any help would be great.....would there be sample code to help.
Thanks,
Back to top
View user's profile Send private message Yahoo Messenger
EddieA
PostPosted: Thu Aug 02, 2007 1:21 pm    Post subject: Re: Java MQMessage to WBIMB Reply with quote

Jedi

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

team wrote:
buildMessage.writeInt(usrFolderLength);

Shouldn't that be a writeInt4(usrFolderLength).

I'm assuming that UTF8 is also an integer, containing the value 1208.

And can MQCHAR4 be used as an integer.

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
team
PostPosted: Thu Aug 02, 2007 2:09 pm    Post subject: Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 108

Yes your right, UTF is 1208 and MCHAR is 4....set in the program...
I will try that writeInt4 out and check
Thanks..
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Thu Aug 02, 2007 8:31 pm    Post subject: Reply with quote

Grand High Poobah

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

Make life easier for yourself and look into using JMS. All the particularities of the RFH header are handled behind the scene in transparent way for the user.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Thu Aug 02, 2007 8:39 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

this shall help

http://middleware.its.state.nc.us/middleware/Documentation/en_US/htm/csqzaw09/csqzaw0937.htm
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
N
PostPosted: Thu Aug 02, 2007 11:49 pm    Post subject: bipbroker.exe terminated Reply with quote

Acolyte

Joined: 21 Jul 2007
Posts: 64

Hi,

I create a message broker called WBRK_BROKER. When i issue
mqsistart WBRK_BROKER, i am getting error as below

( WBRK_BROKER ) The WebSphere Business Integration Message Brokers service detected that executable bipbroker.exe terminated, exit code -1073741511.

An executable terminated unexpectedly.


Please advise.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 03, 2007 12:05 am    Post subject: Reply with quote

Grand High Poobah

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

Does this have anything to do with this thread?

What platform? What version of broker? What have you tried?
_________________
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 Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Java MQMessage to WBIMB
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.