Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-808

SimpleServerServlet throws NullPointerExcpetion if no parameter was specified in doGet or doPost

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.2S
    • Sandbox-SimpleServer
    • None

    Description

      If the servlet is called without specifying any parameter a NPE is thrown:

      java.lang.NullPointerException
      org.apache.uima.simpleserver.servlet.SimpleServerServlet.analyze(SimpleServerServlet.java:187)
      org.apache.uima.simpleserver.servlet.SimpleServerServlet.doGet(SimpleServerServlet.java:159)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      I think this case should be covered so that no exception is thrown.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mbaessler Michael Baessler
            mbaessler Michael Baessler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment