Default constructor cannot handle exception type Exception thrown by implicit super constructor
<p>I am trying to read from a txt file and display it to a JSP file. </p>

<p>The Bean class gets <code>BufferedReader</code> from the <code>FileReaderz</code> class.
I create a <code>Beanx</code> object in jsp, but this is where I get stuck</p>

<pre><code> public class Beanx {
        public OuterBlock[] outer=new OuterBlock[100];
        public InnerBlock[] inner=new InnerBlock[100];

        /*public List&lt;String&gt; token1 = new ArrayList&lt;String&gt;();
        public List&lt;String&gt; token2 = new ArrayList&lt;String&gt;();*/
        //String[] token1;
        //String[] token2;

        public void callFileReaderz()throws Exception{
            FileReaderz fr=new FileReaderz();
            BufferedReader br1=FileReaderz.br;
            String[] token;
            int i=0,j=0;

            String line;
            while((line=br1.readLine())!=null){
                //System.out.println(line);
                token=line.split("#");
                //List&lt;String&gt; tokenList=Arrays.asList(token);
                if(token.length==5){
                    OuterBlock outerObj=new OuterBlock(token[0],Integer.parseInt(token[1]),Integer.parseInt(token[2]),
                            Float.parseFloat(token[3]),Float.parseFloat(token[4]));
                    this.outer[i++]=outerObj;
                    //System.out.println(token[0]);

                }
                else{
                    InnerBlock innerObj = new InnerBlock(token[0],token[1],Integer.parseInt(token[2]),
                            Integer.parseInt(token[3]),Float.parseFloat(token[4]),Float.parseFloat(token[5]));
                    this.inner[j++]=innerObj;

                }
            }
            br1.close();

        }

        public Beanx() throws Exception{
            this.callFileReaderz();
        }
    }


    public class FileReaderz {
        public static BufferedReader br;

        public static void main (String[] args)throws Exception {
            // TODO Auto-generated method stub
            //public FileReaderz() throws FileNotFoundException{
            br=new BufferedReader(new FileReader("database1.txt"));

    //System.out.println(br.readLine());
    }

}
</code></pre>

<p>When I try this in JSP page,</p>

<p>I get the error:</p>

<pre><code>org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 15 in the jsp file: /dashBoard.jsp
Default constructor cannot handle exception type Exception thrown by implicit super constructor. Must define an explicit constructor
12: &lt;/head&gt;
13: 
14: &lt;body&gt;
15: &lt;%! Beanx bean=new Beanx(); %&gt;
16: &lt;div class="table-title"&gt;
17: &lt;h3&gt;Projects In Repository&lt;/h3&gt;
18: &lt;/div&gt;
</code></pre>