ZancaM / quantdesk

Automatically exported from code.google.com/p/quantdesk
0 stars 0 forks source link

Application fails to "write stock data to file" when there's no "data" subdirectory #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Applies to r110.

To repeate/recreate the bug:

1. Delete the "data" subdirectory from the application root/base/home directory.
2. Launch the QuantDesk_UI desktop application.
3. Wait (while the application downloads all stock symbols from Yahoo!Finance) 
for the exception:

java.io.FileNotFoundException: data\stocks.csv (The system cannot find the path 
specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at java.io.FileWriter.<init>(FileWriter.java:73)
        at org.zigabyte.quantdesk.StockModel.writeStockData(StockModel.java:163)
        at org.zigabyte.quantdesk.StockModel.getAllStocks(StockModel.java:118)
        at org.zigabyte.quantdesk.AnalyzerUI.updateStocksData(AnalyzerUI.java:879)
        at org.zigabyte.quantdesk.AnalyzerUI.main(AnalyzerUI.java:860)

Original issue reported on code.google.com by Andrey.D...@gmail.com on 3 Sep 2010 at 3:31

GoogleCodeExporter commented 8 years ago
Status: Accepted -> Fixed
Owner: Andrey.Desyatnikov -> atramos@gmail.com

Fixed in r115.

Original comment by Andrey.D...@gmail.com on 6 Sep 2010 at 3:41