[
https://issues.apache.org/jira/browse/GEODE-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030406#comment-16030406
]
Augustus Lidaka commented on GEODE-3012:
----------------------------------------
FYI, we have a simple function which exhibits this behavior: EchoFunction calls
`toString` on each argument and returns those results. On a partitioned region,
we get:
{code}http://hostname:8080/gemfire-api/v1/functions/EchoFunction?onRegion=orders{code}
{code}
[
{"itemNo":77,"@type":"pivotal.gemfiredriver.Item"}
]
{code}
Gives an HTTP 500 with:
{code}
{
"cause": "toData failed on DataSerializable class
org.apache.geode.internal.cache.execute.FunctionRemoteContext"
}
{code}
However, the same body executed against a REPLICATE region gives an HTTP 200
with:
{code}
[
"pivotal.gemfiredriver.Item@172abec1"
]
{code}
> Function invocation on REST API fails on partition region
> ---------------------------------------------------------
>
> Key: GEODE-3012
> URL: https://issues.apache.org/jira/browse/GEODE-3012
> Project: Geode
> Issue Type: Bug
> Components: rest (dev)
> Reporter: Udo Kohlmeyer
>
> Submitting a simple JSON document '{"key":"value"}' via function onRegion for
> partition region fails when more than 1 server is started.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)