You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by tm...@apache.org on 2021/03/25 15:00:02 UTC

svn commit: r1888063 - /ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java

Author: tmill
Date: Thu Mar 25 15:00:02 2021
New Revision: 1888063

URL: http://svn.apache.org/viewvc?rev=1888063&view=rev
Log:
Change timeout in cas pool to 0, -1 was throwing exception (despite being in docs).

Modified:
    ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java

Modified: ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java?rev=1888063&r1=1888062&r2=1888063&view=diff
==============================================================================
--- ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java (original)
+++ ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java Thu Mar 25 15:00:02 2021
@@ -101,7 +101,7 @@ public class CtakesRestController {
             Map<String, List<CuiResponse>> resultMap = null;
             if (text != null) {
                 try {
-                    jcas = _pool.getJCas(-1);
+                    jcas = _pool.getJCas(0);
                     jcas.setDocumentText(text);
                     _engine.process(jcas);
                     resultMap = formatResults(jcas);