[ 
https://issues.apache.org/jira/browse/UIMA-6483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17649331#comment-17649331
 ] 

Richard Eckart de Castilho commented on UIMA-6483:
--------------------------------------------------

Thanks for the report. I don't see the Ruta manual mentioning the simple 
server. Could you please re-open the issue in the Ruta issue tracker on GitHub:

https://github.com/apache/uima-ruta

When you open the issue there, please include a minimal code example (best a 
Maven project) that allows reproducing your issue. 

Thanks again!

> 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.3.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
>            Priority: Major
>
> 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 failed
> type Exception report
> message XML output failed
> description 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)

Reply via email to