Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
If there is an exception in user's Cas Multiplier hasNext() or next() method, the framework does not unlock the input CAS. If an application attempts to reset a CAS that failed in above methods, the following is produced: CASAdminException: Can't flush CAS, flushing is disabled.
Modify AnalysisComponentCasIterator (an inner class of PrimitiveAnalysisEngine_impl) to call
((CASImpl)mInputCas).restoreClassLoaderUnlockCas();
in both hasNext() and next() while handling an exception thrown from user's code.