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

NPE when trying to execute script from Hot Rod client

    XMLWordPrintable

    Details

      Description

      String SCRIPT_CACHE = "___script_cache";
      RemoteCacheManager remoteCacheManager = ...
      
      RemoteCache<String, String> scriptCache = remoteCacheManager.getCache(SCRIPT_CACHE);
      
      scriptCache.put("wordCountMapper.js", ...);
      

      throws:

      14:34:21,473 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (HotRodServerWorker-8-1) ISPN000136: Execution error: java.lang.NullPointerException
      	at org.infinispan.interceptors.compat.BaseTypeConverterInterceptor.visitPutKeyValueCommand(BaseTypeConverterInterceptor.java:85)
      	at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:72)
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)
      	at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:102)
      
      

        Attachments

          Activity

            People

            Assignee:
            gustavonalle Gustavo Fernandes
            Reporter:
            gustavonalle Gustavo Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: