Cannot run dashboard-demo

Hi all,

The dashboard-demo will not start up.
Trial licence is installed and “maven install” completed successfully.
After dropping the war file in the tomcat webapps folder accessing the application produced the following stack trace:


SEVERE:
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.vaadin.demo.dashboard.data.DataProvider.createTransaction(DataProvider.java:406)
at com.vaadin.demo.dashboard.data.DataProvider.generateTransactionsData(DataProvider.java:345)
at com.vaadin.demo.dashboard.data.DataProvider.(DataProvider.java:53)
at com.vaadin.demo.dashboard.DashboardUI.(DashboardUI.java:62)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Running the demo within eclipse, I also got the following initial stack trace:

java.io.IOException: Server returned HTTP response code: 403 for URL: http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?page_limit=30&apikey=xxxxxxxxxxxxxxxxxxx
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
at java.net.URL.openStream(URL.java:1037)
at com.vaadin.demo.dashboard.data.DataProvider.readJsonFromUrl(DataProvider.java:202)
at com.vaadin.demo.dashboard.data.DataProvider.loadMoviesData(DataProvider.java:157)
at com.vaadin.demo.dashboard.data.DataProvider.(DataProvider.java:51)
at com.vaadin.demo.dashboard.DashboardUI.(DashboardUI.java:62)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Invoking http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?page_limit=30&apikey=xxxxxxxxxxxxxxxxxxx in the browser gives the following response:

{“error”:“Account Inactive”}

Any hints?

  • Håkan

Hello,
you should get your own API key here http://developer.rottentomatoes.com/ and replace xxxxxxxxxxxxxxxxxxx with real one.

Great!

Now it works.

Many thanks!