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

Kevin Duling commented on GEODE-2294:
-------------------------------------

I've tracked the problem down to a PrintWriter attempting to deliver the entire 
stacktrace in the response.  However, only the first 1500 bytes or so are sent, 
cutting the message off.  Because the response is not set as a multi-part 
response and because returning an entire stacktrace as a HTTP response seems 
wrong, I've removed the stacktrace from the message.  This allows the framework 
to generate a well-formed JSON response.

Now the error message will come through and more information can be found by 
reviewing the server log.

> When attempting to execute a function via Dev Rest API, error messages are 
> being lost
> -------------------------------------------------------------------------------------
>
>                 Key: GEODE-2294
>                 URL: https://issues.apache.org/jira/browse/GEODE-2294
>             Project: Geode
>          Issue Type: Bug
>          Components: management, rest (dev)
>            Reporter: Kevin Duling
>
> In FunctionAccessController:
> While debugging the execution of a function via the REST API, a null-pointer 
> exception was thrown and should have returned the error:
> {{Specified key is null and this region does not permit null keys!}}
> instead, an error code of 0 is returned with the message:
> {code}
> {
>   "error": "no response from server"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to