Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] hexBinary bug?

Martin.Georg.Skjaeveland at dnv.com Martin.Georg.Skjaeveland at dnv.com
Tue Jan 29 01:50:24 PST 2008


Hi all,

It seems that there is a bug when using the XSD datatype hexBinary. I'm using Protege 3.4 beta build 125, but I have the same problem with different Protege 3.x versions.

When I do the following:
 1. Open new project
 2. Create datatype property 'f'
 3. Create class 'A'
 4. Add restriction 'f only hexBinary' to 'A' and click the green tick, I get the following error message:

 "Internal Error: java.lang.NullPointerException." I've included the Java Console output below.

If I replace the restriction with
 4. 'f only string' and click the green tick everything seems to be working fine.

Saving this file (the "'f only string' file") and manually changing the source code from xsd:string to xsd:hexBinary and opening in Protege gives the same exception. This rdf-xml file is included below.

Am I doing something wrong or is this really a bug? I hope you can help.

Regards,
Martin G. Skjæveland



<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.owl-ontologies.com/unnamed.owl#"
  xml:base="http://www.owl-ontologies.com/unnamed.owl" > 

  <rdf:Description rdf:about="#A">
  <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:subClassOf rdf:nodeID="A0"/>
    <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
  </rdf:Description>
  <rdf:Description rdf:nodeID="A0">
    <owl:onProperty rdf:resource="#f"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
    <owl:allValuesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#hexBinary"/>
  </rdf:Description>
  <rdf:Description rdf:about="">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Ontology"/>
  </rdf:Description>
  <rdf:Description rdf:about="#f">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
  </rdf:Description>
</rdf:RDF>
<!-- Created with Protege (with OWL Plugin 3.4, Build 125)  http://protege.stanford.edu -->


Java Console output:

SEVERE: Exception caught -- java.lang.NullPointerException
        at edu.stanford.smi.protegex.owl.model.framestore.AllValuesFromRestrictionUpdater.updateValueTypeFacet(Unknown Source)
        at edu.stanford.smi.protegex.owl.model.framestore.AllValuesFromRestrictionUpdater.updateValueTypeFacet(Unknown Source)
        at edu.stanford.smi.protegex.owl.model.framestore.AllValuesFromRestrictionUpdater.copyFacetValuesIntoNamedClass(Unknown Source)
        at edu.stanford.smi.protegex.owl.model.framestore.OWLFrameStore.copyFacetValuesIntoOWLNamedClass(Unknown Source)
        at edu.stanford.smi.protegex.owl.model.framestore.OWLFrameStore.addDirectSuperclass(Unknown Source)
        at edu.stanford.smi.protege.model.DefaultKnowledgeBase.addDirectSuperclass(Unknown Source)
        at edu.stanford.smi.protegex.owl.model.impl.AbstractRDFSClass.addSuperclass(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableModel.handleAddOrReplaceRestriction(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableModel.setValueAt(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableModel.setValueAt(Unknown Source)
        at javax.swing.JTable.setValueAt(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.owltable.OWLTable.setValueAt(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTable.setValueAt(Unknown Source)
        at javax.swing.JTable.editingStopped(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTable.editingStopped(Unknown Source)
        at javax.swing.AbstractCellEditor.fireEditingStopped(Unknown Source)
        at javax.swing.AbstractCellEditor.stopCellEditing(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.code.SymbolCellEditor.stopEditing(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.code.SymbolEditorComponent.assignExpression(Unknown Source)
        at edu.stanford.smi.protegex.owl.ui.code.SymbolPanel$2.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


**************************************************************
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet. 
**************************************************************



More information about the protege-owl mailing list