[protege-discussion] including projects NullPointerException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[protege-discussion] including projects NullPointerException

Fred Freitas

HI all,

The instructions on how to include projects on the users' guide are
stale and I could not find any for the newer Protege versions ( I am
using 3.2 build 234). It also looks more complicated than the earlier
versions but seems to provide more functionalities which are not
documented.

I could not include one onto into another. What I did (and got):

- I clicked "project-> manage included projects",
- I selected the projct to be included (NeuralNets),
- the system told me the project would be saved and reloaded
- I got the exceptions listed below.

Has anybody got any idea of what's going on and how to fix it?

In both projects I used a metaclass with two new slots for Synonyms and
keywords, but I also tries it without the metaclass, and received the
same exception.

Any help is appreciated, thanx in advance,

Fred

PS: Below the generated exception

Unable to load project:
file:/C:/Ontologies/ontos/ontos-eunice/Areas-Applications/file:/C:/Ontologies/ontos/ontos-eunice/NeuralNets/NeuralNets.pprj
java.lang.NullPointerException
        at edu.stanford.smi.protege.model.Project.includeDomainKB(Unknown Source)
        at edu.stanford.smi.protege.model.Project.loadIncludedProject(Unknown
Source)
        at edu.stanford.smi.protege.model.Project.loadIncludedProjects(Unknown
Source)
        at
edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unknown
Source)
        at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
        at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
        at edu.stanford.smi.protege.model.Project.loadProjectFromURI(Unknown
Source)
        at
edu.stanford.smi.protege.ui.ProjectManager.loadProjectFromURI(Unknown
Source)
        at edu.stanford.smi.protege.ui.ProjectManager.loadProject(Unknown Source)
        at edu.stanford.smi.protege.ui.ProjectManager.reload(Unknown Source)
        at
edu.stanford.smi.protege.ui.ProjectManager.changeIncludedProjectURIsRequest(Unknown
Source)
        at
edu.stanford.smi.protege.action.ManageIncludedProjectsPanel.saveContents(Unknown
Source)
        at edu.stanford.smi.protege.util.ModalDialog.attemptClose(Unknown Source)
        at edu.stanford.smi.protege.util.ModalDialog$1.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.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.pumpEventsForHierarchy(Unknown Source)
        at java.awt.Dialog$1.run(Unknown Source)
        at java.awt.Dialog.show(Unknown Source)
        at java.awt.Component.show(Unknown Source)
        at java.awt.Component.setVisible(Unknown Source)
        at edu.stanford.smi.protege.util.ModalDialog.init(Unknown Source)
        at edu.stanford.smi.protege.util.ModalDialog.<init>(Unknown Source)
        at edu.stanford.smi.protege.util.ModalDialog.showDialog(Unknown Source)
        at edu.stanford.smi.protege.util.ModalDialog.showDialog(Unknown Source)
        at edu.stanford.smi.protege.util.ModalDialog.showDialog(Unknown Source)
        at
edu.stanford.smi.protege.action.ManageIncludedProjectsAction.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.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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)

--
[]s

Fred Freitas
************
Associate Professor
Centro de Informática - CIn
Universidade Federal de Pernambuco - UFPE - Brazil
Phone: +55 81 2126 8430 r. 4345

Research interests: Ontologies, semantic web, ontology-based text processing


       

       
               
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html 

-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html