Hi All
I'm working on the DAS/SDO side of BigBank to get it working, and
currently testing trough an updated AccountDBInit.java
After some updates on the configFiles and testing code, I made some
progress and have it partially working, and right now I'm trying to solve
the following issue :
Exception in thread "main" java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDerivedStructuralFeatureID(
BasicEObjectImpl.java:1072)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(
BasicEObjectImpl.java:650)
at org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java
:140)
at
org.apache.tuscany.das.rdb.graphbuilder.impl.DataObjectMaker.createAndAddDataObject
(DataObjectMaker.java:90)
at
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.addRowToGraph
(ResultSetProcessor.java:126)
at
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.processResultSet
(ResultSetProcessor.java:97)
at
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.processResults
(ResultSetProcessor.java:81)
at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.buildGraph(
ReadCommandImpl.java:92)
at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(
ReadCommandImpl.java:61)
at
bigbank.account.services.accountdb.AccountDBInit.testStrockPurchaseThroughDAS
(AccountDBInit.java:271)
at bigbank.account.services.accountdb.AccountDBInit.main(
AccountDBInit.java:466)
This is happening when it's trying to build the graph for the "all stocks"
query, and trying to map the ID column.
Currently, I have the following in the SDO wsdl :
<xsd:complexType name="StockSummary">
<xsd:attribute name="purchaseLotNumber" type="xsd:int" />
<!-- unique id for this purchase -->
<xsd:attribute name="symbol" type="xsd:string" />
<xsd:attribute name="quantity" type="xsd:int" />
<xsd:attribute name="purchaseDate" type="xsd:dateTime" />
<xsd:attribute name="purchasePrice" type="xsd:float" />
<xsd:attribute name="currentPrice" type="xsd:float" />
<xsd:attribute name="company" type="xsd:string" />
<xsd:attribute name="highPrice" type="xsd:float" />
<xsd:attribute name="lowPrice" type="xsd:float" />
</xsd:complexType>
And the following for the DAS xml config file :
<Table tableName="STOCKS" typeName="StockSummary" >
<Column columnName="ID"/>
<Column columnName="SYMBOL" propertyName="symbol"/>
<Column columnName="QUANTITY" propertyName="quantity"/>
<Column columnName="PURCHASEPRICE" propertyName="purchasePrice"/>
<Column columnName="PURCHASEDATE" propertyName="purchaseDate"
converterClassName="
bigbank.account.services.accountdata.AccountDataServiceDASImpl$DateConverter
"/>
</Table>
Any ideas ? is that a mapping issue or have I found a bug ?
- Luciano Resende