[infinispan-issues] [JBoss JIRA] (ISPN-7633) Deploying a task requires server reload
Martin Gencur (JIRA)
issues at jboss.org
Thu Mar 16 08:57:00 EDT 2017
Martin Gencur created ISPN-7633:
-----------------------------------
Summary: Deploying a task requires server reload
Key: ISPN-7633
URL: https://issues.jboss.org/browse/ISPN-7633
Project: Infinispan
Issue Type: Bug
Components: Server, Tasks
Affects Versions: 9.0.0.CR2
Reporter: Martin Gencur
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:
{code}
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)
....
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list