I use the latest github master branch download and
changed config/toolcontext/toolcontext-examplessimulated.properties hts part as
db.hts.dialect = com.opengamma.util.db.PostgresDbDialect
db.hts.driver = org.postgresql.Driver
db.hts.url = jdbc:postgresql://192.168.2.112/og_financial
db.hts.username = opengamma
db.hts.password = opengamma
The db og_financial is accessible via commad psql -h 192.168.2.112 -d og_financial -U opengamma
(where my db should reside)
mvn install -DskipTests
./scripts/init-examples-simulated-db.sh in the server-dir and I get
17:43:00,618 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [BRIDGE] to Logger[ROOT]
17:43:00,618 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
17:43:00,619 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@5e8caa63 - Registering current configuration as safe fallback point
com.opengamma.OpenGammaRuntimeException: Failed to init component factory: ‘dbHtsMaster’ with {factory=com.opengamma.component.factory.master.DbHistoricalTimeSeriesMasterComponentFactory, classifier=tool, dbConnector=::hts}
at com.opengamma.component.ComponentManager.initComponent(ComponentManager.java:360)
at com.opengamma.component.ComponentManager.initComponents(ComponentManager.java:325)
at com.opengamma.component.ComponentManager.init(ComponentManager.java:300)
at com.opengamma.component.ComponentManager.start(ComponentManager.java:205)
at com.opengamma.component.ComponentManager.start(ComponentManager.java:192)
at com.opengamma.component.tool.ToolContextUtils.getToolContext(ToolContextUtils.java:91)
at com.opengamma.component.tool.ToolContextUtils.getToolContext(ToolContextUtils.java:69)
at com.opengamma.component.tool.AbstractTool.run(AbstractTool.java:172)
at com.opengamma.component.tool.AbstractTool.run(AbstractTool.java:151)
at com.opengamma.examples.simulated.tool.ExampleDatabaseCreator.run(ExampleDatabaseCreator.java:111)
at com.opengamma.examples.simulated.tool.ExampleDatabaseCreator.main(ExampleDatabaseCreator.java:65)
Caused by: com.opengamma.OpenGammaRuntimeException: Unable to find current hts schema version in database
at com.opengamma.component.factory.master.AbstractDbMasterComponentFactory.checkSchemaVersion(AbstractDbMasterComponentFactory.java:134)
at com.opengamma.component.factory.master.AbstractDbMasterComponentFactory.checkSchema(AbstractDbMasterComponentFactory.java:71)
at com.opengamma.component.factory.master.DbHistoricalTimeSeriesMasterComponentFactory.init(DbHistoricalTimeSeriesMasterComponentFactory.java:92)
at com.opengamma.component.ComponentManager.initFactory(ComponentManager.java:555)
at com.opengamma.component.ComponentManager.initComponent(ComponentManager.java:358)
… 10 more
Completed
any clue?