[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.

exception

javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException
com.vaadin.server.VaadinServlet.handleServiceException(VaadinServlet.java:580)
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:343)
com.vaadin.server.VaadinServlet.service(VaadinServlet.java:201)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause

java.lang.ArrayIndexOutOfBoundsException
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]

[/b][b]

[/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!

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

Here are my Tomcat full log files

https://dl.dropboxusercontent.com/u/548546/localhost_access_log.2013-07-12.txt

https://dl.dropboxusercontent.com/u/548546/catalina.2013-07-12.log

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

You have to go to this site:
http://developer.rottentomatoes.com/
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: