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

Deploying a task requires server reload

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.0.0.Final
    • Server, Tasks
    • None

      Steps to reproduce:
      1) deploy a Java task to the server
      2) create a cache via CLI
      3) try to call the task via remote HotRod cache API
      The server must be reloaded before calling the task otherwise an exception similar to the following is thrown:

      Expected: (an instance of org.infinispan.client.hotrod.exceptions.HotRodClientException and exception with message a string containing "Intentionally throws an exception.")
           but: exception with message a string containing "Intentionally throws an exception." message was "java.lang.IllegalArgumentException: ISPN027002: Unknown task 'localScript_throwingException'"
      Stacktrace was: org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=27 returned server error (status=0x85): java.lang.IllegalArgumentException: ISPN027002: Unknown task 'localScript_throwingException'
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:363)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:152)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:138)
      	at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:60)
      	at org.infinispan.client.hotrod.impl.operations.ExecuteOperation.executeOperation(ExecuteOperation.java:50)
      	at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:56)
      	at org.infinispan.client.hotrod.impl.RemoteCacheImpl.execute(RemoteCacheImpl.java:542)
      	at org.infinispan.server.test.task.LocalServerTaskIT.shouldThrowExceptionInViaTask(LocalServerTaskIT.java:119)
      ....
      

              Unassigned Unassigned
              mgencur Martin Gencur (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: