[java.lang.ArrayIndexOutOfBoundsException] running dashboard-demo-master

Hello everyone, I’m new to Vaadin, I would like to start using this framework for the first time for a new project.

Looking at the demo application QuickTicekts Dashboard I noticed that there are some things that would make me very comfortable to start, and I thought I’d download the sources from github link and test the project.

Trying to launch WAR i get this error and have not yet been able to figure out how to solve:

message java.lang.ArrayIndexOutOfBoundsException

description The server encountered an internal error that prevented it from fulfilling this request.


javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException
root cause

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.

Thank you for your help.[b]



You should look int your tomcat logs to get the full stacktrace. Specifically the part where it says “Caused by:…” below your posted exception.

One solution that was mentioned in another forum thead: Change the key for the rotten potatoes in DataProvider.java, …

first of all ty for reply! :smiley:

second I’ve read about these fix changing rotten tomatoes key in DataProvider.java but i don’f find to what?

 // Get an API key from http://developer.rottentomatoes.com
                String apiKey = "xxxxxxxxxxxxxxxxxxx";
                json = readJsonFromUrl("http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?page_limit=30&apikey=" + apiKey);

I need to change apiKey value into ??? don’t find that!

I don’t have rotten potato but only rotten tomatoes :smiley:

Here are my Tomcat full log files



Can’t attach in Tori, cause get error from vaadin database :frowning:

You have to go to this site:
and register to get a api key. Then you can change the variable to this key.

I didn’t even notice that it said potatoes. I just copied the post from the other thread :slight_smile:

oh ok rly appreciated your help.

So trying to fix ^^

solved thanks! :smiley: