[infinispan-issues] [JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
Gustavo Fernandes (JIRA)
issues at jboss.org
Mon Aug 20 12:58:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-9439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13621660#comment-13621660 ]
Gustavo Fernandes commented on ISPN-9439:
-----------------------------------------
This should work on master.
> Missing type id with remote execution and plain JSON
> ----------------------------------------------------
>
> Key: ISPN-9439
> URL: https://issues.jboss.org/browse/ISPN-9439
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> Executing this script:
> {code}
> // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
> cache.put(k, v);
> cache.get(k);
> {code}
> With these JSON parameters:
> {code}
> Param1: k
> Value1: {ek: 'local-json-typed-key'}
> Param 2: v
> Value2: {ev: 'local-json-typed-value'}
> {code}
> Results in:
> {code}
> org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list