ctakes-server
ctakes-server copied to clipboard
Server not able to produce the timely response
Hi I am new to this Ctakes. I installed the user installation and as per the guide i clone this ctake_server. I used the below command to run the server
java -Dctakes.umlsuser=XXX -Dctakes.umlspw=XXXX -Xmx5g -cp target/ctakes-server-0.1.jar:resources/ de.dfki.lt.ctakes.Server localhost 9999 desc/ctakes-clinical-pipeline/desc/analysis_engine/AggregatePlaintextUMLSProcessor.xml
i am running the above command using cd ctakes-server and run the above command.
i faced this error java.sql.SQLException: error in script file line: 1 Unexpected token UNIQUE, requires COLLATION in statement [SET DATABASE UNIQUE]
but at the end it shows the below lines Loading model: ............................. 17 Jul 2018 11:42:04 INFO TokenizerAnnotatorPTB - Initializing org.apache.ctakes.core.ae.TokenizerAnnotatorPTB 17 Jul 2018 11:42:04 INFO ContextAnnotator - SCOPE ORDER: [1, 3] 17 Jul 2018 11:42:04 INFO StatusContextAnalyzer - initBoundaryData() called for ContextInitializer 17 Jul 2018 11:42:04 INFO SentenceDetector - Sentence detector model file: org/apache/ctakes/core/sentdetect/sd-med-model.zip [INFO] [07/17/2018 11:42:05.221] [CTakes-REST-akka.actor.default-dispatcher-2] [akka://CTakes-REST/user/IO-HTTP/listener-0] Bound to localhost/127.0.0.1:9999
when i try to run the below command curl "http://127.0.0.1:9999/ctakes?text=Pain%20in%20the%20left%20leg%20and%20took%20aspirin" Ooops! The server was not able to produce a timely response to your request.
i ran the --trace-ascii and i got the below trace details
== Info: Trying 127.0.0.1... == Info: Connected to localhost (127.0.0.1) port 9999 (#0) => Send header, 141 bytes (0x8d) 0000: GET /ctakes?text=Pain%20in%20the%20left%20leg%20and%20took%20asp 0040: irin HTTP/1.1 004f: Host: localhost:9999 0065: User-Agent: curl/7.47.0 007e: Accept: / 008b: <= Recv header, 36 bytes (0x24) 0000: HTTP/1.1 500 Internal Server Error <= Recv header, 25 bytes (0x19) 0000: Server: spray-can/1.3.3 <= Recv header, 37 bytes (0x25) 0000: Date: Tue, 17 Jul 2018 12:14:50 GMT <= Recv header, 41 bytes (0x29) 0000: Content-Type: text/plain; charset=UTF-8 <= Recv header, 19 bytes (0x13) 0000: Connection: close <= Recv header, 21 bytes (0x15) 0000: Content-Length: 111 <= Recv header, 2 bytes (0x2) 0000: <= Recv data, 111 bytes (0x6f) 0000: Ooops! The server was not able to produce a timely response to y 0040: our request..Please try again in a short while! == Info: Closing connection 0
i am using the below java version java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Ubuntu - Release: 16.04
Am i doing something wrong? how i will get the desired result.
Regards Swagat
No , I could not check on this. I guess if we have Jave -7 it will work.
On Tue, Jul 31, 2018 at 4:32 PM, oliviaphp [email protected] wrote:
@swagat123 https://github.com/swagat123 I'm having the same problem, did you manage to find a solution?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dirkweissenborn/ctakes-server/issues/12#issuecomment-409181656, or mute the thread https://github.com/notifications/unsubscribe-auth/AKJPz9PAt439kIjWF0Vut6jPVNnIjQ8gks5uMDk7gaJpZM4VStTv .
try using -
java -Dctakes.umlsuser=XXX -Dctakes.umlspw=XXXX -Xmx5g -cp target/ctakes-server-0.1.jar:resources/ de.dfki.lt.ctakes.Server localhost 9999 desc/ctakes-clinical-pipeline/desc/analysis_engine/AggregatePlaintextFastUMLSProcessor.xml
And Change the cTakes Version to 4.0.0 in pom.xml, rebuild the project and it will work.