6 Replies Latest reply on Aug 28, 2007 5:01 AM by Maha Azar

    error null pointer exception

    Maha Azar Newbie

      hey
      I get this error:
      2007-08-21 16:43:12,199 INFO [STDOUT] Début de la boucle du timeout
      2007-08-21 16:43:12,199 INFO [STDOUT] beyrouthyf
      2007-08-21 16:43:12,199 INFO [STDOUT] SessID arriving from request: 0
      2007-08-21 16:43:12,246 INFO [STDOUT]
      IBM SecureWay Host Access Class Library
      Version: 3.0.1a-B19990820
      Copyright IBM Corporation 1997, 1999. All rights reserved.
      2007-08-21 16:43:19,952 INFO [STDOUT] SessID assigned for BEYROUTHYF is 1 The ECLSession id is: com.ibm.eNetwork.ECL.ECLSession@92666
      2007-08-21 16:43:19,952 INFO [STDOUT] La connexion de la session 1 est égale = true Et sessID = 0
      2007-08-21 16:43:20,046 INFO [STDOUT] Checking beyrouthyf on PHOBOS
      2007-08-21 16:43:20,405 INFO [STDOUT] java.lang.NullPointerException
      2007-08-21 16:43:20,405 INFO [STDOUT] at java.io.Reader.(Reader.java:61)
      2007-08-21 16:43:20,405 INFO [STDOUT] at java.io.InputStreamReader.(InputStreamReader.java:55)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.accesBase.Lecteur.createStreamReader(Lecteur.java:119)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.accesBase.Lecteur.createReader(Lecteur.java:137)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.accesBase.LecteurProjet.build(LecteurProjet.java:72)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.util.ProjectDeliverer.initProjet(ProjectDeliverer.java:45)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.util.ProjectDeliverer.getAccesBaseManager(ProjectDeliverer.java:31)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.util.ProjectDeliverer.getAccesBaseManager(ProjectDeliverer.java:18)
      2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.interactif.context.GestionEnvironnement.login(GestionEnvironnement.java:2062)
      2007-08-21 16:43:20,405 INFO [STDOUT] at w2h.servlet.W2HServlet.treatRequest(W2HServlet.java:385)
      2007-08-21 16:43:20,405 INFO [STDOUT] at w2h.servlet.W2HServlet.doStuff(W2HServlet.java:170)
      2007-08-21 16:43:20,405 INFO [STDOUT] at w2h.servlet.W2HServlet.doPost(W2HServlet.java:166)
      2007-08-21 16:43:20,405 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2007-08-21 16:43:20,405 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      2007-08-21 16:43:20,405 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      2007-08-21 16:43:20,405 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
      2007-08-21 16:43:20,421 INFO [STDOUT] java.lang.NullPointerException
      2007-08-21 16:43:20,421 INFO [STDOUT] at sabswing.interactif.context.GestionEnvironnement.login(GestionEnvironnement.java:2162)
      2007-08-21 16:43:20,421 INFO [STDOUT] at w2h.servlet.W2HServlet.treatRequest(W2HServlet.java:385)
      2007-08-21 16:43:20,421 INFO [STDOUT] at w2h.servlet.W2HServlet.doStuff(W2HServlet.java:170)
      2007-08-21 16:43:20,421 INFO [STDOUT] at w2h.servlet.W2HServlet.doPost(W2HServlet.java:166)
      2007-08-21 16:43:20,421 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2007-08-21 16:43:20,421 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      2007-08-21 16:43:20,421 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      2007-08-21 16:43:20,421 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
      2007-08-21 16:43:20,561 INFO [STDOUT] java.lang.NullPointerException
      2007-08-21 16:43:20,561 INFO [STDOUT] at w2h.servlet.W2HServlet.treatRequest(W2HServlet.java:388)
      2007-08-21 16:43:20,561 INFO [STDOUT] at w2h.servlet.W2HServlet.doStuff(W2HServlet.java:170)
      2007-08-21 16:43:20,561 INFO [STDOUT] at w2h.servlet.W2HServlet.doPost(W2HServlet.java:166)
      2007-08-21 16:43:20,561 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2007-08-21 16:43:20,561 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,561 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      2007-08-21 16:43:20,577 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      2007-08-21 16:43:20,577 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

      I need your help as soon as possible
      thanks

        • 1. Re: error null pointer exception
          Maha Azar Newbie

          for more information I'm using:
          j2eesdk-1_4_03
          and jboss4.0.0
          thanks in advance

          • 2. Re: error null pointer exception
            Peter Johnson Master

            Please re-read the stack trace (focusing in the first 4 or 5 lines) and fix the bug in your code.

            • 3. Re: error null pointer exception
              Maha Azar Newbie

              hey!!! thanks for helping
              look my application works well on websphere and tomcat
              so i don't think it's a matter of code;isn't it??
              It can't be a result of a lack of jar files in my lib??
              waiting for ur answer
              thanks a lot

              • 4. Re: error null pointer exception
                Peter Johnson Master

                There is no need to shout.

                Looking at the log, there are these lines:

                2007-08-21 16:43:20,405 INFO [STDOUT] java.lang.NullPointerException
                2007-08-21 16:43:20,405 INFO [STDOUT] at java.io.Reader.(Reader.java:61)
                2007-08-21 16:43:20,405 INFO [STDOUT] at java.io.InputStreamReader.(InputStreamReader.java:55)
                2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.accesBase.Lecteur.createStreamReader(Lecteur.java:119)
                2007-08-21 16:43:20,405 INFO [STDOUT] at sabswing.noyau.accesBase.Lecteur.createReader(Lecteur.java:137)

                Unless I am mistaken, the sabswing.noyau.accesBase.Lecteur class is your class. The createStreamReader method is attempting to create an InputStreamReader, but whatever arguments it is passing to the constructor are causing a null pointer exception , probably passing a null argument. Since the code is yours, you need to find out why you are passing a null argument to that constructor.

                • 5. Re: error null pointer exception
                  Maha Azar Newbie

                  Heyy!!!!smart boy ;) I think u r right
                  I'm going 2 c what's going on...thanks for helping...I'll let u know what will happen...thanks again

                  • 6. Re: error null pointer exception
                    Maha Azar Newbie

                    this is the code:

                    /*
                    * Lecteur.java
                    *
                    * Created on 12 octobre 2000, 17:07
                    */

                    package sabswing.noyau.accesBase;

                    /**
                    *
                    * @author Ventrillonp
                    * @version
                    */
                    import java.util.List;
                    import java.io.PrintStream;
                    import java.io.IOException;
                    import java.io.FileReader;
                    import java.io.FileNotFoundException;

                    import java.io.InputStreamReader;
                    import java.io.Reader;
                    import java.io.InputStream;


                    public class Lecteur extends Object {

                    protected String nomFichier;
                    protected IniFileAnalyser anal;
                    private PrintStream printStream = System.err;
                    private List allRepertoire;

                    /** Construire un Lecteur
                    @see setNomFichier
                    @see setAllRepertoire
                    */
                    public Lecteur() {
                    this(null, null);
                    }
                    /** Construire un Lecteur avec un nom de fichier specifie
                    @param nomFichier : nom de fichier sans repertoire
                    @see setNomFichier
                    @see setAllRepertoire
                    */
                    public Lecteur(String nomFichier) {
                    this(nomFichier, null);
                    }
                    /** Construire un Lecteur avec un nom de fichier specifie et une liste de repertoires
                    @param nomFichier : nom de fichier sans repertoire
                    @param allRepertoire : Liste de String contenant chacune un repertoire relatif au package racine
                    @see setNomFichier
                    @see setAllRepertoire
                    */
                    public Lecteur(String nomFichier, List allRepertoire) {
                    this.nomFichier = nomFichier;
                    this.allRepertoire = allRepertoire;
                    }

                    /** Obtenir le nom du fichier que l'on va lire
                    @return une chaine contenant le nom du fichier (comme specifée lors du constructeur ou set)
                    */
                    public String getNomFichier() {
                    return(nomFichier);
                    }
                    /** Positionner le nom du fichier que l'on va lire
                    @param nomFichier
                    */
                    public void setNomFichier(String nomFichier) {
                    this.nomFichier = nomFichier;
                    }



                    public PrintStream getPrintStream() {
                    return(printStream);
                    }
                    public void setPrintStream(PrintStream printStream) {
                    this.printStream = printStream;
                    }
                    /** obtenir la liste des repertoires utilise pour rechercher le fichier a lire
                    un repertoire est de la forme "/dir1/dir2/...", Il est relatif au package racine
                    @return une liste de String
                    */
                    public List getAllRepertoire() {
                    return(allRepertoire);
                    }
                    /** positionner la liste des repertoires utilise pour rechercher le fichier a lire
                    un repertoire est de la forme "/dir1/dir2/..."
                    @param allRepertoire : liste de String
                    */
                    public void setAllRepertoire(List allRepertoire) {
                    this.allRepertoire = allRepertoire;
                    }
                    private FileReader createFileReader() throws FileNotFoundException {
                    FileReader fr = null;
                    FileNotFoundException fnfe = null;
                    if(allRepertoire == null) {
                    fr = new FileReader(getNomFichier());
                    } else {
                    // essayer de trouver le fichier dans chacun des erpertoires de allRepertoires
                    int i=0;
                    while(i<allRepertoire.size() && fr == null) {
                    try {
                    fr = new FileReader(((String)allRepertoire.get(i))+getNomFichier());
                    } catch (FileNotFoundException exc) {
                    fnfe = exc;
                    }
                    i++;
                    }
                    }
                    if(fr == null) {
                    throw(fnfe);
                    }
                    return(fr);
                    }
                    private InputStreamReader createStreamReader() throws FileNotFoundException {
                    InputStreamReader sr = null;
                    InputStream is;
                    if(allRepertoire == null) {
                    is = getClass().getResourceAsStream(getNomFichier());
                    sr = new InputStreamReader(is);
                    } else {
                    // essayer de trouver le fichier dans chacun des erpertoires de allRepertoires
                    int i=0;
                    while(i<allRepertoire.size() && sr == null) {
                    is = getClass().getResourceAsStream(((String)allRepertoire.get(i))+getNomFichier());
                    if(is != null) {
                    sr = new InputStreamReader(is);
                    }
                    i++;
                    }
                    }
                    if(sr == null) {
                    throw(new FileNotFoundException(getNomFichier()));
                    }
                    return(sr);
                    }
                    public Reader createReader() throws FileNotFoundException {
                    return(createStreamReader());
                    }

                    protected void skipSection() throws IOException {
                    int typeLigne = anal.readLine();
                    while(typeLigne == IniFileAnalyser.LINE_TYPE_PROPERTY){
                    typeLigne = anal.readLine();
                    }
                    }
                    protected void erreur(String message) {
                    //getPrintStream().println("Erreur Fichier<"+nomFichier+"> ligne "+anal.getLineNumber()+" : "+message);
                    // appel MessageAgent
                    sabswing.noyau.trace.MessageAgent.getDefaultInstance().sendMessage(sabswing.noyau.trace.MessageAgent.NIVEAU_IMPORTANT, sabswing.noyau.trace.MessageAgent.COUCHE_BASE, this.getClass(), "erreur", "Erreur Fichier<"+nomFichier+"> ligne "+anal.getLineNumber()+" : "+message);
                    }
                    protected void rapporteException(Exception e) {
                    //e.printStackTrace(getPrintStream());
                    // appel MessageAgent
                    sabswing.noyau.trace.MessageAgent.getDefaultInstance().sendMessage(sabswing.noyau.trace.MessageAgent.NIVEAU_IMPORTANT, sabswing.noyau.trace.MessageAgent.COUCHE_BASE, this.getClass(), "rapporteException", e);
                    }

                    }

                    what should I change?
                    thanks