Description
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) ....
Attachments
Issue Links
- relates to
-
JDG-869 Deploying a task requires server reload
- Closed