Author |
Message
|
team |
Posted: Thu Aug 02, 2007 6:27 am Post subject: Java MQMessage to WBIMB |
|
|
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 |
|
 |
EddieA |
Posted: Thu Aug 02, 2007 1:21 pm Post subject: Re: Java MQMessage to WBIMB |
|
|
 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 |
|
 |
team |
Posted: Thu Aug 02, 2007 2:09 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Aug 02, 2007 8:31 pm Post subject: |
|
|
 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 |
|
 |
AkankshA |
Posted: Thu Aug 02, 2007 8:39 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
|
Back to top |
|
 |
N |
Posted: Thu Aug 02, 2007 11:49 pm Post subject: bipbroker.exe terminated |
|
|
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 |
|
 |
Vitor |
Posted: Fri Aug 03, 2007 12:05 am Post subject: |
|
|
 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 |
|
 |
|