Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9439

Missing type id with remote execution and plain JSON

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.3.1.Final, 9.4.0.Final
    • Remote Protocols
    • None

      Executing this script:

      // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
      cache.put(k, v);
      cache.get(k);
      

      With these JSON parameters:

      Param1: k
      Value1: {ek: 'local-json-typed-key'}
      
      Param 2: v
      Value2: {ev: 'local-json-typed-value'}
      

      Results in:

      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]
      

            Unassigned Unassigned
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: