Hi,
Having failed to build from Github, I got the latest source package from the download section on the website. This all works ( nice web ui, btw! very smooth ). I then tried to upgrade the install from using HSQL to Postgres using a single schema. After a little while, ( took me a little while to work out that there’s no schema needed with the example installation + default configuration). The changes, so far are to the demoMasters-example.properties file to look like:
opengamma.config.jdbc.driver=org.postgresql.Driver
#opengamma.config.jdbc.url=jdbc:postgresql://localhost:5432
opengamma.config.jdbc.url=jdbc:postgresql:og_financial
opengamma.config.jdbc.username=postgres
opengamma.config.jdbc.password=
opengamma.config.db.dbhelper=com.opengamma.util.db.PostgreSQLDbHelper
opengamma.financial.jdbc.driver=org.postgresql.Driver
opengamma.financial.jdbc.url=jdbc:postgresql:og_financial
opengamma.financial.jdbc.username=postgres
opengamma.financial.db.dbhelper=com.opengamma.util.db.PostgreSQLDbHelper
opengamma.hts.jdbc.driver=org.postgresql.Driver
opengamma.hts.jdbc.url=jdbc:postgresql:og_financial
opengamma.hts.jdbc.username=postgres
opengamma.hts.db.dbhelper=com.opengamma.util.db.PostgreSQLDbHelper
opengamma.overnight-batch.jdbc.driver=org.postgresql.Driver
opengamma.overnight-batch.jdbc.url=jdbc:postgresql:og_financial
opengamma.overnight-batch.jdbc.username=postgres
opengamma.overnight-batch.db.dbhelper=com.opengamma.util.db.PostgreSQLDbHelper
After running the ant demo-database, I can see some data in the cfd_config table, however, the ant process is failing with the following error:
[java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘curveLoader’ defined in class path resource [com/opengamma/financ
ial/demoMasters.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.o
pengamma.financial.analytics.ircurve.YieldCurveConfigPopulator]: Constructor threw exception; nested exception is org.fudgemsg.wire.FudgeRuntimeIOException
[java] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:281)
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
[java] at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
[java] at com.opengamma.examples.loader.DemoDatabasePopulater.main(DemoDatabasePopulater.java:76)
[java] Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.opengamma.financial.analytics.ircurve.YieldCurveCo
nfigPopulator]: Constructor threw exception; nested exception is org.fudgemsg.wire.FudgeRuntimeIOException
[java] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
[java] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
[java] … 16 more
[java] Caused by: org.fudgemsg.wire.FudgeRuntimeIOException
[java] at org.fudgemsg.wire.FudgeDataInputStreamReader.readFieldValue(FudgeDataInputStreamReader.java:362)
[java] at org.fudgemsg.wire.FudgeDataInputStreamReader.consumeFieldData(FudgeDataInputStreamReader.java:322)
[java] at org.fudgemsg.wire.FudgeDataInputStreamReader.next(FudgeDataInputStreamReader.java:194)
Does anyone have any advice on where to start trouble shooting this ?
Thanks in advance,