Yue Yang created UIMA-6483: ------------------------------ Summary: UIMA SimpleServer is not compatible with the latest Ruta feature (relation annotation) Key: UIMA-6483 URL: https://issues.apache.org/jira/browse/UIMA-6483 Project: UIMA Issue Type: Improvement Components: addons Affects Versions: 3.2.0ruta Environment: OS: Windows 10 Professional (version: 21H2)
Eclipse: 2022-06 (4.24.0) (Build id: 20220609-1112) Java: Eclipse Adoptium jdk-17.0.1.12-hotspot Maven: Eclipse Embedded 3.8.4/1.18.3.20220227-1319 Apache Tomcat: 6.0.37 org.apache.uima.uimaj-core: 3.3.1 org.apache.uima.SimpleServer: 2.3.1 Reporter: Yue Yang Fix For: 2.8.1ruta SimpleServer does not recognize relation annotation as mentioned in [Apache UIMA Ruta™ Guide and Reference|[https://uima.apache.org/d/ruta-current/tools.ruta.book.html]]. It will throw error when recognizing any such annotation. {code:java} HTTP Status 500 - XML output failedtype Exception reportmessage XML output faileddescription The server encountered an internal error that prevented it from fulfilling this request.exception java.lang.RuntimeException: XML output failed org.apache.uima.simpleserver.output.ResultConverter.getXMLString(ResultConverter.java:88) org.apache.uima.simpleserver.servlet.SimpleServerServlet.transformResult(SimpleServerServlet.java:296) org.apache.uima.simpleserver.servlet.SimpleServerServlet.analyze(SimpleServerServlet.java:213) org.apache.uima.simpleserver.servlet.SimpleServerServlet.doPost(SimpleServerServlet.java:190) javax.servlet.http.HttpServlet.service(HttpServlet.java:643) javax.servlet.http.HttpServlet.service(HttpServlet.java:723) root cause java.lang.NullPointerException: Cannot invoke "org.apache.uima.simpleserver.output.Result.getResultEntries()" because "result" is null org.apache.uima.simpleserver.output.ResultConverter.getXMLString(ResultConverter.java:60) org.apache.uima.simpleserver.servlet.SimpleServerServlet.transformResult(SimpleServerServlet.java:296) org.apache.uima.simpleserver.servlet.SimpleServerServlet.analyze(SimpleServerServlet.java:213) org.apache.uima.simpleserver.servlet.SimpleServerServlet.doPost(SimpleServerServlet.java:190) javax.servlet.http.HttpServlet.service(HttpServlet.java:643) javax.servlet.http.HttpServlet.service(HttpServlet.java:723) {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)