uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Kaplan <Aaron.Kap...@xrce.xerox.com>
Subject null fsIndexRepository
Date Tue, 24 Jun 2008 13:53:47 GMT
My annotator's process method begins like this:

	public void process(JCas jcas) throws AnalysisEngineProcessException {
		FSIndexRepository repo = jcas.getFSIndexRepository();

I'm getting a NullPointerException at the line after that, because repo 
is null.  How can this happen?

Possibly relevant: the CAS I'm processing was loaded by the CVD from an 
XMI file.  In the CVD I see an index called 
blah.blah.blah.MyType_GeneratedIndex, whereas I expected to see an index 
  called MyTypeIndex that we defined.


View raw message