Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Defining STRINGLIST stream properties

120000N8FN gravatar image
Question by EricThiebaut-George  (1) | Feb 07, 2011 at 11:46 AM streamsdev

Hi,

I want to programmatically generate some export properties similar to this in my C++ UDOP:
export properties

For this, I'm trying to define a STRINGLIST stream property.

My code looks something like this:

dlist<string> topics;
topics.push_back("AA");
topics.push_back("BB");
StreamPropertyCollection spc;
StreamProperty* sp= new StreamProperty("topics", ProfileManagerHelper::STRINGLIST,topics);
spc.push_back(sp);
opc.addStreamPropertyCollection(0, spc);

However, this does not seem to work and I'm getting the following errors:

07 Feb 2011 16:37:17.989 6208 ERROR dpspe M UDOP_TSAADispatcher.cpp:setupTopics:68 - failed to associate a property collection '0 properties. ' to a stream produced by this operator: Type mismatch between property type and return argument for value; propertyType is: stringlist
07 Feb 2011 16:37:17.989 6208 ERROR dpspe M DpsPE.cpp:process:496 - Received exception during PE processing... Exception: Type mismatch between property type and return argument for value; propertyType is: stringlist
07 Feb 2011 16:37:18.021 6208 ERROR PEC M PECServiceImpl.cpp:starter:487 P73 - peid=73. Uncaught Distillery Exception: 'void SPC::StreamProperty::setValue(const T&) with T = dlist<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' [/home/streamsadmin/InfoSphereStreams/include/SAM/StreamProperty.h:156] with msg: Type mismatch between property type and return argument for value; propertyType is: stringlist

So it's not accepting my dlist<string> for a STRINGLIST property.
I've also tried to pass a pointer to topics and it gives me the same error.

Is there a way to perform this and set a property with several values?

Thanks

Eric

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
120000N8FN gravatar image

Answer by EricThiebaut-George (1) | Feb 07, 2011 at 11:57 AM

I solved my own problem ;-).

I looked at ProfileManagerHelper.h and noticed that I had to replace dlist by vector.

All working now.

Eric

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

No one has followed this question yet.

Answers

Answers & comments

Related questions

TextExtract] CDIST0863E Expected Input to a be a list 5 Answers

Do I need to implement the state handler for stateless operators to support consistent regions? 1 Answer

Cannot start a streams domain using a non-login user 1 Answer

Pass config placement:host("") as a parameter 2 Answers

How to write data from a list to a database using ODBCAppend 2 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges