Changeset 1174

Show
Ignore:
Timestamp:
19-11-10 10:55:15 (3 years ago)
Author:
work@…
Message:

As of 18 november the Chebi ontology has been updated to a new version. Unfortunately Ontocat now breaks with an error message that the webservice signature has changed. Tried updating to the latest Ontocat, but that does not help. Probably either the webservice is wrong, or there is a bug in Ontocat. Added an if != null statement to the logic so this failing application bootstrapping will not break the whole application.

Error:
2010-11-19 10:51:56,162 [main] ERROR bioportal.BioportalOntologyService? - Web service signature has changed!
2010-11-19 10:51:56,163 [main] ERROR bioportal.BioportalOntologyService? - isMetadataOnly : isMetadataOnly : isMetadataOnly : isMetadataOnly


message : isMetadataOnly : isMetadataOnly
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException?
cause-message : isMetadataOnly : isMetadataOnly
class : uk.ac.ebi.ontocat.bioportal.xmlbeans.OntologyBean?
required-type : uk.ac.ebi.ontocat.bioportal.xmlbeans.OntologyBean?
path : /ontologyBean/isMetadataOnly
line number : 25

Location:
trunk
Files:
1 added
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/data/Ontology.groovy

    r1118 r1174  
    5353                uk.ac.ebi.ontocat.OntologyService os = new uk.ac.ebi.ontocat.bioportal.BioportalOntologyService() 
    5454                uk.ac.ebi.ontocat.Ontology o = os.getOntology(ncboId) 
    55  
     55                 
    5656                // Instantiate and return Ontology object 
    57                 new dbnp.data.Ontology( 
    58                         name: o.label, 
    59                         description: o.description, 
    60                         url: o.properties['homepage'] ?: "http://bioportal.bioontology.org/ontologies/${o.id}", 
    61                         versionNumber: o.versionNumber, 
    62                         ncboId: o.ontologyAccession, 
    63                         ncboVersionedId: o.id 
    64                 ); 
     57                if (o != null) { 
     58                        new dbnp.data.Ontology( 
     59                                name: o.label, 
     60                                description: o.description, 
     61                                url: o.properties['homepage'] ?: "http://bioportal.bioontology.org/ontologies/${o.id}", 
     62                                versionNumber: o.versionNumber, 
     63                                ncboId: o.ontologyAccession, 
     64                                ncboVersionedId: o.id 
     65                        ); 
     66                } else { 
     67                        println ("ERROR: ontology with ncboId ${ncboId} could not be found!") 
     68                } 
    6569        } 
    6670