Get og-platform running


#1

Hi,
I tried to get og-platform running and got a bunch of errors about missing artifact like below. I understand Strata is the latest version to go to, but I’d like to get a feel how the position and pnl etc works in og-platform while these functionalities are not included in Strata. Is there any alternative place I can download those dependency jars so I can at least get some og-platform example running?
Thanks

#####################################################################
[ERROR] Failed to execute goal on project fudge-java: Could not resolve dependencies for project org.fudgemsg:fudge-java:jar:0.3.9.1: The following artifacts could not be resolved: com.opengamma.external.json:json:jar:1.0.0.v20101106, com.opengamma.external.threeten:threeten-core:jar:0.6.4: Failure to find com.opengamma.external.json:json:jar:1.0.0.v20101106 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]


#2

OG-Platform is no longer a supported project, so any use would be entirely on your own.

To get the dependency you need, add the following Maven repository http://maven.opengamma.com/public. Note that it will only work as a repo via Maven, not by browsing.


#3

Thanks Stephen. That worked!


#4

As I went further, got another error, seems related to locale. But I suspect it has to do with some project/plugin setting/version that somehow used UTF-8 ? Any idea what this is about?

######################################################################
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project og-analytics: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process
[ERROR] org.testng.TestNGException:
[ERROR] An error occurred while instantiating class com.opengamma.analytics.financial.calculator.ParameterSensitivityWeightMatrixCalculatorTest: null
[ERROR] at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:435)
[ERROR] at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:336)
[ERROR] at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:125)
[ERROR] at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:190)
[ERROR] at org.testng.TestClass.getInstances(TestClass.java:95)
[ERROR] at org.testng.TestClass.initTestClassesAndInstances(TestClass.java:81)
[ERROR] at org.testng.TestClass.init(TestClass.java:73)
[ERROR] at org.testng.TestClass.(TestClass.java:38)
[ERROR] at org.testng.TestRunner.initMethods(TestRunner.java:389)
[ERROR] at org.testng.TestRunner.init(TestRunner.java:271)
[ERROR] at org.testng.TestRunner.init(TestRunner.java:241)
[ERROR] at org.testng.TestRunner.(TestRunner.java:167)
[ERROR] at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:663)
[ERROR] at org.testng.SuiteRunner.init(SuiteRunner.java:260)
[ERROR] at org.testng.SuiteRunner.(SuiteRunner.java:198)
[ERROR] at org.testng.TestNG.createSuiteRunner(TestNG.java:1295)
[ERROR] at org.testng.TestNG.createSuiteRunners(TestNG.java:1273)
[ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1128)
[ERROR] at org.testng.TestNG.runSuites(TestNG.java:1049)
[ERROR] at org.testng.TestNG.run(TestNG.java:1017)
[ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
[ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:204)
[ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:107)
[ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:112)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] Caused by: java.lang.ExceptionInInitializerError
[ERROR] at com.opengamma.financial.convention.daycount.DayCounts.(DayCounts.java:19)
[ERROR] at com.opengamma.analytics.financial.instrument.index.IndexIborMaster.(IndexIborMaster.java:141)
[ERROR] at com.opengamma.analytics.financial.instrument.index.IndexIborMaster.(IndexIborMaster.java:119)
[ERROR] at com.opengamma.analytics.financial.provider.description.MulticurveProviderDiscountDataSets.(MulticurveProviderDiscountDataSets.java:165)
[ERROR] at com.opengamma.analytics.financial.calculator.ParameterSensitivityWeightMatrixCalculatorTest.(ParameterSensitivityWeightMatrixCalculatorTest.java:45)
[ERROR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[ERROR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[ERROR] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[ERROR] at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:24)
[ERROR] at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:423)
[ERROR] … 26 more
[ERROR] Caused by: java.util.MissingResourceException: Can’t find bundle for base name com.opengamma.financial.convention.daycount.DayCount, locale zh_CN
[ERROR] at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1573)
[ERROR] at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
[ERROR] at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)
[ERROR] at com.opengamma.financial.convention.AbstractNamedInstanceFactory.loadFromProperties(AbstractNamedInstanceFactory.java:98)
[ERROR] at com.opengamma.financial.convention.AbstractNamedInstanceFactory.loadFromProperties(AbstractNamedInstanceFactory.java:86)
[ERROR] at com.opengamma.financial.convention.daycount.DayCountFactory.(DayCountFactory.java:44)
[ERROR] at com.opengamma.financial.convention.daycount.DayCountFactory.(DayCountFactory.java:23)
[ERROR] … 37 more
[ERROR] Caused by: java.lang.ClassCastException: com.opengamma.financial.convention.daycount.DayCount cannot be cast to ResourceBundle
[ERROR] at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2656)
[ERROR] at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1510)
[ERROR] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1474)
[ERROR] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1428)
[ERROR] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1428)
[ERROR] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1428)
[ERROR] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1428)
[ERROR] at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1370)
[ERROR] … 42 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :og-analytics


#5

I don’t recognise that one I’m afraid. Maybe try running with Locale en_GB


#6

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.