HistoricalTimeSeriesInfoSearchRequest request = new HistoricalTimeSeriesInfoSearchRequest();
request.setDataSource(“CRSP”);
request.setDataProvider(“CRSP”);
request.setObservationTime(“CLOSE”);
PagingRequest pagingRequest = PagingRequest.ofPage(1,10);
request.setPagingRequest(pagingRequest);
HistoricalTimeSeriesInfoSearchResult result = hMaster.search(request);
For the above piece of code, I get the following error…
For the trials with some other datasources give me the result properly…
Exception in thread “main” java.lang.NullPointerException: Server threw exception: com.opengamma.util.db.DbDateUtils.fromSqlDateNullFarPast(DbDateUtils.java:216) com.opengamma.masterdb.historicaltimeseries.DbHistoricalTimeSeriesMaster$HistoricalTimeSeriesDocumentExtractor.extractData(DbHistoricalTimeSeriesMaster.java:513) com.opengamma.masterdb.historicaltimeseries.DbHistoricalTimeSeriesMaster$HistoricalTimeSeriesDocumentExtractor.extractData(DbHistoricalTimeSeriesMaster.java:498)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.opengamma.util.rest.ExceptionThrowingClientFilter.handle(ExceptionThrowingClientFilter.java:72)
at com.sun.jersey.api.client.Client.handle(Client.java:648)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:568)
at com.opengamma.master.historicaltimeseries.impl.RemoteHistoricalTimeSeriesMaster.search(RemoteHistoricalTimeSeriesMaster.java:73)
at com.algotree.util.tools.TimeSeriesIdBundleAssigner.getTimeSerieses(TimeSeriesIdBundleAssigner.java:102)
at com.algotree.util.tools.TimeSeriesIdBundleAssigner.run(TimeSeriesIdBundleAssigner.java:45)
at com.algotree.util.tools.TimeSeriesIdBundleAssigner.main(TimeSeriesIdBundleAssigner.java:116)
Caused by: com.sun.jersey.api.client.UniformInterfaceException: POST http://192.168.2.105:8080/jax/components/HistoricalTimeSeriesMaster/central/infoSearches returned a response status of 500 Internal Server Error
at com.opengamma.util.rest.ExceptionThrowingClientFilter.handle(ExceptionThrowingClientFilter.java:64)
… 8 more