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

Crash when attempting to write and connect to DB2

270005AVSQ gravatar image
Question by AbdiD_CAS  (1) | Jul 23, 2013 at 01:48 PM streamsdevdb2streamsspl

Hello, I'm working on writing a feed out to a db2 database. However when I run the code it crashes with the following output:

============================ SIGNAL SIGSEGV ============================
/opt/ibm/InfoSphereStreams/lib/libstreams-apputils.so.0(Distillery::BacktraceDumper::dump(int, bool, int)+0x39) [0x2abd70eaa1a9]
/opt/ibm/InfoSphereStreams/lib/../lib/libstreams-runtime.so.0(Distillery::DistilleryApplication::faultHandler(int)+0x4d) [0x2abd722dda9d]
/opt/ibm/InfoSphereStreams/lib/../lib/libstreams-runtime.so.0(Distillery::DistilleryApplication::errorSignalHandler(int)+0x63) [0x2abd722deac3]
/opt/ibm/InfoSphereStreams/java/jre/lib/amd64/default/libjsig.so(jsig_handler+0x24e) [0x2abd7bdf845e]
/opt/ibm/InfoSphereStreams/java/jre/lib/amd64/default/libj9prt24.so [0x2abd7c2a119f]
/lib64/libc.so.6 [0x36552302d0]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0(SPL::Operator::instanceOf(std::string const&)+0xc0) [0x2abd707617d0]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0 [0x2abd70a05797]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0 [0x2abd70a07240]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0 [0x2abd7088d99d]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0 [0x2abd70a01988]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0(SPL::StandaloneApplicationImpl::process()+0x17e) [0x2abd70a2175e]
/opt/ibm/InfoSphereStreams/lib/libstreams-spl-runtime.so.0(SPL::StandaloneApplicationImpl::run(std::vector<std::string, std::allocator<std::string> > const&)+0x115) [0x2abd70a36755]
/opt/ibm/InfoSphereStreams/lib/../lib/libstreams-runtime.so.0(Distillery::DistilleryApplication::runSafeCatchDst(std::vector<std::string, std::allocator<std::string> > const&)+0x2ea) [0x2abd722e828a]
/opt/ibm/InfoSphereStreams/lib/../lib/libstreams-runtime.so.0(Distillery::DistilleryApplication::runSafeCatchall(std::vector<std::string, std::allocator<std::string> > const&)+0x24) [0x2abd722ef564]
/opt/ibm/InfoSphereStreams/lib/../lib/libstreams-runtime.so.0(Distillery::DistilleryApplication::main(int, char*, char*)+0x3d2) [0x2abd722e75b2]
/home/streamsadmin/StreamsStudio/workspace/RSSFeedStreamsReader/output/application.RSSFeedStreamsReader/Standalone/bin/standalone(main+0x23) [0x400a0b]
/lib64/libc.so.6(__libc_start_main+0xf4) [0x365521d994]
/home/streamsadmin/StreamsStudio/workspace/RSSFeedStreamsReader/output/application.RSSFeedStreamsReader/Standalone/bin/standalone(__gxx_personality_v0+0x89) [0x400939]
=============================================================================

The SPL for writing out is:

() as appendTable = ODBCAppend(DeFeedStream)
{
param
connection : "StreamsDB";
access : "FeedAccess";
connectionDocument : "./data/connections.xml";
}

The connection.xml is:

<connection_specifications>

<connection_specification name="StreamsDB" >
<ODBC database="streams" user="USER" password="PASS" />
</connection_specification>

</connection_specifications>

<access_specifications>
<access_specification name="FeedAccess">
<table tablename="MYTABLE" transaction_batchsize="1" rowset_size="1"/>
<uses_connection connection="StreamsDB" />
<native_schema>
<column name="TITLE" type="VARCHAR" length="250"/>
<column name="PRODUCT" type="VARCHAR" length="250"/>
<column name="ISSUE" type="VARCHAR" length="250"/>
<column name="PUBLISHED" type="VARCHAR" length="250"/>
<column name="DESCRIPTION" type="VARCHAR" length="1000"/>
</native_schema>
</access_specification>
</access_specifications>

Thanks for the help

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

2 answers

  • Sort: 
120000E4TY gravatar image

Answer by wbratton (111) | Jul 23, 2013 at 02:06 PM

We will review this problem and get back to you.

Thanks

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
270005AVSQ gravatar image

Answer by AbdiD_CAS (1) | Jul 23, 2013 at 03:28 PM

Turns out I was missing a pair of header files in the db2 install folder. The issue wasnt reported until after a full clean of the project and even then it just appeared as if append table method wasn't compiling correctly. I copied them over from a different install of db2 and it worked out fine.

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

i have Error appeared when i build new SPL Project in infosphere stream 1 Answer

Reseting integer variables to zero after every 10 minutes 1 Answer

Using Java Primitive Operator, How do I modify a tuple inside another tuple? 1 Answer

How to pass a string from WebService to Streams operator 1 Answer

Hard-code metadata over JSON document 1 Answer

  • 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