Error While Running the application

server started successfully, but no data in the database,
so throwing below exception.
how to import or insert data in mflix
java.lang.IndexOutOfBoundsException: Index 0 out-of-bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds( ~[na:na]
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex( ~[na:na]
at java.base/jdk.internal.util.Preconditions.checkIndex( ~[na:na]

Hi @Milind_19368,

Have you set up your atlas cluster? If not follow the tutorials provided in chapter 1.

If yes then you can load the sample data by following the below steps:

  • In the Clusters tab(after adding the cluster), you will find the sandbox.
  • In that sandbox, click on 3 dots > Load Sample Dataset.
  • And your sample data will be loaded into your cluster.


got it, I didn’t restore the data, I did it now test are running fine