Hi,

 

I’m attaching the un-marshalling code as well. This is similar to the example 
you helped me out with.

 

I was trying differentiate between status and info messages using the type 
field and to process them separately. But, obviously I’m going wrong somewhere.

 

When I receive a message on the Queue of Type Status, I get the following error 
message:

 

Map Class Definition: STAF/Service/Queue/Entry

<MarshalingContext>[1]

<MarshalingContext>[0]

<MarshalingContext>[1]

terminate called after throwing an instance of 'STAFInvalidObjectException'

Abort

 

Thanks for all the help so far,

 

Hardik.

 

From: Sharon Lucas [mailto:luc...@us.ibm.com] 
Sent: Wednesday, July 06, 2011 5:05 PM
To: Dedhia, Hardik
Subject: RE: [staf-users] Un-Marshalling list structure

 

At line 77, you need to "wrap" the MESSAGE option's value because it contains 
spaces so that the STAF command parser knows when the option value begins and 
ends.  This is talked about in section "7.2 Option Value Formats" in the STAF 
User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDROVFORM 
<http://staf.sourceforge.net/current/STAFUG.htm#HDROVFORM> .  For example, 
change: 

 77         STAFResultPtr result = handle->submit("cyclvm01.rtp.netapp.com", 
"QUEUE", "QUEUE TYPE Status MESSAGE " + send + " NAME HammerSender", 
kSTAFReqFireAndForget); 

to: 

 77         STAFResultPtr result = handle->submit("cyclvm01.rtp.netapp.com", 
"QUEUE", "QUEUE TYPE Status MESSAGE " + STAFHandle::wrapData(send) + " NAME 
HammerSender", kSTAFReqFireAndForget); 

Or, you could specify the NAME option before the MESSAGE option. 

Does this resolve the problem you are seeing?  If not, then also show me how 
you are unmarshalling this result and what error you are seeing. 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        "Dedhia, Hardik" <hardik.ded...@netapp.com> 
To:        Sharon Lucas/Austin/IBM@IBMUS 
Date:        07/06/2011 03:54 PM 
Subject:        RE: [staf-users] Un-Marshalling list structure 

________________________________




Sure, 
  
I am attaching the code copy alongside. This contains how I am forming the list 
and how I send this as a message through the Queue Service’s Queue request. 
  
Thanks, 
  
Hardik. 
  
From: Sharon Lucas [mailto:luc...@us.ibm.com <mailto:luc...@us.ibm.com> ] 
Sent: Wednesday, July 06, 2011 4:50 PM
To: Dedhia, Hardik
Cc: staf-users
Subject: Re: [staf-users] Un-Marshalling list structure 
  
I don't understand what you are doing.  Maybe if would help if you provided 
your code that demonstrates what you are doing and what problem you are seeing.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        "Dedhia, Hardik" <hardik.ded...@netapp.com> 
To:        <staf-users@lists.sourceforge.net> 
Date:        07/06/2011 10:57 AM 
Subject:        [staf-users] Un-Marshalling list structure 

 

________________________________





 
Hi, 
 
I’m trying to send a bunch of information using QUEUE Messages. I add the 
contents to a list and append the list to a Marshalling context which I later 
marshal and send using QUEUE Service’ Queue Request. But, then I unmarshal and 
read the data it gives me the following: 
 
Type: Status 
Message: <MarshalingContext>[1] 
 
I am confused on how to get the contents within this context. 
 
Please help on the same. 
 
Thanks, 
 
Hardik.------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2 <http://p.sf.net/sfu/splunk-d2d-c2> 
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users 
<https://lists.sourceforge.net/lists/listinfo/staf-users> [attachment "New Text 
Document (3).txt" deleted by Sharon Lucas/Austin/IBM] 

<<image001.gif>>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to