ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1888063 - /ctakes/trunk/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java
Date Thu, 25 Mar 2021 15:00:02 GMT
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);



Mime
View raw message