Hey folks,

I had an odd problem when I realized not all of my documents were actually 
treated by my consumer. I run a traditional CPE with 4 threads. After some time 
of research I came to note that my consumer-AE had an exception thrown which I 
never saw. The exception is thrown in this collectionProcessComplete method:

        
@Override
public void collectionProcessComplete()
                throws AnalysisEngineProcessException {
        super.collectionProcessComplete();
        try {
                psEntities.executeBatch();
                conn.commit();
                conn.close();
        } catch (SQLException e) {
                throw new AnalysisEngineProcessException(e.getNextException());
        }
}

I have to call e.printStackTrace() (or e.getNextException().printStackTrace()) 
myself in order to get a message about the error. I am running UIMA 2.3.1. How 
can it be an Exception stays unreported? Have I messed up some logging options 
or something? It seems I'm unaware of some fundamental thing about exception 
handling in UIMA here and I would rather not have to search for exceptions 
myself without knowing they even have been thrown :-)

Thanks!

        Erik 

Reply via email to