Sometimes I get invalidXML exceptions for perfectly good descriptors. It has to do with which XML parsing code
gets used, and the fact that different Java versions
have XML parsing code built-in that conflict with that
found in jar files.

If you inspect your CLASSPATHs I suspect you may discover
there is a different set of jar files (or different
Java versions) being used by Eclipse than the batch file.

For me, I have had success by making sure that xalan.jar
is NOT on my CLASSPATH, so you might try that.

Good luck!

lai fook wrote:
Hi,
When I run my program from a .bat file, I get this error when the code reach 
this line of code:

ResourceSpecifier specifier = 
UIMAFramework.getXMLParser().parseResourceSpecifier(in);

But the program is running fine when i run in eclipse.
Can anyone Help me on this.
Thanks!
Regards,
Lai

<hr />
com.ibm.uima.util.InvalidXMLException: Invalid descriptor at file:/C:/Documents
and Settings/user/Desktop/New Folder/BCMS/SimpleTokenAndSentenceAnnotator.xml.
at com.ibm.uima.reference_impl.util.XMLParser_impl.parse(Unknown Source)

at com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifie
r(Unknown Source)
at com.ibm.uima.reference_impl.util.XMLParser_impl.parseResourceSpecifie
r(Unknown Source)
at AnalyserInternalFrame.wordSplitter(AnalyserInternalFrame.java:793)
at CorpusAnalyser.wordListWithoutNo(CorpusAnalyser.java:1116)
at CorpusAnalyser$8.actionPerformed(CorpusAnalyser.java:407)
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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: com.ibm.uima.UIMARuntimeException
at com.ibm.uima.reference_impl.util.XIncluder.getXIncludeTemplates(Unkno
wn Source)
at com.ibm.uima.reference_impl.util.XIncluder.newXIncludeHandler(Unknown
Source)
at com.ibm.uima.reference_impl.util.XIncluder.newXIncludeHandler(Unknown
Source)
at com.ibm.uima.reference_impl.util.SaxDeserializer_impl.<init>(Unknown
Source)
... 33 more
Caused by: javax.xml.transform.TransformerException: The first argument to the n
on-static Java function 'evaluate' is not a valid object reference.
at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesHandlerImpl.end
Document(Unknown Source)
at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
at org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLV
alidator.java:1146)
at org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.d
ispatch(XMLDocumentScanner.java:1499)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
... 37 more




--
Eric Riebling  NSH 4623,  LTI,   SCS,  CMU
412.268.9872   http://www.cs.cmu.edu/~er1k

Reply via email to