Hi -

Can you post the entire stack trace and the version of biojava you are 
using to the list (not direct to me as I'm not an expert on this API)?

- Mark





"Óscar D. Sánchez Jiménez" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/14/2005 10:37 PM

 
        To:     biojava-l@biojava.org
        cc:     (bcc: Mark Schreiber/GP/Novartis)
        Subject:        [Biojava-l] Trouble with GOParser


Hello,

I am having some troubles wiht GOParser class. I would like to use it in 
order to load an ontology and then display this ontology in a JTree.

This is the code I am testing:

try {
        BufferedReader file = new BufferedReader(new 
FileReader("po_anatomy.ontology"));
        OntologyFactory factory = OntoTools.getDefaultFactory();
 
        GOParser parser = new GOParser(); 
 
        Ontology onto = parser.parseGO(file, "trait", "description", 
factory); 

        } catch (Exception e) {System.out.println(e);};

When I execute it, I get a java.lang.NullPointerException. The line 
causing the exception is the parseGO(...) one. Do you have any idea? I 
am able to read perfectly the ontology with Dag-Edit.

Thanks in advance,

Óscar D. Sánchez

--
Óscar David Sánchez Jiménez
Telecommunications Engineer - Computer Science Ph.D. student

Grupo de Informática Médica
ITACA - BET (Bioingeniería, Electrónica y Telemedicina)
Universidad Politécnica de Valencia
Camino de Vera s/n E-46022 Valencia (Spain)





_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l




_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to