You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Jonathan Bayle (JIRA)" <ji...@apache.org> on 2014/07/04 10:33:34 UTC

[jira] [Created] (OLINGO-339) Servlet behaviour on null ODataService

Jonathan Bayle created OLINGO-339:
-------------------------------------

             Summary: Servlet behaviour on null ODataService
                 Key: OLINGO-339
                 URL: https://issues.apache.org/jira/browse/OLINGO-339
             Project: Olingo
          Issue Type: New Feature
          Components: odata2-core
    Affects Versions: V2 1.2.0
            Reporter: Jonathan Bayle
            Priority: Minor


When the method ODataServiceFactory.createService returns null, the
servlet throws an uncaught NullPointerException which has to be handled
by the servlet container.

In my opinion, the servlet should print an error message like "service not
found", it would be better if the message is wrapped in an OData error
document.
Maybe an implementation of ODataService could perform this ?



--
This message was sent by Atlassian JIRA
(v6.2#6252)