Hello,
I generated a pear file from the UIMA example "Writing My First
Annotator" (http://incubator.apache.org/uima/doc-uima-annotator.html)
and tried to load it in the CAS Visual Debugger. I got a
org.apache.uima.util.InvalidXMLException and
org.xml.sax.SAXParseException from
org.apache.uima.tools.cvd.MainFrame.handleException. I attached the
error log in the end.
Running the descriptor file directly in CVD with having the
RoomNumberAnnotator project path in the run path worked.
I also checked the thread "Valid Descriptor causes InvalidXMLException/
DOMException" (http://www.mail-archive.com/[email protected]/msg00816.html
). My error log is "SAX Parse Exception" not "DOM Parse Exception"
though. The "jaxp" debug flag trace is also attached in the end.
In the running configurations I used Java 1.6 and the uima-core+uima-
tools libraries.
For any help I would be very gladful.
Toby
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
XML Descriptor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
<?xml version="1.0" encoding="UTF-8"?>
<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier
">
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<primitive>true</primitive>
<
annotatorImplementationName
>org.apache.uima.tutorial.ex1.RoomNumberAnnotator</
annotatorImplementationName>
<analysisEngineMetaData>
<name>RoomNumberAnnotatorDesciptor</name>
<description></description>
<version>1.0</version>
<vendor></vendor>
<configurationParameters/>
<configurationParameterSettings/>
<typeSystemDescription>
<types>
<typeDescription>
<name>org.apache.uima.tutorial.RoomNumber</name>
<description/>
<supertypeName>uima.tcas.Annotation</supertypeName>
<features>
<featureDescription>
<name>building</name>
<description/>
<rangeTypeName>uima.cas.String</rangeTypeName>
</featureDescription>
</features>
</typeDescription>
</types>
</typeSystemDescription>
<typePriorities/>
<fsIndexCollection/>
<capabilities>
<capability>
<inputs/>
<outputs/>
<languagesSupported/>
</capability>
</capabilities>
<operationalProperties>
<modifiesCas>true</modifiesCas>
<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
<outputsNewCASes>false</outputsNewCASes>
</operationalProperties>
</analysisEngineMetaData>
<resourceManagerConfiguration/>
</analysisEngineDescription>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
CVD ERROR LOG
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
4/27/09 11:42:34 AM - 10:
org.apache.uima.tools.cvd.MainFrame.handleException(575): SEVERE:
Invalid descriptor at file:/Users/toby//tools/UIMA/mypears/
roomNumberAnnotator.pear.
org.apache.uima.util.InvalidXMLException: Invalid descriptor at file:/
Users/toby//tools/UIMA/mypears/roomNumberAnnotator.pear.
at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:
193)
at
org
.apache
.uima
.util.impl.XMLParser_impl.parseResourceSpecifier(XMLParser_impl.java:
365)
at
org
.apache
.uima
.util.impl.XMLParser_impl.parseResourceSpecifier(XMLParser_impl.java:
346)
at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1520)
at
org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:524)
at
org
.apache
.uima
.tools
.cvd
.control
.AnnotatorOpenEventHandler
.actionPerformed(AnnotatorOpenEventHandler.java:52)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:
2028)
at javax.swing.AbstractButton
$Handler.actionPerformed(AbstractButton.java:2351)
at
javax
.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:
387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:
242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:
1220)
at apple.laf.CUIAquaMenuItem.doClick(CUIAquaMenuItem.java:119)
at javax.swing.plaf.basic.BasicMenuItemUI
$Handler.mouseReleased(BasicMenuItemUI.java:1261)
at java.awt.Component.processMouseEvent(Component.java:6126)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5891)
at java.awt.Container.processEvent(Container.java:2102)
at java.awt.Component.dispatchEventImpl(Component.java:4497)
at java.awt.Container.dispatchEventImpl(Container.java:2160)
at java.awt.Component.dispatchEvent(Component.java:4327)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
4366)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:
4030)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3960)
at java.awt.Container.dispatchEventImpl(Container.java:2146)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4327)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java
.awt
.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
300)
at
java
.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
210)
at
java
.awt
.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
200)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
195)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
187)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
at
com
.sun
.org
.apache
.xerces
.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:
176)
... 33 more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
DEBUG FLAG ERROR ( -Djaxp.debug=1)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
JAXP: find factoryId =javax.xml.parsers.SAXParserFactory
JAXP: loaded from fallback value:
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
JAXP: created new instance of class
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl using
ClassLoader: null
JAXP: find factoryId =javax.xml.transform.TransformerFactory
JAXP: loaded from fallback value:
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
JAXP: created new instance of class
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
using ClassLoader: null
JAXP: find factoryId =javax.xml.parsers.DocumentBuilderFactory
JAXP: loaded from fallback value:
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
JAXP: created new instance of class
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
using ClassLoader: null