XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Lawrence HarrisSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table "techownerdb.ibmproductlifecycle" not found in any JDBC connection.
Author: Lawrence Harris
Date: 11 Nov 2008 10:35 AM
I am getting an error when double clicking on a mysql data-source to obtain the record layout (in the file explorer).
java.lang.RuntimeException: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table "techownerdb.ibmproductlifecycle" not found in any JDBC connection.at com.stylusstudio.DDXQFileSystem$DDXQFile.runQuery(DDXQFileSystem.java:370)at com.stylusstudio.DDXQFileSystem$DDXQFile.getInputStream(DDXQFileSystem.java:378)
Caused by: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table "techownerdb.ibmproductlifecycle" not found in any JDBC connection. at com.ddtek.xquery3.xqj.Util.createXQQueryException(Util.java:318)at com.ddtek.xquery3.xqj.Util.createXQException(Util.java:239)at com.ddtek.xquery3.xqj.layer.DDXQAbstractExpression.createOrGetExecutionContext(DDXQAbstractExpression.java:476)at com.ddtek.xquery3.xqj.layer.DDXQExpression._executeQuery(DDXQExpression.java:94)at com.ddtek.xquery3.xqj.layer.DDXQExpression.executeQuery(DDXQExpression.java:114)at com.stylusstudio.DDXQFileSystem$DDXQFile.runQuery(DDXQFileSystem.java:367)
... 1 more

Caused by: com.ddtek.xquery.util.XQueryException: [ME0018][DataDirect][XQuery][err:FODC0004]Table "techownerdb.ibmproductlifecycle" not found in any JDBC connection.at com.ddtek.xquery.mediator.metadata.MediatorMetaData.syncStaticContext(MediatorMetaData.java:108)at
com.ddtek.xquery.mediator.ContextFactory.prepareQuery(ContextFactory.java:225)at
com.ddtek.xquery3.xqj.layer.DDXQAbstractExpression.createOrGetExecutionContext(DDXQAbstractExpression.java:473)
... 4 more

I am using MySql Community Edition 5.0
I am actually trying to do an XSLT transformation from an XML source to a MySQL database and wanted to use Stylus Studio because I thought that it might be faster than coding something by hand.

Postnext
Ivan PedruzziSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Ivan Pedruzzi
Date: 11 Nov 2008 12:21 PM

Hi Lawrence,

Which Stylus Studio build are you running?
Help->About->Framework Version


Ivan Pedruzzi
Stylus Studio Team

Postnext
Lawrence HarrisSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Lawrence Harris
Date: 11 Nov 2008 12:55 PM
Framework 1050G

Postnext
Ivan PedruzziSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Ivan Pedruzzi
Date: 12 Nov 2008 12:03 PM

Stylus Studio 2008 has a defect that prevents File Explorer to fetch data from a MySQL CE connection. The problem was fixed in 2008 Release 2.

Still XSLT is not the right tool for the job unless you are planning to export the entire table on disk as XML.

I strongly suggest to try DataDirect XQuery

Create a new XQuery document and drag & drop the database icon into the XQuery editor datasource panel.

see more deatails at
http://www.stylusstudio.com/docs/v2008/d_xquery36.html#wp601937

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Lawrence HarrisSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Lawrence Harris
Date: 12 Nov 2008 12:28 PM
I have attached the schema that I created from the input XML file and the SQL for the MySQL file that I am trying to move the data into.


DocumentIBMProductLifecycle.xsd
Schema for XML input file

Postnext
Lawrence HarrisSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Lawrence Harris
Date: 12 Nov 2008 12:33 PM
SQL

Postnext
Lawrence HarrisSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Lawrence Harris
Date: 12 Nov 2008 12:34 PM
Target mysql file to receive the XML data (flattened).


Documentibmproductlifecycle.sql
SQL File

Postnext
Ivan PedruzziSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Ivan Pedruzzi
Date: 12 Nov 2008 04:09 PM

Could you please zip this file and send it again?

Thanks
Ivan Pedruzzi
Stylus Studio Team

Postnext
Lawrence HarrisSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Lawrence Harris
Date: 14 Nov 2008 08:35 AM
Sorry.


UnknownLifecycle.zip
Zip file

Posttop
Ivan PedruzziSubject: com.ddtek.xquery3.XQQueryException: [DataDirect][XQuery][err:FODC0004]Table
Author: Ivan Pedruzzi
Date: 16 Nov 2008 02:04 PM

Hi Lawrence,

I am not sure how you are planning to map all elements, the following XQuery does the most obvious one, assuming to process an XML document
as you posted at
http://www.stylusstudio.com/SSDN/default.asp?action=9&read=8114&fid=48


declare variable $product as document-node(element(*, xs:untyped)) external;


for $rev in $product/ProductInfo/Versions/VersionRec/Revisions/RevisionRec
let $name := $rev/../../../../ProductName
let $ver := concat($rev/../../VersionMajorNo, '.', $rev/../../VersionMinorNo)
return
ddtek:sql-insert("ibmproductlifecycle",
"SWTitleSynKey" , "",
"SWTitle" , $name,
"offeringType" , "",
"pid" , "",
"VersionNumber" , $ver,
"releaseNumber" , $rev/RevisionNo,
"modLevelNumber" , "",
"lifecyclePolicy" , "",
"exception" , "",
"eosAnnLetNo" , "",
"eosDate" , "",
"eomAnnLetNo" , "",
"eomDate" , "",
"gaAnnLetNo" , "",
"gaDate" , "",
"PLCMoreInfoURL" , ""
)

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.