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

NPE when trying to execute script from Hot Rod client

XMLWordPrintable

      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)
      
      

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: